slack_resources 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (316) hide show
  1. checksums.yaml +7 -0
  2. data/.circleci/config.yml +87 -0
  3. data/.circleci/gem_deployment.rb +53 -0
  4. data/.gitignore +13 -0
  5. data/.rubocop.yml +104 -0
  6. data/Gemfile +5 -0
  7. data/Gemfile.lock +93 -0
  8. data/README.md +29 -0
  9. data/Rakefile +6 -0
  10. data/lib/generate_event_api_resources.rb +8 -0
  11. data/lib/slack_resources.rb +11 -0
  12. data/lib/slack_resources/generator/event_api/examples_preparation.rb +71 -0
  13. data/lib/slack_resources/generator/event_api/fetch.rb +111 -0
  14. data/lib/slack_resources/generator/event_api/strong_hash.rb +25 -0
  15. data/lib/slack_resources/generator/event_api/to_schema.rb +200 -0
  16. data/lib/slack_resources/generator/event_api/type_detection.rb +272 -0
  17. data/lib/slack_resources/generator/event_api/write.rb +123 -0
  18. data/lib/slack_resources/raw_data/event_api/_added_examples/emoji_changed.add.json +7 -0
  19. data/lib/slack_resources/raw_data/event_api/_added_examples/emoji_changed.remove.json +6 -0
  20. data/lib/slack_resources/raw_data/event_api/_added_examples/event_callback.json +13 -0
  21. data/lib/slack_resources/raw_data/event_api/examples/app_mention.json +8 -0
  22. data/lib/slack_resources/raw_data/event_api/examples/app_rate_limited.json +7 -0
  23. data/lib/slack_resources/raw_data/event_api/examples/app_uninstalled.json +11 -0
  24. data/lib/slack_resources/raw_data/event_api/examples/channel_archive.json +5 -0
  25. data/lib/slack_resources/raw_data/event_api/examples/channel_created.json +9 -0
  26. data/lib/slack_resources/raw_data/event_api/examples/channel_deleted.json +4 -0
  27. data/lib/slack_resources/raw_data/event_api/examples/channel_history_changed.json +6 -0
  28. data/lib/slack_resources/raw_data/event_api/examples/channel_left.json +4 -0
  29. data/lib/slack_resources/raw_data/event_api/examples/channel_rename.json +8 -0
  30. data/lib/slack_resources/raw_data/event_api/examples/channel_unarchive.json +5 -0
  31. data/lib/slack_resources/raw_data/event_api/examples/dnd_updated.json +11 -0
  32. data/lib/slack_resources/raw_data/event_api/examples/dnd_updated_user.json +9 -0
  33. data/lib/slack_resources/raw_data/event_api/examples/email_domain_changed.json +5 -0
  34. data/lib/slack_resources/raw_data/event_api/examples/emoji_changed.json +8 -0
  35. data/lib/slack_resources/raw_data/event_api/examples/file_change.json +7 -0
  36. data/lib/slack_resources/raw_data/event_api/examples/file_comment_added.json +9 -0
  37. data/lib/slack_resources/raw_data/event_api/examples/file_comment_deleted.json +8 -0
  38. data/lib/slack_resources/raw_data/event_api/examples/file_comment_edited.json +9 -0
  39. data/lib/slack_resources/raw_data/event_api/examples/file_created.json +7 -0
  40. data/lib/slack_resources/raw_data/event_api/examples/file_deleted.json +5 -0
  41. data/lib/slack_resources/raw_data/event_api/examples/file_public.json +7 -0
  42. data/lib/slack_resources/raw_data/event_api/examples/file_shared.json +7 -0
  43. data/lib/slack_resources/raw_data/event_api/examples/file_unshared.json +7 -0
  44. data/lib/slack_resources/raw_data/event_api/examples/grid_migration_finished.json +12 -0
  45. data/lib/slack_resources/raw_data/event_api/examples/grid_migration_started.json +12 -0
  46. data/lib/slack_resources/raw_data/event_api/examples/group_archive.json +4 -0
  47. data/lib/slack_resources/raw_data/event_api/examples/group_close.json +5 -0
  48. data/lib/slack_resources/raw_data/event_api/examples/group_deleted.json +4 -0
  49. data/lib/slack_resources/raw_data/event_api/examples/group_history_changed.json +6 -0
  50. data/lib/slack_resources/raw_data/event_api/examples/group_left.json +4 -0
  51. data/lib/slack_resources/raw_data/event_api/examples/group_open.json +5 -0
  52. data/lib/slack_resources/raw_data/event_api/examples/group_rename.json +8 -0
  53. data/lib/slack_resources/raw_data/event_api/examples/group_unarchive.json +4 -0
  54. data/lib/slack_resources/raw_data/event_api/examples/im_close.json +5 -0
  55. data/lib/slack_resources/raw_data/event_api/examples/im_created.json +6 -0
  56. data/lib/slack_resources/raw_data/event_api/examples/im_history_changed.json +6 -0
  57. data/lib/slack_resources/raw_data/event_api/examples/im_open.json +5 -0
  58. data/lib/slack_resources/raw_data/event_api/examples/link_shared.json +33 -0
  59. data/lib/slack_resources/raw_data/event_api/examples/member_joined_channel.json +8 -0
  60. data/lib/slack_resources/raw_data/event_api/examples/member_left_channel.json +7 -0
  61. data/lib/slack_resources/raw_data/event_api/examples/message.app_home.json +20 -0
  62. data/lib/slack_resources/raw_data/event_api/examples/message.channels.json +20 -0
  63. data/lib/slack_resources/raw_data/event_api/examples/message.groups.json +20 -0
  64. data/lib/slack_resources/raw_data/event_api/examples/message.im.json +20 -0
  65. data/lib/slack_resources/raw_data/event_api/examples/message.json +7 -0
  66. data/lib/slack_resources/raw_data/event_api/examples/message.mpim.json +20 -0
  67. data/lib/slack_resources/raw_data/event_api/examples/pin_added.json +8 -0
  68. data/lib/slack_resources/raw_data/event_api/examples/pin_removed.json +9 -0
  69. data/lib/slack_resources/raw_data/event_api/examples/reaction_added.json +12 -0
  70. data/lib/slack_resources/raw_data/event_api/examples/reaction_removed.json +12 -0
  71. data/lib/slack_resources/raw_data/event_api/examples/resources_added.json +31 -0
  72. data/lib/slack_resources/raw_data/event_api/examples/resources_removed.json +31 -0
  73. data/lib/slack_resources/raw_data/event_api/examples/scope_denied.json +20 -0
  74. data/lib/slack_resources/raw_data/event_api/examples/scope_granted.json +20 -0
  75. data/lib/slack_resources/raw_data/event_api/examples/star_added.json +7 -0
  76. data/lib/slack_resources/raw_data/event_api/examples/star_removed.json +7 -0
  77. data/lib/slack_resources/raw_data/event_api/examples/subteam_created.json +28 -0
  78. data/lib/slack_resources/raw_data/event_api/examples/subteam_members_changed.json +17 -0
  79. data/lib/slack_resources/raw_data/event_api/examples/subteam_self_added.json +4 -0
  80. data/lib/slack_resources/raw_data/event_api/examples/subteam_self_removed.json +4 -0
  81. data/lib/slack_resources/raw_data/event_api/examples/subteam_updated.json +34 -0
  82. data/lib/slack_resources/raw_data/event_api/examples/team_domain_change.json +5 -0
  83. data/lib/slack_resources/raw_data/event_api/examples/team_join.json +5 -0
  84. data/lib/slack_resources/raw_data/event_api/examples/team_rename.json +4 -0
  85. data/lib/slack_resources/raw_data/event_api/examples/tokens_revoked.json +19 -0
  86. data/lib/slack_resources/raw_data/event_api/examples/url_verification.json +5 -0
  87. data/lib/slack_resources/raw_data/event_api/examples/user_change.json +5 -0
  88. data/lib/slack_resources/raw_data/event_api/examples/user_resource_denied.json +20 -0
  89. data/lib/slack_resources/raw_data/event_api/examples/user_resource_granted.json +20 -0
  90. data/lib/slack_resources/raw_data/event_api/examples/user_resource_removed.json +16 -0
  91. data/lib/slack_resources/raw_data/event_api/meta.json +834 -0
  92. data/lib/slack_resources/raw_data/event_api/preset_schemas.json +33 -0
  93. data/lib/slack_resources/resources/event_api.rb +38 -0
  94. data/lib/slack_resources/resources/event_api/details/app_mention.json +85 -0
  95. data/lib/slack_resources/resources/event_api/details/app_rate_limited.json +80 -0
  96. data/lib/slack_resources/resources/event_api/details/app_uninstalled.json +36 -0
  97. data/lib/slack_resources/resources/event_api/details/channel_archive.json +59 -0
  98. data/lib/slack_resources/resources/event_api/details/channel_created.json +82 -0
  99. data/lib/slack_resources/resources/event_api/details/channel_deleted.json +48 -0
  100. data/lib/slack_resources/resources/event_api/details/channel_history_changed.json +66 -0
  101. data/lib/slack_resources/resources/event_api/details/channel_left.json +48 -0
  102. data/lib/slack_resources/resources/event_api/details/channel_rename.json +77 -0
  103. data/lib/slack_resources/resources/event_api/details/channel_unarchive.json +59 -0
  104. data/lib/slack_resources/resources/event_api/details/dnd_updated.json +86 -0
  105. data/lib/slack_resources/resources/event_api/details/dnd_updated_user.json +82 -0
  106. data/lib/slack_resources/resources/event_api/details/email_domain_changed.json +56 -0
  107. data/lib/slack_resources/resources/event_api/details/emoji_changed.add.json +78 -0
  108. data/lib/slack_resources/resources/event_api/details/emoji_changed.json +103 -0
  109. data/lib/slack_resources/resources/event_api/details/emoji_changed.remove.json +77 -0
  110. data/lib/slack_resources/resources/event_api/details/event_callback.json +126 -0
  111. data/lib/slack_resources/resources/event_api/details/file_change.json +69 -0
  112. data/lib/slack_resources/resources/event_api/details/file_comment_added.json +85 -0
  113. data/lib/slack_resources/resources/event_api/details/file_comment_deleted.json +80 -0
  114. data/lib/slack_resources/resources/event_api/details/file_comment_edited.json +85 -0
  115. data/lib/slack_resources/resources/event_api/details/file_created.json +69 -0
  116. data/lib/slack_resources/resources/event_api/details/file_deleted.json +59 -0
  117. data/lib/slack_resources/resources/event_api/details/file_public.json +69 -0
  118. data/lib/slack_resources/resources/event_api/details/file_shared.json +69 -0
  119. data/lib/slack_resources/resources/event_api/details/file_unshared.json +69 -0
  120. data/lib/slack_resources/resources/event_api/details/grid_migration_finished.json +47 -0
  121. data/lib/slack_resources/resources/event_api/details/grid_migration_started.json +47 -0
  122. data/lib/slack_resources/resources/event_api/details/group_archive.json +48 -0
  123. data/lib/slack_resources/resources/event_api/details/group_close.json +59 -0
  124. data/lib/slack_resources/resources/event_api/details/group_deleted.json +48 -0
  125. data/lib/slack_resources/resources/event_api/details/group_history_changed.json +64 -0
  126. data/lib/slack_resources/resources/event_api/details/group_left.json +48 -0
  127. data/lib/slack_resources/resources/event_api/details/group_open.json +59 -0
  128. data/lib/slack_resources/resources/event_api/details/group_rename.json +77 -0
  129. data/lib/slack_resources/resources/event_api/details/group_unarchive.json +48 -0
  130. data/lib/slack_resources/resources/event_api/details/im_close.json +59 -0
  131. data/lib/slack_resources/resources/event_api/details/im_created.json +73 -0
  132. data/lib/slack_resources/resources/event_api/details/im_history_changed.json +64 -0
  133. data/lib/slack_resources/resources/event_api/details/im_open.json +59 -0
  134. data/lib/slack_resources/resources/event_api/details/link_shared.json +129 -0
  135. data/lib/slack_resources/resources/event_api/details/member_joined_channel.json +87 -0
  136. data/lib/slack_resources/resources/event_api/details/member_left_channel.json +79 -0
  137. data/lib/slack_resources/resources/event_api/details/message.app_home.json +93 -0
  138. data/lib/slack_resources/resources/event_api/details/message.channels.json +93 -0
  139. data/lib/slack_resources/resources/event_api/details/message.groups.json +93 -0
  140. data/lib/slack_resources/resources/event_api/details/message.im.json +93 -0
  141. data/lib/slack_resources/resources/event_api/details/message.json +129 -0
  142. data/lib/slack_resources/resources/event_api/details/message.mpim.json +93 -0
  143. data/lib/slack_resources/resources/event_api/details/pin_added.json +86 -0
  144. data/lib/slack_resources/resources/event_api/details/pin_removed.json +94 -0
  145. data/lib/slack_resources/resources/event_api/details/reaction_added.json +115 -0
  146. data/lib/slack_resources/resources/event_api/details/reaction_removed.json +115 -0
  147. data/lib/slack_resources/resources/event_api/details/resources_added.json +152 -0
  148. data/lib/slack_resources/resources/event_api/details/resources_removed.json +152 -0
  149. data/lib/slack_resources/resources/event_api/details/scope_denied.json +91 -0
  150. data/lib/slack_resources/resources/event_api/details/scope_granted.json +91 -0
  151. data/lib/slack_resources/resources/event_api/details/star_added.json +75 -0
  152. data/lib/slack_resources/resources/event_api/details/star_removed.json +75 -0
  153. data/lib/slack_resources/resources/event_api/details/subteam_created.json +198 -0
  154. data/lib/slack_resources/resources/event_api/details/subteam_members_changed.json +140 -0
  155. data/lib/slack_resources/resources/event_api/details/subteam_self_added.json +48 -0
  156. data/lib/slack_resources/resources/event_api/details/subteam_self_removed.json +48 -0
  157. data/lib/slack_resources/resources/event_api/details/subteam_updated.json +210 -0
  158. data/lib/slack_resources/resources/event_api/details/team_domain_change.json +53 -0
  159. data/lib/slack_resources/resources/event_api/details/team_join.json +53 -0
  160. data/lib/slack_resources/resources/event_api/details/team_rename.json +48 -0
  161. data/lib/slack_resources/resources/event_api/details/tokens_revoked.json +76 -0
  162. data/lib/slack_resources/resources/event_api/details/url_verification.json +52 -0
  163. data/lib/slack_resources/resources/event_api/details/user_change.json +53 -0
  164. data/lib/slack_resources/resources/event_api/details/user_resource_denied.json +100 -0
  165. data/lib/slack_resources/resources/event_api/details/user_resource_granted.json +100 -0
  166. data/lib/slack_resources/resources/event_api/details/user_resource_removed.json +58 -0
  167. data/lib/slack_resources/resources/event_api/examples/app_mention.json +8 -0
  168. data/lib/slack_resources/resources/event_api/examples/app_rate_limited.json +7 -0
  169. data/lib/slack_resources/resources/event_api/examples/app_uninstalled.json +3 -0
  170. data/lib/slack_resources/resources/event_api/examples/channel_archive.json +5 -0
  171. data/lib/slack_resources/resources/event_api/examples/channel_created.json +9 -0
  172. data/lib/slack_resources/resources/event_api/examples/channel_deleted.json +4 -0
  173. data/lib/slack_resources/resources/event_api/examples/channel_history_changed.json +6 -0
  174. data/lib/slack_resources/resources/event_api/examples/channel_left.json +4 -0
  175. data/lib/slack_resources/resources/event_api/examples/channel_rename.json +8 -0
  176. data/lib/slack_resources/resources/event_api/examples/channel_unarchive.json +5 -0
  177. data/lib/slack_resources/resources/event_api/examples/dnd_updated.json +11 -0
  178. data/lib/slack_resources/resources/event_api/examples/dnd_updated_user.json +9 -0
  179. data/lib/slack_resources/resources/event_api/examples/email_domain_changed.json +5 -0
  180. data/lib/slack_resources/resources/event_api/examples/emoji_changed.add.json +7 -0
  181. data/lib/slack_resources/resources/event_api/examples/emoji_changed.json +7 -0
  182. data/lib/slack_resources/resources/event_api/examples/emoji_changed.remove.json +8 -0
  183. data/lib/slack_resources/resources/event_api/examples/event_callback.json +14 -0
  184. data/lib/slack_resources/resources/event_api/examples/file_change.json +7 -0
  185. data/lib/slack_resources/resources/event_api/examples/file_comment_added.json +9 -0
  186. data/lib/slack_resources/resources/event_api/examples/file_comment_deleted.json +8 -0
  187. data/lib/slack_resources/resources/event_api/examples/file_comment_edited.json +9 -0
  188. data/lib/slack_resources/resources/event_api/examples/file_created.json +7 -0
  189. data/lib/slack_resources/resources/event_api/examples/file_deleted.json +5 -0
  190. data/lib/slack_resources/resources/event_api/examples/file_public.json +7 -0
  191. data/lib/slack_resources/resources/event_api/examples/file_shared.json +7 -0
  192. data/lib/slack_resources/resources/event_api/examples/file_unshared.json +7 -0
  193. data/lib/slack_resources/resources/event_api/examples/grid_migration_finished.json +4 -0
  194. data/lib/slack_resources/resources/event_api/examples/grid_migration_started.json +4 -0
  195. data/lib/slack_resources/resources/event_api/examples/group_archive.json +4 -0
  196. data/lib/slack_resources/resources/event_api/examples/group_close.json +5 -0
  197. data/lib/slack_resources/resources/event_api/examples/group_deleted.json +4 -0
  198. data/lib/slack_resources/resources/event_api/examples/group_history_changed.json +6 -0
  199. data/lib/slack_resources/resources/event_api/examples/group_left.json +4 -0
  200. data/lib/slack_resources/resources/event_api/examples/group_open.json +5 -0
  201. data/lib/slack_resources/resources/event_api/examples/group_rename.json +8 -0
  202. data/lib/slack_resources/resources/event_api/examples/group_unarchive.json +4 -0
  203. data/lib/slack_resources/resources/event_api/examples/im_close.json +5 -0
  204. data/lib/slack_resources/resources/event_api/examples/im_created.json +6 -0
  205. data/lib/slack_resources/resources/event_api/examples/im_history_changed.json +6 -0
  206. data/lib/slack_resources/resources/event_api/examples/im_open.json +5 -0
  207. data/lib/slack_resources/resources/event_api/examples/link_shared.json +21 -0
  208. data/lib/slack_resources/resources/event_api/examples/member_joined_channel.json +8 -0
  209. data/lib/slack_resources/resources/event_api/examples/member_left_channel.json +7 -0
  210. data/lib/slack_resources/resources/event_api/examples/message.app_home.json +9 -0
  211. data/lib/slack_resources/resources/event_api/examples/message.channels.json +9 -0
  212. data/lib/slack_resources/resources/event_api/examples/message.groups.json +9 -0
  213. data/lib/slack_resources/resources/event_api/examples/message.im.json +9 -0
  214. data/lib/slack_resources/resources/event_api/examples/message.json +9 -0
  215. data/lib/slack_resources/resources/event_api/examples/message.mpim.json +9 -0
  216. data/lib/slack_resources/resources/event_api/examples/pin_added.json +8 -0
  217. data/lib/slack_resources/resources/event_api/examples/pin_removed.json +9 -0
  218. data/lib/slack_resources/resources/event_api/examples/reaction_added.json +12 -0
  219. data/lib/slack_resources/resources/event_api/examples/reaction_removed.json +12 -0
  220. data/lib/slack_resources/resources/event_api/examples/resources_added.json +20 -0
  221. data/lib/slack_resources/resources/event_api/examples/resources_removed.json +20 -0
  222. data/lib/slack_resources/resources/event_api/examples/scope_denied.json +9 -0
  223. data/lib/slack_resources/resources/event_api/examples/scope_granted.json +9 -0
  224. data/lib/slack_resources/resources/event_api/examples/star_added.json +7 -0
  225. data/lib/slack_resources/resources/event_api/examples/star_removed.json +7 -0
  226. data/lib/slack_resources/resources/event_api/examples/subteam_created.json +28 -0
  227. data/lib/slack_resources/resources/event_api/examples/subteam_members_changed.json +17 -0
  228. data/lib/slack_resources/resources/event_api/examples/subteam_self_added.json +4 -0
  229. data/lib/slack_resources/resources/event_api/examples/subteam_self_removed.json +4 -0
  230. data/lib/slack_resources/resources/event_api/examples/subteam_updated.json +34 -0
  231. data/lib/slack_resources/resources/event_api/examples/team_domain_change.json +5 -0
  232. data/lib/slack_resources/resources/event_api/examples/team_join.json +5 -0
  233. data/lib/slack_resources/resources/event_api/examples/team_rename.json +4 -0
  234. data/lib/slack_resources/resources/event_api/examples/tokens_revoked.json +11 -0
  235. data/lib/slack_resources/resources/event_api/examples/url_verification.json +5 -0
  236. data/lib/slack_resources/resources/event_api/examples/user_change.json +5 -0
  237. data/lib/slack_resources/resources/event_api/examples/user_resource_denied.json +9 -0
  238. data/lib/slack_resources/resources/event_api/examples/user_resource_granted.json +9 -0
  239. data/lib/slack_resources/resources/event_api/examples/user_resource_removed.json +5 -0
  240. data/lib/slack_resources/resources/event_api/schema.json +2261 -0
  241. data/lib/slack_resources/resources/event_api/schemas/app_mention.json +46 -0
  242. data/lib/slack_resources/resources/event_api/schemas/app_rate_limited.json +45 -0
  243. data/lib/slack_resources/resources/event_api/schemas/app_uninstalled.json +17 -0
  244. data/lib/slack_resources/resources/event_api/schemas/channel_archive.json +31 -0
  245. data/lib/slack_resources/resources/event_api/schemas/channel_created.json +53 -0
  246. data/lib/slack_resources/resources/event_api/schemas/channel_deleted.json +24 -0
  247. data/lib/slack_resources/resources/event_api/schemas/channel_history_changed.json +32 -0
  248. data/lib/slack_resources/resources/event_api/schemas/channel_left.json +24 -0
  249. data/lib/slack_resources/resources/event_api/schemas/channel_rename.json +49 -0
  250. data/lib/slack_resources/resources/event_api/schemas/channel_unarchive.json +31 -0
  251. data/lib/slack_resources/resources/event_api/schemas/dnd_updated.json +52 -0
  252. data/lib/slack_resources/resources/event_api/schemas/dnd_updated_user.json +50 -0
  253. data/lib/slack_resources/resources/event_api/schemas/email_domain_changed.json +28 -0
  254. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.add.json +42 -0
  255. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.json +61 -0
  256. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.remove.json +40 -0
  257. data/lib/slack_resources/resources/event_api/schemas/event_callback.json +76 -0
  258. data/lib/slack_resources/resources/event_api/schemas/file_change.json +39 -0
  259. data/lib/slack_resources/resources/event_api/schemas/file_comment_added.json +50 -0
  260. data/lib/slack_resources/resources/event_api/schemas/file_comment_deleted.json +46 -0
  261. data/lib/slack_resources/resources/event_api/schemas/file_comment_edited.json +50 -0
  262. data/lib/slack_resources/resources/event_api/schemas/file_created.json +39 -0
  263. data/lib/slack_resources/resources/event_api/schemas/file_deleted.json +31 -0
  264. data/lib/slack_resources/resources/event_api/schemas/file_public.json +39 -0
  265. data/lib/slack_resources/resources/event_api/schemas/file_shared.json +39 -0
  266. data/lib/slack_resources/resources/event_api/schemas/file_unshared.json +39 -0
  267. data/lib/slack_resources/resources/event_api/schemas/grid_migration_finished.json +24 -0
  268. data/lib/slack_resources/resources/event_api/schemas/grid_migration_started.json +24 -0
  269. data/lib/slack_resources/resources/event_api/schemas/group_archive.json +24 -0
  270. data/lib/slack_resources/resources/event_api/schemas/group_close.json +31 -0
  271. data/lib/slack_resources/resources/event_api/schemas/group_deleted.json +24 -0
  272. data/lib/slack_resources/resources/event_api/schemas/group_history_changed.json +32 -0
  273. data/lib/slack_resources/resources/event_api/schemas/group_left.json +24 -0
  274. data/lib/slack_resources/resources/event_api/schemas/group_open.json +31 -0
  275. data/lib/slack_resources/resources/event_api/schemas/group_rename.json +49 -0
  276. data/lib/slack_resources/resources/event_api/schemas/group_unarchive.json +24 -0
  277. data/lib/slack_resources/resources/event_api/schemas/im_close.json +31 -0
  278. data/lib/slack_resources/resources/event_api/schemas/im_created.json +44 -0
  279. data/lib/slack_resources/resources/event_api/schemas/im_history_changed.json +32 -0
  280. data/lib/slack_resources/resources/event_api/schemas/im_open.json +31 -0
  281. data/lib/slack_resources/resources/event_api/schemas/link_shared.json +74 -0
  282. data/lib/slack_resources/resources/event_api/schemas/member_joined_channel.json +46 -0
  283. data/lib/slack_resources/resources/event_api/schemas/member_left_channel.json +42 -0
  284. data/lib/slack_resources/resources/event_api/schemas/message.app_home.json +50 -0
  285. data/lib/slack_resources/resources/event_api/schemas/message.channels.json +50 -0
  286. data/lib/slack_resources/resources/event_api/schemas/message.groups.json +50 -0
  287. data/lib/slack_resources/resources/event_api/schemas/message.im.json +50 -0
  288. data/lib/slack_resources/resources/event_api/schemas/message.json +82 -0
  289. data/lib/slack_resources/resources/event_api/schemas/message.mpim.json +50 -0
  290. data/lib/slack_resources/resources/event_api/schemas/pin_added.json +49 -0
  291. data/lib/slack_resources/resources/event_api/schemas/pin_removed.json +53 -0
  292. data/lib/slack_resources/resources/event_api/schemas/reaction_added.json +71 -0
  293. data/lib/slack_resources/resources/event_api/schemas/reaction_removed.json +71 -0
  294. data/lib/slack_resources/resources/event_api/schemas/resources_added.json +110 -0
  295. data/lib/slack_resources/resources/event_api/schemas/resources_removed.json +110 -0
  296. data/lib/slack_resources/resources/event_api/schemas/scope_denied.json +57 -0
  297. data/lib/slack_resources/resources/event_api/schemas/scope_granted.json +57 -0
  298. data/lib/slack_resources/resources/event_api/schemas/star_added.json +42 -0
  299. data/lib/slack_resources/resources/event_api/schemas/star_removed.json +42 -0
  300. data/lib/slack_resources/resources/event_api/schemas/subteam_created.json +150 -0
  301. data/lib/slack_resources/resources/event_api/schemas/subteam_members_changed.json +76 -0
  302. data/lib/slack_resources/resources/event_api/schemas/subteam_self_added.json +24 -0
  303. data/lib/slack_resources/resources/event_api/schemas/subteam_self_removed.json +24 -0
  304. data/lib/slack_resources/resources/event_api/schemas/subteam_updated.json +156 -0
  305. data/lib/slack_resources/resources/event_api/schemas/team_domain_change.json +25 -0
  306. data/lib/slack_resources/resources/event_api/schemas/team_join.json +28 -0
  307. data/lib/slack_resources/resources/event_api/schemas/team_rename.json +24 -0
  308. data/lib/slack_resources/resources/event_api/schemas/tokens_revoked.json +46 -0
  309. data/lib/slack_resources/resources/event_api/schemas/url_verification.json +25 -0
  310. data/lib/slack_resources/resources/event_api/schemas/user_change.json +28 -0
  311. data/lib/slack_resources/resources/event_api/schemas/user_resource_denied.json +63 -0
  312. data/lib/slack_resources/resources/event_api/schemas/user_resource_granted.json +63 -0
  313. data/lib/slack_resources/resources/event_api/schemas/user_resource_removed.json +31 -0
  314. data/lib/slack_resources/resources/event_api/summary.json +5876 -0
  315. data/slack_resources.gemspec +33 -0
  316. metadata +470 -0
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "D0PNCRP9N",
3
+ "channel_type": "app_home",
4
+ "event_ts": "1525215129.000001",
5
+ "text": "How many cats did we herd yesterday?",
6
+ "ts": "1525215129.000001",
7
+ "type": "message",
8
+ "user": "U061F7AUR"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "C024BE91L",
3
+ "channel_type": "channel",
4
+ "event_ts": "1355517523.000005",
5
+ "text": "Live long and prospect.",
6
+ "ts": "1355517523.000005",
7
+ "type": "message",
8
+ "user": "U2147483697"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "G024BE91L",
3
+ "channel_type": "group",
4
+ "event_ts": "1355517523.000005",
5
+ "text": "One cannot programmatically detect the difference between `message.mpim` and `message.groups`.",
6
+ "ts": "1355517523.000005",
7
+ "type": "message",
8
+ "user": "U2147483697"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "D024BE91L",
3
+ "channel_type": "im",
4
+ "event_ts": "1355517523.000005",
5
+ "text": "Hello hello can you hear me?",
6
+ "ts": "1355517523.000005",
7
+ "type": "message",
8
+ "user": "U2147483697"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "D0PNCRP9N",
3
+ "channel_type": "app_home",
4
+ "event_ts": "1525215129.000001",
5
+ "text": "How many cats did we herd yesterday?",
6
+ "ts": "1525215129.000001",
7
+ "type": "message",
8
+ "user": "U061F7AUR"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel": "G024BE91L",
3
+ "channel_type": "mpim",
4
+ "event_ts": "1355517523.000005",
5
+ "text": "Let's make a pact.",
6
+ "ts": "1355517523.000005",
7
+ "type": "message",
8
+ "user": "U2147483697"
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "channel_id": "C02ELGNBH",
3
+ "event_ts": "1360782804.083113",
4
+ "item": {
5
+ },
6
+ "type": "pin_added",
7
+ "user": "U024BE7LH"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "channel_id": "C02ELGNBH",
3
+ "event_ts": "1360782804.083113",
4
+ "has_pins": false,
5
+ "item": {
6
+ },
7
+ "type": "pin_removed",
8
+ "user": "U024BE7LH"
9
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "event_ts": "1360782804.083113",
3
+ "item": {
4
+ "type": "message",
5
+ "channel": "C0G9QF9GZ",
6
+ "ts": "1360782400.498405"
7
+ },
8
+ "item_user": "U0G9QF9C6",
9
+ "reaction": "thumbsup",
10
+ "type": "reaction_added",
11
+ "user": "U024BE7LH"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "event_ts": "1360782804.083113",
3
+ "item": {
4
+ "type": "message",
5
+ "channel": "C0G9QF9GZ",
6
+ "ts": "1360782400.498405"
7
+ },
8
+ "item_user": "U0G9QF9C6",
9
+ "reaction": "thumbsup",
10
+ "type": "reaction_removed",
11
+ "user": "U024BE7LH"
12
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "resources": [
3
+ {
4
+ "resource": {
5
+ "type": "im",
6
+ "grant": {
7
+ "type": "specific",
8
+ "resource_id": "DXXXXXXXX"
9
+ }
10
+ },
11
+ "scopes": [
12
+ "chat:write:user",
13
+ "im:read",
14
+ "im:history",
15
+ "commands"
16
+ ]
17
+ }
18
+ ],
19
+ "type": "resources_added"
20
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "resources": [
3
+ {
4
+ "resource": {
5
+ "type": "im",
6
+ "grant": {
7
+ "type": "specific",
8
+ "resource_id": "DXXXXXXXX"
9
+ }
10
+ },
11
+ "scopes": [
12
+ "chat:write:user",
13
+ "im:read",
14
+ "im:history",
15
+ "commands"
16
+ ]
17
+ }
18
+ ],
19
+ "type": "resources_removed"
20
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "scopes": [
3
+ "files:read",
4
+ "files:write",
5
+ "chat:write"
6
+ ],
7
+ "trigger_id": "241582872337.47445629121.string",
8
+ "type": "scope_denied"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "scopes": [
3
+ "files:read",
4
+ "files:write",
5
+ "chat:write"
6
+ ],
7
+ "trigger_id": "241582872337.47445629121.string",
8
+ "type": "scope_granted"
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "event_ts": "1360782804.083113",
3
+ "item": {
4
+ },
5
+ "type": "star_added",
6
+ "user": "U024BE7LH"
7
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "event_ts": "1360782804.083113",
3
+ "item": {
4
+ },
5
+ "type": "star_removed",
6
+ "user": "U024BE7LH"
7
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "subteam": {
3
+ "id": "S0615G0KT",
4
+ "team_id": "T060RNRCH",
5
+ "is_usergroup": true,
6
+ "name": "Marketing Team",
7
+ "description": "Marketing gurus, PR experts and product advocates.",
8
+ "handle": "marketing-team",
9
+ "is_external": false,
10
+ "date_create": 1446746793,
11
+ "date_update": 1446746793,
12
+ "date_delete": 0,
13
+ "auto_type": null,
14
+ "created_by": "U060RNRCZ",
15
+ "updated_by": "U060RNRCZ",
16
+ "deleted_by": null,
17
+ "prefs": {
18
+ "channels": [
19
+
20
+ ],
21
+ "groups": [
22
+
23
+ ]
24
+ },
25
+ "user_count": "0"
26
+ },
27
+ "type": "subteam_created"
28
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "added_users": [
3
+ "U060RNRCZ",
4
+ "U060ULRC0",
5
+ "U061309JM"
6
+ ],
7
+ "added_users_count": "3",
8
+ "date_previous_update": 1446670362,
9
+ "date_update": 1492906952,
10
+ "removed_users": [
11
+ "U06129G2V"
12
+ ],
13
+ "removed_users_count": "1",
14
+ "subteam_id": "S0614TZR7",
15
+ "team_id": "T060RNRCH",
16
+ "type": "subteam_members_changed"
17
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "subteam_id": "S0615G0KT",
3
+ "type": "subteam_self_added"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "subteam_id": "S0615G0KT",
3
+ "type": "subteam_self_removed"
4
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "subteam": {
3
+ "id": "S0614TZR7",
4
+ "team_id": "T060RNRCH",
5
+ "is_usergroup": true,
6
+ "name": "Team Admins",
7
+ "description": "A group of all Administrators on your team.",
8
+ "handle": "admins",
9
+ "is_external": false,
10
+ "date_create": 1446598059,
11
+ "date_update": 1446670362,
12
+ "date_delete": 0,
13
+ "auto_type": "admin",
14
+ "created_by": "USLACKBOT",
15
+ "updated_by": "U060RNRCZ",
16
+ "deleted_by": null,
17
+ "prefs": {
18
+ "channels": [
19
+
20
+ ],
21
+ "groups": [
22
+
23
+ ]
24
+ },
25
+ "users": [
26
+ "U060RNRCZ",
27
+ "U060ULRC0",
28
+ "U06129G2V",
29
+ "U061309JM"
30
+ ],
31
+ "user_count": "4"
32
+ },
33
+ "type": "subteam_updated"
34
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "domain": "my",
3
+ "type": "team_domain_change",
4
+ "url": "https://my.slack.com"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "type": "team_join",
3
+ "user": {
4
+ }
5
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "name": "New Team Name Inc.",
3
+ "type": "team_rename"
4
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "tokens": {
3
+ "oauth": [
4
+ "UXXXXXXXX"
5
+ ],
6
+ "bot": [
7
+ "UXXXXXXXX"
8
+ ]
9
+ },
10
+ "type": "tokens_revoked"
11
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
3
+ "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
4
+ "type": "url_verification"
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "type": "user_change",
3
+ "user": {
4
+ }
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "scopes": [
3
+ "reminders:write:user",
4
+ "reminders:read:user"
5
+ ],
6
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
7
+ "type": "user_resource_denied",
8
+ "user": "WXXXXXXXX"
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "scopes": [
3
+ "reminders:write:user",
4
+ "reminders:read:user"
5
+ ],
6
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
7
+ "type": "user_resource_granted",
8
+ "user": "WXXXXXXXX"
9
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
3
+ "type": "user_resource_removed",
4
+ "user": "WXXXXXXXX"
5
+ }
@@ -0,0 +1,2261 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "definitions": {
4
+ "api_app_id": {
5
+ "type": "string"
6
+ },
7
+ "app_mention": {
8
+ "type": "object",
9
+ "description": "learn more: https://api.slack.com/events/app_mention",
10
+ "properties": {
11
+ "channel": {
12
+ "$ref": "#/definitions/channel_id"
13
+ },
14
+ "event_ts": {
15
+ "$ref": "#/definitions/timestamp"
16
+ },
17
+ "text": {
18
+ "type": "string"
19
+ },
20
+ "ts": {
21
+ "$ref": "#/definitions/timestamp"
22
+ },
23
+ "type": {
24
+ "const": "app_mention"
25
+ },
26
+ "user": {
27
+ "$ref": "#/definitions/user_id"
28
+ }
29
+ },
30
+ "example": {
31
+ "channel": "C0LAN2Q65",
32
+ "event_ts": "1515449522000016",
33
+ "text": "<@U0LAN0Z89> is it everything a river should be?",
34
+ "ts": "1515449522.000016",
35
+ "type": "app_mention",
36
+ "user": "U061F7AUR"
37
+ }
38
+ },
39
+ "app_rate_limited": {
40
+ "type": "object",
41
+ "description": "learn more: https://api.slack.com/events/app_rate_limited",
42
+ "properties": {
43
+ "api_app_id": {
44
+ "$ref": "#/definitions/api_app_id"
45
+ },
46
+ "minute_rate_limited": {
47
+ "$ref": "#/definitions/time_integer"
48
+ },
49
+ "team_id": {
50
+ "$ref": "#/definitions/team_id"
51
+ },
52
+ "token": {
53
+ "$ref": "#/definitions/token"
54
+ },
55
+ "type": {
56
+ "const": "app_rate_limited"
57
+ }
58
+ },
59
+ "example": {
60
+ "api_app_id": "A123456",
61
+ "minute_rate_limited": 1518467820,
62
+ "team_id": "T123456",
63
+ "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
64
+ "type": "app_rate_limited"
65
+ }
66
+ },
67
+ "app_uninstalled": {
68
+ "type": "object",
69
+ "description": "learn more: https://api.slack.com/events/app_uninstalled",
70
+ "properties": {
71
+ "type": {
72
+ "const": "app_uninstalled"
73
+ }
74
+ },
75
+ "example": {
76
+ "type": "app_uninstalled"
77
+ }
78
+ },
79
+ "auto_type": {
80
+ "type": "string",
81
+ "description": "The auto_type parameter can be admins for a Workspace Admins group, owners for a Workspace Owners group or null for a custom group.",
82
+ "enum": [
83
+ "admins",
84
+ "owners",
85
+ null
86
+ ]
87
+ },
88
+ "channel": {
89
+ "type": "object",
90
+ "description": "(defined by script)",
91
+ "properties": {
92
+ "created": {
93
+ "$ref": "#/definitions/time_integer"
94
+ },
95
+ "id": {
96
+ "$ref": "#/definitions/channel_id"
97
+ },
98
+ "name": {
99
+ "$ref": "#/definitions/channel_name"
100
+ }
101
+ }
102
+ },
103
+ "channel_archive": {
104
+ "type": "object",
105
+ "description": "learn more: https://api.slack.com/events/channel_archive",
106
+ "properties": {
107
+ "channel": {
108
+ "$ref": "#/definitions/channel_id"
109
+ },
110
+ "type": {
111
+ "const": "channel_archive"
112
+ },
113
+ "user": {
114
+ "$ref": "#/definitions/user_id"
115
+ }
116
+ },
117
+ "example": {
118
+ "channel": "C024BE91L",
119
+ "type": "channel_archive",
120
+ "user": "U024BE7LH"
121
+ }
122
+ },
123
+ "channel_created": {
124
+ "type": "object",
125
+ "description": "learn more: https://api.slack.com/events/channel_created",
126
+ "properties": {
127
+ "channel": {
128
+ "$ref": "#/definitions/channel"
129
+ },
130
+ "type": {
131
+ "const": "channel_created"
132
+ }
133
+ },
134
+ "example": {
135
+ "channel": {
136
+ "id": "C024BE91L",
137
+ "name": "fun",
138
+ "created": 1360782804,
139
+ "creator": "U024BE7LH"
140
+ },
141
+ "type": "channel_created"
142
+ }
143
+ },
144
+ "channel_deleted": {
145
+ "type": "object",
146
+ "description": "learn more: https://api.slack.com/events/channel_deleted",
147
+ "properties": {
148
+ "channel": {
149
+ "$ref": "#/definitions/channel_id"
150
+ },
151
+ "type": {
152
+ "const": "channel_deleted"
153
+ }
154
+ },
155
+ "example": {
156
+ "channel": "C024BE91L",
157
+ "type": "channel_deleted"
158
+ }
159
+ },
160
+ "channel_history_changed": {
161
+ "type": "object",
162
+ "description": "learn more: https://api.slack.com/events/channel_history_changed",
163
+ "properties": {
164
+ "event_ts": {
165
+ "$ref": "#/definitions/timestamp"
166
+ },
167
+ "latest": {
168
+ "$ref": "#/definitions/timestamp"
169
+ },
170
+ "ts": {
171
+ "$ref": "#/definitions/timestamp"
172
+ },
173
+ "type": {
174
+ "const": "channel_history_changed"
175
+ }
176
+ },
177
+ "example": {
178
+ "event_ts": "1361482916.000004",
179
+ "latest": "1358877455.000010",
180
+ "ts": "1361482916.000003",
181
+ "type": "channel_history_changed"
182
+ }
183
+ },
184
+ "channel_id": {
185
+ "type": "string"
186
+ },
187
+ "channel_left": {
188
+ "type": "object",
189
+ "description": "learn more: https://api.slack.com/events/channel_left",
190
+ "properties": {
191
+ "channel": {
192
+ "$ref": "#/definitions/channel_id"
193
+ },
194
+ "type": {
195
+ "const": "channel_left"
196
+ }
197
+ },
198
+ "example": {
199
+ "channel": "C024BE91L",
200
+ "type": "channel_left"
201
+ }
202
+ },
203
+ "channel_name": {
204
+ "type": "string"
205
+ },
206
+ "channel_rename": {
207
+ "type": "object",
208
+ "description": "learn more: https://api.slack.com/events/channel_rename",
209
+ "properties": {
210
+ "channel": {
211
+ "$ref": "#/definitions/channel"
212
+ },
213
+ "type": {
214
+ "const": "channel_rename"
215
+ }
216
+ },
217
+ "example": {
218
+ "channel": {
219
+ "id": "C02ELGNBH",
220
+ "name": "new_name",
221
+ "created": 1360782804
222
+ },
223
+ "type": "channel_rename"
224
+ }
225
+ },
226
+ "channel_type": {
227
+ "type": [
228
+ "null",
229
+ "string"
230
+ ],
231
+ "enum": [
232
+ null,
233
+ "app_home",
234
+ "channel",
235
+ "group",
236
+ "im",
237
+ "mpim"
238
+ ]
239
+ },
240
+ "channel_unarchive": {
241
+ "type": "object",
242
+ "description": "learn more: https://api.slack.com/events/channel_unarchive",
243
+ "properties": {
244
+ "channel": {
245
+ "$ref": "#/definitions/channel_id"
246
+ },
247
+ "type": {
248
+ "const": "channel_unarchive"
249
+ },
250
+ "user": {
251
+ "$ref": "#/definitions/user_id"
252
+ }
253
+ },
254
+ "example": {
255
+ "channel": "C024BE91L",
256
+ "type": "channel_unarchive",
257
+ "user": "U024BE7LH"
258
+ }
259
+ },
260
+ "comment": {
261
+ "type": "object",
262
+ "description": "definition snipped. learn more: https://api.slack.com/events/file_comment_added",
263
+ "properties": {
264
+ }
265
+ },
266
+ "comment_id": {
267
+ "type": "string"
268
+ },
269
+ "dnd_status": {
270
+ "type": "object",
271
+ "description": "(defined by script)",
272
+ "properties": {
273
+ "dnd_enabled": {
274
+ "type": "boolean"
275
+ },
276
+ "next_dnd_end_ts": {
277
+ "$ref": "#/definitions/time_integer"
278
+ },
279
+ "next_dnd_start_ts": {
280
+ "$ref": "#/definitions/time_integer"
281
+ }
282
+ }
283
+ },
284
+ "dnd_updated": {
285
+ "type": "object",
286
+ "description": "learn more: https://api.slack.com/events/dnd_updated",
287
+ "properties": {
288
+ "dnd_status": {
289
+ "$ref": "#/definitions/dnd_status"
290
+ },
291
+ "type": {
292
+ "const": "dnd_updated"
293
+ },
294
+ "user": {
295
+ "$ref": "#/definitions/user_id"
296
+ }
297
+ },
298
+ "example": {
299
+ "dnd_status": {
300
+ "dnd_enabled": true,
301
+ "next_dnd_start_ts": 1450387800,
302
+ "next_dnd_end_ts": 1450423800,
303
+ "snooze_enabled": true,
304
+ "snooze_endtime": 1450373897
305
+ },
306
+ "type": "dnd_updated",
307
+ "user": "U1234"
308
+ }
309
+ },
310
+ "dnd_updated_user": {
311
+ "type": "object",
312
+ "description": "learn more: https://api.slack.com/events/dnd_updated_user",
313
+ "properties": {
314
+ "dnd_status": {
315
+ "$ref": "#/definitions/dnd_status"
316
+ },
317
+ "type": {
318
+ "const": "dnd_updated_user"
319
+ },
320
+ "user": {
321
+ "$ref": "#/definitions/user_id"
322
+ }
323
+ },
324
+ "example": {
325
+ "dnd_status": {
326
+ "dnd_enabled": true,
327
+ "next_dnd_start_ts": 1450387800,
328
+ "next_dnd_end_ts": 1450423800
329
+ },
330
+ "type": "dnd_updated_user",
331
+ "user": "U1234"
332
+ }
333
+ },
334
+ "email_domain_changed": {
335
+ "type": "object",
336
+ "description": "learn more: https://api.slack.com/events/email_domain_changed",
337
+ "properties": {
338
+ "email_domain": {
339
+ "type": "string"
340
+ },
341
+ "event_ts": {
342
+ "$ref": "#/definitions/timestamp"
343
+ },
344
+ "type": {
345
+ "const": "email_domain_changed"
346
+ }
347
+ },
348
+ "example": {
349
+ "email_domain": "example.com",
350
+ "event_ts": "1360782804.083113",
351
+ "type": "email_domain_changed"
352
+ }
353
+ },
354
+ "emoji_changed": {
355
+ "type": "object",
356
+ "description": "learn more: https://api.slack.com/events/emoji_changed",
357
+ "properties": {
358
+ "event_ts": {
359
+ "$ref": "#/definitions/timestamp"
360
+ },
361
+ "name": {
362
+ "$ref": "#/definitions/emoji_name"
363
+ },
364
+ "names": {
365
+ "type": "array",
366
+ "items": {
367
+ "$ref": "#/definitions/emoji_name"
368
+ }
369
+ },
370
+ "subtype": {
371
+ "$ref": "#/definitions/emoji_subtype"
372
+ },
373
+ "type": {
374
+ "const": "emoji_changed"
375
+ },
376
+ "value": {
377
+ "$ref": "#/definitions/emoji_value"
378
+ }
379
+ },
380
+ "example": {
381
+ "event_ts": "1361482916.000004",
382
+ "name": "picard_facepalm",
383
+ "subtype": "add",
384
+ "type": "emoji_changed",
385
+ "value": "https://my.slack.com/emoji/picard_facepalm/db8e287430eaa459.gif"
386
+ }
387
+ },
388
+ "emoji_changed.add": {
389
+ "type": "object",
390
+ "description": "learn more: https://api.slack.com/events/emoji_changed",
391
+ "properties": {
392
+ "event_ts": {
393
+ "$ref": "#/definitions/timestamp"
394
+ },
395
+ "name": {
396
+ "$ref": "#/definitions/emoji_name"
397
+ },
398
+ "subtype": {
399
+ "const": "add"
400
+ },
401
+ "type": {
402
+ "const": "emoji_changed"
403
+ },
404
+ "value": {
405
+ "$ref": "#/definitions/emoji_value"
406
+ }
407
+ },
408
+ "example": {
409
+ "event_ts": "1361482916.000004",
410
+ "name": "picard_facepalm",
411
+ "subtype": "add",
412
+ "type": "emoji_changed",
413
+ "value": "https://my.slack.com/emoji/picard_facepalm/db8e287430eaa459.gif"
414
+ }
415
+ },
416
+ "emoji_changed.remove": {
417
+ "type": "object",
418
+ "description": "learn more: https://api.slack.com/events/emoji_changed",
419
+ "properties": {
420
+ "event_ts": {
421
+ "$ref": "#/definitions/timestamp"
422
+ },
423
+ "names": {
424
+ "type": "array",
425
+ "items": {
426
+ "$ref": "#/definitions/emoji_name"
427
+ }
428
+ },
429
+ "subtype": {
430
+ "const": "remove"
431
+ },
432
+ "type": {
433
+ "const": "emoji_changed"
434
+ }
435
+ },
436
+ "example": {
437
+ "event_ts": "1361482916.000004",
438
+ "names": [
439
+ "picard_facepalm"
440
+ ],
441
+ "subtype": "remove",
442
+ "type": "emoji_changed"
443
+ }
444
+ },
445
+ "emoji_changed_subtype": {
446
+ "type": "string",
447
+ "enum": [
448
+ "add",
449
+ "remove"
450
+ ]
451
+ },
452
+ "emoji_name": {
453
+ "type": [
454
+ "null",
455
+ "string"
456
+ ]
457
+ },
458
+ "emoji_subtype": {
459
+ "type": "string",
460
+ "enum": [
461
+ "add",
462
+ "remove"
463
+ ]
464
+ },
465
+ "emoji_value": {
466
+ "type": [
467
+ "null",
468
+ "string"
469
+ ]
470
+ },
471
+ "enterprise_id": {
472
+ "type": "string"
473
+ },
474
+ "event": {
475
+ "type": "object",
476
+ "description": "definition snipped. learn more: ",
477
+ "properties": {
478
+ }
479
+ },
480
+ "event_callback": {
481
+ "type": "object",
482
+ "description": "learn more: ",
483
+ "properties": {
484
+ "api_app_id": {
485
+ "$ref": "#/definitions/api_app_id"
486
+ },
487
+ "authed_users": {
488
+ "type": "array",
489
+ "items": {
490
+ "$ref": "#/definitions/user_id"
491
+ }
492
+ },
493
+ "event": {
494
+ "$ref": "#/definitions/event"
495
+ },
496
+ "event_id": {
497
+ "$ref": "#/definitions/event_id"
498
+ },
499
+ "event_time": {
500
+ "$ref": "#/definitions/time_integer"
501
+ },
502
+ "team_id": {
503
+ "$ref": "#/definitions/team_id"
504
+ },
505
+ "token": {
506
+ "$ref": "#/definitions/token"
507
+ },
508
+ "type": {
509
+ "const": "event_callback"
510
+ }
511
+ },
512
+ "example": {
513
+ "api_app_id": "AXXXXXXXXX",
514
+ "authed_users": [
515
+ "UXXXXXXX1",
516
+ "UXXXXXXX2"
517
+ ],
518
+ "event": {
519
+ },
520
+ "event_id": "Ev08MFMKH6",
521
+ "event_time": 1234567890,
522
+ "team_id": "TXXXXXXXX",
523
+ "token": "XXYYZZ",
524
+ "type": "event_callback"
525
+ }
526
+ },
527
+ "event_id": {
528
+ "type": "string"
529
+ },
530
+ "file": {
531
+ "type": "object",
532
+ "description": "(defined by script)",
533
+ "properties": {
534
+ "id": {
535
+ "$ref": "#/definitions/file_id"
536
+ }
537
+ }
538
+ },
539
+ "file_change": {
540
+ "type": "object",
541
+ "description": "learn more: https://api.slack.com/events/file_change",
542
+ "properties": {
543
+ "file": {
544
+ "$ref": "#/definitions/file"
545
+ },
546
+ "file_id": {
547
+ "$ref": "#/definitions/file_id"
548
+ },
549
+ "type": {
550
+ "const": "file_change"
551
+ }
552
+ },
553
+ "example": {
554
+ "file": {
555
+ "id": "F2147483862"
556
+ },
557
+ "file_id": "F2147483862",
558
+ "type": "file_change"
559
+ }
560
+ },
561
+ "file_comment_added": {
562
+ "type": "object",
563
+ "description": "learn more: https://api.slack.com/events/file_comment_added",
564
+ "properties": {
565
+ "comment": {
566
+ "$ref": "#/definitions/comment"
567
+ },
568
+ "file": {
569
+ "$ref": "#/definitions/file"
570
+ },
571
+ "file_id": {
572
+ "$ref": "#/definitions/file_id"
573
+ },
574
+ "type": {
575
+ "const": "file_comment_added"
576
+ }
577
+ },
578
+ "example": {
579
+ "comment": {
580
+ },
581
+ "file": {
582
+ "id": "F2147483862"
583
+ },
584
+ "file_id": "F2147483862",
585
+ "type": "file_comment_added"
586
+ }
587
+ },
588
+ "file_comment_deleted": {
589
+ "type": "object",
590
+ "description": "learn more: https://api.slack.com/events/file_comment_deleted",
591
+ "properties": {
592
+ "comment": {
593
+ "$ref": "#/definitions/comment_id"
594
+ },
595
+ "file": {
596
+ "$ref": "#/definitions/file"
597
+ },
598
+ "file_id": {
599
+ "$ref": "#/definitions/file_id"
600
+ },
601
+ "type": {
602
+ "const": "file_comment_deleted"
603
+ }
604
+ },
605
+ "example": {
606
+ "comment": "Fc67890",
607
+ "file": {
608
+ "id": "F2147483862"
609
+ },
610
+ "file_id": "F2147483862",
611
+ "type": "file_comment_deleted"
612
+ }
613
+ },
614
+ "file_comment_edited": {
615
+ "type": "object",
616
+ "description": "learn more: https://api.slack.com/events/file_comment_edited",
617
+ "properties": {
618
+ "comment": {
619
+ "$ref": "#/definitions/comment"
620
+ },
621
+ "file": {
622
+ "$ref": "#/definitions/file"
623
+ },
624
+ "file_id": {
625
+ "$ref": "#/definitions/file_id"
626
+ },
627
+ "type": {
628
+ "const": "file_comment_edited"
629
+ }
630
+ },
631
+ "example": {
632
+ "comment": {
633
+ },
634
+ "file": {
635
+ "id": "F2147483862"
636
+ },
637
+ "file_id": "F2147483862",
638
+ "type": "file_comment_edited"
639
+ }
640
+ },
641
+ "file_created": {
642
+ "type": "object",
643
+ "description": "learn more: https://api.slack.com/events/file_created",
644
+ "properties": {
645
+ "file": {
646
+ "$ref": "#/definitions/file"
647
+ },
648
+ "file_id": {
649
+ "$ref": "#/definitions/file_id"
650
+ },
651
+ "type": {
652
+ "const": "file_created"
653
+ }
654
+ },
655
+ "example": {
656
+ "file": {
657
+ "id": "F2147483862"
658
+ },
659
+ "file_id": "F2147483862",
660
+ "type": "file_created"
661
+ }
662
+ },
663
+ "file_deleted": {
664
+ "type": "object",
665
+ "description": "learn more: https://api.slack.com/events/file_deleted",
666
+ "properties": {
667
+ "event_ts": {
668
+ "$ref": "#/definitions/timestamp"
669
+ },
670
+ "file_id": {
671
+ "$ref": "#/definitions/file_id"
672
+ },
673
+ "type": {
674
+ "const": "file_deleted"
675
+ }
676
+ },
677
+ "example": {
678
+ "event_ts": "1361482916.000004",
679
+ "file_id": "F2147483862",
680
+ "type": "file_deleted"
681
+ }
682
+ },
683
+ "file_id": {
684
+ "type": "string"
685
+ },
686
+ "file_public": {
687
+ "type": "object",
688
+ "description": "learn more: https://api.slack.com/events/file_public",
689
+ "properties": {
690
+ "file": {
691
+ "$ref": "#/definitions/file"
692
+ },
693
+ "file_id": {
694
+ "$ref": "#/definitions/file_id"
695
+ },
696
+ "type": {
697
+ "const": "file_public"
698
+ }
699
+ },
700
+ "example": {
701
+ "file": {
702
+ "id": "F2147483862"
703
+ },
704
+ "file_id": "F2147483862",
705
+ "type": "file_public"
706
+ }
707
+ },
708
+ "file_shared": {
709
+ "type": "object",
710
+ "description": "learn more: https://api.slack.com/events/file_shared",
711
+ "properties": {
712
+ "file": {
713
+ "$ref": "#/definitions/file"
714
+ },
715
+ "file_id": {
716
+ "$ref": "#/definitions/file_id"
717
+ },
718
+ "type": {
719
+ "const": "file_shared"
720
+ }
721
+ },
722
+ "example": {
723
+ "file": {
724
+ "id": "F2147483862"
725
+ },
726
+ "file_id": "F2147483862",
727
+ "type": "file_shared"
728
+ }
729
+ },
730
+ "file_unshared": {
731
+ "type": "object",
732
+ "description": "learn more: https://api.slack.com/events/file_unshared",
733
+ "properties": {
734
+ "file": {
735
+ "$ref": "#/definitions/file"
736
+ },
737
+ "file_id": {
738
+ "$ref": "#/definitions/file_id"
739
+ },
740
+ "type": {
741
+ "const": "file_unshared"
742
+ }
743
+ },
744
+ "example": {
745
+ "file": {
746
+ "id": "F2147483862"
747
+ },
748
+ "file_id": "F2147483862",
749
+ "type": "file_unshared"
750
+ }
751
+ },
752
+ "grant": {
753
+ "type": "object",
754
+ "description": "(defined by script)",
755
+ "properties": {
756
+ "resource_id": {
757
+ "$ref": "#/definitions/resource_id"
758
+ },
759
+ "type": {
760
+ "$ref": "#/definitions/grant_type"
761
+ }
762
+ }
763
+ },
764
+ "grant_type": {
765
+ "type": "string"
766
+ },
767
+ "grid_migration_finished": {
768
+ "type": "object",
769
+ "description": "learn more: https://api.slack.com/events/grid_migration_finished",
770
+ "properties": {
771
+ "enterprise_id": {
772
+ "$ref": "#/definitions/enterprise_id"
773
+ },
774
+ "type": {
775
+ "const": "grid_migration_finished"
776
+ }
777
+ },
778
+ "example": {
779
+ "enterprise_id": "EXXXXXXXX",
780
+ "type": "grid_migration_finished"
781
+ }
782
+ },
783
+ "grid_migration_started": {
784
+ "type": "object",
785
+ "description": "learn more: https://api.slack.com/events/grid_migration_started",
786
+ "properties": {
787
+ "enterprise_id": {
788
+ "$ref": "#/definitions/enterprise_id"
789
+ },
790
+ "type": {
791
+ "const": "grid_migration_started"
792
+ }
793
+ },
794
+ "example": {
795
+ "enterprise_id": "EXXXXXXXX",
796
+ "type": "grid_migration_started"
797
+ }
798
+ },
799
+ "group_archive": {
800
+ "type": "object",
801
+ "description": "learn more: https://api.slack.com/events/group_archive",
802
+ "properties": {
803
+ "channel": {
804
+ "$ref": "#/definitions/channel_id"
805
+ },
806
+ "type": {
807
+ "const": "group_archive"
808
+ }
809
+ },
810
+ "example": {
811
+ "channel": "G024BE91L",
812
+ "type": "group_archive"
813
+ }
814
+ },
815
+ "group_close": {
816
+ "type": "object",
817
+ "description": "learn more: https://api.slack.com/events/group_close",
818
+ "properties": {
819
+ "channel": {
820
+ "$ref": "#/definitions/channel_id"
821
+ },
822
+ "type": {
823
+ "const": "group_close"
824
+ },
825
+ "user": {
826
+ "$ref": "#/definitions/user_id"
827
+ }
828
+ },
829
+ "example": {
830
+ "channel": "G024BE91L",
831
+ "type": "group_close",
832
+ "user": "U024BE7LH"
833
+ }
834
+ },
835
+ "group_deleted": {
836
+ "type": "object",
837
+ "description": "learn more: https://api.slack.com/events/group_deleted",
838
+ "properties": {
839
+ "channel": {
840
+ "$ref": "#/definitions/channel_id"
841
+ },
842
+ "type": {
843
+ "const": "group_deleted"
844
+ }
845
+ },
846
+ "example": {
847
+ "channel": "G0QN9RGTT",
848
+ "type": "group_deleted"
849
+ }
850
+ },
851
+ "group_history_changed": {
852
+ "type": "object",
853
+ "description": "learn more: https://api.slack.com/events/group_history_changed",
854
+ "properties": {
855
+ "event_ts": {
856
+ "$ref": "#/definitions/timestamp"
857
+ },
858
+ "latest": {
859
+ "$ref": "#/definitions/timestamp"
860
+ },
861
+ "ts": {
862
+ "$ref": "#/definitions/timestamp"
863
+ },
864
+ "type": {
865
+ "const": "group_history_changed"
866
+ }
867
+ },
868
+ "example": {
869
+ "event_ts": "1361482916.000004",
870
+ "latest": "1358877455.000010",
871
+ "ts": "1361482916.000003",
872
+ "type": "group_history_changed"
873
+ }
874
+ },
875
+ "group_id": {
876
+ "type": "string"
877
+ },
878
+ "group_left": {
879
+ "type": "object",
880
+ "description": "learn more: https://api.slack.com/events/group_left",
881
+ "properties": {
882
+ "channel": {
883
+ "$ref": "#/definitions/channel_id"
884
+ },
885
+ "type": {
886
+ "const": "group_left"
887
+ }
888
+ },
889
+ "example": {
890
+ "channel": "G02ELGNBH",
891
+ "type": "group_left"
892
+ }
893
+ },
894
+ "group_open": {
895
+ "type": "object",
896
+ "description": "learn more: https://api.slack.com/events/group_open",
897
+ "properties": {
898
+ "channel": {
899
+ "$ref": "#/definitions/channel_id"
900
+ },
901
+ "type": {
902
+ "const": "group_open"
903
+ },
904
+ "user": {
905
+ "$ref": "#/definitions/user_id"
906
+ }
907
+ },
908
+ "example": {
909
+ "channel": "G024BE91L",
910
+ "type": "group_open",
911
+ "user": "U024BE7LH"
912
+ }
913
+ },
914
+ "group_rename": {
915
+ "type": "object",
916
+ "description": "learn more: https://api.slack.com/events/group_rename",
917
+ "properties": {
918
+ "channel": {
919
+ "$ref": "#/definitions/channel"
920
+ },
921
+ "type": {
922
+ "const": "group_rename"
923
+ }
924
+ },
925
+ "example": {
926
+ "channel": {
927
+ "id": "G02ELGNBH",
928
+ "name": "new_name",
929
+ "created": 1360782804
930
+ },
931
+ "type": "group_rename"
932
+ }
933
+ },
934
+ "group_unarchive": {
935
+ "type": "object",
936
+ "description": "learn more: https://api.slack.com/events/group_unarchive",
937
+ "properties": {
938
+ "channel": {
939
+ "$ref": "#/definitions/channel_id"
940
+ },
941
+ "type": {
942
+ "const": "group_unarchive"
943
+ }
944
+ },
945
+ "example": {
946
+ "channel": "G024BE91L",
947
+ "type": "group_unarchive"
948
+ }
949
+ },
950
+ "im_close": {
951
+ "type": "object",
952
+ "description": "learn more: https://api.slack.com/events/im_close",
953
+ "properties": {
954
+ "channel": {
955
+ "$ref": "#/definitions/channel_id"
956
+ },
957
+ "type": {
958
+ "const": "im_close"
959
+ },
960
+ "user": {
961
+ "$ref": "#/definitions/user_id"
962
+ }
963
+ },
964
+ "example": {
965
+ "channel": "D024BE91L",
966
+ "type": "im_close",
967
+ "user": "U024BE7LH"
968
+ }
969
+ },
970
+ "im_created": {
971
+ "type": "object",
972
+ "description": "learn more: https://api.slack.com/events/im_created",
973
+ "properties": {
974
+ "channel": {
975
+ "$ref": "#/definitions/channel"
976
+ },
977
+ "type": {
978
+ "const": "im_created"
979
+ },
980
+ "user": {
981
+ "$ref": "#/definitions/user_id"
982
+ }
983
+ },
984
+ "example": {
985
+ "channel": {
986
+ },
987
+ "type": "im_created",
988
+ "user": "U024BE7LH"
989
+ }
990
+ },
991
+ "im_history_changed": {
992
+ "type": "object",
993
+ "description": "learn more: https://api.slack.com/events/im_history_changed",
994
+ "properties": {
995
+ "event_ts": {
996
+ "$ref": "#/definitions/timestamp"
997
+ },
998
+ "latest": {
999
+ "$ref": "#/definitions/timestamp"
1000
+ },
1001
+ "ts": {
1002
+ "$ref": "#/definitions/timestamp"
1003
+ },
1004
+ "type": {
1005
+ "const": "im_history_changed"
1006
+ }
1007
+ },
1008
+ "example": {
1009
+ "event_ts": "1361482916.000004",
1010
+ "latest": "1358877455.000010",
1011
+ "ts": "1361482916.000003",
1012
+ "type": "im_history_changed"
1013
+ }
1014
+ },
1015
+ "im_open": {
1016
+ "type": "object",
1017
+ "description": "learn more: https://api.slack.com/events/im_open",
1018
+ "properties": {
1019
+ "channel": {
1020
+ "$ref": "#/definitions/channel_id"
1021
+ },
1022
+ "type": {
1023
+ "const": "im_open"
1024
+ },
1025
+ "user": {
1026
+ "$ref": "#/definitions/user_id"
1027
+ }
1028
+ },
1029
+ "example": {
1030
+ "channel": "D024BE91L",
1031
+ "type": "im_open",
1032
+ "user": "U024BE7LH"
1033
+ }
1034
+ },
1035
+ "link": {
1036
+ "type": "object",
1037
+ "description": "(defined by script)",
1038
+ "properties": {
1039
+ "domain": {
1040
+ "type": "string"
1041
+ },
1042
+ "url": {
1043
+ "type": "string"
1044
+ }
1045
+ }
1046
+ },
1047
+ "link_shared": {
1048
+ "type": "object",
1049
+ "description": "learn more: https://api.slack.com/events/link_shared",
1050
+ "properties": {
1051
+ "channel": {
1052
+ "$ref": "#/definitions/channel_id"
1053
+ },
1054
+ "links": {
1055
+ "type": "array",
1056
+ "items": {
1057
+ "$ref": "#/definitions/link"
1058
+ }
1059
+ },
1060
+ "message_ts": {
1061
+ "$ref": "#/definitions/timestamp"
1062
+ },
1063
+ "thread_ts": {
1064
+ "$ref": "#/definitions/timestamp"
1065
+ },
1066
+ "type": {
1067
+ "const": "link_shared"
1068
+ },
1069
+ "user": {
1070
+ "$ref": "#/definitions/user_id"
1071
+ }
1072
+ },
1073
+ "example": {
1074
+ "channel": "Cxxxxxx",
1075
+ "links": [
1076
+ {
1077
+ "domain": "example.com",
1078
+ "url": "https://example.com/12345"
1079
+ },
1080
+ {
1081
+ "domain": "example.com",
1082
+ "url": "https://example.com/67890"
1083
+ },
1084
+ {
1085
+ "domain": "another-example.com",
1086
+ "url": "https://yet.another-example.com/v/abcde"
1087
+ }
1088
+ ],
1089
+ "message_ts": "123456789.9875",
1090
+ "thread_ts": "123456621.1855",
1091
+ "type": "link_shared",
1092
+ "user": "Uxxxxxxx"
1093
+ }
1094
+ },
1095
+ "member_joined_channel": {
1096
+ "type": "object",
1097
+ "description": "learn more: https://api.slack.com/events/member_joined_channel",
1098
+ "properties": {
1099
+ "channel": {
1100
+ "$ref": "#/definitions/channel_id"
1101
+ },
1102
+ "channel_type": {
1103
+ "const": "C"
1104
+ },
1105
+ "inviter": {
1106
+ "$ref": "#/definitions/user_id"
1107
+ },
1108
+ "team": {
1109
+ "$ref": "#/definitions/team_id"
1110
+ },
1111
+ "type": {
1112
+ "const": "member_joined_channel"
1113
+ },
1114
+ "user": {
1115
+ "$ref": "#/definitions/user_id"
1116
+ }
1117
+ },
1118
+ "example": {
1119
+ "channel": "C0698JE0H",
1120
+ "channel_type": "C",
1121
+ "inviter": "U123456789",
1122
+ "team": "T024BE7LD",
1123
+ "type": "member_joined_channel",
1124
+ "user": "W06GH7XHN"
1125
+ }
1126
+ },
1127
+ "member_left_channel": {
1128
+ "type": "object",
1129
+ "description": "learn more: https://api.slack.com/events/member_left_channel",
1130
+ "properties": {
1131
+ "channel": {
1132
+ "$ref": "#/definitions/channel_id"
1133
+ },
1134
+ "channel_type": {
1135
+ "const": "C"
1136
+ },
1137
+ "team": {
1138
+ "$ref": "#/definitions/team_id"
1139
+ },
1140
+ "type": {
1141
+ "const": "member_left_channel"
1142
+ },
1143
+ "user": {
1144
+ "$ref": "#/definitions/user_id"
1145
+ }
1146
+ },
1147
+ "example": {
1148
+ "channel": "C0698JE0H",
1149
+ "channel_type": "C",
1150
+ "team": "T024BE7LD",
1151
+ "type": "member_left_channel",
1152
+ "user": "W06GH7XHN"
1153
+ }
1154
+ },
1155
+ "message": {
1156
+ "type": "object",
1157
+ "description": "learn more: https://api.slack.com/events/message",
1158
+ "properties": {
1159
+ "channel": {
1160
+ "$ref": "#/definitions/channel"
1161
+ },
1162
+ "channel_type": {
1163
+ "$ref": "#/definitions/channel_type"
1164
+ },
1165
+ "event_ts": {
1166
+ "$ref": "#/definitions/timestamp"
1167
+ },
1168
+ "text": {
1169
+ "type": "string"
1170
+ },
1171
+ "ts": {
1172
+ "$ref": "#/definitions/ts"
1173
+ },
1174
+ "type": {
1175
+ "const": "message"
1176
+ },
1177
+ "user": {
1178
+ "$ref": "#/definitions/user"
1179
+ }
1180
+ },
1181
+ "example": {
1182
+ "channel": "D0PNCRP9N",
1183
+ "channel_type": "app_home",
1184
+ "event_ts": "1525215129.000001",
1185
+ "text": "How many cats did we herd yesterday?",
1186
+ "ts": "1525215129.000001",
1187
+ "type": "message",
1188
+ "user": "U061F7AUR"
1189
+ }
1190
+ },
1191
+ "message.app_home": {
1192
+ "type": "object",
1193
+ "description": "learn more: https://api.slack.com/events/message.app_home",
1194
+ "properties": {
1195
+ "channel": {
1196
+ "$ref": "#/definitions/channel_id"
1197
+ },
1198
+ "channel_type": {
1199
+ "const": "app_home"
1200
+ },
1201
+ "event_ts": {
1202
+ "$ref": "#/definitions/timestamp"
1203
+ },
1204
+ "text": {
1205
+ "type": "string"
1206
+ },
1207
+ "ts": {
1208
+ "$ref": "#/definitions/timestamp"
1209
+ },
1210
+ "type": {
1211
+ "const": "message"
1212
+ },
1213
+ "user": {
1214
+ "$ref": "#/definitions/user_id"
1215
+ }
1216
+ },
1217
+ "example": {
1218
+ "channel": "D0PNCRP9N",
1219
+ "channel_type": "app_home",
1220
+ "event_ts": "1525215129.000001",
1221
+ "text": "How many cats did we herd yesterday?",
1222
+ "ts": "1525215129.000001",
1223
+ "type": "message",
1224
+ "user": "U061F7AUR"
1225
+ }
1226
+ },
1227
+ "message.channels": {
1228
+ "type": "object",
1229
+ "description": "learn more: https://api.slack.com/events/message.channels",
1230
+ "properties": {
1231
+ "channel": {
1232
+ "$ref": "#/definitions/channel_id"
1233
+ },
1234
+ "channel_type": {
1235
+ "const": "channel"
1236
+ },
1237
+ "event_ts": {
1238
+ "$ref": "#/definitions/timestamp"
1239
+ },
1240
+ "text": {
1241
+ "type": "string"
1242
+ },
1243
+ "ts": {
1244
+ "$ref": "#/definitions/timestamp"
1245
+ },
1246
+ "type": {
1247
+ "const": "message"
1248
+ },
1249
+ "user": {
1250
+ "$ref": "#/definitions/user_id"
1251
+ }
1252
+ },
1253
+ "example": {
1254
+ "channel": "C024BE91L",
1255
+ "channel_type": "channel",
1256
+ "event_ts": "1355517523.000005",
1257
+ "text": "Live long and prospect.",
1258
+ "ts": "1355517523.000005",
1259
+ "type": "message",
1260
+ "user": "U2147483697"
1261
+ }
1262
+ },
1263
+ "message.groups": {
1264
+ "type": "object",
1265
+ "description": "learn more: https://api.slack.com/events/message.groups",
1266
+ "properties": {
1267
+ "channel": {
1268
+ "$ref": "#/definitions/channel_id"
1269
+ },
1270
+ "channel_type": {
1271
+ "const": "group"
1272
+ },
1273
+ "event_ts": {
1274
+ "$ref": "#/definitions/timestamp"
1275
+ },
1276
+ "text": {
1277
+ "type": "string"
1278
+ },
1279
+ "ts": {
1280
+ "$ref": "#/definitions/timestamp"
1281
+ },
1282
+ "type": {
1283
+ "const": "message"
1284
+ },
1285
+ "user": {
1286
+ "$ref": "#/definitions/user_id"
1287
+ }
1288
+ },
1289
+ "example": {
1290
+ "channel": "G024BE91L",
1291
+ "channel_type": "group",
1292
+ "event_ts": "1355517523.000005",
1293
+ "text": "One cannot programmatically detect the difference between `message.mpim` and `message.groups`.",
1294
+ "ts": "1355517523.000005",
1295
+ "type": "message",
1296
+ "user": "U2147483697"
1297
+ }
1298
+ },
1299
+ "message.im": {
1300
+ "type": "object",
1301
+ "description": "learn more: https://api.slack.com/events/message.im",
1302
+ "properties": {
1303
+ "channel": {
1304
+ "$ref": "#/definitions/channel_id"
1305
+ },
1306
+ "channel_type": {
1307
+ "const": "im"
1308
+ },
1309
+ "event_ts": {
1310
+ "$ref": "#/definitions/timestamp"
1311
+ },
1312
+ "text": {
1313
+ "type": "string"
1314
+ },
1315
+ "ts": {
1316
+ "$ref": "#/definitions/timestamp"
1317
+ },
1318
+ "type": {
1319
+ "const": "message"
1320
+ },
1321
+ "user": {
1322
+ "$ref": "#/definitions/user_id"
1323
+ }
1324
+ },
1325
+ "example": {
1326
+ "channel": "D024BE91L",
1327
+ "channel_type": "im",
1328
+ "event_ts": "1355517523.000005",
1329
+ "text": "Hello hello can you hear me?",
1330
+ "ts": "1355517523.000005",
1331
+ "type": "message",
1332
+ "user": "U2147483697"
1333
+ }
1334
+ },
1335
+ "message.mpim": {
1336
+ "type": "object",
1337
+ "description": "learn more: https://api.slack.com/events/message.mpim",
1338
+ "properties": {
1339
+ "channel": {
1340
+ "$ref": "#/definitions/channel_id"
1341
+ },
1342
+ "channel_type": {
1343
+ "const": "mpim"
1344
+ },
1345
+ "event_ts": {
1346
+ "$ref": "#/definitions/timestamp"
1347
+ },
1348
+ "text": {
1349
+ "type": "string"
1350
+ },
1351
+ "ts": {
1352
+ "$ref": "#/definitions/timestamp"
1353
+ },
1354
+ "type": {
1355
+ "const": "message"
1356
+ },
1357
+ "user": {
1358
+ "$ref": "#/definitions/user_id"
1359
+ }
1360
+ },
1361
+ "example": {
1362
+ "channel": "G024BE91L",
1363
+ "channel_type": "mpim",
1364
+ "event_ts": "1355517523.000005",
1365
+ "text": "Let's make a pact.",
1366
+ "ts": "1355517523.000005",
1367
+ "type": "message",
1368
+ "user": "U2147483697"
1369
+ }
1370
+ },
1371
+ "pin_added": {
1372
+ "type": "object",
1373
+ "description": "learn more: https://api.slack.com/events/pin_added",
1374
+ "properties": {
1375
+ "channel_id": {
1376
+ "$ref": "#/definitions/channel_id"
1377
+ },
1378
+ "event_ts": {
1379
+ "$ref": "#/definitions/timestamp"
1380
+ },
1381
+ "item": {
1382
+ "$ref": "#/definitions/pin_item"
1383
+ },
1384
+ "type": {
1385
+ "const": "pin_added"
1386
+ },
1387
+ "user": {
1388
+ "$ref": "#/definitions/user_id"
1389
+ }
1390
+ },
1391
+ "example": {
1392
+ "channel_id": "C02ELGNBH",
1393
+ "event_ts": "1360782804.083113",
1394
+ "item": {
1395
+ },
1396
+ "type": "pin_added",
1397
+ "user": "U024BE7LH"
1398
+ }
1399
+ },
1400
+ "pin_item": {
1401
+ "type": "object",
1402
+ "description": "definition snipped. learn more: https://api.slack.com/events/pin_removed",
1403
+ "properties": {
1404
+ }
1405
+ },
1406
+ "pin_removed": {
1407
+ "type": "object",
1408
+ "description": "learn more: https://api.slack.com/events/pin_removed",
1409
+ "properties": {
1410
+ "channel_id": {
1411
+ "$ref": "#/definitions/channel_id"
1412
+ },
1413
+ "event_ts": {
1414
+ "$ref": "#/definitions/timestamp"
1415
+ },
1416
+ "has_pins": {
1417
+ "type": "boolean"
1418
+ },
1419
+ "item": {
1420
+ "$ref": "#/definitions/pin_item"
1421
+ },
1422
+ "type": {
1423
+ "const": "pin_removed"
1424
+ },
1425
+ "user": {
1426
+ "$ref": "#/definitions/user_id"
1427
+ }
1428
+ },
1429
+ "example": {
1430
+ "channel_id": "C02ELGNBH",
1431
+ "event_ts": "1360782804.083113",
1432
+ "has_pins": false,
1433
+ "item": {
1434
+ },
1435
+ "type": "pin_removed",
1436
+ "user": "U024BE7LH"
1437
+ }
1438
+ },
1439
+ "prefs": {
1440
+ "type": "object",
1441
+ "description": "(defined by script)",
1442
+ "properties": {
1443
+ "channels": {
1444
+ "type": "array",
1445
+ "items": {
1446
+ "$ref": "#/definitions/channel_id"
1447
+ }
1448
+ },
1449
+ "groups": {
1450
+ "type": "array",
1451
+ "items": {
1452
+ "$ref": "#/definitions/group_id"
1453
+ }
1454
+ }
1455
+ }
1456
+ },
1457
+ "reaction_added": {
1458
+ "type": "object",
1459
+ "description": "learn more: https://api.slack.com/events/reaction_added",
1460
+ "properties": {
1461
+ "event_ts": {
1462
+ "$ref": "#/definitions/timestamp"
1463
+ },
1464
+ "item": {
1465
+ "$ref": "#/definitions/reaction_item"
1466
+ },
1467
+ "item_user": {
1468
+ "$ref": "#/definitions/user_id"
1469
+ },
1470
+ "reaction": {
1471
+ "$ref": "#/definitions/emoji_name"
1472
+ },
1473
+ "type": {
1474
+ "const": "reaction_added"
1475
+ },
1476
+ "user": {
1477
+ "$ref": "#/definitions/user_id"
1478
+ }
1479
+ },
1480
+ "example": {
1481
+ "event_ts": "1360782804.083113",
1482
+ "item": {
1483
+ "type": "message",
1484
+ "channel": "C0G9QF9GZ",
1485
+ "ts": "1360782400.498405"
1486
+ },
1487
+ "item_user": "U0G9QF9C6",
1488
+ "reaction": "thumbsup",
1489
+ "type": "reaction_added",
1490
+ "user": "U024BE7LH"
1491
+ }
1492
+ },
1493
+ "reaction_item": {
1494
+ "type": "object",
1495
+ "description": "(defined by script)",
1496
+ "properties": {
1497
+ "channel": {
1498
+ "$ref": "#/definitions/channel_id"
1499
+ },
1500
+ "ts": {
1501
+ "$ref": "#/definitions/timestamp"
1502
+ },
1503
+ "type": {
1504
+ "$ref": "#/definitions/reaction_item_type"
1505
+ }
1506
+ }
1507
+ },
1508
+ "reaction_item_type": {
1509
+ "type": "string"
1510
+ },
1511
+ "reaction_removed": {
1512
+ "type": "object",
1513
+ "description": "learn more: https://api.slack.com/events/reaction_removed",
1514
+ "properties": {
1515
+ "event_ts": {
1516
+ "$ref": "#/definitions/timestamp"
1517
+ },
1518
+ "item": {
1519
+ "$ref": "#/definitions/reaction_item"
1520
+ },
1521
+ "item_user": {
1522
+ "$ref": "#/definitions/user_id"
1523
+ },
1524
+ "reaction": {
1525
+ "$ref": "#/definitions/emoji_name"
1526
+ },
1527
+ "type": {
1528
+ "const": "reaction_removed"
1529
+ },
1530
+ "user": {
1531
+ "$ref": "#/definitions/user_id"
1532
+ }
1533
+ },
1534
+ "example": {
1535
+ "event_ts": "1360782804.083113",
1536
+ "item": {
1537
+ "type": "message",
1538
+ "channel": "C0G9QF9GZ",
1539
+ "ts": "1360782400.498405"
1540
+ },
1541
+ "item_user": "U0G9QF9C6",
1542
+ "reaction": "thumbsup",
1543
+ "type": "reaction_removed",
1544
+ "user": "U024BE7LH"
1545
+ }
1546
+ },
1547
+ "resource": {
1548
+ "type": "object",
1549
+ "description": "(defined by script)",
1550
+ "properties": {
1551
+ "grant": {
1552
+ "$ref": "#/definitions/grant"
1553
+ },
1554
+ "type": {
1555
+ "$ref": "#/definitions/resource_type"
1556
+ }
1557
+ }
1558
+ },
1559
+ "resource_id": {
1560
+ "type": "string"
1561
+ },
1562
+ "resource_item": {
1563
+ "type": "object",
1564
+ "description": "(defined by script)",
1565
+ "properties": {
1566
+ "resource": {
1567
+ "$ref": "#/definitions/resource"
1568
+ },
1569
+ "scopes": {
1570
+ "type": "array",
1571
+ "items": {
1572
+ "$ref": "#/definitions/scope"
1573
+ }
1574
+ }
1575
+ }
1576
+ },
1577
+ "resource_type": {
1578
+ "type": "string"
1579
+ },
1580
+ "resources_added": {
1581
+ "type": "object",
1582
+ "description": "learn more: https://api.slack.com/events/resources_added",
1583
+ "properties": {
1584
+ "resources": {
1585
+ "type": "array",
1586
+ "items": {
1587
+ "$ref": "#/definitions/resource_item"
1588
+ }
1589
+ },
1590
+ "type": {
1591
+ "const": "resources_added"
1592
+ }
1593
+ },
1594
+ "example": {
1595
+ "resources": [
1596
+ {
1597
+ "resource": {
1598
+ "type": "im",
1599
+ "grant": {
1600
+ "type": "specific",
1601
+ "resource_id": "DXXXXXXXX"
1602
+ }
1603
+ },
1604
+ "scopes": [
1605
+ "chat:write:user",
1606
+ "im:read",
1607
+ "im:history",
1608
+ "commands"
1609
+ ]
1610
+ }
1611
+ ],
1612
+ "type": "resources_added"
1613
+ }
1614
+ },
1615
+ "resources_removed": {
1616
+ "type": "object",
1617
+ "description": "learn more: https://api.slack.com/events/resources_removed",
1618
+ "properties": {
1619
+ "resources": {
1620
+ "type": "array",
1621
+ "items": {
1622
+ "$ref": "#/definitions/resource_item"
1623
+ }
1624
+ },
1625
+ "type": {
1626
+ "const": "resources_removed"
1627
+ }
1628
+ },
1629
+ "example": {
1630
+ "resources": [
1631
+ {
1632
+ "resource": {
1633
+ "type": "im",
1634
+ "grant": {
1635
+ "type": "specific",
1636
+ "resource_id": "DXXXXXXXX"
1637
+ }
1638
+ },
1639
+ "scopes": [
1640
+ "chat:write:user",
1641
+ "im:read",
1642
+ "im:history",
1643
+ "commands"
1644
+ ]
1645
+ }
1646
+ ],
1647
+ "type": "resources_removed"
1648
+ }
1649
+ },
1650
+ "scope": {
1651
+ "type": "string",
1652
+ "enum": [
1653
+ "channels:read",
1654
+ "channels:history",
1655
+ "groups:history",
1656
+ "mpim:history",
1657
+ "dnd:read",
1658
+ "team:read",
1659
+ "emoji:read",
1660
+ "files:read",
1661
+ "groups:read",
1662
+ "im:read",
1663
+ "im:history",
1664
+ "links:read",
1665
+ "pins:read",
1666
+ "reactions:read",
1667
+ "stars:read",
1668
+ "usergroups:read",
1669
+ "users:read"
1670
+ ]
1671
+ },
1672
+ "scope_denied": {
1673
+ "type": "object",
1674
+ "description": "learn more: https://api.slack.com/events/scope_denied",
1675
+ "properties": {
1676
+ "scopes": {
1677
+ "type": "array",
1678
+ "items": {
1679
+ "$ref": "#/definitions/scope"
1680
+ }
1681
+ },
1682
+ "trigger_id": {
1683
+ "$ref": "#/definitions/trigger_id"
1684
+ },
1685
+ "type": {
1686
+ "const": "scope_denied"
1687
+ }
1688
+ },
1689
+ "example": {
1690
+ "scopes": [
1691
+ "files:read",
1692
+ "files:write",
1693
+ "chat:write"
1694
+ ],
1695
+ "trigger_id": "241582872337.47445629121.string",
1696
+ "type": "scope_denied"
1697
+ }
1698
+ },
1699
+ "scope_granted": {
1700
+ "type": "object",
1701
+ "description": "learn more: https://api.slack.com/events/scope_granted",
1702
+ "properties": {
1703
+ "scopes": {
1704
+ "type": "array",
1705
+ "items": {
1706
+ "$ref": "#/definitions/scope"
1707
+ }
1708
+ },
1709
+ "trigger_id": {
1710
+ "$ref": "#/definitions/trigger_id"
1711
+ },
1712
+ "type": {
1713
+ "const": "scope_granted"
1714
+ }
1715
+ },
1716
+ "example": {
1717
+ "scopes": [
1718
+ "files:read",
1719
+ "files:write",
1720
+ "chat:write"
1721
+ ],
1722
+ "trigger_id": "241582872337.47445629121.string",
1723
+ "type": "scope_granted"
1724
+ }
1725
+ },
1726
+ "star_added": {
1727
+ "type": "object",
1728
+ "description": "learn more: https://api.slack.com/events/star_added",
1729
+ "properties": {
1730
+ "event_ts": {
1731
+ "$ref": "#/definitions/timestamp"
1732
+ },
1733
+ "item": {
1734
+ "$ref": "#/definitions/star_item"
1735
+ },
1736
+ "type": {
1737
+ "const": "star_added"
1738
+ },
1739
+ "user": {
1740
+ "$ref": "#/definitions/user_id"
1741
+ }
1742
+ },
1743
+ "example": {
1744
+ "event_ts": "1360782804.083113",
1745
+ "item": {
1746
+ },
1747
+ "type": "star_added",
1748
+ "user": "U024BE7LH"
1749
+ }
1750
+ },
1751
+ "star_item": {
1752
+ "type": "object",
1753
+ "description": "definition snipped. learn more: https://api.slack.com/events/star_added",
1754
+ "properties": {
1755
+ }
1756
+ },
1757
+ "star_removed": {
1758
+ "type": "object",
1759
+ "description": "learn more: https://api.slack.com/events/star_removed",
1760
+ "properties": {
1761
+ "event_ts": {
1762
+ "$ref": "#/definitions/timestamp"
1763
+ },
1764
+ "item": {
1765
+ "$ref": "#/definitions/star_item"
1766
+ },
1767
+ "type": {
1768
+ "const": "star_removed"
1769
+ },
1770
+ "user": {
1771
+ "$ref": "#/definitions/user_id"
1772
+ }
1773
+ },
1774
+ "example": {
1775
+ "event_ts": "1360782804.083113",
1776
+ "item": {
1777
+ },
1778
+ "type": "star_removed",
1779
+ "user": "U024BE7LH"
1780
+ }
1781
+ },
1782
+ "subteam": {
1783
+ "type": "object",
1784
+ "description": "(defined by script)",
1785
+ "properties": {
1786
+ "auto_type": {
1787
+ "$ref": "#/definitions/auto_type"
1788
+ },
1789
+ "created_by": {
1790
+ "$ref": "#/definitions/user_id"
1791
+ },
1792
+ "date_create": {
1793
+ "$ref": "#/definitions/time_integer"
1794
+ },
1795
+ "date_delete": {
1796
+ "$ref": "#/definitions/time_integer"
1797
+ },
1798
+ "date_update": {
1799
+ "$ref": "#/definitions/time_integer"
1800
+ },
1801
+ "deleted_by": {
1802
+ "$ref": "#/definitions/user_id"
1803
+ },
1804
+ "description": {
1805
+ "type": "string"
1806
+ },
1807
+ "handle": {
1808
+ "type": "string"
1809
+ },
1810
+ "id": {
1811
+ "$ref": "#/definitions/subteam_id"
1812
+ },
1813
+ "is_external": {
1814
+ "type": "boolean"
1815
+ },
1816
+ "is_usergroup": {
1817
+ "type": "boolean"
1818
+ },
1819
+ "name": {
1820
+ "$ref": "#/definitions/subteam_name"
1821
+ },
1822
+ "prefs": {
1823
+ "$ref": "#/definitions/prefs"
1824
+ },
1825
+ "team_id": {
1826
+ "$ref": "#/definitions/team_id"
1827
+ },
1828
+ "updated_by": {
1829
+ "$ref": "#/definitions/user_id"
1830
+ },
1831
+ "user_count": {
1832
+ "$ref": "#/definitions/user_count"
1833
+ }
1834
+ }
1835
+ },
1836
+ "subteam_created": {
1837
+ "type": "object",
1838
+ "description": "learn more: https://api.slack.com/events/subteam_created",
1839
+ "properties": {
1840
+ "subteam": {
1841
+ "$ref": "#/definitions/subteam"
1842
+ },
1843
+ "type": {
1844
+ "const": "subteam_created"
1845
+ }
1846
+ },
1847
+ "example": {
1848
+ "subteam": {
1849
+ "id": "S0615G0KT",
1850
+ "team_id": "T060RNRCH",
1851
+ "is_usergroup": true,
1852
+ "name": "Marketing Team",
1853
+ "description": "Marketing gurus, PR experts and product advocates.",
1854
+ "handle": "marketing-team",
1855
+ "is_external": false,
1856
+ "date_create": 1446746793,
1857
+ "date_update": 1446746793,
1858
+ "date_delete": 0,
1859
+ "auto_type": null,
1860
+ "created_by": "U060RNRCZ",
1861
+ "updated_by": "U060RNRCZ",
1862
+ "deleted_by": null,
1863
+ "prefs": {
1864
+ "channels": [
1865
+
1866
+ ],
1867
+ "groups": [
1868
+
1869
+ ]
1870
+ },
1871
+ "user_count": "0"
1872
+ },
1873
+ "type": "subteam_created"
1874
+ }
1875
+ },
1876
+ "subteam_id": {
1877
+ "type": "string"
1878
+ },
1879
+ "subteam_members_changed": {
1880
+ "type": "object",
1881
+ "description": "learn more: https://api.slack.com/events/subteam_members_changed",
1882
+ "properties": {
1883
+ "added_users": {
1884
+ "type": "array",
1885
+ "items": {
1886
+ "$ref": "#/definitions/user_id"
1887
+ }
1888
+ },
1889
+ "added_users_count": {
1890
+ "$ref": "#/definitions/user_count"
1891
+ },
1892
+ "date_previous_update": {
1893
+ "$ref": "#/definitions/time_integer"
1894
+ },
1895
+ "date_update": {
1896
+ "$ref": "#/definitions/time_integer"
1897
+ },
1898
+ "removed_users": {
1899
+ "type": "array",
1900
+ "items": {
1901
+ "$ref": "#/definitions/user_id"
1902
+ }
1903
+ },
1904
+ "removed_users_count": {
1905
+ "$ref": "#/definitions/user_count"
1906
+ },
1907
+ "subteam_id": {
1908
+ "$ref": "#/definitions/subteam_id"
1909
+ },
1910
+ "team_id": {
1911
+ "$ref": "#/definitions/team_id"
1912
+ },
1913
+ "type": {
1914
+ "const": "subteam_members_changed"
1915
+ }
1916
+ },
1917
+ "example": {
1918
+ "added_users": [
1919
+ "U060RNRCZ",
1920
+ "U060ULRC0",
1921
+ "U061309JM"
1922
+ ],
1923
+ "added_users_count": "3",
1924
+ "date_previous_update": 1446670362,
1925
+ "date_update": 1492906952,
1926
+ "removed_users": [
1927
+ "U06129G2V"
1928
+ ],
1929
+ "removed_users_count": "1",
1930
+ "subteam_id": "S0614TZR7",
1931
+ "team_id": "T060RNRCH",
1932
+ "type": "subteam_members_changed"
1933
+ }
1934
+ },
1935
+ "subteam_name": {
1936
+ "type": "string"
1937
+ },
1938
+ "subteam_self_added": {
1939
+ "type": "object",
1940
+ "description": "learn more: https://api.slack.com/events/subteam_self_added",
1941
+ "properties": {
1942
+ "subteam_id": {
1943
+ "$ref": "#/definitions/subteam_id"
1944
+ },
1945
+ "type": {
1946
+ "const": "subteam_self_added"
1947
+ }
1948
+ },
1949
+ "example": {
1950
+ "subteam_id": "S0615G0KT",
1951
+ "type": "subteam_self_added"
1952
+ }
1953
+ },
1954
+ "subteam_self_removed": {
1955
+ "type": "object",
1956
+ "description": "learn more: https://api.slack.com/events/subteam_self_removed",
1957
+ "properties": {
1958
+ "subteam_id": {
1959
+ "$ref": "#/definitions/subteam_id"
1960
+ },
1961
+ "type": {
1962
+ "const": "subteam_self_removed"
1963
+ }
1964
+ },
1965
+ "example": {
1966
+ "subteam_id": "S0615G0KT",
1967
+ "type": "subteam_self_removed"
1968
+ }
1969
+ },
1970
+ "subteam_updated": {
1971
+ "type": "object",
1972
+ "description": "learn more: https://api.slack.com/events/subteam_updated",
1973
+ "properties": {
1974
+ "subteam": {
1975
+ "$ref": "#/definitions/subteam"
1976
+ },
1977
+ "type": {
1978
+ "const": "subteam_updated"
1979
+ }
1980
+ },
1981
+ "example": {
1982
+ "subteam": {
1983
+ "id": "S0614TZR7",
1984
+ "team_id": "T060RNRCH",
1985
+ "is_usergroup": true,
1986
+ "name": "Team Admins",
1987
+ "description": "A group of all Administrators on your team.",
1988
+ "handle": "admins",
1989
+ "is_external": false,
1990
+ "date_create": 1446598059,
1991
+ "date_update": 1446670362,
1992
+ "date_delete": 0,
1993
+ "auto_type": "admin",
1994
+ "created_by": "USLACKBOT",
1995
+ "updated_by": "U060RNRCZ",
1996
+ "deleted_by": null,
1997
+ "prefs": {
1998
+ "channels": [
1999
+
2000
+ ],
2001
+ "groups": [
2002
+
2003
+ ]
2004
+ },
2005
+ "users": [
2006
+ "U060RNRCZ",
2007
+ "U060ULRC0",
2008
+ "U06129G2V",
2009
+ "U061309JM"
2010
+ ],
2011
+ "user_count": "4"
2012
+ },
2013
+ "type": "subteam_updated"
2014
+ }
2015
+ },
2016
+ "team_domain_change": {
2017
+ "type": "object",
2018
+ "description": "learn more: https://api.slack.com/events/team_domain_change",
2019
+ "properties": {
2020
+ "domain": {
2021
+ "type": "string"
2022
+ },
2023
+ "type": {
2024
+ "const": "team_domain_change"
2025
+ },
2026
+ "url": {
2027
+ "type": "string"
2028
+ }
2029
+ },
2030
+ "example": {
2031
+ "domain": "my",
2032
+ "type": "team_domain_change",
2033
+ "url": "https://my.slack.com"
2034
+ }
2035
+ },
2036
+ "team_id": {
2037
+ "type": "string"
2038
+ },
2039
+ "team_join": {
2040
+ "type": "object",
2041
+ "description": "learn more: https://api.slack.com/events/team_join",
2042
+ "properties": {
2043
+ "type": {
2044
+ "const": "team_join"
2045
+ },
2046
+ "user": {
2047
+ "$ref": "#/definitions/user"
2048
+ }
2049
+ },
2050
+ "example": {
2051
+ "type": "team_join",
2052
+ "user": {
2053
+ }
2054
+ }
2055
+ },
2056
+ "team_name": {
2057
+ "type": "string"
2058
+ },
2059
+ "team_rename": {
2060
+ "type": "object",
2061
+ "description": "learn more: https://api.slack.com/events/team_rename",
2062
+ "properties": {
2063
+ "name": {
2064
+ "$ref": "#/definitions/team_name"
2065
+ },
2066
+ "type": {
2067
+ "const": "team_rename"
2068
+ }
2069
+ },
2070
+ "example": {
2071
+ "name": "New Team Name Inc.",
2072
+ "type": "team_rename"
2073
+ }
2074
+ },
2075
+ "time_integer": {
2076
+ "type": "number"
2077
+ },
2078
+ "timestamp": {
2079
+ "type": "string"
2080
+ },
2081
+ "token": {
2082
+ "type": "string"
2083
+ },
2084
+ "tokens": {
2085
+ "type": "object",
2086
+ "description": "(defined by script)",
2087
+ "properties": {
2088
+ "bot": {
2089
+ "type": "array",
2090
+ "items": {
2091
+ "type": "string"
2092
+ }
2093
+ },
2094
+ "oauth": {
2095
+ "type": "array",
2096
+ "items": {
2097
+ "type": "string"
2098
+ }
2099
+ }
2100
+ }
2101
+ },
2102
+ "tokens_revoked": {
2103
+ "type": "object",
2104
+ "description": "learn more: https://api.slack.com/events/tokens_revoked",
2105
+ "properties": {
2106
+ "tokens": {
2107
+ "$ref": "#/definitions/tokens"
2108
+ },
2109
+ "type": {
2110
+ "const": "tokens_revoked"
2111
+ }
2112
+ },
2113
+ "example": {
2114
+ "tokens": {
2115
+ "oauth": [
2116
+ "UXXXXXXXX"
2117
+ ],
2118
+ "bot": [
2119
+ "UXXXXXXXX"
2120
+ ]
2121
+ },
2122
+ "type": "tokens_revoked"
2123
+ }
2124
+ },
2125
+ "trigger_id": {
2126
+ "type": "string"
2127
+ },
2128
+ "ts": {
2129
+ "type": "string"
2130
+ },
2131
+ "url_verification": {
2132
+ "type": "object",
2133
+ "description": "learn more: https://api.slack.com/events/url_verification",
2134
+ "properties": {
2135
+ "challenge": {
2136
+ "type": "string"
2137
+ },
2138
+ "token": {
2139
+ "type": "string"
2140
+ },
2141
+ "type": {
2142
+ "const": "url_verification"
2143
+ }
2144
+ },
2145
+ "example": {
2146
+ "challenge": "3eZbrw1aBm2rZgRNFdxV2595E9CY3gmdALWMmHkvFXO7tYXAYM8P",
2147
+ "token": "Jhj5dZrVaK7ZwHHjRyZWjbDl",
2148
+ "type": "url_verification"
2149
+ }
2150
+ },
2151
+ "user": {
2152
+ "type": "object",
2153
+ "description": "definition snipped. learn more: https://api.slack.com/events/user_change",
2154
+ "properties": {
2155
+ }
2156
+ },
2157
+ "user_change": {
2158
+ "type": "object",
2159
+ "description": "learn more: https://api.slack.com/events/user_change",
2160
+ "properties": {
2161
+ "type": {
2162
+ "const": "user_change"
2163
+ },
2164
+ "user": {
2165
+ "$ref": "#/definitions/user"
2166
+ }
2167
+ },
2168
+ "example": {
2169
+ "type": "user_change",
2170
+ "user": {
2171
+ }
2172
+ }
2173
+ },
2174
+ "user_count": {
2175
+ "type": "string"
2176
+ },
2177
+ "user_id": {
2178
+ "type": "string"
2179
+ },
2180
+ "user_resource_denied": {
2181
+ "type": "object",
2182
+ "description": "learn more: https://api.slack.com/events/user_resource_denied",
2183
+ "properties": {
2184
+ "scopes": {
2185
+ "type": "array",
2186
+ "items": {
2187
+ "$ref": "#/definitions/scope"
2188
+ }
2189
+ },
2190
+ "trigger_id": {
2191
+ "$ref": "#/definitions/trigger_id"
2192
+ },
2193
+ "type": {
2194
+ "const": "user_resource_denied"
2195
+ },
2196
+ "user": {
2197
+ "$ref": "#/definitions/user_id"
2198
+ }
2199
+ },
2200
+ "example": {
2201
+ "scopes": [
2202
+ "reminders:write:user",
2203
+ "reminders:read:user"
2204
+ ],
2205
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
2206
+ "type": "user_resource_denied",
2207
+ "user": "WXXXXXXXX"
2208
+ }
2209
+ },
2210
+ "user_resource_granted": {
2211
+ "type": "object",
2212
+ "description": "learn more: https://api.slack.com/events/user_resource_granted",
2213
+ "properties": {
2214
+ "scopes": {
2215
+ "type": "array",
2216
+ "items": {
2217
+ "$ref": "#/definitions/scope"
2218
+ }
2219
+ },
2220
+ "trigger_id": {
2221
+ "$ref": "#/definitions/trigger_id"
2222
+ },
2223
+ "type": {
2224
+ "const": "user_resource_granted"
2225
+ },
2226
+ "user": {
2227
+ "$ref": "#/definitions/user_id"
2228
+ }
2229
+ },
2230
+ "example": {
2231
+ "scopes": [
2232
+ "reminders:write:user",
2233
+ "reminders:read:user"
2234
+ ],
2235
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
2236
+ "type": "user_resource_granted",
2237
+ "user": "WXXXXXXXX"
2238
+ }
2239
+ },
2240
+ "user_resource_removed": {
2241
+ "type": "object",
2242
+ "description": "learn more: https://api.slack.com/events/user_resource_removed",
2243
+ "properties": {
2244
+ "trigger_id": {
2245
+ "$ref": "#/definitions/trigger_id"
2246
+ },
2247
+ "type": {
2248
+ "const": "user_resource_removed"
2249
+ },
2250
+ "user": {
2251
+ "$ref": "#/definitions/user_id"
2252
+ }
2253
+ },
2254
+ "example": {
2255
+ "trigger_id": "27082968880.6048553856.5eb9c671f75c636135fdb6bb9e87b606",
2256
+ "type": "user_resource_removed",
2257
+ "user": "WXXXXXXXX"
2258
+ }
2259
+ }
2260
+ }
2261
+ }