# nodes

node_type: nodes-base.telegramTrigger
package_name: n8n-nodes-base
display_name: Telegram Trigger
description: Starts the workflow on a Telegram update
category: trigger
development_style: programmatic
version: 1.2
operations: []
credentials_required:
  [
  {
  "name": "telegramApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-04-16 09:43:09
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Telegram Trigger node documentation
  description: Learn how to use the Telegram Trigger node in n8n. Follow technical documentation to integrate Telegram Trigger node into your workflows.
  contentType: [integration, reference]
  priority: critical
  ---

  # Telegram Trigger node

  [Telegram](https://telegram.org/){:target=_blank .external-link} is a cloud-based instant messaging and voice over IP service. Users can send messages and exchange photos, videos, stickers, audio, and files of any type. On this page, you'll find a list of events the Telegram Trigger node can respond to and links to more resources.

  /// note | Credentials
  You can find authentication information for this node [here](/integrations/builtin/credentials/telegram.md).
  ///

  ///  note  | Examples and templates
  For usage examples and templates to help you get started, refer to n8n's [Telegram Trigger integrations](https://n8n.io/integrations/telegram-trigger/){:target=_blank .external-link} page.
  ///

  ## Events

  - **`*`**: All updates except "Chat Member", "Message Reaction", and "Message Reaction Count" (default behavior of Telegram API as they produces a lot of calls of updates).
  - **Business Connection**: Trigger when the bot is connected to or disconnected from a business account, or a user edited an existing connection with the bot.
  - **Business Message**: Trigger on a new message from a connected business account.
  - **Callback Query**: Trigger on new incoming callback query.
  - **Channel Post**: Trigger on new incoming channel post of any kind — including text, photo, sticker, and so on.
  - **Chat Boost**: Trigger when a chat boost is added or changed. The bot must be an administrator in the chat to receive these updates.
  - **Chat Join Request**: Trigger when a request to join the chat is sent. The bot must have the `can_invite_users` administrator right in the chat to receive these updates.
  - **Chat Member**: Trigger when a chat member's status is updated. The bot must be an administrator in the chat.
  - **Chosen Inline Result**: Trigger when the result of an inline query chosen by a user is sent. Please see Telegram's API documentation on [feedback collection](https://core.telegram.org/bots/inline#collecting-feedback) for details on how to enable these updates for your bot.
  - **Deleted Business Messages**: Trigger when messages are deleted from a connected business account.
  - **Edited Business Message**: Trigger on new version of a message from a connected business account.
  - **Edited Channel Post**: Trigger on new version of a channel post that is known to the bot is edited.
  - **Edited Message**: Trigger on new version of a channel post that is known to the bot is edited.
  - **Inline Query**: Trigger on new incoming inline query.
  - **Message**: Trigger on new incoming message of any kind — text, photo, sticker, and so on.
  - **Message Reaction**: Trigger when a reaction to a message is changed by a user. The bot must be an administrator in the chat. The update isn't received for reactions set by bots.
  - **Message Reaction Count**: Trigger when reactions to a message with anonymous reactions are changed. The bot must be an administrator in the chat. The updates are grouped and can be sent with delay up to a few minutes.
  - **My Chat Member**: Trigger when the bot's chat member status is updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
  - **Poll**: Trigger on new poll state. Bots only receive updates about stopped polls and polls which are sent by the bot.
  - **Poll Answer**: Trigger when user changes their answer in a non-anonymous poll. Bots only receive new votes in polls that were sent by the bot itself.
  - **Pre-Checkout Query**: Trigger on new incoming pre-checkout query. Contains full information about checkout.
  - **Purchased Paid Media**: Trigger when a user purchases paid media with a non-empty payload sent by the bot in a non-channel chat.
  - **Removed Chat Boost**: Trigger when a boost is removed from a chat. The bot must be an administrator in the chat to receive these updates.
  - **Shipping Query**: Trigger on new incoming shipping query. Only for invoices with flexible price.

  Some **events may require additional permissions**, see [Telegram's API documentation](https://core.telegram.org/bots/api#getting-updates) for more information.

  ## Options

  - **Download Images/Files**: Whether to download attached images or files to include in the output data.
  	- **Image Size**: When you enable **Download Images/Files**, this configures the size of image to download. Downloads large images by default.
  - **Restrict to Chat IDs**: Only trigger for events with the listed chat IDs. You can include multiple chat IDs separated by commas.
  - **Restrict to User IDs**: Only trigger for events with the listed user IDs. You can include multiple user IDs separated by commas.

  ## Related resources

  n8n provides an app node for Telegram. You can find the node docs [here](/integrations/builtin/credentials/telegram.md).

  View [example workflows and related content](https://n8n.io/integrations/telegram-trigger/){:target=_blank .external-link} on n8n's website.

  Refer to [Telegram's API documentation](https://core.telegram.org/bots/api){:target=_blank .external-link} for details about their API.

  ## Common issues

  For common questions or issues and suggested solutions, refer to [Common issues](/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/common-issues.md).

properties_schema:
  [
    {
      "displayName": "Due to Telegram API limitations, you can use just one Telegram trigger for each bot at a time",
      "name": "telegramTriggerNotice",
      "type": "notice",
      "default": ""
    },
    {
      "displayName": "Trigger On",
      "name": "updates",
      "type": "multiOptions",
      "default": [],
      "options": [
        {
          "name": "*",
          "value": "*",
          "description": "All updates"
        },
        {
          "name": "Callback Query",
          "value": "callback_query",
          "description": "Trigger on new incoming callback query"
        },
        {
          "name": "Channel Post",
          "value": "channel_post",
          "description": "Trigger on new incoming channel post of any kind — text, photo, sticker, etc"
        },
        {
          "name": "Edited Channel Post",
          "value": "edited_channel_post",
          "description": "Trigger on new version of a channel post that is known to the bot and was edited"
        },
        {
          "name": "Edited Message",
          "value": "edited_message",
          "description": "Trigger on new version of a channel post that is known to the bot and was edited"
        },
        {
          "name": "Inline Query",
          "value": "inline_query",
          "description": "Trigger on new incoming inline query"
        },
        {
          "name": "Message",
          "value": "message",
          "description": "Trigger on new incoming message of any kind — text, photo, sticker, etc"
        },
        {
          "name": "Poll",
          "value": "poll",
          "action": "On Poll Change",
          "description": "Trigger on new poll state. Bots receive only updates about stopped polls and polls, which are sent by the bot."
        },
        {
          "name": "Pre-Checkout Query",
          "value": "pre_checkout_query",
          "description": "Trigger on new incoming pre-checkout query. Contains full information about checkout."
        },
        {
          "name": "Shipping Query",
          "value": "shipping_query",
          "description": "Trigger on new incoming shipping query. Only for invoices with flexible price."
        }
      ],
      "required": true
    },
    {
      "displayName": "Every uploaded attachment, even if sent in a group, will trigger a separate event. You can identify that an attachment belongs to a certain group by <code>media_group_id</code> .",
      "name": "attachmentNotice",
      "type": "notice",
      "default": ""
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Download Images/Files",
          "name": "download",
          "type": "boolean",
          "default": false,
          "description": "Telegram delivers the image in multiple sizes. By default, just the large image would be downloaded. If you want to change the size, set the field 'Image Size'."
        },
        {
          "displayName": "Image Size",
          "name": "imageSize",
          "type": "options",
          "displayOptions": {
            "show": {
              "download": [
                true
              ]
            }
          },
          "options": [
            {
              "name": "Small",
              "value": "small"
            },
            {
              "name": "Medium",
              "value": "medium"
            },
            {
              "name": "Large",
              "value": "large"
            },
            {
              "name": "Extra Large",
              "value": "extraLarge"
            }
          ],
          "default": "large",
          "description": "The size of the image to be downloaded"
        },
        {
          "displayName": "Restrict to Chat IDs",
          "name": "chatIds",
          "type": "string",
          "default": "",
          "description": "The chat IDs to restrict the trigger to. Multiple can be defined separated by comma.",
          "displayOptions": {
            "show": {
              "@version": [
                {
                  "_cnd": {
                    "gte": 1.1
                  }
                }
              ]
            }
          }
        },
        {
          "displayName": "Restrict to User IDs",
          "name": "userIds",
          "type": "string",
          "default": "",
          "description": "The user IDs to restrict the trigger to. Multiple can be defined separated by comma.",
          "displayOptions": {
            "show": {
              "@version": [
                {
                  "_cnd": {
                    "gte": 1.1
                  }
                }
              ]
            }
          }
        }
      ]
    }
  ]


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

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

output_names:
  [
  "Tool"
  ]

updated_at: 2026-04-16 09:43:09
tool_variant_of: nodes-base.theHiveProject
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 5"
    },
    {
      "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.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-16 09:43:09
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"
    }
  ]


