|
| 1 | +{ |
| 2 | + "id": "VMHU10V26", |
| 3 | + "team_id": "T8N4K1JN", |
| 4 | + "type": "modal", |
| 5 | + "blocks": [ |
| 6 | + { |
| 7 | + "type": "input", |
| 8 | + "block_id": "datetime_block", |
| 9 | + "label": { |
| 10 | + "type": "plain_text", |
| 11 | + "text": "Date and time", |
| 12 | + "emoji": true |
| 13 | + }, |
| 14 | + "optional": false, |
| 15 | + "dispatch_action": false, |
| 16 | + "element": { |
| 17 | + "type": "datetimepicker", |
| 18 | + "action_id": "datetime_action" |
| 19 | + } |
| 20 | + }, |
| 21 | + { |
| 22 | + "type": "input", |
| 23 | + "block_id": "time_block", |
| 24 | + "label": { |
| 25 | + "type": "plain_text", |
| 26 | + "text": "Time", |
| 27 | + "emoji": true |
| 28 | + }, |
| 29 | + "optional": false, |
| 30 | + "dispatch_action": false, |
| 31 | + "element": { |
| 32 | + "type": "timepicker", |
| 33 | + "action_id": "time_action", |
| 34 | + "timezone": "America/Toronto" |
| 35 | + } |
| 36 | + }, |
| 37 | + { |
| 38 | + "type": "input", |
| 39 | + "block_id": "rich_text_block", |
| 40 | + "label": { |
| 41 | + "type": "plain_text", |
| 42 | + "text": "Rich text", |
| 43 | + "emoji": true |
| 44 | + }, |
| 45 | + "optional": false, |
| 46 | + "dispatch_action": false, |
| 47 | + "element": { |
| 48 | + "type": "rich_text_input", |
| 49 | + "action_id": "rich_text_action" |
| 50 | + } |
| 51 | + }, |
| 52 | + { |
| 53 | + "type": "input", |
| 54 | + "block_id": "file_block", |
| 55 | + "label": { |
| 56 | + "type": "plain_text", |
| 57 | + "text": "File", |
| 58 | + "emoji": true |
| 59 | + }, |
| 60 | + "optional": false, |
| 61 | + "dispatch_action": false, |
| 62 | + "element": { |
| 63 | + "type": "file_input", |
| 64 | + "action_id": "file_action", |
| 65 | + "max_files": 1 |
| 66 | + } |
| 67 | + } |
| 68 | + ], |
| 69 | + "callback_id": "capture_view", |
| 70 | + "state": { |
| 71 | + "values": { |
| 72 | + "datetime_block": { |
| 73 | + "datetime_action": { |
| 74 | + "type": "datetimepicker", |
| 75 | + "selected_date_time": 1794941340 |
| 76 | + } |
| 77 | + }, |
| 78 | + "time_block": { |
| 79 | + "time_action": { |
| 80 | + "type": "timepicker", |
| 81 | + "selected_time": "02:00", |
| 82 | + "timezone": "America/Toronto" |
| 83 | + } |
| 84 | + }, |
| 85 | + "rich_text_block": { |
| 86 | + "rich_text_action": { |
| 87 | + "type": "rich_text_input", |
| 88 | + "rich_text_value": { |
| 89 | + "type": "rich_text", |
| 90 | + "elements": [ |
| 91 | + { |
| 92 | + "type": "rich_text_section", |
| 93 | + "elements": [ |
| 94 | + { |
| 95 | + "type": "text", |
| 96 | + "text": "hello there friend" |
| 97 | + } |
| 98 | + ] |
| 99 | + } |
| 100 | + ] |
| 101 | + } |
| 102 | + } |
| 103 | + }, |
| 104 | + "file_block": { |
| 105 | + "file_action": { |
| 106 | + "type": "file_input", |
| 107 | + "files": [ |
| 108 | + { |
| 109 | + "id": "F0000000001", |
| 110 | + "created": 1700000000, |
| 111 | + "timestamp": 1700000000, |
| 112 | + "mimetype": "image/gif", |
| 113 | + "filetype": "gif", |
| 114 | + "pretty_type": "GIF", |
| 115 | + "user": "U0000000001", |
| 116 | + "user_team": "E0000000001", |
| 117 | + "editable": false, |
| 118 | + "size": 125649, |
| 119 | + "mode": "hosted", |
| 120 | + "is_external": false, |
| 121 | + "external_type": "", |
| 122 | + "is_public": false, |
| 123 | + "public_url_shared": false, |
| 124 | + "display_as_bot": false, |
| 125 | + "username": "", |
| 126 | + "name": "sample.gif", |
| 127 | + "title": "sample.gif", |
| 128 | + "is_modified_by_ai": false, |
| 129 | + "url_private": "https://files.slack.com/files-pri/T0000000001-F0000000001/sample.gif", |
| 130 | + "url_private_download": "https://files.slack.com/files-pri/T0000000001-F0000000001/download/sample.gif", |
| 131 | + "media_display_type": "unknown", |
| 132 | + "thumb_64": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_64.png", |
| 133 | + "thumb_80": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_80.png", |
| 134 | + "thumb_360": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_360.png", |
| 135 | + "thumb_360_w": 82, |
| 136 | + "thumb_360_h": 82, |
| 137 | + "thumb_160": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_160.png", |
| 138 | + "thumb_360_gif": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_360.gif", |
| 139 | + "original_w": 82, |
| 140 | + "original_h": 82, |
| 141 | + "deanimate": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_deanimate.png", |
| 142 | + "deanimate_gif": "https://files.slack.com/files-tmb/T0000000001-F0000000001-0123456789/sample_deanimate_gif.png", |
| 143 | + "thumb_tiny": "AwAwADDMp6nIKnv0plORdzgVQCAHPSt", |
| 144 | + "permalink": "https://example.enterprise.slack.com/files/U0000000001/F0000000001/sample.gif", |
| 145 | + "permalink_public": "https://slack-files.com/T0000000001-F0000000001-abcdef0123", |
| 146 | + "comments_count": 0, |
| 147 | + "shares": {}, |
| 148 | + "channels": [], |
| 149 | + "groups": [], |
| 150 | + "ims": [], |
| 151 | + "has_more_shares": false, |
| 152 | + "has_rich_preview": false, |
| 153 | + "file_access": "visible" |
| 154 | + } |
| 155 | + ] |
| 156 | + } |
| 157 | + } |
| 158 | + } |
| 159 | + }, |
| 160 | + "hash": "156772938.1827395", |
| 161 | + "title": { |
| 162 | + "type": "plain_text", |
| 163 | + "text": "Capture view state", |
| 164 | + "emoji": true |
| 165 | + }, |
| 166 | + "clear_on_close": false, |
| 167 | + "notify_on_close": false, |
| 168 | + "submit": { |
| 169 | + "type": "plain_text", |
| 170 | + "text": "Submit", |
| 171 | + "emoji": true |
| 172 | + }, |
| 173 | + "root_view_id": "VMHU10V26", |
| 174 | + "app_id": "AA4928AQ", |
| 175 | + "bot_id": "BA13894H" |
| 176 | +} |
0 commit comments