From a60c16d531a0dde1c47064f9bada00a6b3bcafc6 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Fri, 1 Sep 2023 09:16:29 +0900 Subject: [PATCH] Add workflow_button block element to the Block Kit models --- json-logs/samples/api/chat.postMessage.json | 454 +++- .../samples/api/chat.scheduleMessage.json | 101 +- json-logs/samples/api/chat.update.json | 320 ++- .../samples/api/conversations.history.json | 702 ++++-- json-logs/samples/api/conversations.open.json | 101 +- .../samples/api/conversations.replies.json | 662 ++++- json-logs/samples/api/files.info.json | 65 + json-logs/samples/api/files.list.json | 330 ++- json-logs/samples/api/files.remote.add.json | 65 + json-logs/samples/api/files.remote.info.json | 65 + json-logs/samples/api/files.remote.list.json | 320 ++- json-logs/samples/api/files.remote.share.json | 65 + .../samples/api/files.remote.update.json | 65 + .../samples/api/files.revokePublicURL.json | 65 + .../samples/api/files.sharedPublicURL.json | 65 + json-logs/samples/api/files.upload.json | 65 + json-logs/samples/api/pins.list.json | 65 + json-logs/samples/api/reactions.get.json | 112 +- json-logs/samples/api/reactions.list.json | 869 +++++-- json-logs/samples/api/rtm.start.json | 1354 ++++++++-- json-logs/samples/api/search.all.json | 1962 ++++++++++++--- json-logs/samples/api/search.files.json | 342 ++- json-logs/samples/api/search.messages.json | 2200 ++++++++++++----- .../methods/chat_Test.java | 32 + .../sample_json_generation/SampleObjects.java | 7 + .../block/composition/WorkflowObject.java | 34 + .../model/block/element/BlockElements.java | 6 + .../block/element/WorkflowButtonElement.java | 50 + .../util/json/GsonBlockElementFactory.java | 2 + .../api/model/block/BlocksTest.java | 20 + 30 files changed, 8644 insertions(+), 1921 deletions(-) create mode 100644 slack-api-model/src/main/java/com/slack/api/model/block/composition/WorkflowObject.java create mode 100644 slack-api-model/src/main/java/com/slack/api/model/block/element/WorkflowButtonElement.java diff --git a/json-logs/samples/api/chat.postMessage.json b/json-logs/samples/api/chat.postMessage.json index c52382df4..35e9a6499 100644 --- a/json-logs/samples/api/chat.postMessage.json +++ b/json-logs/samples/api/chat.postMessage.json @@ -127,6 +127,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -276,6 +287,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -528,7 +550,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -803,6 +826,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3131,6 +3176,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4376,6 +4464,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4527,6 +4626,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4784,6 +4894,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4989,7 +5110,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -5264,6 +5386,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7592,6 +7736,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8837,6 +9024,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -8988,6 +9186,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9147,6 +9356,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9360,6 +9580,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9788,6 +10019,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -10022,23 +10264,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -10054,6 +10298,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -10083,9 +10341,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -10094,10 +10356,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -10123,47 +10390,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -10222,7 +10475,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -10497,6 +10751,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -12825,6 +13101,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -14031,6 +14350,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/chat.scheduleMessage.json b/json-logs/samples/api/chat.scheduleMessage.json index 0a575a0de..2b4cc1a77 100644 --- a/json-logs/samples/api/chat.scheduleMessage.json +++ b/json-logs/samples/api/chat.scheduleMessage.json @@ -61,6 +61,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -314,7 +325,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -589,6 +601,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2917,6 +2951,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4162,6 +4239,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4313,6 +4401,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/chat.update.json b/json-logs/samples/api/chat.update.json index 3c00bfaf4..6e986479e 100644 --- a/json-logs/samples/api/chat.update.json +++ b/json-logs/samples/api/chat.update.json @@ -61,6 +61,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -266,7 +277,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -541,6 +553,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2869,6 +2903,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4114,6 +4191,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4265,6 +4353,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4675,6 +4774,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4909,23 +5019,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -4941,6 +5053,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -4970,9 +5096,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -4981,10 +5111,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -5010,47 +5145,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5109,7 +5230,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -5384,6 +5506,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7712,6 +7856,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8918,6 +9105,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/conversations.history.json b/json-logs/samples/api/conversations.history.json index 6adbd5c80..911bf979a 100644 --- a/json-logs/samples/api/conversations.history.json +++ b/json-logs/samples/api/conversations.history.json @@ -346,6 +346,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -580,23 +591,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -612,6 +625,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -641,9 +668,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -652,10 +683,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -681,47 +717,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -780,7 +802,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -1055,6 +1078,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3383,6 +3428,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4589,6 +4677,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4793,6 +4892,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5046,7 +5156,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -5321,6 +5432,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7670,28 +7803,71 @@ } ], "accessory": { - "type": "checkboxes", + "type": "workflow_button", "action_id": "", - "options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ - { - "text": { - "type": "plain_text", + }, + "style": "", + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "checkboxes", + "action_id": "", + "options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "initial_options": [ + { + "text": { + "type": "plain_text", "text": "", "emoji": false }, @@ -8894,6 +9070,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9045,6 +9232,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9302,6 +9500,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9555,7 +9764,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -9830,6 +10040,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -12158,6 +12390,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -13403,6 +13678,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13554,6 +13840,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13713,6 +14010,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13926,6 +14234,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14354,6 +14673,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14588,23 +14918,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -14620,6 +14952,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -14649,9 +14995,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -14660,10 +15010,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -14689,47 +15044,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -14788,7 +15129,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -15063,6 +15405,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -17391,6 +17755,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -18597,6 +19004,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/conversations.open.json b/json-logs/samples/api/conversations.open.json index 5d2bb9f8f..d870cba33 100644 --- a/json-logs/samples/api/conversations.open.json +++ b/json-logs/samples/api/conversations.open.json @@ -54,6 +54,17 @@ }, "style": "" }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -321,6 +332,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "initial_options": [ { "text": { @@ -472,7 +494,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -747,6 +770,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3075,6 +3120,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4320,6 +4408,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/conversations.replies.json b/json-logs/samples/api/conversations.replies.json index 4e83ac4d6..57dc44b2d 100644 --- a/json-logs/samples/api/conversations.replies.json +++ b/json-logs/samples/api/conversations.replies.json @@ -69,6 +69,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -274,7 +285,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -549,6 +561,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2877,6 +2911,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4122,6 +4199,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4273,6 +4361,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4530,6 +4629,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4735,7 +4845,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -5010,6 +5121,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7338,6 +7471,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8583,6 +8759,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -8734,6 +8921,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -8893,6 +9091,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9106,6 +9315,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9534,6 +9754,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9768,23 +9999,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -9800,6 +10033,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -9829,9 +10076,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -9840,10 +10091,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -9869,47 +10125,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -9968,7 +10210,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -10243,6 +10486,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -12571,6 +12836,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -13777,6 +14085,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14239,6 +14558,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14473,23 +14803,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -14505,6 +14837,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -14534,9 +14880,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -14545,10 +14895,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -14574,47 +14929,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -14673,7 +15014,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -14948,6 +15290,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -17276,6 +17640,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -18482,6 +18889,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/files.info.json b/json-logs/samples/api/files.info.json index 4a38da13d..cadcd2cd8 100644 --- a/json-logs/samples/api/files.info.json +++ b/json-logs/samples/api/files.info.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.list.json b/json-logs/samples/api/files.list.json index 2cb235e58..aef4129f5 100644 --- a/json-logs/samples/api/files.list.json +++ b/json-logs/samples/api/files.list.json @@ -32,7 +32,7 @@ "lines_more": 12345, "preview_is_truncated": false, "channels": [ - "G00000000", + "C00000000", "" ], "groups": [ @@ -49,18 +49,22 @@ "thumb_360_w": 12345, "thumb_360_h": 12345, "thumb_160": "https://www.example.com/", - "thumb_800": "https://www.example.com/", - "thumb_800_w": 12345, - "thumb_800_h": 12345, "original_w": 12345, "original_h": 12345, "thumb_tiny": "", "thumb_480": "https://www.example.com/", "thumb_480_w": 12345, "thumb_480_h": 12345, + "thumb_360_gif": "https://www.example.com/", + "thumb_480_gif": "https://www.example.com/", + "deanimate": "https://www.example.com/", + "deanimate_gif": "https://www.example.com/", "thumb_720": "https://www.example.com/", "thumb_720_w": 12345, "thumb_720_h": 12345, + "thumb_800": "https://www.example.com/", + "thumb_800_w": 12345, + "thumb_800_h": 12345, "thumb_960": "https://www.example.com/", "thumb_960_w": 12345, "thumb_960_h": 12345, @@ -68,10 +72,6 @@ "thumb_1024_w": 12345, "thumb_1024_h": 12345, "alt_txt": "", - "thumb_360_gif": "https://www.example.com/", - "thumb_480_gif": "https://www.example.com/", - "deanimate": "https://www.example.com/", - "deanimate_gif": "https://www.example.com/", "subject": "", "source_team": "", "non_owner_editable": false, @@ -279,6 +279,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -758,6 +769,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3086,6 +3119,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4331,6 +4407,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4482,6 +4569,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4648,6 +4746,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4882,23 +4991,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -4914,6 +5025,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -4943,9 +5068,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -4954,10 +5083,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -4983,47 +5117,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5356,6 +5476,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7684,6 +7826,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8890,6 +9075,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/files.remote.add.json b/json-logs/samples/api/files.remote.add.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.remote.add.json +++ b/json-logs/samples/api/files.remote.add.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.remote.info.json b/json-logs/samples/api/files.remote.info.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.remote.info.json +++ b/json-logs/samples/api/files.remote.info.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.remote.list.json b/json-logs/samples/api/files.remote.list.json index 2404c554e..48dbceae3 100644 --- a/json-logs/samples/api/files.remote.list.json +++ b/json-logs/samples/api/files.remote.list.json @@ -279,6 +279,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -484,7 +495,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -759,6 +771,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3087,6 +3121,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4332,6 +4409,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4483,6 +4571,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4649,6 +4748,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4883,23 +4993,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -4915,6 +5027,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -4944,9 +5070,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -4955,10 +5085,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -4984,47 +5119,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5083,7 +5204,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -5358,6 +5480,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7686,6 +7830,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8892,6 +9079,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/files.remote.share.json b/json-logs/samples/api/files.remote.share.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.remote.share.json +++ b/json-logs/samples/api/files.remote.share.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.remote.update.json b/json-logs/samples/api/files.remote.update.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.remote.update.json +++ b/json-logs/samples/api/files.remote.update.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.revokePublicURL.json b/json-logs/samples/api/files.revokePublicURL.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.revokePublicURL.json +++ b/json-logs/samples/api/files.revokePublicURL.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.sharedPublicURL.json b/json-logs/samples/api/files.sharedPublicURL.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.sharedPublicURL.json +++ b/json-logs/samples/api/files.sharedPublicURL.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/files.upload.json b/json-logs/samples/api/files.upload.json index f7a742087..fa5dcaaf3 100644 --- a/json-logs/samples/api/files.upload.json +++ b/json-logs/samples/api/files.upload.json @@ -275,6 +275,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2603,6 +2625,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/pins.list.json b/json-logs/samples/api/pins.list.json index 55899ebf6..ad34981fd 100644 --- a/json-logs/samples/api/pins.list.json +++ b/json-logs/samples/api/pins.list.json @@ -280,6 +280,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -2608,6 +2630,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { diff --git a/json-logs/samples/api/reactions.get.json b/json-logs/samples/api/reactions.get.json index 211556955..d0ee82d7d 100644 --- a/json-logs/samples/api/reactions.get.json +++ b/json-logs/samples/api/reactions.get.json @@ -109,6 +109,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -258,6 +269,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -510,7 +532,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -785,6 +808,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3113,6 +3158,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4358,6 +4446,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4509,6 +4608,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/reactions.list.json b/json-logs/samples/api/reactions.list.json index fbfcf3bf8..bed56a5d0 100644 --- a/json-logs/samples/api/reactions.list.json +++ b/json-logs/samples/api/reactions.list.json @@ -293,6 +293,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -527,23 +538,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -559,6 +572,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -588,9 +615,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -599,10 +630,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -628,47 +664,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -727,7 +749,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -1002,6 +1025,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3330,6 +3375,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4536,6 +4624,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4711,18 +4810,19 @@ "blocks": [ { "type": "", + "block_id": "", "elements": [ { "type": "", + "action_id": "", "text": { "type": "", "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", "style": "", + "value": "", + "url": "", "confirm": { "title": { "type": "", @@ -4747,6 +4847,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4892,9 +5003,56 @@ "indent": 12345, "offset": 12345, "border": 12345 + }, + { + "type": "", + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345 + }, + { + "type": "", + "elements": [ + { + "type": "", + "elements": [ + { + "type": "", + "range": "", + "text": "", + "style": { + "bold": false, + "italic": false, + "strike": false, + "code": false + }, + "channel_id": "", + "value": "", + "timestamp": "", + "url": "", + "team_id": "", + "user_id": "", + "usergroup_id": "", + "name": "", + "skin_tone": 12345, + "unicode": "" + } + ], + "style": "", + "indent": 12345, + "offset": 12345, + "border": 12345 + } + ], + "style": "", + "indent": 12345, + "offset": 12345, + "border": 12345 } ], - "block_id": "", "call_id": "", "api_decoration_available": false, "call": { @@ -4952,7 +5110,6 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", "id": "", "created": 123, "timestamp": 123, @@ -5227,6 +5384,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -7555,6 +7734,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -8800,6 +9022,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -8951,6 +9184,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9109,6 +9353,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9361,7 +9616,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -9636,6 +9892,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -11964,6 +12242,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -13209,6 +13530,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13360,6 +13692,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13651,6 +13994,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13856,7 +14210,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -14131,6 +14486,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -16429,33 +16806,76 @@ "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", + "action_id": "", + "url": "", + "value": "", + "style": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "style": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" - }, "accessibility_label": "" } }, @@ -17704,6 +18124,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -17855,6 +18286,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18014,6 +18456,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18227,6 +18680,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18655,6 +19119,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18889,23 +19364,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -18921,6 +19398,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -18950,9 +19441,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -18961,10 +19456,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -18990,47 +19490,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -19089,7 +19575,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -19364,6 +19851,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -21692,6 +22201,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -22898,6 +23450,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/rtm.start.json b/json-logs/samples/api/rtm.start.json index b1e13f5d9..a94bd9c8a 100644 --- a/json-logs/samples/api/rtm.start.json +++ b/json-logs/samples/api/rtm.start.json @@ -1117,6 +1117,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -1596,6 +1607,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3924,6 +3957,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -5169,6 +5245,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5320,6 +5407,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5479,6 +5577,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5692,6 +5801,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -6120,6 +6240,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -6354,23 +6485,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -6386,6 +6519,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -6415,9 +6562,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -6426,10 +6577,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -6455,47 +6611,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -6828,6 +6970,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -9156,6 +9320,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -10362,6 +10569,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -10576,6 +10794,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -11055,6 +11284,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -13383,6 +13634,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -14628,6 +14922,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14779,6 +15084,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -15185,6 +15501,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -15419,23 +15746,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -15451,6 +15780,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -15480,9 +15823,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -15491,10 +15838,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -15520,47 +15872,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -15893,6 +16231,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -18221,6 +18581,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -19427,6 +19830,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -19904,6 +20318,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -20383,6 +20808,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -22675,39 +23122,82 @@ } ], "accessory": { - "type": "button", + "type": "button", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "url": "", + "value": "", + "style": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", "text": { "type": "plain_text", "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", - "style": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } }, + "style": "", "accessibility_label": "" } }, @@ -23956,6 +24446,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24107,6 +24608,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24266,6 +24778,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24479,6 +25002,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24907,6 +25441,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -25141,23 +25686,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -25173,6 +25720,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -25202,9 +25763,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -25213,10 +25778,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -25242,47 +25812,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -25615,6 +26171,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -27943,6 +28521,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -29149,6 +29770,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -29363,6 +29995,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -29842,6 +30485,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -32170,6 +32835,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -33415,6 +34123,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -33566,6 +34285,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -33972,6 +34702,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -34206,23 +34947,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -34238,6 +34981,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -34267,9 +35024,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -34278,10 +35039,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -34307,47 +35073,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -34680,6 +35432,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -37008,6 +37782,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -38214,6 +39031,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/search.all.json b/json-logs/samples/api/search.all.json index c39597da5..8bed8d179 100644 --- a/json-logs/samples/api/search.all.json +++ b/json-logs/samples/api/search.all.json @@ -193,6 +193,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -672,6 +683,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3000,6 +3033,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4245,6 +4321,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4396,6 +4483,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4555,6 +4653,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4768,6 +4877,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5196,6 +5316,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5430,23 +5561,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -5462,6 +5595,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -5491,9 +5638,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -5502,10 +5653,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -5531,47 +5687,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5904,6 +6046,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -8232,6 +8396,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -9438,6 +9645,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9652,6 +9870,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -10131,6 +10360,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -12459,6 +12710,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -13704,6 +13998,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13855,6 +14160,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14121,6 +14437,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14600,6 +14927,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -16928,6 +17277,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -18173,6 +18565,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18324,6 +18727,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18483,6 +18897,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18696,6 +19121,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -19124,6 +19560,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -19358,23 +19805,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -19390,6 +19839,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -19419,9 +19882,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -19430,10 +19897,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -19459,47 +19931,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -19832,6 +20290,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -22160,6 +22640,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -23366,6 +23889,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -23580,6 +24114,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24059,6 +24604,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -26387,6 +26954,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -27632,6 +28242,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -27783,6 +28404,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -27943,6 +28575,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -28422,6 +29065,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -30750,6 +31415,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -31995,6 +32703,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32146,6 +32865,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32403,6 +33133,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32882,6 +33623,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -35174,39 +35937,82 @@ } ], "accessory": { - "type": "button", + "type": "button", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "url": "", + "value": "", + "style": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", "text": { "type": "plain_text", "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", - "style": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } }, + "style": "", "accessibility_label": "" } }, @@ -36455,6 +37261,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36606,6 +37423,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36765,6 +37593,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36978,6 +37817,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -37406,6 +38256,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -37640,23 +38501,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -37672,6 +38535,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -37701,9 +38578,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -37712,10 +38593,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -37741,47 +38627,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -38114,6 +38986,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -40442,6 +41336,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -41648,6 +42585,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -42111,6 +43059,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -42345,23 +43304,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -42377,6 +43338,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -42406,9 +43381,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -42417,10 +43396,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -42446,47 +43430,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -42819,6 +43789,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -45147,6 +46139,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -46353,6 +47388,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -46810,6 +47856,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -47289,6 +48346,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -49581,39 +50660,82 @@ } ], "accessory": { - "type": "button", + "type": "button", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "url": "", + "value": "", + "style": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", "text": { "type": "plain_text", "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", - "style": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } }, + "style": "", "accessibility_label": "" } }, @@ -50862,6 +51984,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -51013,6 +52146,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -51172,6 +52316,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -51385,6 +52540,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -51813,6 +52979,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -52047,23 +53224,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -52079,6 +53258,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -52108,9 +53301,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -52119,10 +53316,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -52148,47 +53350,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -52521,6 +53709,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -54849,6 +56059,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -56055,6 +57308,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/search.files.json b/json-logs/samples/api/search.files.json index be87d4eed..a1dbfb7cd 100644 --- a/json-logs/samples/api/search.files.json +++ b/json-logs/samples/api/search.files.json @@ -299,6 +299,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -504,7 +515,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -779,6 +791,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3107,6 +3141,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -4352,6 +4429,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4503,6 +4591,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4662,6 +4761,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4875,6 +4985,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5303,6 +5424,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5537,23 +5669,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -5569,6 +5703,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -5598,9 +5746,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -5609,10 +5761,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -5638,47 +5795,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5737,7 +5880,8 @@ "source": "", "file_id": "", "file": { - "thumb_gif": "", + "created": 123, + "timestamp": 123, "id": "", "created": 123, "timestamp": 123, @@ -6012,6 +6156,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -8340,6 +8506,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -9546,6 +9755,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/json-logs/samples/api/search.messages.json b/json-logs/samples/api/search.messages.json index 1e649c57c..a798170e2 100644 --- a/json-logs/samples/api/search.messages.json +++ b/json-logs/samples/api/search.messages.json @@ -192,6 +192,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -671,6 +682,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -3020,257 +3053,300 @@ } ], "accessory": { - "type": "checkboxes", + "type": "workflow_button", "action_id": "", - "options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" - } - ], - "initial_options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" - } - ], - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" - }, - "focus_on_load": false - } - }, - { - "type": "section", - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "block_id": "", - "fields": [ - { + "text": { "type": "plain_text", "text": "", "emoji": false }, - { - "type": "mrkdwn", - "text": "", - "verbatim": false - } - ], - "accessory": { - "type": "radio_buttons", - "action_id": "", - "options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_option": { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" }, - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" - }, - "focus_on_load": false - } - }, - { - "type": "section", - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "block_id": "", - "fields": [ - { - "type": "plain_text", - "text": "", - "emoji": false - }, - { - "type": "mrkdwn", - "text": "", - "verbatim": false - } - ], - "accessory": { - "type": "channels_select", - "placeholder": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "action_id": "", - "initial_channel": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" - }, - "response_url_enabled": false, - "focus_on_load": false - } - }, - { - "type": "section", - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "block_id": "", - "fields": [ - { - "type": "plain_text", - "text": "", - "emoji": false - }, - { - "type": "mrkdwn", - "text": "", - "verbatim": false - } - ], - "accessory": { - "type": "multi_channels_select", - "placeholder": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "action_id": "", - "initial_channels": [ - "" - ], - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" - }, - "max_selected_items": 123, - "focus_on_load": false + "style": "", + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "checkboxes", + "action_id": "", + "options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "initial_options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "focus_on_load": false + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "radio_buttons", + "action_id": "", + "options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "initial_option": { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + }, + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "focus_on_load": false + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "channels_select", + "placeholder": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "initial_channel": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "response_url_enabled": false, + "focus_on_load": false + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "multi_channels_select", + "placeholder": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "initial_channels": [ + "" + ], + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "max_selected_items": 123, + "focus_on_load": false } }, { @@ -4244,6 +4320,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4395,6 +4482,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4554,6 +4652,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -4767,6 +4876,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5195,6 +5315,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -5429,23 +5560,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -5461,6 +5594,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -5490,9 +5637,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -5501,10 +5652,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -5530,47 +5686,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -5903,6 +6045,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -8252,64 +8416,26 @@ } ], "accessory": { - "type": "checkboxes", + "type": "workflow_button", "action_id": "", - "options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" - } - ], - "initial_options": [ - { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" }, - "focus_on_load": false + "style": "", + "accessibility_label": "" } }, { @@ -8333,7 +8459,7 @@ } ], "accessory": { - "type": "radio_buttons", + "type": "checkboxes", "action_id": "", "options": [ { @@ -8351,20 +8477,101 @@ "url": "" } ], - "initial_option": { - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "url": "" - }, + "initial_options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "focus_on_load": false + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "radio_buttons", + "action_id": "", + "options": [ + { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + } + ], + "initial_option": { + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "plain_text", @@ -9437,6 +9644,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -9651,6 +9869,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -10130,6 +10359,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -12458,6 +12709,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -13703,6 +13997,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -13854,6 +14159,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14120,6 +14436,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -14599,6 +14926,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -16927,6 +17276,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -18172,6 +18564,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18323,6 +18726,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18482,6 +18896,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -18695,6 +19120,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -19123,6 +19559,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -19357,23 +19804,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -19389,6 +19838,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -19418,9 +19881,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -19429,10 +19896,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -19458,47 +19930,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -19831,6 +20289,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -22159,6 +22639,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -23365,6 +23888,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -23579,6 +24113,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -24058,6 +24603,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -26386,6 +26953,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -27631,6 +28241,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -27782,6 +28403,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -27942,6 +28574,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -28421,6 +29064,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -30713,39 +31378,82 @@ } ], "accessory": { - "type": "button", + "type": "button", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "action_id": "", + "url": "", + "value": "", + "style": "", + "confirm": { + "title": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "confirm": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "deny": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "style": "" + }, + "accessibility_label": "" + } + }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", "text": { "type": "plain_text", "text": "", "emoji": false }, - "action_id": "", - "url": "", - "value": "", - "style": "", - "confirm": { - "title": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "text": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "confirm": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "deny": { - "type": "plain_text", - "text": "", - "emoji": false - }, - "style": "" + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } }, + "style": "", "accessibility_label": "" } }, @@ -31994,6 +32702,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32145,6 +32864,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32402,6 +33132,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -32881,6 +33622,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -35209,6 +35972,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -36454,6 +37260,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36605,6 +37422,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36764,6 +37592,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -36977,6 +37816,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -37405,6 +38255,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -37639,23 +38500,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -37671,6 +38534,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -37700,9 +38577,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -37711,10 +38592,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -37740,47 +38626,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -38113,6 +38985,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -40441,6 +41335,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -41647,6 +42584,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -42110,6 +43058,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { @@ -42344,23 +43303,25 @@ "accessory": { "type": "", "action_id": "", - "options": [ - { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" + "text": { + "type": "", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] } - ], - "initial_options": [ + }, + "style": "", + "accessibility_label": "", + "options": [ { "text": { "type": "", @@ -42376,6 +43337,20 @@ "url": "" } ], + "initial_option": { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + }, "confirm": { "title": { "type": "", @@ -42405,9 +43380,13 @@ "text": "", "emoji": false }, - "initial_channel": "", - "response_url_enabled": false, - "initial_conversation": "", + "initial_channels": [ + "" + ], + "max_selected_items": 12345, + "initial_conversations": [ + "" + ], "default_to_current_conversation": false, "filter": { "include": [ @@ -42416,10 +43395,15 @@ "exclude_external_shared_channels": false, "exclude_bot_users": false }, - "initial_date": "", - "initial_date_time": 12345, + "initial_time": "", + "timezone": "", "min_query_length": 12345, - "max_selected_items": 12345, + "image_url": "", + "alt_text": "", + "fallback": "", + "image_width": 12345, + "image_height": 12345, + "image_bytes": 12345, "option_groups": [ { "label": { @@ -42445,47 +43429,33 @@ ] } ], - "initial_users": [ - "" - ], - "text": { - "type": "", - "text": "", - "emoji": false - }, + "initial_user": "", "url": "", "value": "", - "style": "", - "accessibility_label": "", - "initial_option": { - "text": { - "type": "", - "text": "", - "emoji": false - }, - "value": "", - "description": { - "type": "", - "text": "", - "emoji": false - }, - "url": "" - }, - "initial_channels": [ - "" + "initial_options": [ + { + "text": { + "type": "", + "text": "", + "emoji": false + }, + "value": "", + "description": { + "type": "", + "text": "", + "emoji": false + }, + "url": "" + } ], - "initial_conversations": [ + "initial_channel": "", + "response_url_enabled": false, + "initial_conversation": "", + "initial_date": "", + "initial_date_time": 12345, + "initial_users": [ "" - ], - "initial_time": "", - "timezone": "", - "image_url": "", - "alt_text": "", - "fallback": "", - "image_width": 12345, - "image_height": 12345, - "image_bytes": 12345, - "initial_user": "" + ] }, "call_id": "", "api_decoration_available": false, @@ -42818,6 +43788,28 @@ }, "accessibility_label": "" }, + { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + }, { "type": "checkboxes", "action_id": "", @@ -45146,6 +46138,49 @@ "accessibility_label": "" } }, + { + "type": "section", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "block_id": "", + "fields": [ + { + "type": "plain_text", + "text": "", + "emoji": false + }, + { + "type": "mrkdwn", + "text": "", + "verbatim": false + } + ], + "accessory": { + "type": "workflow_button", + "action_id": "", + "text": { + "type": "plain_text", + "text": "", + "emoji": false + }, + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, + "style": "", + "accessibility_label": "" + } + }, { "type": "section", "text": { @@ -46352,6 +47387,17 @@ "style": "" }, "accessibility_label": "", + "workflow": { + "trigger": { + "url": "", + "customizable_input_parameters": [ + { + "name": "", + "value": "" + } + ] + } + }, "options": [ { "text": { diff --git a/slack-api-client/src/test/java/test_with_remote_apis/methods/chat_Test.java b/slack-api-client/src/test/java/test_with_remote_apis/methods/chat_Test.java index d6be991d6..1384e16c5 100644 --- a/slack-api-client/src/test/java/test_with_remote_apis/methods/chat_Test.java +++ b/slack-api-client/src/test/java/test_with_remote_apis/methods/chat_Test.java @@ -17,6 +17,7 @@ import com.slack.api.model.block.LayoutBlock; import com.slack.api.model.block.SectionBlock; import com.slack.api.model.block.composition.PlainTextObject; +import com.slack.api.model.block.composition.WorkflowObject; import com.slack.api.util.json.GsonFactory; import config.Constants; import config.SlackTestConfig; @@ -1032,4 +1033,35 @@ public void post_message_with_datetimepicker() throws Exception { assertThat(response.getError(), is(nullValue())); } + @Test + public void post_message_with_workflow_button() throws Exception { + loadRandomChannelId(); + + String triggerUrl = System.getenv("SLACK_SDK_TEST_WORKFLOW_TRIGGER_URL"); + ChatPostMessageResponse response = slack.methods(botToken).chatPostMessage(r -> r.channel(randomChannelId) + .blocks(asBlocks( + actions(a -> a.blockId("b").elements(asElements( + workflowButton(w -> w + .actionId("workflow") + .style("danger") + .accessibilityLabel("test") + .text(plainText("Start the workflow")) + .workflow(WorkflowObject.builder() + .trigger(WorkflowObject.Trigger.builder() + .url(triggerUrl) +// .customizableInputParameters(Arrays.asList( +// WorkflowObject.Trigger.InputParam.builder() +// .name("foo") +// .value("bar") +// .build() +// )) + .build()) + .build()) + ) + ))) + )) + ); + assertThat(response.getError(), is(nullValue())); + } + } diff --git a/slack-api-client/src/test/java/util/sample_json_generation/SampleObjects.java b/slack-api-client/src/test/java/util/sample_json_generation/SampleObjects.java index 12f67b0db..51472170f 100644 --- a/slack-api-client/src/test/java/util/sample_json_generation/SampleObjects.java +++ b/slack-api-client/src/test/java/util/sample_json_generation/SampleObjects.java @@ -116,9 +116,16 @@ private static List initBlocks() { .build()); public static ConfirmationDialogObject Confirm = ConfirmationDialogObject.builder().text(TextObject).build(); + public static WorkflowObject Workflow = WorkflowObject.builder() + .trigger(WorkflowObject.Trigger.builder() + .url("") + .customizableInputParameters(Arrays.asList(WorkflowObject.Trigger.InputParam.builder().name("").value("").build())) + .build()) + .build(); public static List BlockElements = asElements( initProperties(button(b -> b.confirm(Confirm))), + initProperties(workflowButton(b -> b.workflow(Workflow))), initProperties(checkboxes(b -> b.initialOptions(Arrays.asList(Option)).confirm(Confirm))), initProperties(radioButtons(b -> b.initialOption(Option).confirm(Confirm))), initProperties(channelsSelect(c -> c.confirm(Confirm))), diff --git a/slack-api-model/src/main/java/com/slack/api/model/block/composition/WorkflowObject.java b/slack-api-model/src/main/java/com/slack/api/model/block/composition/WorkflowObject.java new file mode 100644 index 000000000..747771dff --- /dev/null +++ b/slack-api-model/src/main/java/com/slack/api/model/block/composition/WorkflowObject.java @@ -0,0 +1,34 @@ +package com.slack.api.model.block.composition; + +import lombok.*; + +import java.util.List; + +/** + * https://api.slack.com/reference/block-kit/composition-objects#workflow + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +public class WorkflowObject { + private Trigger trigger; + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class Trigger { + private String url; + private List customizableInputParameters; + + @Data + @Builder + @NoArgsConstructor + @AllArgsConstructor + public static class InputParam { + private String name; + private String value; + } + } +} diff --git a/slack-api-model/src/main/java/com/slack/api/model/block/element/BlockElements.java b/slack-api-model/src/main/java/com/slack/api/model/block/element/BlockElements.java index da2ea4123..e23ddec60 100644 --- a/slack-api-model/src/main/java/com/slack/api/model/block/element/BlockElements.java +++ b/slack-api-model/src/main/java/com/slack/api/model/block/element/BlockElements.java @@ -23,6 +23,12 @@ public static List asRichTextElements(RichTextElement... elemen return Arrays.asList(elements); } + // WorkflowButtonElement + + public static WorkflowButtonElement workflowButton(ModelConfigurator configurator) { + return configurator.configure(WorkflowButtonElement.builder()).build(); + } + // ButtonElement public static ButtonElement button(ModelConfigurator configurator) { diff --git a/slack-api-model/src/main/java/com/slack/api/model/block/element/WorkflowButtonElement.java b/slack-api-model/src/main/java/com/slack/api/model/block/element/WorkflowButtonElement.java new file mode 100644 index 000000000..9af62decc --- /dev/null +++ b/slack-api-model/src/main/java/com/slack/api/model/block/element/WorkflowButtonElement.java @@ -0,0 +1,50 @@ +package com.slack.api.model.block.element; + +import com.slack.api.model.block.composition.PlainTextObject; +import com.slack.api.model.block.composition.WorkflowObject; +import lombok.*; + +/** + * https://api.slack.com/reference/block-kit/block-elements#workflow_button + */ +@Data +@Builder +@NoArgsConstructor +@AllArgsConstructor +@EqualsAndHashCode(callSuper = false) +public class WorkflowButtonElement extends BlockElement { + public static final String TYPE = "workflow_button"; + private final String type = TYPE; + + private String actionId; + + /** + * A text object that defines the button's text. Can only be of type: plain_text. + * text may truncate with ~30 characters. Maximum length for the text in this field is + * 75 characters. + */ + private PlainTextObject text; + + /** + * A workflow object that contains details about the workflow that will run + * when the button is clicked. + */ + private WorkflowObject workflow; + + /** + * Decorates buttons with alternative visual color schemes. Use this option with restraint. + * primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. + * primary should only be used for one button within a set. + * danger gives buttons a red outline and text, and should be used when the action is destructive. + * Use danger even more sparingly than primary. + * If you don't include this field, the default button style will be used. + */ + private String style; + + /** + * A label for longer descriptive text about a button element. + * This label will be read out by screen readers instead of the button text object. + * Maximum length for this field is 75 characters. + */ + private String accessibilityLabel; +} diff --git a/slack-api-model/src/main/java/com/slack/api/util/json/GsonBlockElementFactory.java b/slack-api-model/src/main/java/com/slack/api/util/json/GsonBlockElementFactory.java index da69139fc..5ab3fcffd 100644 --- a/slack-api-model/src/main/java/com/slack/api/util/json/GsonBlockElementFactory.java +++ b/slack-api-model/src/main/java/com/slack/api/util/json/GsonBlockElementFactory.java @@ -94,6 +94,8 @@ private Class getContextBlockElementClassInstance(String return RadioButtonsElement.class; case CheckboxesElement.TYPE: return CheckboxesElement.class; + case WorkflowButtonElement.TYPE: + return WorkflowButtonElement.class; default: if (failOnUnknownProperties) { throw new JsonParseException("Unknown block element type: " + typeName); diff --git a/slack-api-model/src/test/java/test_locally/api/model/block/BlocksTest.java b/slack-api-model/src/test/java/test_locally/api/model/block/BlocksTest.java index 481fc4b75..ba2df81d5 100644 --- a/slack-api-model/src/test/java/test_locally/api/model/block/BlocksTest.java +++ b/slack-api-model/src/test/java/test_locally/api/model/block/BlocksTest.java @@ -4,9 +4,11 @@ import com.slack.api.model.block.Blocks; import com.slack.api.model.block.ContextBlock; import com.slack.api.model.block.ContextBlockElement; +import com.slack.api.model.block.composition.WorkflowObject; import com.slack.api.model.block.element.BlockElement; import org.junit.Test; +import java.util.Arrays; import java.util.List; import static com.slack.api.model.block.Blocks.*; @@ -94,4 +96,22 @@ public void testNewTextInputs() { assertThat(urlTextInput(h -> h.actionId("block-id").initialValue("https:/www.example.com")), is(notNullValue())); assertThat(numberInput(h -> h.actionId("block-id").initialValue("12345")), is(notNullValue())); } + + @Test + public void testWorkflowButton() { + assertThat(workflowButton(h -> h.actionId("block-id") + .workflow(WorkflowObject.builder() + .trigger(WorkflowObject.Trigger.builder() + .url("https://slack.com/shortcuts/Ft0123ABC456/xyz...zyx") + .customizableInputParameters(Arrays.asList( + WorkflowObject.Trigger.InputParam.builder().name("a").value("b").build() + )) + .build()) + .build()) + .text(plainText("Click this")) + .style("danger") + .accessibilityLabel("accessibility") + ), is(notNullValue())); + } + } \ No newline at end of file