# nodes

node_type: nodes-base.telegram
package_name: n8n-nodes-base
display_name: Telegram
description: Sends data to Telegram
category: output
development_style: programmatic
version: 1.2
credentials_required:
  [
  {
  "name": "telegramApi",
  "required": true
  }
  ]

outputs:
  [
  "main"
  ]

updated_at: 2026-01-21 08:10:03
documentation:
  ---
  #https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
  title: Telegram node documentation
  description: Documentation for the Telegram node in n8n, a workflow automation platform. Includes details of operations and configuration, and links to examples and credentials information.
  contentType: [integration, reference]
  priority: critical
  ---

  # Telegram node

  Use the Telegram node to automate work in [Telegram](https://telegram.org/){:target=_blank .external-link} and integrate Telegram with other applications. n8n has built-in support for a wide range of Telegram features, including getting files as well as deleting and editing messages. 

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

  /// note | Credentials
  Refer to [Telegram credentials](/integrations/builtin/credentials/telegram.md) for guidance on setting up authentication. 
  ///

  ## Operations

  * [**Chat** operations](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md)
      * [**Get**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#get-chat) up-to-date information about a chat.
      * [**Get Administrators**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#get-administrators): Get a list of all administrators in a chat.
      * [**Get Member**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#get-chat-member): Get the details of a chat member.
      * [**Leave**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#leave-chat) a chat.
      * [**Set Description**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#set-description) of a chat.
      * [**Set Title**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/chat-operations.md#set-title) of a chat.
  * [**Callback** operations](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/callback-operations.md)
      * [**Answer Query**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/callback-operations.md#answer-query): Send answers to callback queries sent from [inline keyboards](https://core.telegram.org/bots/features#inline-keyboards){:target=_blank .external-link}.
      * [**Answer Inline Query**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/callback-operations.md#answer-inline-query): Send answers to callback queries sent from inline queries.
  * [**File** operations](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/file-operations.md)
      * [**Get File**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/file-operations.md#get-file) from Telegram.
  * [**Message** operations](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md)
      * [**Delete Chat Message**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#delete-chat-message).
      * [**Edit Message Text**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#edit-message-text): Edit the text of an existing message.
      * [**Pin Chat Message**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#pin-chat-message) for the chat.
      * [**Send Animation**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-animation) to the chat.
          * For use with GIFs or H.264/MPEG-4 AVC videos without sound up to 50 MB in size.
      * [**Send Audio**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-audio) file to the chat and display it in the music player.
      * [**Send Chat Action**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-chat-action): Tell the user that something is happening on the bot's side. The status is set for 5 seconds or less.
      * [**Send Document**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-document) to the chat.
      * [**Send Location**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-location): Send a geolocation to the chat.
      * [**Send Media Group**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-media-group): Send a group of photos and/or videos.
      * [**Send Message**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-message) to the chat.
      * [**Send Photo**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-photo) to the chat.
      * [**Send Sticker**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-sticker) to the chat.
          * For use with static .WEBP, animated .TGS, or video .WEBM stickers.
      * [**Send Video**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#send-video) to the chat.
      * [**Unpin Chat Message**](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/message-operations.md#unpin-chat-message) from the chat.
      
      /// note | Add bot to channel
      To use most of the **Message** operations, you must add your bot to a channel so that it can send messages to that channel. Refer to [Common Issues | Add a bot to a Telegram channel](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/common-issues.md#add-a-bot-to-a-telegram-channel) for more information.
      ///

      ## Templates and examples

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

  ## Related resources

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

  n8n provides a trigger node for Telegram. Refer to the trigger node docs [here](/integrations/builtin/trigger-nodes/n8n-nodes-base.telegramtrigger/index.md) for more information.

  ## Common issues

  For common errors or issues and suggested resolution steps, refer to [Common Issues](/integrations/builtin/app-nodes/n8n-nodes-base.telegram/common-issues.md).

properties_schema:
  [
    {
      "displayName": "Resource",
      "name": "resource",
      "type": "options",
      "default": "message",
      "options": [
        {
          "name": "Chat",
          "value": "chat"
        },
        {
          "name": "Callback",
          "value": "callback"
        },
        {
          "name": "File",
          "value": "file"
        },
        {
          "name": "Message",
          "value": "message"
        }
      ],
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get up to date information about a chat",
          "action": "Get a chat"
        },
        {
          "name": "Get Administrators",
          "value": "administrators",
          "description": "Get the Administrators of a chat",
          "action": "Get all administrators in a chat"
        },
        {
          "name": "Get Member",
          "value": "member",
          "description": "Get the member of a chat",
          "action": "Get a member in a chat"
        },
        {
          "name": "Leave",
          "value": "leave",
          "description": "Leave a group, supergroup or channel",
          "action": "Leave a chat"
        },
        {
          "name": "Set Description",
          "value": "setDescription",
          "description": "Set the description of a chat",
          "action": "Set description on a chat"
        },
        {
          "name": "Set Title",
          "value": "setTitle",
          "description": "Set the title of a chat",
          "action": "Set a title on a chat"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "chat"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "answerQuery",
      "options": [
        {
          "name": "Answer Query",
          "value": "answerQuery",
          "description": "Send answer to callback query sent from inline keyboard",
          "action": "Answer Query a callback"
        },
        {
          "name": "Answer Inline Query",
          "value": "answerInlineQuery",
          "description": "Send answer to callback query sent from inline bot",
          "action": "Answer an inline query callback"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "callback"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "get",
      "options": [
        {
          "name": "Get",
          "value": "get",
          "description": "Get a file",
          "action": "Get a file"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "file"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Operation",
      "name": "operation",
      "type": "options",
      "default": "sendMessage",
      "options": [
        {
          "name": "Delete Chat Message",
          "value": "deleteMessage",
          "description": "Delete a chat message",
          "action": "Delete a chat message"
        },
        {
          "name": "Edit Message Text",
          "value": "editMessageText",
          "description": "Edit a text message",
          "action": "Edit a text message"
        },
        {
          "name": "Pin Chat Message",
          "value": "pinChatMessage",
          "description": "Pin a chat message",
          "action": "Pin a chat message"
        },
        {
          "name": "Send Animation",
          "value": "sendAnimation",
          "description": "Send an animated file",
          "action": "Send an animated file"
        },
        {
          "name": "Send Audio",
          "value": "sendAudio",
          "description": "Send a audio file",
          "action": "Send an audio file"
        },
        {
          "name": "Send Chat Action",
          "value": "sendChatAction",
          "description": "Send a chat action",
          "action": "Send a chat action"
        },
        {
          "name": "Send Document",
          "value": "sendDocument",
          "description": "Send a document",
          "action": "Send a document"
        },
        {
          "name": "Send Location",
          "value": "sendLocation",
          "description": "Send a location",
          "action": "Send a location"
        },
        {
          "name": "Send Media Group",
          "value": "sendMediaGroup",
          "description": "Send group of photos or videos to album",
          "action": "Send a media group message"
        },
        {
          "name": "Send Message",
          "value": "sendMessage",
          "description": "Send a text message",
          "action": "Send a text message"
        },
        {
          "name": "Send and Wait for Response",
          "value": "sendAndWait",
          "description": "Send a message and wait for response",
          "action": "Send message and wait for response"
        },
        {
          "name": "Send Photo",
          "value": "sendPhoto",
          "description": "Send a photo",
          "action": "Send a photo message"
        },
        {
          "name": "Send Sticker",
          "value": "sendSticker",
          "description": "Send a sticker",
          "action": "Send a sticker"
        },
        {
          "name": "Send Video",
          "value": "sendVideo",
          "description": "Send a video",
          "action": "Send a video"
        },
        {
          "name": "Unpin Chat Message",
          "value": "unpinChatMessage",
          "description": "Unpin a chat message",
          "action": "Unpin a chat message"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "message"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Chat ID",
      "name": "chatId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the target chat or username, To find your chat ID ask @get_id_bot",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "administrators",
            "deleteMessage",
            "get",
            "leave",
            "member",
            "pinChatMessage",
            "setDescription",
            "setTitle",
            "sendAnimation",
            "sendAudio",
            "sendChatAction",
            "sendDocument",
            "sendLocation",
            "sendMessage",
            "sendMediaGroup",
            "sendPhoto",
            "sendSticker",
            "sendVideo",
            "unpinChatMessage"
          ],
          "resource": [
            "chat",
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Message ID",
      "name": "messageId",
      "type": "string",
      "default": "",
      "description": "Unique identifier of the message to delete",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "deleteMessage"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Message ID",
      "name": "messageId",
      "type": "string",
      "default": "",
      "description": "Unique identifier of the message to pin or unpin",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "pinChatMessage",
            "unpinChatMessage"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Disable Notification",
          "name": "disable_notification",
          "type": "boolean",
          "default": false,
          "description": "Whether to send a notification to all chat members about the new pinned message"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "pinChatMessage"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "User ID",
      "name": "userId",
      "type": "string",
      "default": "",
      "description": "Unique identifier of the target user",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "member"
          ],
          "resource": [
            "chat"
          ]
        }
      }
    },
    {
      "displayName": "Description",
      "name": "description",
      "type": "string",
      "default": "",
      "description": "New chat description, 0-255 characters",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "setDescription"
          ],
          "resource": [
            "chat"
          ]
        }
      }
    },
    {
      "displayName": "Title",
      "name": "title",
      "type": "string",
      "default": "",
      "description": "New chat title, 1-255 characters",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "setTitle"
          ],
          "resource": [
            "chat"
          ]
        }
      }
    },
    {
      "displayName": "Query ID",
      "name": "queryId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the query to be answered",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "answerQuery"
          ],
          "resource": [
            "callback"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Cache Time",
          "name": "cache_time",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0,
          "description": "The maximum amount of time in seconds that the result of the callback query may be cached client-side"
        },
        {
          "displayName": "Show Alert",
          "name": "show_alert",
          "type": "boolean",
          "default": false,
          "description": "Whether an alert will be shown by the client instead of a notification at the top of the chat screen"
        },
        {
          "displayName": "Text",
          "name": "text",
          "type": "string",
          "default": "",
          "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters."
        },
        {
          "displayName": "URL",
          "name": "url",
          "type": "string",
          "default": "",
          "description": "URL that will be opened by the user's client"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "answerQuery"
          ],
          "resource": [
            "callback"
          ]
        }
      }
    },
    {
      "displayName": "Query ID",
      "name": "queryId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the answered query",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "answerInlineQuery"
          ],
          "resource": [
            "callback"
          ]
        }
      }
    },
    {
      "displayName": "Results",
      "name": "results",
      "type": "string",
      "default": "",
      "description": "A JSON-serialized array of results for the inline query",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "answerInlineQuery"
          ],
          "resource": [
            "callback"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Cache Time",
          "name": "cache_time",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "default": 0,
          "description": "The maximum amount of time in seconds that the result of the callback query may be cached client-side"
        },
        {
          "displayName": "Show Alert",
          "name": "show_alert",
          "type": "boolean",
          "default": false,
          "description": "Whether an alert will be shown by the client instead of a notification at the top of the chat screen"
        },
        {
          "displayName": "Text",
          "name": "text",
          "type": "string",
          "default": "",
          "description": "Text of the notification. If not specified, nothing will be shown to the user, 0-200 characters."
        },
        {
          "displayName": "URL",
          "name": "url",
          "type": "string",
          "default": "",
          "description": "URL that will be opened by the user's client"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "answerInlineQuery"
          ],
          "resource": [
            "callback"
          ]
        }
      }
    },
    {
      "displayName": "File ID",
      "name": "fileId",
      "type": "string",
      "default": "",
      "description": "The ID of the file",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Download",
      "name": "download",
      "type": "boolean",
      "default": true,
      "description": "Whether to download the file",
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "file"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "MIME Type",
          "name": "mimeType",
          "type": "string",
          "placeholder": "image/jpeg",
          "default": "",
          "description": "The MIME type of the file. If not specified, the MIME type will be determined by the file extension."
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "get"
          ],
          "resource": [
            "file"
          ],
          "download": [
            true
          ]
        }
      }
    },
    {
      "displayName": "Message Type",
      "name": "messageType",
      "type": "options",
      "default": "message",
      "description": "The type of the message to edit",
      "options": [
        {
          "name": "Inline Message",
          "value": "inlineMessage"
        },
        {
          "name": "Message",
          "value": "message"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "editMessageText"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Chat ID",
      "name": "chatId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the target chat or username, To find your chat ID ask @get_id_bot",
      "required": true,
      "displayOptions": {
        "show": {
          "messageType": [
            "message"
          ],
          "operation": [
            "editMessageText"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Binary File",
      "name": "binaryData",
      "type": "boolean",
      "default": false,
      "description": "Whether the data to upload should be taken from binary field",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "sendAnimation",
            "sendAudio",
            "sendDocument",
            "sendPhoto",
            "sendVideo",
            "sendSticker"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Input Binary Field",
      "name": "binaryPropertyName",
      "type": "string",
      "default": "data",
      "description": "Name of the binary property that contains the data to upload",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "sendAnimation",
            "sendAudio",
            "sendDocument",
            "sendPhoto",
            "sendVideo",
            "sendSticker"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            true
          ]
        }
      }
    },
    {
      "displayName": "Message ID",
      "name": "messageId",
      "type": "string",
      "default": "",
      "description": "Unique identifier of the message to edit",
      "required": true,
      "displayOptions": {
        "show": {
          "messageType": [
            "message"
          ],
          "operation": [
            "editMessageText"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Inline Message ID",
      "name": "inlineMessageId",
      "type": "string",
      "default": "",
      "description": "Unique identifier of the inline message to edit",
      "required": true,
      "displayOptions": {
        "show": {
          "messageType": [
            "inlineMessage"
          ],
          "operation": [
            "editMessageText"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Reply Markup",
      "name": "replyMarkup",
      "type": "options",
      "default": "none",
      "description": "Additional interface options",
      "options": [
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Inline Keyboard",
          "value": "inlineKeyboard"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "editMessageText"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Animation",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Animation to send. Pass a file_id to send an animation that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get an animation from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendAnimation"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Audio",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Audio file to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendAudio"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Action",
      "name": "action",
      "type": "options",
      "default": "typing",
      "description": "Type of action to broadcast. Choose one, depending on what the user is about to receive. The status is set for 5 seconds or less (when a message arrives from your bot).",
      "options": [
        {
          "name": "Find Location",
          "value": "find_location",
          "action": "Find location"
        },
        {
          "name": "Record Audio",
          "value": "record_audio",
          "action": "Record audio"
        },
        {
          "name": "Record Video",
          "value": "record_video",
          "action": "Record video"
        },
        {
          "name": "Record Video Note",
          "value": "record_video_note",
          "action": "Record video note"
        },
        {
          "name": "Typing",
          "value": "typing",
          "action": "Typing a message"
        },
        {
          "name": "Upload Audio",
          "value": "upload_audio",
          "action": "Upload audio"
        },
        {
          "name": "Upload Document",
          "value": "upload_document",
          "action": "Upload document"
        },
        {
          "name": "Upload Photo",
          "value": "upload_photo",
          "action": "Upload photo"
        },
        {
          "name": "Upload Video",
          "value": "upload_video",
          "action": "Upload video"
        },
        {
          "name": "Upload Video Note",
          "value": "upload_video_note",
          "action": "Upload video note"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "sendChatAction"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Document",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Document to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendDocument"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Latitude",
      "name": "latitude",
      "type": "number",
      "default": 0,
      "description": "Location latitude",
      "displayOptions": {
        "show": {
          "operation": [
            "sendLocation"
          ],
          "resource": [
            "message"
          ]
        }
      },
      "typeOptions": {
        "numberPrecision": 10,
        "minValue": -90,
        "maxValue": 90
      }
    },
    {
      "displayName": "Longitude",
      "name": "longitude",
      "type": "number",
      "default": 0,
      "description": "Location longitude",
      "displayOptions": {
        "show": {
          "operation": [
            "sendLocation"
          ],
          "resource": [
            "message"
          ]
        }
      },
      "typeOptions": {
        "numberPrecision": 10,
        "minValue": -180,
        "maxValue": 180
      }
    },
    {
      "displayName": "Media",
      "name": "media",
      "type": "fixedCollection",
      "default": {},
      "description": "The media to add",
      "options": [
        {
          "displayName": "Media",
          "name": "media",
          "values": [
            {
              "displayName": "Type",
              "name": "type",
              "type": "options",
              "options": [
                {
                  "name": "Photo",
                  "value": "photo"
                },
                {
                  "name": "Video",
                  "value": "video"
                }
              ],
              "default": "photo",
              "description": "The type of the media to add"
            },
            {
              "displayName": "Media File",
              "name": "media",
              "type": "string",
              "default": "",
              "description": "Media to send. Pass a file_id to send a file that exists on the Telegram servers (recommended) or pass an HTTP URL for Telegram to get a file from the Internet."
            },
            {
              "displayName": "Additional Fields",
              "name": "additionalFields",
              "type": "collection",
              "placeholder": "Add Field",
              "default": {},
              "options": [
                {
                  "displayName": "Caption",
                  "name": "caption",
                  "type": "string",
                  "default": "",
                  "description": "Caption text to set, 0-1024 characters"
                },
                {
                  "displayName": "Parse Mode",
                  "name": "parse_mode",
                  "type": "options",
                  "options": [
                    {
                      "name": "Markdown (Legacy)",
                      "value": "Markdown"
                    },
                    {
                      "name": "MarkdownV2",
                      "value": "MarkdownV2"
                    },
                    {
                      "name": "HTML",
                      "value": "HTML"
                    }
                  ],
                  "default": "HTML",
                  "description": "How to parse the text"
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "sendMediaGroup"
          ],
          "resource": [
            "message"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Text",
      "name": "text",
      "type": "string",
      "default": "",
      "description": "Text of the message to be sent",
      "required": true,
      "displayOptions": {
        "show": {
          "operation": [
            "editMessageText",
            "sendMessage"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Photo",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Photo to send. Pass a file_id to send a photo that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a photo from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendPhoto"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Sticker",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Sticker to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a .webp file from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendSticker"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Video",
      "name": "file",
      "type": "string",
      "default": "",
      "description": "Video file to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), an HTTP URL for Telegram to get a file from the Internet.",
      "displayOptions": {
        "show": {
          "operation": [
            "sendVideo"
          ],
          "resource": [
            "message"
          ],
          "binaryData": [
            false
          ]
        }
      }
    },
    {
      "displayName": "Reply Markup",
      "name": "replyMarkup",
      "type": "options",
      "default": "none",
      "description": "Additional interface options",
      "options": [
        {
          "name": "Force Reply",
          "value": "forceReply"
        },
        {
          "name": "Inline Keyboard",
          "value": "inlineKeyboard"
        },
        {
          "name": "None",
          "value": "none"
        },
        {
          "name": "Reply Keyboard",
          "value": "replyKeyboard"
        },
        {
          "name": "Reply Keyboard Remove",
          "value": "replyKeyboardRemove"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "sendAnimation",
            "sendDocument",
            "sendMessage",
            "sendPhoto",
            "sendSticker",
            "sendVideo",
            "sendAudio",
            "sendLocation"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Force Reply",
      "name": "forceReply",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Force Reply",
          "name": "force_reply",
          "type": "boolean",
          "default": false,
          "description": "Whether to show reply interface to the user, as if they manually selected the bot‘s message and tapped ’Reply"
        },
        {
          "displayName": "Selective",
          "name": "selective",
          "type": "boolean",
          "default": false,
          "description": "Whether to force reply from specific users only"
        }
      ],
      "displayOptions": {
        "show": {
          "replyMarkup": [
            "forceReply"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Inline Keyboard",
      "name": "inlineKeyboard",
      "type": "fixedCollection",
      "default": {},
      "description": "Adds an inline keyboard that appears right next to the message it belongs to",
      "options": [
        {
          "displayName": "Rows",
          "name": "rows",
          "values": [
            {
              "displayName": "Row",
              "name": "row",
              "type": "fixedCollection",
              "description": "The value to set",
              "placeholder": "Add Button",
              "typeOptions": {
                "multipleValues": true
              },
              "default": {},
              "options": [
                {
                  "displayName": "Buttons",
                  "name": "buttons",
                  "values": [
                    {
                      "displayName": "Text",
                      "name": "text",
                      "type": "string",
                      "default": "",
                      "description": "Label text on the button"
                    },
                    {
                      "displayName": "Additional Fields",
                      "name": "additionalFields",
                      "type": "collection",
                      "placeholder": "Add Field",
                      "default": {},
                      "options": [
                        {
                          "displayName": "Callback Data",
                          "name": "callback_data",
                          "type": "string",
                          "default": "",
                          "description": "Data to be sent in a callback query to the bot when button is pressed, 1-64 bytes"
                        },
                        {
                          "displayName": "Pay",
                          "name": "pay",
                          "type": "boolean",
                          "default": false,
                          "description": "Whether to send a Pay button"
                        },
                        {
                          "displayName": "Switch Inline Query Current Chat",
                          "name": "switch_inline_query_current_chat",
                          "type": "string",
                          "default": "",
                          "description": "If set, pressing the button will insert the bot‘s username and the specified inline query in the current chat's input field.Can be empty, in which case only the bot’s username will be inserted"
                        },
                        {
                          "displayName": "Switch Inline Query",
                          "name": "switch_inline_query",
                          "type": "string",
                          "default": "",
                          "description": "If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot‘s username and the specified inline query in the input field. Can be empty, in which case just the bot’s username will be inserted."
                        },
                        {
                          "displayName": "URL",
                          "name": "url",
                          "type": "string",
                          "default": "",
                          "description": "HTTP or tg:// URL to be opened when button is pressed"
                        },
                        {
                          "displayName": "Web App",
                          "name": "web_app",
                          "type": "collection",
                          "placeholder": "Set Telegram Web App URL",
                          "typeOptions": {
                            "multipleValues": false
                          },
                          "default": {},
                          "options": [
                            {
                              "displayName": "URL",
                              "name": "url",
                              "type": "string",
                              "default": "",
                              "description": "An HTTPS URL of a Web App to be opened"
                            }
                          ],
                          "description": "Launch the Telegram Web App"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "replyMarkup": [
            "inlineKeyboard"
          ],
          "resource": [
            "message"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Reply Keyboard",
      "name": "replyKeyboard",
      "type": "fixedCollection",
      "default": {},
      "description": "Adds a custom keyboard with reply options",
      "options": [
        {
          "displayName": "Rows",
          "name": "rows",
          "values": [
            {
              "displayName": "Row",
              "name": "row",
              "type": "fixedCollection",
              "description": "The value to set",
              "placeholder": "Add Button",
              "typeOptions": {
                "multipleValues": true
              },
              "default": {},
              "options": [
                {
                  "displayName": "Buttons",
                  "name": "buttons",
                  "values": [
                    {
                      "displayName": "Text",
                      "name": "text",
                      "type": "string",
                      "default": "",
                      "description": "Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed."
                    },
                    {
                      "displayName": "Additional Fields",
                      "name": "additionalFields",
                      "type": "collection",
                      "placeholder": "Add Field",
                      "default": {},
                      "options": [
                        {
                          "displayName": "Request Contact",
                          "name": "request_contact",
                          "type": "boolean",
                          "default": false,
                          "description": "Whether the user's phone number will be sent as a contact when the button is pressed.Available in private chats only"
                        },
                        {
                          "displayName": "Request Location",
                          "name": "request_location",
                          "type": "boolean",
                          "default": false,
                          "description": "Whether the user's request_location"
                        },
                        {
                          "displayName": "Web App",
                          "name": "web_app",
                          "type": "collection",
                          "placeholder": "Set Telegram Web App URL",
                          "typeOptions": {
                            "multipleValues": false
                          },
                          "default": {},
                          "options": [
                            {
                              "displayName": "URL",
                              "name": "url",
                              "type": "string",
                              "default": "",
                              "description": "An HTTPS URL of a Web App to be opened"
                            }
                          ],
                          "description": "Launch the Telegram Web App"
                        }
                      ]
                    }
                  ]
                }
              ]
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "replyMarkup": [
            "replyKeyboard"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true
      }
    },
    {
      "displayName": "Reply Keyboard Options",
      "name": "replyKeyboardOptions",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Resize Keyboard",
          "name": "resize_keyboard",
          "type": "boolean",
          "default": false,
          "description": "Whether to request clients to resize the keyboard vertically for optimal fit"
        },
        {
          "displayName": "One Time Keyboard",
          "name": "one_time_keyboard",
          "type": "boolean",
          "default": false,
          "description": "Whether to request clients to hide the keyboard as soon as it's been used"
        },
        {
          "displayName": "Selective",
          "name": "selective",
          "type": "boolean",
          "default": false,
          "description": "Whether to show the keyboard to specific users only"
        }
      ],
      "displayOptions": {
        "show": {
          "replyMarkup": [
            "replyKeyboard"
          ]
        }
      }
    },
    {
      "displayName": "Reply Keyboard Remove",
      "name": "replyKeyboardRemove",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Remove Keyboard",
          "name": "remove_keyboard",
          "type": "boolean",
          "default": false,
          "description": "Whether to request clients to remove the custom keyboard"
        },
        {
          "displayName": "Selective",
          "name": "selective",
          "type": "boolean",
          "default": false,
          "description": "Whether to force reply from specific users only"
        }
      ],
      "displayOptions": {
        "show": {
          "replyMarkup": [
            "replyKeyboardRemove"
          ]
        }
      }
    },
    {
      "displayName": "Additional Fields",
      "name": "additionalFields",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Append n8n Attribution",
          "name": "appendAttribution",
          "type": "boolean",
          "default": true,
          "description": "Whether to include the phrase “This message was sent automatically with n8n” to the end of the message",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendMessage"
              ]
            }
          }
        },
        {
          "displayName": "Caption",
          "name": "caption",
          "type": "string",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendAudio",
                "sendDocument",
                "sendPhoto",
                "sendVideo"
              ]
            }
          },
          "default": "",
          "description": "Caption text to set, 0-1024 characters"
        },
        {
          "displayName": "Disable Notification",
          "name": "disable_notification",
          "type": "boolean",
          "default": false,
          "displayOptions": {
            "hide": {
              "/operation": [
                "editMessageText"
              ]
            }
          },
          "description": "Whether to send the message silently. Users will receive a notification with no sound."
        },
        {
          "displayName": "Disable WebPage Preview",
          "name": "disable_web_page_preview",
          "type": "boolean",
          "displayOptions": {
            "show": {
              "/operation": [
                "editMessageText",
                "sendMessage"
              ]
            }
          },
          "default": false,
          "description": "Whether to disable link previews for links in this message"
        },
        {
          "displayName": "Duration",
          "name": "duration",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendAudio",
                "sendVideo"
              ]
            }
          },
          "default": 0,
          "description": "Duration of clip in seconds"
        },
        {
          "displayName": "File Name",
          "name": "fileName",
          "type": "string",
          "default": "",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendAudio",
                "sendDocument",
                "sendPhoto",
                "sendVideo",
                "sendSticker"
              ],
              "/resource": [
                "message"
              ],
              "/binaryData": [
                true
              ]
            }
          },
          "placeholder": "image.jpeg"
        },
        {
          "displayName": "Height",
          "name": "height",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendVideo"
              ]
            }
          },
          "default": 0,
          "description": "Height of the video"
        },
        {
          "displayName": "Parse Mode",
          "name": "parse_mode",
          "type": "options",
          "options": [
            {
              "name": "Markdown (Legacy)",
              "value": "Markdown"
            },
            {
              "name": "MarkdownV2",
              "value": "MarkdownV2"
            },
            {
              "name": "HTML",
              "value": "HTML"
            }
          ],
          "displayOptions": {
            "show": {
              "/operation": [
                "editMessageText",
                "sendAnimation",
                "sendAudio",
                "sendMessage",
                "sendPhoto",
                "sendVideo",
                "sendDocument"
              ]
            }
          },
          "default": "HTML",
          "description": "How to parse the text"
        },
        {
          "displayName": "Performer",
          "name": "performer",
          "type": "string",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAudio"
              ]
            }
          },
          "default": "",
          "description": "Name of the performer"
        },
        {
          "displayName": "Reply To Message ID",
          "name": "reply_to_message_id",
          "type": "number",
          "displayOptions": {
            "hide": {
              "/operation": [
                "editMessageText"
              ]
            }
          },
          "default": 0,
          "description": "If the message is a reply, ID of the original message"
        },
        {
          "displayName": "Message Thread ID",
          "name": "message_thread_id",
          "type": "number",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendAudio",
                "sendChatAction",
                "sendDocument",
                "sendLocation",
                "sendMediaGroup",
                "sendMessage",
                "sendPhoto",
                "sendSticker",
                "sendVideo"
              ]
            }
          },
          "default": 0,
          "description": "The unique identifier of the forum topic"
        },
        {
          "displayName": "Title",
          "name": "title",
          "type": "string",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAudio"
              ]
            }
          },
          "default": "",
          "description": "Title of the track"
        },
        {
          "displayName": "Thumbnail",
          "name": "thumb",
          "type": "string",
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendAudio",
                "sendDocument",
                "sendVideo"
              ]
            }
          },
          "default": "",
          "description": "Thumbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail‘s width and height should not exceed 320."
        },
        {
          "displayName": "Width",
          "name": "width",
          "type": "number",
          "typeOptions": {
            "minValue": 0
          },
          "displayOptions": {
            "show": {
              "/operation": [
                "sendAnimation",
                "sendVideo"
              ]
            }
          },
          "default": 0,
          "description": "Width of the video"
        }
      ],
      "displayOptions": {
        "show": {
          "operation": [
            "editMessageText",
            "sendAnimation",
            "sendAudio",
            "sendDocument",
            "sendLocation",
            "sendMessage",
            "sendMediaGroup",
            "sendPhoto",
            "sendSticker",
            "sendVideo"
          ],
          "resource": [
            "message"
          ]
        }
      }
    },
    {
      "displayName": "Chat ID",
      "name": "chatId",
      "type": "string",
      "default": "",
      "description": "Unique identifier for the target chat or username of the target channel (in the format @channelusername). To find your chat ID ask @get_id_bot.",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      }
    },
    {
      "displayName": "Message",
      "name": "message",
      "type": "string",
      "default": "",
      "required": true,
      "displayOptions": {
        "show": {
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      },
      "typeOptions": {
        "rows": 4
      }
    },
    {
      "displayName": "Response Type",
      "name": "responseType",
      "type": "options",
      "default": "approval",
      "options": [
        {
          "name": "Approval",
          "value": "approval",
          "description": "User can approve/disapprove from within the message"
        },
        {
          "name": "Free Text",
          "value": "freeText",
          "description": "User can submit a response via a form"
        },
        {
          "name": "Custom Form",
          "value": "customForm",
          "description": "User can submit a response via a custom form"
        }
      ],
      "displayOptions": {
        "show": {
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      }
    },
    {
      "displayName": "Define Form",
      "name": "defineForm",
      "type": "options",
      "default": "fields",
      "options": [
        {
          "name": "Using Fields Below",
          "value": "fields"
        },
        {
          "name": "Using JSON",
          "value": "json"
        }
      ],
      "displayOptions": {
        "show": {
          "responseType": [
            "customForm"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      },
      "noDataExpression": true
    },
    {
      "displayName": "Form Fields",
      "name": "jsonOutput",
      "type": "json",
      "default": "[\n  {\n    \"fieldLabel\": \"Name\",\n    \"placeholder\": \"enter your name\",\n    \"requiredField\": true\n  },\n  {\n    \"fieldLabel\": \"Age\",\n    \"fieldType\": \"number\",\n    \"placeholder\": \"enter your age\"\n  },\n  {\n    \"fieldLabel\": \"Email\",\n    \"fieldType\": \"email\",\n    \"requiredField\": true\n  },\n  {\n    \"fieldLabel\": \"Textarea\",\n    \"fieldType\": \"textarea\"\n  },\n  {\n    \"fieldLabel\": \"Dropdown Options\",\n    \"fieldType\": \"dropdown\",\n    \"fieldOptions\": {\n      \"values\": [\n        {\n          \"option\": \"option 1\"\n        },\n        {\n          \"option\": \"option 2\"\n        }\n      ]\n    },\n    \"requiredField\": true\n  },\n  {\n    \"fieldLabel\": \"Checkboxes\",\n    \"fieldType\": \"checkbox\",\n    \"fieldOptions\": {\n      \"values\": [\n        {\n          \"option\": \"option 1\"\n        },\n        {\n          \"option\": \"option 2\"\n        }\n      ]\n    }\n  },\n  {\n    \"fieldLabel\": \"Radio\",\n    \"fieldType\": \"radio\",\n    \"fieldOptions\": {\n      \"values\": [\n        {\n          \"option\": \"option 1\"\n        },\n        {\n          \"option\": \"option 2\"\n        }\n      ]\n    }\n  },\n  {\n    \"fieldLabel\": \"Email\",\n    \"fieldType\": \"email\",\n    \"placeholder\": \"me@mail.con\"\n  },\n  {\n    \"fieldLabel\": \"File\",\n    \"fieldType\": \"file\",\n    \"multipleFiles\": true,\n    \"acceptFileTypes\": \".jpg, .png\"\n  },\n  {\n    \"fieldLabel\": \"Number\",\n    \"fieldType\": \"number\"\n  },\n  {\n    \"fieldLabel\": \"Password\",\n    \"fieldType\": \"password\"\n  }\n]\n",
      "displayOptions": {
        "show": {
          "defineForm": [
            "json"
          ],
          "responseType": [
            "customForm"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      },
      "typeOptions": {
        "rows": 5
      }
    },
    {
      "displayName": "Form Elements",
      "name": "formFields",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "required": true,
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    2.4
                  ]
                }
              }
            },
            {
              "displayName": "Label",
              "name": "fieldLabel",
              "type": "string",
              "default": "",
              "placeholder": "e.g. What is your name?",
              "description": "Label that appears above the input field",
              "required": true,
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "hiddenField",
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "gte": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Field Name",
              "name": "fieldLabel",
              "type": "string",
              "default": "",
              "placeholder": "e.g. What is your name?",
              "description": "Label that appears above the input field",
              "required": true,
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "hiddenField",
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "hiddenField"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Element Type",
              "name": "fieldType",
              "type": "options",
              "default": "text",
              "description": "The type of field to add to the form",
              "options": [
                {
                  "name": "Checkboxes",
                  "value": "checkbox"
                },
                {
                  "name": "Custom HTML",
                  "value": "html"
                },
                {
                  "name": "Date",
                  "value": "date"
                },
                {
                  "name": "Dropdown",
                  "value": "dropdown"
                },
                {
                  "name": "Email",
                  "value": "email"
                },
                {
                  "name": "File",
                  "value": "file"
                },
                {
                  "name": "Hidden Field",
                  "value": "hiddenField"
                },
                {
                  "name": "Number",
                  "value": "number"
                },
                {
                  "name": "Password",
                  "value": "password"
                },
                {
                  "name": "Radio Buttons",
                  "value": "radio"
                },
                {
                  "name": "Text Input",
                  "value": "text"
                },
                {
                  "name": "Textarea",
                  "value": "textarea"
                }
              ],
              "required": true
            },
            {
              "displayName": "Element Name",
              "name": "elementName",
              "type": "string",
              "default": "",
              "placeholder": "e.g. content-section",
              "description": "Optional field. It can be used to include the html in the output.",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "html"
                  ]
                }
              }
            },
            {
              "displayName": "Custom Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "gte": 2.5
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Placeholder",
              "name": "placeholder",
              "description": "Sample text to display inside the field",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "dropdown",
                    "date",
                    "file",
                    "html",
                    "hiddenField",
                    "radio",
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value that will be pre-filled in the form field",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "text",
                    "number",
                    "email",
                    "textarea"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default date value that will be pre-filled in the form field (format: YYYY-MM-DD)",
              "type": "dateTime",
              "typeOptions": {
                "dateOnly": true
              },
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "date"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value that will be pre-selected. Must match one of the option labels.",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown",
                    "radio"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value(s) that will be pre-selected. Must match one or multiple of the option labels. Separate multiple pre-selected options with a comma.",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Field Value",
              "name": "fieldValue",
              "description": "Input value can be set here or will be passed as a query parameter via Field Name if no value is set",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "hiddenField"
                  ]
                }
              }
            },
            {
              "displayName": "Field Options",
              "name": "fieldOptions",
              "placeholder": "Add Field Option",
              "description": "List of options that can be selected from the dropdown",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Option",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Checkboxes",
              "name": "fieldOptions",
              "placeholder": "Add Checkbox",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Checkbox Label",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Radio Buttons",
              "name": "fieldOptions",
              "placeholder": "Add Radio Button",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "radio"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Radio Button Label",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Multiple Choice is a legacy option, please use Checkboxes or Radio Buttons field type instead",
              "name": "multiselectLegacyNotice",
              "type": "notice",
              "default": "",
              "displayOptions": {
                "show": {
                  "multiselect": [
                    true
                  ],
                  "fieldType": [
                    "dropdown"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.3
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Multiple Choice",
              "name": "multiselect",
              "type": "boolean",
              "default": false,
              "description": "Whether to allow the user to select multiple options from the dropdown list",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.3
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Limit Selection",
              "name": "limitSelection",
              "type": "options",
              "default": "unlimited",
              "options": [
                {
                  "name": "Exact Number",
                  "value": "exact"
                },
                {
                  "name": "Range",
                  "value": "range"
                },
                {
                  "name": "Unlimited",
                  "value": "unlimited"
                }
              ],
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Number of Selections",
              "name": "numberOfSelections",
              "type": "number",
              "default": 1,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 1,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "exact"
                  ]
                }
              }
            },
            {
              "displayName": "Minimum Selections",
              "name": "minSelections",
              "type": "number",
              "default": 0,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 0,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "range"
                  ]
                }
              }
            },
            {
              "displayName": "Maximum Selections",
              "name": "maxSelections",
              "type": "number",
              "default": 1,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 1,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "range"
                  ]
                }
              }
            },
            {
              "displayName": "HTML",
              "name": "html",
              "typeOptions": {
                "editor": "htmlEditor"
              },
              "type": "string",
              "noDataExpression": true,
              "default": "<!-- Your custom HTML here --->\n\n\n",
              "description": "HTML elements to display on the form page",
              "hint": "Does not accept <code>&lt;script&gt;</code>, <code>&lt;style&gt;</code> or <code>&lt;input&gt;</code> tags",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "html"
                  ]
                }
              }
            },
            {
              "displayName": "Multiple Files",
              "name": "multipleFiles",
              "type": "boolean",
              "default": true,
              "description": "Whether to allow the user to select multiple files from the file input or just one",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "file"
                  ]
                }
              }
            },
            {
              "displayName": "Accepted File Types",
              "name": "acceptFileTypes",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of allowed file extensions",
              "hint": "Leave empty to allow all file types",
              "placeholder": "e.g. .jpg, .png",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "file"
                  ]
                }
              }
            },
            {
              "displayName": "The displayed date is formatted based on the locale of the user's browser",
              "name": "formatDate",
              "type": "notice",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "date"
                  ]
                }
              }
            },
            {
              "displayName": "Required Field",
              "name": "requiredField",
              "type": "boolean",
              "default": false,
              "description": "Whether to require the user to enter a value for this field before submitting the form",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html",
                    "hiddenField"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "@version": [
            {
              "_cnd": {
                "lt": 2.5
              }
            }
          ],
          "defineForm": [
            "fields"
          ],
          "responseType": [
            "customForm"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "sortable": true,
        "fixedCollection": {
          "itemTitle": "={{ $collection.item.properties.find(p => p.name === \"fieldType\").options.find(o => o.value === $collection.item.value.fieldType).name }}"
        }
      }
    },
    {
      "displayName": "Form Elements",
      "name": "formFields",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "required": true,
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    2.4
                  ]
                }
              }
            },
            {
              "displayName": "Label",
              "name": "fieldLabel",
              "type": "string",
              "default": "",
              "placeholder": "e.g. What is your name?",
              "description": "Label that appears above the input field",
              "required": true,
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "hiddenField",
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "gte": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Field Name",
              "name": "fieldLabel",
              "type": "string",
              "default": "",
              "placeholder": "e.g. What is your name?",
              "description": "Label that appears above the input field",
              "required": true,
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "hiddenField",
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "hiddenField"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.4
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Element Type",
              "name": "fieldType",
              "type": "options",
              "default": "text",
              "description": "The type of field to add to the form",
              "options": [
                {
                  "name": "Checkboxes",
                  "value": "checkbox"
                },
                {
                  "name": "Custom HTML",
                  "value": "html"
                },
                {
                  "name": "Date",
                  "value": "date"
                },
                {
                  "name": "Dropdown",
                  "value": "dropdown"
                },
                {
                  "name": "Email",
                  "value": "email"
                },
                {
                  "name": "File",
                  "value": "file"
                },
                {
                  "name": "Hidden Field",
                  "value": "hiddenField"
                },
                {
                  "name": "Number",
                  "value": "number"
                },
                {
                  "name": "Password",
                  "value": "password"
                },
                {
                  "name": "Radio Buttons",
                  "value": "radio"
                },
                {
                  "name": "Text Input",
                  "value": "text"
                },
                {
                  "name": "Textarea",
                  "value": "textarea"
                }
              ],
              "required": true
            },
            {
              "displayName": "Element Name",
              "name": "elementName",
              "type": "string",
              "default": "",
              "placeholder": "e.g. content-section",
              "description": "Optional field. It can be used to include the html in the output.",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "html"
                  ]
                }
              }
            },
            {
              "displayName": "Custom Field Name",
              "name": "fieldName",
              "description": "The name of the field, used in input attributes and referenced by the workflow",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html"
                  ]
                },
                "show": {
                  "@version": [
                    {
                      "_cnd": {
                        "gte": 2.5
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Placeholder",
              "name": "placeholder",
              "description": "Sample text to display inside the field",
              "type": "string",
              "default": "",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "dropdown",
                    "date",
                    "file",
                    "html",
                    "hiddenField",
                    "radio",
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value that will be pre-filled in the form field",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "text",
                    "number",
                    "email",
                    "textarea"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default date value that will be pre-filled in the form field (format: YYYY-MM-DD)",
              "type": "dateTime",
              "typeOptions": {
                "dateOnly": true
              },
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "date"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value that will be pre-selected. Must match one of the option labels.",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown",
                    "radio"
                  ]
                }
              }
            },
            {
              "displayName": "Default Value",
              "name": "defaultValue",
              "description": "Default value(s) that will be pre-selected. Must match one or multiple of the option labels. Separate multiple pre-selected options with a comma.",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Field Value",
              "name": "fieldValue",
              "description": "Input value can be set here or will be passed as a query parameter via Field Name if no value is set",
              "type": "string",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "hiddenField"
                  ]
                }
              }
            },
            {
              "displayName": "Field Options",
              "name": "fieldOptions",
              "placeholder": "Add Field Option",
              "description": "List of options that can be selected from the dropdown",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Option",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Checkboxes",
              "name": "fieldOptions",
              "placeholder": "Add Checkbox",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Checkbox Label",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Radio Buttons",
              "name": "fieldOptions",
              "placeholder": "Add Radio Button",
              "type": "fixedCollection",
              "default": {
                "values": [
                  {
                    "option": ""
                  }
                ]
              },
              "required": true,
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "radio"
                  ]
                }
              },
              "typeOptions": {
                "multipleValues": true,
                "sortable": true
              },
              "options": [
                {
                  "displayName": "Values",
                  "name": "values",
                  "values": [
                    {
                      "displayName": "Radio Button Label",
                      "name": "option",
                      "type": "string",
                      "default": ""
                    }
                  ]
                }
              ]
            },
            {
              "displayName": "Multiple Choice is a legacy option, please use Checkboxes or Radio Buttons field type instead",
              "name": "multiselectLegacyNotice",
              "type": "notice",
              "default": "",
              "displayOptions": {
                "show": {
                  "multiselect": [
                    true
                  ],
                  "fieldType": [
                    "dropdown"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.3
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Multiple Choice",
              "name": "multiselect",
              "type": "boolean",
              "default": false,
              "description": "Whether to allow the user to select multiple options from the dropdown list",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "dropdown"
                  ],
                  "@version": [
                    {
                      "_cnd": {
                        "lt": 2.3
                      }
                    }
                  ]
                }
              }
            },
            {
              "displayName": "Limit Selection",
              "name": "limitSelection",
              "type": "options",
              "default": "unlimited",
              "options": [
                {
                  "name": "Exact Number",
                  "value": "exact"
                },
                {
                  "name": "Range",
                  "value": "range"
                },
                {
                  "name": "Unlimited",
                  "value": "unlimited"
                }
              ],
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ]
                }
              }
            },
            {
              "displayName": "Number of Selections",
              "name": "numberOfSelections",
              "type": "number",
              "default": 1,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 1,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "exact"
                  ]
                }
              }
            },
            {
              "displayName": "Minimum Selections",
              "name": "minSelections",
              "type": "number",
              "default": 0,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 0,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "range"
                  ]
                }
              }
            },
            {
              "displayName": "Maximum Selections",
              "name": "maxSelections",
              "type": "number",
              "default": 1,
              "typeOptions": {
                "numberPrecision": 0,
                "minValue": 1,
                "showEvenWhenOptional": true
              },
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "checkbox"
                  ],
                  "limitSelection": [
                    "range"
                  ]
                }
              }
            },
            {
              "displayName": "HTML",
              "name": "html",
              "typeOptions": {
                "editor": "htmlEditor"
              },
              "type": "string",
              "noDataExpression": true,
              "default": "<!-- Your custom HTML here --->\n\n\n",
              "description": "HTML elements to display on the form page",
              "hint": "Does not accept <code>&lt;script&gt;</code>, <code>&lt;style&gt;</code> or <code>&lt;input&gt;</code> tags",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "html"
                  ]
                }
              }
            },
            {
              "displayName": "Multiple Files",
              "name": "multipleFiles",
              "type": "boolean",
              "default": true,
              "description": "Whether to allow the user to select multiple files from the file input or just one",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "file"
                  ]
                }
              }
            },
            {
              "displayName": "Accepted File Types",
              "name": "acceptFileTypes",
              "type": "string",
              "default": "",
              "description": "Comma-separated list of allowed file extensions",
              "hint": "Leave empty to allow all file types",
              "placeholder": "e.g. .jpg, .png",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "file"
                  ]
                }
              }
            },
            {
              "displayName": "The displayed date is formatted based on the locale of the user's browser",
              "name": "formatDate",
              "type": "notice",
              "default": "",
              "displayOptions": {
                "show": {
                  "fieldType": [
                    "date"
                  ]
                }
              }
            },
            {
              "displayName": "Required Field",
              "name": "requiredField",
              "type": "boolean",
              "default": false,
              "description": "Whether to require the user to enter a value for this field before submitting the form",
              "displayOptions": {
                "hide": {
                  "fieldType": [
                    "html",
                    "hiddenField"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "@version": [
            {
              "_cnd": {
                "gte": 2.5
              }
            }
          ],
          "defineForm": [
            "fields"
          ],
          "responseType": [
            "customForm"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      },
      "typeOptions": {
        "multipleValues": true,
        "sortable": true,
        "hideOptionalFields": true,
        "addOptionalFieldButtonText": "Add Attributes",
        "fixedCollection": {
          "itemTitle": "={{ $collection.item.properties.find(p => p.name === \"fieldType\").options.find(o => o.value === $collection.item.value.fieldType).name }}"
        }
      }
    },
    {
      "displayName": "Approval Options",
      "name": "approvalOptions",
      "type": "fixedCollection",
      "default": {},
      "options": [
        {
          "displayName": "Values",
          "name": "values",
          "values": [
            {
              "displayName": "Type of Approval",
              "name": "approvalType",
              "type": "options",
              "placeholder": "Add option",
              "default": "single",
              "options": [
                {
                  "name": "Approve Only",
                  "value": "single"
                },
                {
                  "name": "Approve and Disapprove",
                  "value": "double"
                }
              ]
            },
            {
              "displayName": "Approve Button Label",
              "name": "approveLabel",
              "type": "string",
              "default": "✅ Approve",
              "displayOptions": {
                "show": {
                  "approvalType": [
                    "single",
                    "double"
                  ]
                }
              }
            },
            {
              "displayName": "Disapprove Button Label",
              "name": "disapproveLabel",
              "type": "string",
              "default": "❌ Decline",
              "displayOptions": {
                "show": {
                  "approvalType": [
                    "double"
                  ]
                }
              }
            }
          ]
        }
      ],
      "displayOptions": {
        "show": {
          "responseType": [
            "approval"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Limit Wait Time",
          "name": "limitWaitTime",
          "type": "fixedCollection",
          "description": "Whether to limit the time this node should wait for a user response before execution resumes",
          "default": {
            "values": {
              "limitType": "afterTimeInterval",
              "resumeAmount": 45,
              "resumeUnit": "minutes"
            }
          },
          "options": [
            {
              "displayName": "Values",
              "name": "values",
              "values": [
                {
                  "displayName": "Limit Type",
                  "name": "limitType",
                  "type": "options",
                  "default": "afterTimeInterval",
                  "description": "Sets the condition for the execution to resume. Can be a specified date or after some time.",
                  "options": [
                    {
                      "name": "After Time Interval",
                      "description": "Waits for a certain amount of time",
                      "value": "afterTimeInterval"
                    },
                    {
                      "name": "At Specified Time",
                      "description": "Waits until the set date and time to continue",
                      "value": "atSpecifiedTime"
                    }
                  ]
                },
                {
                  "displayName": "Amount",
                  "name": "resumeAmount",
                  "type": "number",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "afterTimeInterval"
                      ]
                    }
                  },
                  "typeOptions": {
                    "minValue": 0,
                    "numberPrecision": 2
                  },
                  "default": 1,
                  "description": "The time to wait"
                },
                {
                  "displayName": "Unit",
                  "name": "resumeUnit",
                  "type": "options",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "afterTimeInterval"
                      ]
                    }
                  },
                  "options": [
                    {
                      "name": "Minutes",
                      "value": "minutes"
                    },
                    {
                      "name": "Hours",
                      "value": "hours"
                    },
                    {
                      "name": "Days",
                      "value": "days"
                    }
                  ],
                  "default": "hours",
                  "description": "Unit of the interval value"
                },
                {
                  "displayName": "Max Date and Time",
                  "name": "maxDateAndTime",
                  "type": "dateTime",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "atSpecifiedTime"
                      ]
                    }
                  },
                  "default": "",
                  "description": "Continue execution after the specified date and time"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Append n8n Attribution",
          "name": "appendAttribution",
          "type": "boolean",
          "default": true,
          "description": "Whether to include the phrase \"This message was sent automatically with n8n\" to the end of the message"
        }
      ],
      "displayOptions": {
        "show": {
          "responseType": [
            "approval"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      }
    },
    {
      "displayName": "Options",
      "name": "options",
      "type": "collection",
      "default": {},
      "options": [
        {
          "displayName": "Message Button Label",
          "name": "messageButtonLabel",
          "type": "string",
          "default": "Respond"
        },
        {
          "displayName": "Response Form Title",
          "name": "responseFormTitle",
          "description": "Title of the form that the user can access to provide their response",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Response Form Description",
          "name": "responseFormDescription",
          "description": "Description of the form that the user can access to provide their response",
          "type": "string",
          "default": ""
        },
        {
          "displayName": "Response Form Button Label",
          "name": "responseFormButtonLabel",
          "type": "string",
          "default": "Submit"
        },
        {
          "displayName": "Response Form Custom Styling",
          "name": "responseFormCustomCss",
          "type": "string",
          "typeOptions": {
            "rows": 10,
            "editor": "cssEditor"
          },
          "default": ":root {\n\t--font-family: 'Open Sans', sans-serif;\n\t--font-weight-normal: 400;\n\t--font-weight-bold: 600;\n\t--font-size-body: 12px;\n\t--font-size-label: 14px;\n\t--font-size-test-notice: 12px;\n\t--font-size-input: 14px;\n\t--font-size-header: 20px;\n\t--font-size-paragraph: 14px;\n\t--font-size-link: 12px;\n\t--font-size-error: 12px;\n\t--font-size-html-h1: 28px;\n\t--font-size-html-h2: 20px;\n\t--font-size-html-h3: 16px;\n\t--font-size-html-h4: 14px;\n\t--font-size-html-h5: 12px;\n\t--font-size-html-h6: 10px;\n\t--font-size-subheader: 14px;\n\n\t/* Colors */\n\t--color-background: #fbfcfe;\n\t--color-test-notice-text: #e6a23d;\n\t--color-test-notice-bg: #fefaf6;\n\t--color-test-notice-border: #f6dcb7;\n\t--color-card-bg: #ffffff;\n\t--color-card-border: #dbdfe7;\n\t--color-card-shadow: rgba(99, 77, 255, 0.06);\n\t--color-link: #7e8186;\n\t--color-header: #525356;\n\t--color-label: #555555;\n\t--color-input-border: #dbdfe7;\n\t--color-input-text: #71747A;\n\t--color-focus-border: rgb(90, 76, 194);\n\t--color-submit-btn-bg: #ff6d5a;\n\t--color-submit-btn-text: #ffffff;\n\t--color-error: #ea1f30;\n\t--color-required: #ff6d5a;\n\t--color-clear-button-bg: #7e8186;\n\t--color-html-text: #555;\n\t--color-html-link: #ff6d5a;\n\t--color-header-subtext: #7e8186;\n\n\t/* Border Radii */\n\t--border-radius-card: 8px;\n\t--border-radius-input: 6px;\n\t--border-radius-clear-btn: 50%;\n\t--card-border-radius: 8px;\n\n\t/* Spacing */\n\t--padding-container-top: 24px;\n\t--padding-card: 24px;\n\t--padding-test-notice-vertical: 12px;\n\t--padding-test-notice-horizontal: 24px;\n\t--margin-bottom-card: 16px;\n\t--padding-form-input: 12px;\n\t--card-padding: 24px;\n\t--card-margin-bottom: 16px;\n\n\t/* Dimensions */\n\t--container-width: 448px;\n\t--submit-btn-height: 48px;\n\t--checkbox-size: 18px;\n\n\t/* Others */\n\t--box-shadow-card: 0px 4px 16px 0px var(--color-card-shadow);\n\t--opacity-placeholder: 0.5;\n}",
          "description": "Override default styling of the response form with CSS"
        },
        {
          "displayName": "Limit Wait Time",
          "name": "limitWaitTime",
          "type": "fixedCollection",
          "description": "Whether to limit the time this node should wait for a user response before execution resumes",
          "default": {
            "values": {
              "limitType": "afterTimeInterval",
              "resumeAmount": 45,
              "resumeUnit": "minutes"
            }
          },
          "options": [
            {
              "displayName": "Values",
              "name": "values",
              "values": [
                {
                  "displayName": "Limit Type",
                  "name": "limitType",
                  "type": "options",
                  "default": "afterTimeInterval",
                  "description": "Sets the condition for the execution to resume. Can be a specified date or after some time.",
                  "options": [
                    {
                      "name": "After Time Interval",
                      "description": "Waits for a certain amount of time",
                      "value": "afterTimeInterval"
                    },
                    {
                      "name": "At Specified Time",
                      "description": "Waits until the set date and time to continue",
                      "value": "atSpecifiedTime"
                    }
                  ]
                },
                {
                  "displayName": "Amount",
                  "name": "resumeAmount",
                  "type": "number",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "afterTimeInterval"
                      ]
                    }
                  },
                  "typeOptions": {
                    "minValue": 0,
                    "numberPrecision": 2
                  },
                  "default": 1,
                  "description": "The time to wait"
                },
                {
                  "displayName": "Unit",
                  "name": "resumeUnit",
                  "type": "options",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "afterTimeInterval"
                      ]
                    }
                  },
                  "options": [
                    {
                      "name": "Minutes",
                      "value": "minutes"
                    },
                    {
                      "name": "Hours",
                      "value": "hours"
                    },
                    {
                      "name": "Days",
                      "value": "days"
                    }
                  ],
                  "default": "hours",
                  "description": "Unit of the interval value"
                },
                {
                  "displayName": "Max Date and Time",
                  "name": "maxDateAndTime",
                  "type": "dateTime",
                  "displayOptions": {
                    "show": {
                      "limitType": [
                        "atSpecifiedTime"
                      ]
                    }
                  },
                  "default": "",
                  "description": "Continue execution after the specified date and time"
                }
              ]
            }
          ]
        },
        {
          "displayName": "Append n8n Attribution",
          "name": "appendAttribution",
          "type": "boolean",
          "default": true,
          "description": "Whether to include the phrase \"This message was sent automatically with n8n\" to the end of the message"
        }
      ],
      "displayOptions": {
        "show": {
          "responseType": [
            "freeText",
            "customForm"
          ],
          "resource": [
            "message"
          ],
          "operation": [
            "sendAndWait"
          ]
        }
      }
    }
  ]

