# nodes

node_type: nodes-base.theHiveProject
package_name: n8n-nodes-base
display_name: TheHive 5
description: Consume TheHive 5 API
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "theHiveProjectApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-04-01 21:15:50
properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "alert",
      "options": [
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Comment",
          "value": "comment"
        },
        {
          "name": "Observable",
          "value": "observable"
        },
        {
          "name": "Page",
          "value": "page"
        },
        {
          "name": "Query",
          "value": "query"
        },
        {
          "name": "Task",
          "value": "task"
        },
        {
          "name": "Task Log",
          "value": "log"
        }
      ],
      "required": true,
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "action": "Create an alert"
        },
        {
          "name": "Delete",
          "value": "deleteAlert",
          "action": "Delete an alert"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "action": "Execute responder on an alert"
        },
        {
          "name": "Get",
          "value": "get",
          "action": "Get an alert"
        },
        {
          "name": "Merge Into Case",
          "value": "merge",
          "action": "Merge an alert into a case"
        },
        {
          "name": "Promote to Case",
          "value": "promote",
          "action": "Promote an alert to a case"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search alerts"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update an alert"
        },
        {
          "name": "Update Status",
          "value": "status",
          "action": "Update an alert status"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Fields",
      "name": "alertFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getAlertFields",
          "mode": "add",
          "valuesLabel": "Fields"
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Observables",
      "name": "observableUi",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Data Type",
              "name": "dataType",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableTypes"
              },
              "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
            },
            {
              "displayName": "Data",
              "name": "data",
              "type": "string",
              "displayOptions": {
                "hide": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": ""
            },
            {
              "displayName": "Input Binary Field",
              "name": "binaryProperty",
              "type": "string",
              "hint": "The name of the input binary field containing the file to be written",
              "displayOptions": {
                "show": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": "data"
            },
            {
              "displayName": "Message",
              "name": "message",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Tags",
              "name": "tags",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "deleteAlert"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "id.value"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Include Similar Alerts",
          "name": "includeSimilarAlerts",
          "type": "boolean",
          "description": "Whether to include similar cases",
          "default": false
        },
        {
          "displayName": "Include Similar Cases",
          "name": "includeSimilarCases",
          "type": "boolean",
          "description": "Whether to include similar cases",
          "default": false
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "alert"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "status"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Status Name or ID",
      "name": "status",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "status"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadAlertStatus"
      }
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "merge"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "merge"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Case Template Name or ID",
          "name": "caseTemplate",
          "type": "options",
          "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
          "default": "",
          "typeOptions": {
            "loadOptionsMethod": "loadCaseTemplate"
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote"
          ]
        }
      }
    },
    {
      "displayName": "Fields",
      "name": "alertUpdateFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getAlertUpdateFields",
          "mode": "update",
          "valuesLabel": "Fields",
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Add Attachment",
          "value": "addAttachment",
          "action": "Add attachment to a case"
        },
        {
          "name": "Create",
          "value": "create",
          "action": "Create a case"
        },
        {
          "name": "Delete Attachment",
          "value": "deleteAttachment",
          "action": "Delete attachment from a case"
        },
        {
          "name": "Delete Case",
          "value": "deleteCase",
          "action": "Delete an case"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "action": "Execute responder on a case"
        },
        {
          "name": "Get",
          "value": "get",
          "action": "Get a case"
        },
        {
          "name": "Get Attachment",
          "value": "getAttachment",
          "action": "Get attachment from a case"
        },
        {
          "name": "Get Timeline",
          "value": "getTimeline",
          "action": "Get timeline of a case"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search cases"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update a case"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "addAttachment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Attachments",
      "name": "attachmentsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Array of supported attachments to add to the message",
      "options": [
        {
          "name": "values",
          "displayName": "Values",
          "values": [
            {
              "displayName": "Attachment Field Name",
              "name": "field",
              "type": "string",
              "default": "data",
              "description": "Add the field name from the input node",
              "hint": "The name of the field with the attachment in the node input"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "addAttachment"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Rename Files",
          "name": "canRename",
          "type": "boolean",
          "description": "Whether to rename the file in case a file with the same name already exists",
          "default": false
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "addAttachment"
          ]
        }
      }
    },
    {
      "displayName": "Fields",
      "name": "caseFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getCaseFields",
          "mode": "add",
          "valuesLabel": "Fields"
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "deleteAttachment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Attachment Name or ID",
      "name": "attachmentId",
      "type": "options",
      "default": "",
      "description": "ID of the attachment. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "deleteAttachment"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadCaseAttachments"
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "deleteCase"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Case",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "id.value"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getAttachment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Attachment Name or ID",
      "name": "attachmentId",
      "type": "options",
      "default": "",
      "description": "ID of the attachment. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getAttachment"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadCaseAttachments",
        "loadOptionsDependsOn": [
          "caseId.value"
        ]
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "File Name",
          "name": "fileName",
          "type": "string",
          "default": "",
          "description": "Rename the file when downloading"
        },
        {
          "displayName": "Data Property Name",
          "name": "dataPropertyName",
          "type": "string",
          "default": "data",
          "description": "Name of the binary property to which write the data of the attachment"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getAttachment"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "case"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getTimeline"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Fields",
      "name": "caseUpdateFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getCaseUpdateFields",
          "mode": "update",
          "valuesLabel": "Fields",
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "add",
      "options": [
        {
          "name": "Create",
          "value": "add",
          "action": "Create a comment in a case or alert"
        },
        {
          "name": "Delete",
          "value": "deleteComment",
          "action": "Delete a comment"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search comments"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update a comment"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Add to",
      "name": "addTo",
      "type": "options",
      "default": "alert",
      "options": [
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "add"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "addTo": [
            "case"
          ],
          "resource": [
            "comment"
          ],
          "operation": [
            "add"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "addTo": [
            "alert"
          ],
          "resource": [
            "comment"
          ],
          "operation": [
            "add"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "add"
          ]
        }
      },
      "typeOptions": {
        "rows": 2
      }
    },
    {
      "displayName": "Comment",
      "name": "commentId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "deleteComment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a comment...",
          "typeOptions": {
            "searchListMethod": "commentSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid comment ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Search in",
      "name": "searchIn",
      "type": "options",
      "default": "all",
      "description": "Whether to search for comments in all alerts and cases or in a specific case or alert",
      "options": [
        {
          "name": "Alerts and Cases",
          "value": "all"
        },
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "searchIn": [
            "case"
          ],
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "searchIn": [
            "alert"
          ],
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Comment",
      "name": "commentId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a comment...",
          "typeOptions": {
            "searchListMethod": "commentSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid comment ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "comment"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "rows": 2
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Add Attachment",
          "value": "addAttachment",
          "action": "Add attachment to a task log"
        },
        {
          "name": "Create",
          "value": "create",
          "action": "Create a task log"
        },
        {
          "name": "Delete",
          "value": "deleteLog",
          "action": "Delete task log"
        },
        {
          "name": "Delete Attachment",
          "value": "deleteAttachment",
          "action": "Delete attachment from a task log"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "action": "Execute responder on a task log"
        },
        {
          "name": "Get",
          "value": "get",
          "action": "Get a task log"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search task logs"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task Log",
      "name": "logId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "addAttachment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task log...",
          "typeOptions": {
            "searchListMethod": "logSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid task Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Attachments",
      "name": "attachmentsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Array of supported attachments to add to the message",
      "options": [
        {
          "name": "values",
          "displayName": "Values",
          "values": [
            {
              "displayName": "Attachment Field Name",
              "name": "field",
              "type": "string",
              "default": "data",
              "description": "Add the field name from the input node",
              "hint": "The name of the field with the attachment in the node input"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "addAttachment"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Task",
      "name": "taskId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task...",
          "typeOptions": {
            "searchListMethod": "taskSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Task ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Fields",
      "name": "logFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getLogFields",
          "mode": "add",
          "valuesLabel": "Fields"
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Attachments",
      "name": "attachmentsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Array of supported attachments to add to the message",
      "options": [
        {
          "name": "values",
          "displayName": "Values",
          "values": [
            {
              "displayName": "Attachment Field Name",
              "name": "field",
              "type": "string",
              "default": "data",
              "description": "Add the field name from the input node",
              "hint": "The name of the field with the attachment in the node input"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Task Log",
      "name": "logId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "deleteAttachment"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task log...",
          "typeOptions": {
            "searchListMethod": "logSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid task Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Attachment Name or ID",
      "name": "attachmentId",
      "type": "options",
      "default": "",
      "description": "ID of the attachment. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "deleteAttachment"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadLogAttachments",
        "loadOptionsDependsOn": [
          "logId.value"
        ]
      }
    },
    {
      "displayName": "Task Log",
      "name": "logId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "deleteLog"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task log...",
          "typeOptions": {
            "searchListMethod": "logSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid task Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Task Log",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task log...",
          "typeOptions": {
            "searchListMethod": "logSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid task Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "id.value"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Task Log",
      "name": "logId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task log...",
          "typeOptions": {
            "searchListMethod": "logSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid task Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Search in All Tasks",
      "name": "allTasks",
      "type": "boolean",
      "default": true,
      "description": "Whether to search in all tasks or only in selected task",
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Task",
      "name": "taskId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "allTasks": [
            false
          ],
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task...",
          "typeOptions": {
            "searchListMethod": "taskSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Task ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "action": "Create an observable"
        },
        {
          "name": "Delete",
          "value": "deleteObservable",
          "action": "Delete an observable"
        },
        {
          "name": "Execute Analyzer",
          "value": "executeAnalyzer",
          "action": "Execute analyzer on an observable"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "action": "Execute responder on an observable"
        },
        {
          "name": "Get",
          "value": "get",
          "action": "Get an observable"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search observables"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update an observable"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Create in",
      "name": "createIn",
      "type": "options",
      "default": "case",
      "options": [
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Alert",
          "value": "alert"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "createIn": [
            "case"
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "createIn": [
            "alert"
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Data Type",
      "name": "dataType",
      "type": "options",
      "default": "file",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadObservableTypes"
      }
    },
    {
      "displayName": "Data",
      "name": "data",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "hide": {
          "dataType": [
            "file"
          ]
        },
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Attachments",
      "name": "attachmentsUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Array of supported attachments to add to the message",
      "options": [
        {
          "name": "values",
          "displayName": "Values",
          "values": [
            {
              "displayName": "Attachment Field Name",
              "name": "field",
              "type": "string",
              "default": "data",
              "description": "Add the field name from the input node",
              "hint": "The name of the field with the attachment in the node input"
            }
          ]
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "dataType": [
            "file"
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Fields",
      "name": "observableFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getObservableFields",
          "mode": "add",
          "valuesLabel": "Fields"
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Observable",
      "name": "observableId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "deleteObservable"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select an observable...",
          "typeOptions": {
            "searchListMethod": "observableSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Observable",
      "name": "observableId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeAnalyzer"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select an observable...",
          "typeOptions": {
            "searchListMethod": "observableSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Data Type",
      "name": "dataType",
      "type": "options",
      "default": "",
      "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>.",
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeAnalyzer"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadObservableTypes"
      }
    },
    {
      "displayName": "Analyzer Names or IDs",
      "name": "analyzers",
      "type": "multiOptions",
      "default": [],
      "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeAnalyzer"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "observableId.value",
          "dataType"
        ],
        "loadOptionsMethod": "loadAnalyzers"
      }
    },
    {
      "displayName": "Observable",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select an observable...",
          "typeOptions": {
            "searchListMethod": "observableSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "id.value"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Observable",
      "name": "observableId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select an observable...",
          "typeOptions": {
            "searchListMethod": "observableSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Log ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Search in",
      "name": "searchIn",
      "type": "options",
      "default": "all",
      "description": "Whether to search for observables in all alerts and cases or in a specific case or alert",
      "options": [
        {
          "name": "Alerts and Cases",
          "value": "all"
        },
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "searchIn": [
            "case"
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Alert",
      "name": "alertId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "searchIn": [
            "alert"
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a alert...",
          "typeOptions": {
            "searchListMethod": "alertSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/alerts\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Alert URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Alert ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Fields",
      "name": "observableUpdateFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getObservableUpdateFields",
          "mode": "update",
          "valuesLabel": "Fields",
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "action": "Create a page"
        },
        {
          "name": "Delete",
          "value": "deletePage",
          "action": "Delete a page"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search pages"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update a page"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Create in",
      "name": "location",
      "type": "options",
      "default": "case",
      "options": [
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Knowledge Base",
          "value": "knowledgeBase"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "location": [
            "case"
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Category",
      "name": "category",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Content",
      "name": "content",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "rows": 2
      }
    },
    {
      "displayName": "Delete From ...",
      "name": "location",
      "type": "options",
      "default": "knowledgeBase",
      "options": [
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Knowledge Base",
          "value": "knowledgeBase"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "deletePage"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "location": [
            "case"
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "deletePage"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Page",
      "name": "pageId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "deletePage"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "caseId"
        ]
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a page...",
          "typeOptions": {
            "searchListMethod": "pageSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Page ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Search in Knowledge Base",
      "name": "searchInKnowledgeBase",
      "type": "boolean",
      "default": true,
      "description": "Whether to search in knowledge base or only in the selected case",
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "searchInKnowledgeBase": [
            false
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "returnAll": [
            true
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Update in",
      "name": "location",
      "type": "options",
      "default": "case",
      "options": [
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Knowledge Base",
          "value": "knowledgeBase"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "location": [
            "case"
          ],
          "resource": [
            "page"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Page",
      "name": "pageId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "caseId"
        ]
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a page...",
          "typeOptions": {
            "searchListMethod": "pageSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Page ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Content",
      "name": "content",
      "type": "string",
      "default": "",
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "rows": 2
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Category",
          "name": "category",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Order",
          "name": "order",
          "type": "number",
          "default": 0,
          "typeOptions": {
            "minValue": 0
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "page"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "executeQuery",
      "options": [
        {
          "name": "Execute Query",
          "value": "executeQuery",
          "action": "Execute a query"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "query"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Query",
      "name": "queryJson",
      "type": "json",
      "default": "=[\n  {\n    \"_name\": \"listOrganisation\"\n  }\n]",
      "description": "Search for objects with filtering and sorting capabilities",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "query"
          ],
          "operation": [
            "executeQuery"
          ]
        }
      },
      "typeOptions": {
        "rows": 10
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "create",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "action": "Create a task"
        },
        {
          "name": "Delete",
          "value": "deleteTask",
          "action": "Delete an task"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "action": "Execute responder on a task"
        },
        {
          "name": "Get",
          "value": "get",
          "action": "Get a task"
        },
        {
          "name": "Search",
          "value": "search",
          "action": "Search tasks"
        },
        {
          "name": "Update",
          "value": "update",
          "action": "Update a task"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Fields",
      "name": "taskFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getTaskFields",
          "mode": "add",
          "valuesLabel": "Fields"
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task",
      "name": "taskId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "deleteTask"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task...",
          "typeOptions": {
            "searchListMethod": "taskSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Task ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Task",
      "name": "id",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task...",
          "typeOptions": {
            "searchListMethod": "taskSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Task ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "hide": {
          "id": [
            ""
          ]
        },
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "executeResponder"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "id.value"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Task",
      "name": "taskId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "get"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a task...",
          "typeOptions": {
            "searchListMethod": "taskSearch",
            "searchable": true
          }
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Task ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Search in All Cases",
      "name": "allCases",
      "type": "boolean",
      "default": true,
      "description": "Whether to search in all cases or only in a selected case",
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Case",
      "name": "caseId",
      "type": "resourceLocator",
      "default": {
        "mode": "list",
        "value": ""
      },
      "required": true,
      "displayOptions": {
        "show": {
          "allCases": [
            false
          ],
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "modes": [
        {
          "displayName": "From List",
          "name": "list",
          "type": "list",
          "placeholder": "Select a case...",
          "typeOptions": {
            "searchListMethod": "caseSearch",
            "searchable": true
          }
        },
        {
          "displayName": "Link",
          "name": "url",
          "type": "string",
          "extractValue": {
            "type": "regex",
            "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details"
          },
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "https:\\/\\/.+\\/cases\\/(~[0-9]{1,})\\/details",
                "errorMessage": "Not a valid Case URL"
              }
            }
          ]
        },
        {
          "displayName": "ID",
          "name": "id",
          "type": "string",
          "placeholder": "e.g. ~123456789",
          "validation": [
            {
              "type": "regex",
              "properties": {
                "regex": "(~[0-9]{1,})",
                "errorMessage": "Not a valid Case ID"
              }
            }
          ]
        }
      ]
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 50,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "returnAll": [
            false
          ],
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "minValue": 1
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Between",
                  "value": "_between",
                  "description": "Field is between two values ('From' is inclusive, 'To' is exclusive)"
                },
                {
                  "name": "Contains",
                  "value": "_like",
                  "description": "Field contains the substring from value"
                },
                {
                  "name": "Ends With",
                  "value": "_endsWith",
                  "description": "Field ends with value"
                },
                {
                  "name": "Equal",
                  "value": "_eq",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Greater Than",
                  "value": "_gt",
                  "description": "Field is greater than value"
                },
                {
                  "name": "Greater Than Or Equal To",
                  "value": "_gte",
                  "description": "Field is greater than or equal to value"
                },
                {
                  "name": "In",
                  "value": "_in",
                  "description": "Field is one of the values"
                },
                {
                  "name": "Less Than",
                  "value": "_lt",
                  "description": "Field is less than value"
                },
                {
                  "name": "Less Than Or Equal To",
                  "value": "_lte",
                  "description": "Field is less than or equal to value"
                },
                {
                  "name": "Match Word",
                  "value": "_match",
                  "description": "Field contains the value as a word"
                },
                {
                  "name": "Not Equal",
                  "value": "_ne",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Starts With",
                  "value": "_startsWith",
                  "description": "Field starts with value"
                }
              ],
              "default": "_eq"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "operator": [
                    "_between",
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "Values",
              "name": "values",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of values",
              "placeholder": "e.g. value1,value2",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_in"
                  ]
                }
              }
            },
            {
              "displayName": "From",
              "name": "from",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            },
            {
              "displayName": "To",
              "name": "to",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "operator": [
                    "_between"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Sort",
      "name": "sort",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Fields",
          "name": "fields",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "default": "",
              "requiresDataPath": "single",
              "description": "Dot notation is also supported, e.g. customFields.field1",
              "displayOptions": {
                "hide": {
                  "/resource": [
                    "alert",
                    "case",
                    "comment",
                    "task",
                    "observable",
                    "log",
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadAlertFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "alert"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadCaseFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "case"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadTaskFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "task"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableFields"
              },
              "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
              "displayOptions": {
                "show": {
                  "/resource": [
                    "observable"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                },
                {
                  "name": "Date",
                  "value": "date"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "log"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Message",
                  "value": "message"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "comment"
                  ]
                }
              }
            },
            {
              "displayName": "Field",
              "name": "field",
              "type": "options",
              "default": "",
              "options": [
                {
                  "name": "Category",
                  "value": "category"
                },
                {
                  "name": "Content",
                  "value": "content"
                },
                {
                  "name": "Title",
                  "value": "title"
                }
              ],
              "displayOptions": {
                "show": {
                  "/resource": [
                    "page"
                  ]
                }
              }
            },
            {
              "displayName": "Direction",
              "name": "direction",
              "type": "options",
              "options": [
                {
                  "name": "Ascending",
                  "value": "asc"
                },
                {
                  "name": "Descending",
                  "value": "desc"
                }
              ],
              "default": "asc"
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Return Count",
          "name": "returnCount",
          "type": "boolean",
          "description": "Whether to return only the count of results",
          "default": false,
          "displayOptions": {
            "hide": {
              "/returnAll": [
                false
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "links",
              "value": "links"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "seen",
              "value": "seen"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "shares",
              "value": "shares"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "observable"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "actionRequiredMap",
              "value": "actionRequiredMap"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "caseId",
              "value": "caseId"
            },
            {
              "name": "caseTemplate",
              "value": "caseTemplate"
            },
            {
              "name": "caseTemplateId",
              "value": "caseTemplateId"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "task"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "caseNumber",
              "value": "caseNumber"
            },
            {
              "name": "importDate",
              "value": "importDate"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "status",
              "value": "status"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "alert"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionRequired",
              "value": "actionRequired"
            },
            {
              "name": "alertCount",
              "value": "alertCount"
            },
            {
              "name": "alerts",
              "value": "alerts"
            },
            {
              "name": "attachmentCount",
              "value": "attachmentCount"
            },
            {
              "name": "contributors",
              "value": "contributors"
            },
            {
              "name": "handlingDuration",
              "value": "computed.handlingDuration"
            },
            {
              "name": "handlingDurationInDays",
              "value": "computed.handlingDurationInDays"
            },
            {
              "name": "handlingDurationInHours",
              "value": "computed.handlingDurationInHours"
            },
            {
              "name": "handlingDurationInMinutes",
              "value": "computed.handlingDurationInMinutes"
            },
            {
              "name": "handlingDurationInSeconds",
              "value": "computed.handlingDurationInSeconds"
            },
            {
              "name": "isOwner",
              "value": "isOwner"
            },
            {
              "name": "observableStats",
              "value": "observableStats"
            },
            {
              "name": "permissions",
              "value": "permissions"
            },
            {
              "name": "procedureCount",
              "value": "procedureCount"
            },
            {
              "name": "shareCount",
              "value": "shareCount"
            },
            {
              "name": "similarAlerts",
              "value": "similarAlerts"
            },
            {
              "name": "status",
              "value": "status"
            },
            {
              "name": "taskStats",
              "value": "taskStats"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "case"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "links",
              "value": "links"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "comment"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "multiOptions",
          "description": "Additional data to include in the response",
          "options": [
            {
              "name": "actionCount",
              "value": "actionCount"
            },
            {
              "name": "case",
              "value": "case"
            },
            {
              "name": "task",
              "value": "task"
            },
            {
              "name": "taskId",
              "value": "taskId"
            }
          ],
          "default": [],
          "displayOptions": {
            "show": {
              "/resource": [
                "log"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        },
        {
          "displayName": "Extra Data",
          "name": "extraData",
          "type": "string",
          "description": "Additional data to include in the response",
          "default": "",
          "requiresDataPath": "multiple",
          "displayOptions": {
            "show": {
              "/resource": [
                "query"
              ]
            },
            "hide": {
              "returnCount": [
                true
              ]
            }
          }
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search"
          ]
        }
      }
    },
    {
      "displayName": "Fields",
      "name": "taskUpdateFields",
      "type": "resourceMapper",
      "default": {
        "mappingMode": "defineBelow",
        "value": null
      },
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "update"
          ]
        }
      },
      "typeOptions": {
        "resourceMapper": {
          "resourceMapperMethod": "getTaskUpdateFields",
          "mode": "update",
          "valuesLabel": "Fields",
          "addAllFields": true,
          "multiKeyMatch": true
        }
      },
      "noDataExpression": true
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "resource": "alert"
    },
    {
      "operation": "deleteAlert",
      "name": "Delete",
      "resource": "alert"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "resource": "alert"
    },
    {
      "operation": "get",
      "name": "Get",
      "resource": "alert"
    },
    {
      "operation": "merge",
      "name": "Merge Into Case",
      "resource": "alert"
    },
    {
      "operation": "promote",
      "name": "Promote to Case",
      "resource": "alert"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "alert"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "alert"
    },
    {
      "operation": "status",
      "name": "Update Status",
      "resource": "alert"
    },
    {
      "operation": "addAttachment",
      "name": "Add Attachment",
      "resource": "case"
    },
    {
      "operation": "create",
      "name": "Create",
      "resource": "case"
    },
    {
      "operation": "deleteAttachment",
      "name": "Delete Attachment",
      "resource": "case"
    },
    {
      "operation": "deleteCase",
      "name": "Delete Case",
      "resource": "case"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "resource": "case"
    },
    {
      "operation": "get",
      "name": "Get",
      "resource": "case"
    },
    {
      "operation": "getAttachment",
      "name": "Get Attachment",
      "resource": "case"
    },
    {
      "operation": "getTimeline",
      "name": "Get Timeline",
      "resource": "case"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "case"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "case"
    },
    {
      "operation": "add",
      "name": "Create",
      "resource": "comment"
    },
    {
      "operation": "deleteComment",
      "name": "Delete",
      "resource": "comment"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "comment"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "comment"
    },
    {
      "operation": "addAttachment",
      "name": "Add Attachment",
      "resource": "log"
    },
    {
      "operation": "create",
      "name": "Create",
      "resource": "log"
    },
    {
      "operation": "deleteLog",
      "name": "Delete",
      "resource": "log"
    },
    {
      "operation": "deleteAttachment",
      "name": "Delete Attachment",
      "resource": "log"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "resource": "log"
    },
    {
      "operation": "get",
      "name": "Get",
      "resource": "log"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "log"
    },
    {
      "operation": "create",
      "name": "Create",
      "resource": "observable"
    },
    {
      "operation": "deleteObservable",
      "name": "Delete",
      "resource": "observable"
    },
    {
      "operation": "executeAnalyzer",
      "name": "Execute Analyzer",
      "resource": "observable"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "resource": "observable"
    },
    {
      "operation": "get",
      "name": "Get",
      "resource": "observable"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "observable"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "observable"
    },
    {
      "operation": "create",
      "name": "Create",
      "resource": "page"
    },
    {
      "operation": "deletePage",
      "name": "Delete",
      "resource": "page"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "page"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "page"
    },
    {
      "operation": "executeQuery",
      "name": "Execute Query",
      "resource": "query"
    },
    {
      "operation": "create",
      "name": "Create",
      "resource": "task"
    },
    {
      "operation": "deleteTask",
      "name": "Delete",
      "resource": "task"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "resource": "task"
    },
    {
      "operation": "get",
      "name": "Get",
      "resource": "task"
    },
    {
      "operation": "search",
      "name": "Search",
      "resource": "task"
    },
    {
      "operation": "update",
      "name": "Update",
      "resource": "task"
    }
  ]


node_type: nodes-base.theHiveProjectTrigger
package_name: n8n-nodes-base
display_name: TheHive 5 Trigger
description: Starts the workflow when TheHive events occur
category: trigger
development_style: programmatic
version: 1
operations: []
credentials_required: []
outputs:
  [
  "main"
  ]

updated_at: 2026-04-01 21:15:50
properties_schema:
  [
    {
      "displayName": "You must set up the webhook in TheHive — instructions <a href=\"https://docs.n8n.io/integrations/builtin/trigger-nodes/n8n-nodes-base.thehive5trigger/#configure-a-webhook-in-thehive\" target=\"_blank\">here</a>",
      "name": "notice",
      "type": "notice",
      "default": ""
    },
    {
      "displayName": "Events",
      "name": "events",
      "type": "multiOptions",
      "default": [],
      "description": "Events types",
      "options": [
        {
          "name": "*",
          "value": "*",
          "description": "Any time any event is triggered (Wildcard Event)"
        },
        {
          "name": "Alert Created",
          "value": "alert_create",
          "description": "Triggered when an alert is created"
        },
        {
          "name": "Alert Deleted",
          "value": "alert_delete",
          "description": "Triggered when an alert is deleted"
        },
        {
          "name": "Alert Updated",
          "value": "alert_update",
          "description": "Triggered when an alert is updated"
        },
        {
          "name": "Case Created",
          "value": "case_create",
          "description": "Triggered when a case is created"
        },
        {
          "name": "Case Deleted",
          "value": "case_delete",
          "description": "Triggered when a case is deleted"
        },
        {
          "name": "Case Updated",
          "value": "case_update",
          "description": "Triggered when a case is updated"
        },
        {
          "name": "Comment Created",
          "value": "comment_create",
          "description": "Triggered when a comment is created"
        },
        {
          "name": "Comment Deleted",
          "value": "comment_delete",
          "description": "Triggered when a comment is deleted"
        },
        {
          "name": "Comment Updated",
          "value": "comment_update",
          "description": "Triggered when a comment is updated"
        },
        {
          "name": "Observable Created",
          "value": "observable_create",
          "description": "Triggered when an observable is created"
        },
        {
          "name": "Observable Deleted",
          "value": "observable_delete",
          "description": "Triggered when an observable is deleted"
        },
        {
          "name": "Observable Updated",
          "value": "observable_update",
          "description": "Triggered when an observable is updated"
        },
        {
          "name": "Page Created",
          "value": "page_create",
          "description": "Triggered when an page is created"
        },
        {
          "name": "Page Deleted",
          "value": "page_delete",
          "description": "Triggered when an page is deleted"
        },
        {
          "name": "Page Updated",
          "value": "page_update",
          "description": "Triggered when an page is updated"
        },
        {
          "name": "Task Created",
          "value": "task_create",
          "description": "Triggered when a task is created"
        },
        {
          "name": "Task Updated",
          "value": "task_update",
          "description": "Triggered when a task is updated"
        },
        {
          "name": "Task Log Created",
          "value": "log_create",
          "description": "Triggered when a task log is created"
        },
        {
          "name": "Task Log Deleted",
          "value": "log_delete",
          "description": "Triggered when a task log is deleted"
        },
        {
          "name": "Task Log Updated",
          "value": "log_update",
          "description": "Triggered when a task log is updated"
        }
      ],
      "required": true
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "fixedCollection",
      "default": {},
      "description": "Filter any incoming events based on their fields",
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field",
              "name": "field",
              "type": "string",
              "placeholder": "e.g. context.severity",
              "default": "",
              "hint": "The field to filter on, supports dot notation"
            },
            {
              "displayName": "Operator",
              "name": "operator",
              "type": "options",
              "options": [
                {
                  "name": "Equal",
                  "value": "equal",
                  "description": "Field is equal to value"
                },
                {
                  "name": "Not Equal",
                  "value": "notEqual",
                  "description": "Field is not equal to value"
                },
                {
                  "name": "Includes",
                  "value": "includes",
                  "description": "Field includes value"
                }
              ],
              "default": "equal"
            },
            {
              "displayName": "Value",
              "name": "value",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Output Only Data",
          "description": "Whether to output data with additional details and omit headers",
          "name": "outputOnlyData",
          "type": "boolean",
          "default": false
        }
      ]
    }
  ]


node_type: nodes-base.theHiveTool
package_name: n8n-nodes-base
display_name: TheHive Tool
description: Consume TheHive API (AI Tool variant for use with AI Agents)
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "theHiveApi",
  "required": true
  }
  ]

outputs:
  [
  {
  "type": "ai_tool",
  "displayName": "Tool"
  }
  ]

output_names:
  [
  "Tool"
  ]

updated_at: 2026-04-01 21:15:50
tool_variant_of: nodes-base.theHive
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: TheHive node documentation
  description: Learn how to use the TheHive node in n8n. Follow technical documentation to integrate TheHive node into your workflows.
  contentType: [integration, reference]
  ---

  # TheHive node

  Use the TheHive node to automate work in TheHive, and integrate TheHive with other applications. n8n has built-in support for a wide range of TheHive features, including creating alerts, counting tasks logs, cases, and observables. 

  On this page, you'll find a list of operations the TheHive node supports and links to more resources.

  /// note | TheHive and TheHive 5
  n8n provides two nodes for TheHive. Use this node (TheHive) if you want to use TheHive's version 3 or 4 API. If you want to use version 5, use [TheHive 5](/integrations/builtin/app-nodes/n8n-nodes-base.thehive5.md).
  ///
  /// note | Credentials
  Refer to [TheHive credentials](/integrations/builtin/credentials/thehive.md) for guidance on setting up authentication. 
  ///

  ## Operations

  The available operations depend on your API version. To see the operations list, create your credentials, including selecting your API version. Then return to the node, select the resource you want to use, and n8n displays the available operations for your API version. 

  * Alert
  * Case
  * Log
  * Observable
  * Task

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'thehive') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

  ## Related resources

  n8n provides a trigger node for TheHive. You can find the trigger node docs [here](/integrations/builtin/trigger-nodes/n8n-nodes-base.thehivetrigger.md).

  Refer to TheHive's documentation for more information about the service:

  * [Version 3](https://docs.thehive-project.org/thehive/legacy/thehive3/api/){:target=_blank .external-link}
  * [Version 4](https://docs.thehive-project.org/cortex/api/api-guide/){:target=_blank .external-link}

properties_schema:
  [
    {
      "displayName": "Tool Description",
      "name": "toolDescription",
      "type": "string",
      "default": "",
      "required": false,
      "description": "Description for the AI to understand what this tool does and when to use it",
      "typeOptions": {
        "rows": 3
      },
      "placeholder": "e.g., Use this tool to interact with TheHive"
    },
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "alert",
      "options": [
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Log",
          "value": "log"
        },
        {
          "name": "Observable",
          "value": "observable"
        },
        {
          "name": "Task",
          "value": "task"
        }
      ],
      "required": true,
      "noDataExpression": true
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "create",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadAlertOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Alert ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Title of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote",
            "markAsRead",
            "markAsUnread",
            "merge",
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "merge"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "Description of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Severity",
      "name": "severity",
      "type": "options",
      "default": 2,
      "description": "Severity of the alert. Default=Medium.",
      "options": [
        {
          "name": "Low",
          "value": 1
        },
        {
          "name": "Medium",
          "value": 2
        },
        {
          "name": "High",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Date",
      "name": "date",
      "type": "dateTime",
      "default": "",
      "description": "Date and time when the alert was raised default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Tags",
      "name": "tags",
      "type": "string",
      "default": "",
      "description": "Case Tags",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "New",
      "description": "Status of the alert",
      "options": [
        {
          "name": "New",
          "value": "New"
        },
        {
          "name": "Updated",
          "value": "Updated"
        },
        {
          "name": "Ignored",
          "value": "Ignored"
        },
        {
          "name": "Imported",
          "value": "Imported"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Type",
      "name": "type",
      "type": "string",
      "default": "",
      "description": "Type of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Source",
      "name": "source",
      "type": "string",
      "default": "",
      "description": "Source of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "SourceRef",
      "name": "sourceRef",
      "type": "string",
      "default": "",
      "description": "Source reference of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Follow",
      "name": "follow",
      "type": "boolean",
      "default": true,
      "description": "Whether the alert becomes active when updated default=true",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Artifacts",
      "name": "artifactUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Artifact attributes",
      "options": [
        {
          "displayName": "Artifact",
          "name": "artifactValues",
          "values": [
            {
              "displayName": "Data Type Name or ID",
              "name": "dataType",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableTypes"
              },
              "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
            },
            {
              "displayName": "Data",
              "name": "data",
              "type": "string",
              "displayOptions": {
                "hide": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": ""
            },
            {
              "displayName": "Input Binary Field",
              "name": "binaryProperty",
              "type": "string",
              "hint": "The name of the input binary field containing the file to be written",
              "displayOptions": {
                "show": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": "data"
            },
            {
              "displayName": "Message",
              "name": "message",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Case Tags",
              "name": "tags",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create",
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Artifacts",
          "name": "artifactUi",
          "type": "fixedCollection",
          "placeholder": "Add Artifact",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Artifact",
              "name": "artifactValues",
              "values": [
                {
                  "displayName": "Data Type Name or ID",
                  "name": "dataType",
                  "type": "options",
                  "default": "",
                  "typeOptions": {
                    "loadOptionsMethod": "loadObservableTypes"
                  },
                  "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Data",
                  "name": "data",
                  "type": "string",
                  "displayOptions": {
                    "hide": {
                      "dataType": [
                        "file"
                      ]
                    }
                  },
                  "default": ""
                },
                {
                  "displayName": "Input Binary Field",
                  "name": "binaryProperty",
                  "type": "string",
                  "hint": "The name of the input binary field containing the file to be written",
                  "displayOptions": {
                    "show": {
                      "dataType": [
                        "file"
                      ]
                    }
                  },
                  "default": "data"
                },
                {
                  "displayName": "Message",
                  "name": "message",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Case Tags",
                  "name": "tags",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "default": "",
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the alert"
        },
        {
          "displayName": "Follow",
          "name": "follow",
          "type": "boolean",
          "default": true,
          "description": "Whether the alert becomes active when updated default=true"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "New",
              "value": "New"
            },
            {
              "name": "Updated",
              "value": "Updated"
            },
            {
              "name": "Ignored",
              "value": "Ignored"
            },
            {
              "name": "Imported",
              "value": "Imported"
            }
          ],
          "default": "New"
        },
        {
          "displayName": "Case Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag,tag2,tag3..."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the alert"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Include Similar Cases",
          "name": "includeSimilar",
          "type": "boolean",
          "description": "Whether to include similar cases",
          "default": false
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the alert"
        },
        {
          "displayName": "Follow",
          "name": "follow",
          "type": "boolean",
          "default": false,
          "description": "Whether the alert becomes active when updated default=true"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag,tag2,tag3..."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "getAll",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "resource"
        ],
        "loadOptionsMethod": "loadObservableOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "description": "ID of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Observable ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the observable",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "update",
            "executeResponder",
            "executeAnalyzer",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Data Type Name or ID",
      "name": "dataType",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create",
            "executeAnalyzer"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadObservableTypes"
      }
    },
    {
      "displayName": "Data",
      "name": "data",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        },
        "hide": {
          "dataType": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Input Binary Field",
      "name": "binaryProperty",
      "type": "string",
      "default": "data",
      "description": "The name of the input binary field that represent the attachment file",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ],
          "dataType": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "description": "Description of the observable in the context of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date and time of the begin of the case default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "IOC",
      "name": "ioc",
      "type": "boolean",
      "default": false,
      "description": "Whether the observable is an IOC (Indicator of compromise)",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Sighted",
      "name": "sighted",
      "type": "boolean",
      "default": false,
      "description": "Whether sighted previously",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "",
      "description": "Status of the observable. Default=Ok.",
      "options": [
        {
          "name": "Ok",
          "value": "Ok"
        },
        {
          "name": "Deleted",
          "value": "Deleted"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Analyzer Names or IDs",
      "name": "analyzers",
      "type": "multiOptions",
      "default": [],
      "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeAnalyzer"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "dataType"
        ],
        "loadOptionsMethod": "loadAnalyzers"
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Message",
          "name": "message",
          "type": "string",
          "default": "",
          "description": "Description of the observable in the context of the case"
        },
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        },
        {
          "displayName": "IOC",
          "name": "ioc",
          "type": "boolean",
          "default": false,
          "description": "Whether the observable is an IOC (Indicator of compromise)"
        },
        {
          "displayName": "Sighted",
          "name": "sighted",
          "description": "Whether sighted previously",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "Ok",
              "value": "Ok"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "description": "Status of the observable. Default=Ok."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Data Type Names or IDs",
          "name": "dataType",
          "type": "multiOptions",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "loadObservableTypes"
          },
          "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>"
        },
        {
          "displayName": "Date Range",
          "type": "fixedCollection",
          "name": "range",
          "default": {},
          "options": [
            {
              "displayName": "Add Date Range Inputs",
              "name": "dateRange",
              "values": [
                {
                  "displayName": "From Date",
                  "name": "fromDate",
                  "type": "dateTime",
                  "default": ""
                },
                {
                  "displayName": "To Date",
                  "name": "toDate",
                  "type": "dateTime",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "placeholder": "exp,freetext"
        },
        {
          "displayName": "IOC",
          "name": "ioc",
          "type": "boolean",
          "default": false,
          "description": "Whether the observable is an IOC (Indicator of compromise)"
        },
        {
          "displayName": "Keyword",
          "name": "keyword",
          "type": "string",
          "default": "",
          "placeholder": "exp,freetext"
        },
        {
          "displayName": "Message",
          "name": "message",
          "type": "string",
          "default": "",
          "description": "Description of the observable in the context of the case"
        },
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        },
        {
          "displayName": "Sighted",
          "name": "sighted",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Status",
          "name": "Status",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "Ok",
              "value": "Ok"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "description": "Status of the observable. Default=Ok."
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        },
        {
          "displayName": "Value",
          "name": "data",
          "type": "string",
          "default": "",
          "placeholder": "example.com; 8.8.8.8"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "resource"
        ],
        "loadOptionsMethod": "loadCaseOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Case ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "Description of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Severity",
      "name": "severity",
      "type": "options",
      "default": 2,
      "description": "Severity of the alert. Default=Medium.",
      "options": [
        {
          "name": "Low",
          "value": 1
        },
        {
          "name": "Medium",
          "value": 2
        },
        {
          "name": "High",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date and time of the begin of the case default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Owner",
      "name": "owner",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Flag",
      "name": "flag",
      "type": "boolean",
      "default": false,
      "description": "Flag of the case default=false",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Tags",
      "name": "tags",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create",
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "default": "",
          "type": "dateTime",
          "description": "Resolution date"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Metrics (JSON)",
          "name": "metrics",
          "default": "[]",
          "type": "json",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "List of metrics"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the case"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Resolution date"
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Flag of the case default=false"
        },
        {
          "displayName": "Impact Status",
          "name": "impactStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "No Impact",
              "value": "NoImpact"
            },
            {
              "name": "With Impact",
              "value": "WithImpact"
            },
            {
              "name": "Not Applicable",
              "value": "NotApplicable"
            }
          ],
          "description": "Impact status of the case"
        },
        {
          "displayName": "Metrics (JSON)",
          "name": "metrics",
          "type": "json",
          "default": "[]",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "List of metrics"
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Resolution Status",
          "name": "resolutionStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "value": "Duplicated",
              "name": "Duplicated"
            },
            {
              "value": "FalsePositive",
              "name": "False Positive"
            },
            {
              "value": "Indeterminate",
              "name": "Indeterminate"
            },
            {
              "value": "Other",
              "name": "Other"
            },
            {
              "value": "TruePositive",
              "name": "True Positive"
            }
          ],
          "description": "Resolution status of the case"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date and time of the begin of the case default=now"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Open",
              "value": "Open"
            },
            {
              "name": "Resolved",
              "value": "Resolved"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "default": "Open"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the case"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the case"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Resolution date"
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Flag of the case default=false"
        },
        {
          "displayName": "Impact Status",
          "name": "impactStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "No Impact",
              "value": "NoImpact"
            },
            {
              "name": "With Impact",
              "value": "WithImpact"
            },
            {
              "name": "Not Applicable",
              "value": "NotApplicable"
            }
          ]
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Resolution Status",
          "name": "resolutionStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "value": "Duplicated",
              "name": "Duplicated"
            },
            {
              "value": "False Positive",
              "name": "FalsePositive"
            },
            {
              "value": "Indeterminate",
              "name": "Indeterminate"
            },
            {
              "value": "Other",
              "name": "Other"
            },
            {
              "value": "True Positive",
              "name": "TruePositive"
            }
          ]
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date and time of the begin of the case default=now"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Open",
              "value": "Open"
            },
            {
              "name": "Resolved",
              "value": "Resolved"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "default": "Open"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the case"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getAll",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "operation"
        ],
        "loadOptionsMethod": "loadTaskOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the taks",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "search",
            "getAll"
          ],
          "resource": [
            "task"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "search",
            "getAll"
          ],
          "resource": [
            "task"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Task details",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "Waiting",
      "description": "Status of the task. Default=Waiting.",
      "options": [
        {
          "name": "Cancel",
          "value": "Cancel"
        },
        {
          "name": "Completed",
          "value": "Completed"
        },
        {
          "name": "InProgress",
          "value": "InProgress"
        },
        {
          "name": "Waiting",
          "value": "Waiting"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Flag",
      "name": "flag",
      "type": "boolean",
      "default": false,
      "description": "Whether to flag the task. Default=false.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Whether to flag the task. Default=false."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "Waiting",
          "options": [
            {
              "name": "Cancel",
              "value": "Cancel"
            },
            {
              "name": "Completed",
              "value": "Completed"
            },
            {
              "name": "In Progress",
              "value": "InProgress"
            },
            {
              "name": "Waiting",
              "value": "Waiting"
            }
          ],
          "description": "Status of the task. Default=Waiting."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Task details"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "task"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Whether to flag the task. Default=false."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "Waiting",
          "options": [
            {
              "name": "Cancel",
              "value": "Cancel"
            },
            {
              "name": "Completed",
              "value": "Completed"
            },
            {
              "name": "In Progress",
              "value": "InProgress"
            },
            {
              "name": "Waiting",
              "value": "Waiting"
            }
          ],
          "description": "Status of the task. Default=Waiting."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Task details"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create task log",
          "action": "Create a log"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "description": "Execute a responder on a selected log",
          "action": "Execute a responder"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many task logs",
          "action": "Get many logs"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a single log",
          "action": "Get a log"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task ID",
      "name": "taskId",
      "type": "string",
      "default": "",
      "description": "ID of the task",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "log"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "log"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Log ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "description": "Content of the Log",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date of the log submission default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "",
      "description": "Status of the log (Ok or Deleted) default=Ok",
      "options": [
        {
          "name": "Ok",
          "value": "Ok"
        },
        {
          "name": "Deleted",
          "value": "Deleted"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Attachment",
          "name": "attachmentValues",
          "placeholder": "Add Attachment",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": false
          },
          "default": {},
          "options": [
            {
              "displayName": "Attachment",
              "name": "attachmentValues",
              "values": [
                {
                  "displayName": "Input Binary Field",
                  "name": "binaryProperty",
                  "type": "string",
                  "default": "data",
                  "description": "The name of the input binary field which holds binary data"
                }
              ]
            }
          ],
          "description": "File attached to the log"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create task log",
      "resource": "log"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "description": "Execute a responder on a selected log",
      "resource": "log"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many task logs",
      "resource": "log"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a single log",
      "resource": "log"
    }
  ]


node_type: nodes-base.theHive
package_name: n8n-nodes-base
display_name: TheHive
description: Consume TheHive API
category: transform
development_style: programmatic
version: 1
credentials_required:
  [
  {
  "name": "theHiveApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-04-01 21:15:50
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: TheHive node documentation
  description: Learn how to use the TheHive node in n8n. Follow technical documentation to integrate TheHive node into your workflows.
  contentType: [integration, reference]
  ---

  # TheHive node

  Use the TheHive node to automate work in TheHive, and integrate TheHive with other applications. n8n has built-in support for a wide range of TheHive features, including creating alerts, counting tasks logs, cases, and observables. 

  On this page, you'll find a list of operations the TheHive node supports and links to more resources.

  /// note | TheHive and TheHive 5
  n8n provides two nodes for TheHive. Use this node (TheHive) if you want to use TheHive's version 3 or 4 API. If you want to use version 5, use [TheHive 5](/integrations/builtin/app-nodes/n8n-nodes-base.thehive5.md).
  ///
  /// note | Credentials
  Refer to [TheHive credentials](/integrations/builtin/credentials/thehive.md) for guidance on setting up authentication. 
  ///

  ## Operations

  The available operations depend on your API version. To see the operations list, create your credentials, including selecting your API version. Then return to the node, select the resource you want to use, and n8n displays the available operations for your API version. 

  * Alert
  * Case
  * Log
  * Observable
  * Task

  ## Templates and examples

  <!-- see https://www.notion.so/n8n/Pull-in-templates-for-the-integrations-pages-37c716837b804d30a33b47475f6e3780 -->
  [[ templatesWidget(page.title, 'thehive') ]]

  --8<-- "_snippets/integrations/builtin/app-nodes/operation-not-supported.md"

  ## Related resources

  n8n provides a trigger node for TheHive. You can find the trigger node docs [here](/integrations/builtin/trigger-nodes/n8n-nodes-base.thehivetrigger.md).

  Refer to TheHive's documentation for more information about the service:

  * [Version 3](https://docs.thehive-project.org/thehive/legacy/thehive3/api/){:target=_blank .external-link}
  * [Version 4](https://docs.thehive-project.org/cortex/api/api-guide/){:target=_blank .external-link}

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "alert",
      "options": [
        {
          "name": "Alert",
          "value": "alert"
        },
        {
          "name": "Case",
          "value": "case"
        },
        {
          "name": "Log",
          "value": "log"
        },
        {
          "name": "Observable",
          "value": "observable"
        },
        {
          "name": "Task",
          "value": "task"
        }
      ],
      "required": true,
      "noDataExpression": true
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "create",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadAlertOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Alert ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "Title of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote",
            "markAsRead",
            "markAsUnread",
            "merge",
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "merge"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "Description of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Severity",
      "name": "severity",
      "type": "options",
      "default": 2,
      "description": "Severity of the alert. Default=Medium.",
      "options": [
        {
          "name": "Low",
          "value": 1
        },
        {
          "name": "Medium",
          "value": 2
        },
        {
          "name": "High",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Date",
      "name": "date",
      "type": "dateTime",
      "default": "",
      "description": "Date and time when the alert was raised default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Tags",
      "name": "tags",
      "type": "string",
      "default": "",
      "description": "Case Tags",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "New",
      "description": "Status of the alert",
      "options": [
        {
          "name": "New",
          "value": "New"
        },
        {
          "name": "Updated",
          "value": "Updated"
        },
        {
          "name": "Ignored",
          "value": "Ignored"
        },
        {
          "name": "Imported",
          "value": "Imported"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Type",
      "name": "type",
      "type": "string",
      "default": "",
      "description": "Type of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Source",
      "name": "source",
      "type": "string",
      "default": "",
      "description": "Source of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "SourceRef",
      "name": "sourceRef",
      "type": "string",
      "default": "",
      "description": "Source reference of the alert",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Follow",
      "name": "follow",
      "type": "boolean",
      "default": true,
      "description": "Whether the alert becomes active when updated default=true",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Artifacts",
      "name": "artifactUi",
      "type": "fixedCollection",
      "default": {},
      "description": "Artifact attributes",
      "options": [
        {
          "displayName": "Artifact",
          "name": "artifactValues",
          "values": [
            {
              "displayName": "Data Type Name or ID",
              "name": "dataType",
              "type": "options",
              "default": "",
              "typeOptions": {
                "loadOptionsMethod": "loadObservableTypes"
              },
              "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
            },
            {
              "displayName": "Data",
              "name": "data",
              "type": "string",
              "displayOptions": {
                "hide": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": ""
            },
            {
              "displayName": "Input Binary Field",
              "name": "binaryProperty",
              "type": "string",
              "hint": "The name of the input binary field containing the file to be written",
              "displayOptions": {
                "show": {
                  "dataType": [
                    "file"
                  ]
                }
              },
              "default": "data"
            },
            {
              "displayName": "Message",
              "name": "message",
              "type": "string",
              "default": ""
            },
            {
              "displayName": "Case Tags",
              "name": "tags",
              "type": "string",
              "default": ""
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": true,
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create",
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "promote"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Artifacts",
          "name": "artifactUi",
          "type": "fixedCollection",
          "placeholder": "Add Artifact",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "options": [
            {
              "displayName": "Artifact",
              "name": "artifactValues",
              "values": [
                {
                  "displayName": "Data Type Name or ID",
                  "name": "dataType",
                  "type": "options",
                  "default": "",
                  "typeOptions": {
                    "loadOptionsMethod": "loadObservableTypes"
                  },
                  "description": "Type of the observable. Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>."
                },
                {
                  "displayName": "Data",
                  "name": "data",
                  "type": "string",
                  "displayOptions": {
                    "hide": {
                      "dataType": [
                        "file"
                      ]
                    }
                  },
                  "default": ""
                },
                {
                  "displayName": "Input Binary Field",
                  "name": "binaryProperty",
                  "type": "string",
                  "hint": "The name of the input binary field containing the file to be written",
                  "displayOptions": {
                    "show": {
                      "dataType": [
                        "file"
                      ]
                    }
                  },
                  "default": "data"
                },
                {
                  "displayName": "Message",
                  "name": "message",
                  "type": "string",
                  "default": ""
                },
                {
                  "displayName": "Case Tags",
                  "name": "tags",
                  "type": "string",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "default": "",
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "Case Template",
          "name": "caseTemplate",
          "type": "string",
          "default": "",
          "description": "Case template to use when a case is created from this alert"
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the alert"
        },
        {
          "displayName": "Follow",
          "name": "follow",
          "type": "boolean",
          "default": true,
          "description": "Whether the alert becomes active when updated default=true"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "New",
              "value": "New"
            },
            {
              "name": "Updated",
              "value": "Updated"
            },
            {
              "name": "Ignored",
              "value": "Ignored"
            },
            {
              "name": "Imported",
              "value": "Imported"
            }
          ],
          "default": "New"
        },
        {
          "displayName": "Case Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag,tag2,tag3..."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the alert"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Include Similar Cases",
          "name": "includeSimilar",
          "type": "boolean",
          "description": "Whether to include similar cases",
          "default": false
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "alert"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the alert"
        },
        {
          "displayName": "Follow",
          "name": "follow",
          "type": "boolean",
          "default": false,
          "description": "Whether the alert becomes active when updated default=true"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag,tag2,tag3..."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "alert"
          ],
          "operation": [
            "getAll",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "resource"
        ],
        "loadOptionsMethod": "loadObservableOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "description": "ID of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Observable ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the observable",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "update",
            "executeResponder",
            "executeAnalyzer",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Data Type Name or ID",
      "name": "dataType",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create",
            "executeAnalyzer"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsMethod": "loadObservableTypes"
      }
    },
    {
      "displayName": "Data",
      "name": "data",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        },
        "hide": {
          "dataType": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Input Binary Field",
      "name": "binaryProperty",
      "type": "string",
      "default": "data",
      "description": "The name of the input binary field that represent the attachment file",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ],
          "dataType": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "description": "Description of the observable in the context of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date and time of the begin of the case default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "IOC",
      "name": "ioc",
      "type": "boolean",
      "default": false,
      "description": "Whether the observable is an IOC (Indicator of compromise)",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Sighted",
      "name": "sighted",
      "type": "boolean",
      "default": false,
      "description": "Whether sighted previously",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "",
      "description": "Status of the observable. Default=Ok.",
      "options": [
        {
          "name": "Ok",
          "value": "Ok"
        },
        {
          "name": "Deleted",
          "value": "Deleted"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Analyzer Names or IDs",
      "name": "analyzers",
      "type": "multiOptions",
      "default": [],
      "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeAnalyzer"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id",
          "dataType"
        ],
        "loadOptionsMethod": "loadAnalyzers"
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Message",
          "name": "message",
          "type": "string",
          "default": "",
          "description": "Description of the observable in the context of the case"
        },
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        },
        {
          "displayName": "IOC",
          "name": "ioc",
          "type": "boolean",
          "default": false,
          "description": "Whether the observable is an IOC (Indicator of compromise)"
        },
        {
          "displayName": "Sighted",
          "name": "sighted",
          "description": "Whether sighted previously",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "Ok",
              "value": "Ok"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "description": "Status of the observable. Default=Ok."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "observable"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Data Type Names or IDs",
          "name": "dataType",
          "type": "multiOptions",
          "default": [],
          "typeOptions": {
            "loadOptionsMethod": "loadObservableTypes"
          },
          "description": "Choose from the list, or specify IDs using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>"
        },
        {
          "displayName": "Date Range",
          "type": "fixedCollection",
          "name": "range",
          "default": {},
          "options": [
            {
              "displayName": "Add Date Range Inputs",
              "name": "dateRange",
              "values": [
                {
                  "displayName": "From Date",
                  "name": "fromDate",
                  "type": "dateTime",
                  "default": ""
                },
                {
                  "displayName": "To Date",
                  "name": "toDate",
                  "type": "dateTime",
                  "default": ""
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "placeholder": "exp,freetext"
        },
        {
          "displayName": "IOC",
          "name": "ioc",
          "type": "boolean",
          "default": false,
          "description": "Whether the observable is an IOC (Indicator of compromise)"
        },
        {
          "displayName": "Keyword",
          "name": "keyword",
          "type": "string",
          "default": "",
          "placeholder": "exp,freetext"
        },
        {
          "displayName": "Message",
          "name": "message",
          "type": "string",
          "default": "",
          "description": "Description of the observable in the context of the case"
        },
        {
          "displayName": "Observable Tags",
          "name": "tags",
          "type": "string",
          "default": "",
          "placeholder": "tag1,tag2"
        },
        {
          "displayName": "Sighted",
          "name": "sighted",
          "type": "boolean",
          "default": false
        },
        {
          "displayName": "Status",
          "name": "Status",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "Ok",
              "value": "Ok"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "description": "Status of the observable. Default=Ok."
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        },
        {
          "displayName": "Value",
          "name": "data",
          "type": "string",
          "default": "",
          "placeholder": "example.com; 8.8.8.8"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "observable"
          ],
          "operation": [
            "search",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "resource"
        ],
        "loadOptionsMethod": "loadCaseOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Case ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Title of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "Description of the case",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Severity",
      "name": "severity",
      "type": "options",
      "default": 2,
      "description": "Severity of the alert. Default=Medium.",
      "options": [
        {
          "name": "Low",
          "value": 1
        },
        {
          "name": "Medium",
          "value": 2
        },
        {
          "name": "High",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date and time of the begin of the case default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Owner",
      "name": "owner",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Flag",
      "name": "flag",
      "type": "boolean",
      "default": false,
      "description": "Flag of the case default=false",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "TLP",
      "name": "tlp",
      "type": "options",
      "default": 2,
      "description": "Traffict Light Protocol (TLP). Default=Amber.",
      "options": [
        {
          "name": "White",
          "value": 0
        },
        {
          "name": "Green",
          "value": 1
        },
        {
          "name": "Amber",
          "value": 2
        },
        {
          "name": "Red",
          "value": 3
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Tags",
      "name": "tags",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "JSON Parameters",
      "name": "jsonParameters",
      "type": "boolean",
      "default": true,
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create",
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "default": "",
          "type": "dateTime",
          "description": "Resolution date"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Metrics (JSON)",
          "name": "metrics",
          "default": "[]",
          "type": "json",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "List of metrics"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                false
              ]
            }
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Custom Fields (JSON)",
          "name": "customFieldsJson",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "Custom fields in JSON format. Overrides Custom Fields UI if set."
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the case"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Resolution date"
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Flag of the case default=false"
        },
        {
          "displayName": "Impact Status",
          "name": "impactStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "No Impact",
              "value": "NoImpact"
            },
            {
              "name": "With Impact",
              "value": "WithImpact"
            },
            {
              "name": "Not Applicable",
              "value": "NotApplicable"
            }
          ],
          "description": "Impact status of the case"
        },
        {
          "displayName": "Metrics (JSON)",
          "name": "metrics",
          "type": "json",
          "default": "[]",
          "displayOptions": {
            "show": {
              "/jsonParameters": [
                true
              ]
            }
          },
          "description": "List of metrics"
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Resolution Status",
          "name": "resolutionStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "value": "Duplicated",
              "name": "Duplicated"
            },
            {
              "value": "FalsePositive",
              "name": "False Positive"
            },
            {
              "value": "Indeterminate",
              "name": "Indeterminate"
            },
            {
              "value": "Other",
              "name": "Other"
            },
            {
              "value": "TruePositive",
              "name": "True Positive"
            }
          ],
          "description": "Resolution status of the case"
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date and time of the begin of the case default=now"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Open",
              "value": "Open"
            },
            {
              "name": "Resolved",
              "value": "Resolved"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "default": "Open"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the case"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "case"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Custom Fields",
          "name": "customFieldsUi",
          "type": "fixedCollection",
          "default": {},
          "typeOptions": {
            "multipleValues": true
          },
          "placeholder": "Add Custom Field",
          "options": [
            {
              "name": "customFields",
              "displayName": "Custom Field",
              "values": [
                {
                  "displayName": "Field Name or ID",
                  "name": "field",
                  "type": "options",
                  "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
                  "typeOptions": {
                    "loadOptionsMethod": "loadCustomFields"
                  },
                  "default": "Custom Field"
                },
                {
                  "displayName": "Value",
                  "name": "value",
                  "type": "string",
                  "default": "",
                  "description": "Custom Field value. Use an expression if the type is not a string."
                }
              ]
            }
          ]
        },
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Description of the case"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Resolution date"
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Flag of the case default=false"
        },
        {
          "displayName": "Impact Status",
          "name": "impactStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "name": "No Impact",
              "value": "NoImpact"
            },
            {
              "name": "With Impact",
              "value": "WithImpact"
            },
            {
              "name": "Not Applicable",
              "value": "NotApplicable"
            }
          ]
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Resolution Status",
          "name": "resolutionStatus",
          "type": "options",
          "default": "",
          "options": [
            {
              "value": "Duplicated",
              "name": "Duplicated"
            },
            {
              "value": "False Positive",
              "name": "FalsePositive"
            },
            {
              "value": "Indeterminate",
              "name": "Indeterminate"
            },
            {
              "value": "Other",
              "name": "Other"
            },
            {
              "value": "True Positive",
              "name": "TruePositive"
            }
          ]
        },
        {
          "displayName": "Severity",
          "name": "severity",
          "type": "options",
          "options": [
            {
              "name": "Low",
              "value": 1
            },
            {
              "name": "Medium",
              "value": 2
            },
            {
              "name": "High",
              "value": 3
            }
          ],
          "default": 2,
          "description": "Severity of the alert. Default=Medium."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date and time of the begin of the case default=now"
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "options": [
            {
              "name": "Open",
              "value": "Open"
            },
            {
              "name": "Resolved",
              "value": "Resolved"
            },
            {
              "name": "Deleted",
              "value": "Deleted"
            }
          ],
          "default": "Open"
        },
        {
          "displayName": "Summary",
          "name": "summary",
          "type": "string",
          "default": "",
          "description": "Summary of the case, to be provided when closing a case"
        },
        {
          "displayName": "Tags",
          "name": "tags",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Title of the case"
        },
        {
          "displayName": "TLP",
          "name": "tlp",
          "type": "options",
          "default": 2,
          "options": [
            {
              "name": "White",
              "value": 0
            },
            {
              "name": "Green",
              "value": 1
            },
            {
              "name": "Amber",
              "value": 2
            },
            {
              "name": "Red",
              "value": 3
            }
          ],
          "description": "Traffict Light Protocol (TLP). Default=Amber."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "case"
          ],
          "operation": [
            "getAll",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation Name or ID",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "operation"
        ],
        "loadOptionsMethod": "loadTaskOptions"
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task ID",
      "name": "id",
      "type": "string",
      "default": "",
      "description": "ID of the taks",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "update",
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Case ID",
      "name": "caseId",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "search",
            "getAll"
          ],
          "resource": [
            "task"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "search",
            "getAll"
          ],
          "resource": [
            "task"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "Task details",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "Waiting",
      "description": "Status of the task. Default=Waiting.",
      "options": [
        {
          "name": "Cancel",
          "value": "Cancel"
        },
        {
          "name": "Completed",
          "value": "Completed"
        },
        {
          "name": "InProgress",
          "value": "InProgress"
        },
        {
          "name": "Waiting",
          "value": "Waiting"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Flag",
      "name": "flag",
      "type": "boolean",
      "default": false,
      "description": "Whether to flag the task. Default=false.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Update Fields",
      "name": "updateFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Whether to flag the task. Default=false."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "Waiting",
          "options": [
            {
              "name": "Cancel",
              "value": "Cancel"
            },
            {
              "name": "Completed",
              "value": "Completed"
            },
            {
              "name": "In Progress",
              "value": "InProgress"
            },
            {
              "name": "Waiting",
              "value": "Waiting"
            }
          ],
          "description": "Status of the task. Default=Waiting."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Task details"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "update"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Sort",
          "name": "sort",
          "type": "string",
          "placeholder": "±Attribut, exp +status",
          "description": "Specify the sorting attribut, + for asc, - for desc",
          "default": ""
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "getAll",
            "search"
          ],
          "resource": [
            "task"
          ]
        }
      }
    },
    {
      "displayName": "Filters",
      "name": "filters",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Description",
          "name": "description",
          "type": "string",
          "default": "",
          "description": "Task details"
        },
        {
          "displayName": "End Date",
          "name": "endDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the end of the task. This is automatically set when status is set to Completed."
        },
        {
          "displayName": "Flag",
          "name": "flag",
          "type": "boolean",
          "default": false,
          "description": "Whether to flag the task. Default=false."
        },
        {
          "displayName": "Owner",
          "name": "owner",
          "type": "string",
          "default": "",
          "description": "User who owns the task. This is automatically set to current user when status is set to InProgress."
        },
        {
          "displayName": "Start Date",
          "name": "startDate",
          "type": "dateTime",
          "default": "",
          "description": "Date of the beginning of the task. This is automatically set when status is set to Open."
        },
        {
          "displayName": "Status",
          "name": "status",
          "type": "options",
          "default": "Waiting",
          "options": [
            {
              "name": "Cancel",
              "value": "Cancel"
            },
            {
              "name": "Completed",
              "value": "Completed"
            },
            {
              "name": "In Progress",
              "value": "InProgress"
            },
            {
              "name": "Waiting",
              "value": "Waiting"
            }
          ],
          "description": "Status of the task. Default=Waiting."
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "default": "",
          "description": "Task details"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "task"
          ],
          "operation": [
            "search",
            "count"
          ]
        }
      }
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "getAll",
      "options": [
        {
          "name": "Create",
          "value": "create",
          "description": "Create task log",
          "action": "Create a log"
        },
        {
          "name": "Execute Responder",
          "value": "executeResponder",
          "description": "Execute a responder on a selected log",
          "action": "Execute a responder"
        },
        {
          "name": "Get Many",
          "value": "getAll",
          "description": "Get many task logs",
          "action": "Get many logs"
        },
        {
          "name": "Get",
          "value": "get",
          "description": "Get a single log",
          "action": "Get a log"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Task ID",
      "name": "taskId",
      "type": "string",
      "default": "",
      "description": "ID of the task",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create",
            "getAll"
          ]
        }
      }
    },
    {
      "displayName": "Return All",
      "name": "returnAll",
      "type": "boolean",
      "default": false,
      "description": "Whether to return all results or only up to a given limit",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "log"
          ]
        }
      }
    },
    {
      "displayName": "Limit",
      "name": "limit",
      "type": "number",
      "default": 100,
      "description": "Max number of results to return",
      "displayOptions": {
        "show": {
          "operation": [
            "getAll"
          ],
          "resource": [
            "log"
          ],
          "returnAll": [
            false
          ]
        }
      },
      "typeOptions": {
        "minValue": 1,
        "maxValue": 500
      }
    },
    {
      "displayName": "Log ID",
      "name": "id",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder",
            "get"
          ]
        }
      }
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "description": "Content of the Log",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Start Date",
      "name": "startDate",
      "type": "dateTime",
      "default": "",
      "description": "Date of the log submission default=now",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Status",
      "name": "status",
      "type": "options",
      "default": "",
      "description": "Status of the log (Ok or Deleted) default=Ok",
      "options": [
        {
          "name": "Ok",
          "value": "Ok"
        },
        {
          "name": "Deleted",
          "value": "Deleted"
        }
      ],
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    },
    {
      "displayName": "Responder Name or ID",
      "name": "responder",
      "type": "options",
      "default": "",
      "description": "Choose from the list, or specify an ID using an <a href=\"https://docs.n8n.io/code/expressions/\">expression</a>",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "executeResponder"
          ]
        },
        "hide": {
          "id": [
            ""
          ]
        }
      },
      "typeOptions": {
        "loadOptionsDependsOn": [
          "id"
        ],
        "loadOptionsMethod": "loadResponders"
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Attachment",
          "name": "attachmentValues",
          "placeholder": "Add Attachment",
          "type": "fixedCollection",
          "typeOptions": {
            "multipleValues": false
          },
          "default": {},
          "options": [
            {
              "displayName": "Attachment",
              "name": "attachmentValues",
              "values": [
                {
                  "displayName": "Input Binary Field",
                  "name": "binaryProperty",
                  "type": "string",
                  "default": "data",
                  "description": "The name of the input binary field which holds binary data"
                }
              ]
            }
          ],
          "description": "File attached to the log"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "log"
          ],
          "operation": [
            "create"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "create",
      "name": "Create",
      "description": "Create task log",
      "resource": "log"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder",
      "description": "Execute a responder on a selected log",
      "resource": "log"
    },
    {
      "operation": "getAll",
      "name": "Get Many",
      "description": "Get many task logs",
      "resource": "log"
    },
    {
      "operation": "get",
      "name": "Get",
      "description": "Get a single log",
      "resource": "log"
    }
  ]