operations:
  [
    {
      "operation": "get",
      "name": "Get",
      "description": "Get up to date information about a chat"
    },
    {
      "operation": "administrators",
      "name": "Get Administrators",
      "description": "Get the Administrators of a chat"
    },
    {
      "operation": "member",
      "name": "Get Member",
      "description": "Get the member of a chat"
    },
    {
      "operation": "leave",
      "name": "Leave",
      "description": "Leave a group, supergroup or channel"
    },
    {
      "operation": "setDescription",
      "name": "Set Description",
      "description": "Set the description of a chat"
    },
    {
      "operation": "setTitle",
      "name": "Set Title",
      "description": "Set the title of a chat"
    }
  ]


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-01-21 08:10:03
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-01-21 08:10:03
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"
    },
    {
      "operation": "deleteAlert",
      "name": "Delete"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder"
    },
    {
      "operation": "get",
      "name": "Get"
    },
    {
      "operation": "merge",
      "name": "Merge Into Case"
    },
    {
      "operation": "promote",
      "name": "Promote to Case"
    },
    {
      "operation": "search",
      "name": "Search"
    },
    {
      "operation": "update",
      "name": "Update"
    },
    {
      "operation": "status",
      "name": "Update Status"
    }
  ]


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-01-21 08:10:03
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"
    },
    {
      "operation": "deleteAlert",
      "name": "Delete"
    },
    {
      "operation": "executeResponder",
      "name": "Execute Responder"
    },
    {
      "operation": "get",
      "name": "Get"
    },
    {
      "operation": "merge",
      "name": "Merge Into Case"
    },
    {
      "operation": "promote",
      "name": "Promote to Case"
    },
    {
      "operation": "search",
      "name": "Search"
    },
    {
      "operation": "update",
      "name": "Update"
    },
    {
      "operation": "status",
      "name": "Update Status"
    }
  ]


