slack_resources 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (256) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +1 -66
  3. data/.circleci/preparation.rb +11 -0
  4. data/.rubocop.yml +2 -10
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +8 -8
  7. data/lib/{slack_resources/generator/event_api → event_api}/fetch.rb +0 -0
  8. data/lib/event_api/write.rb +364 -0
  9. data/lib/{slack_resources/raw_data/event_api/preset_schemas.json → schema.json} +0 -7
  10. data/lib/slack_resources/{raw_data → resources}/event_api/_added_examples/event_callback.json +0 -0
  11. data/lib/slack_resources/resources/event_api/details/app_mention.json +46 -67
  12. data/lib/slack_resources/resources/event_api/details/app_rate_limited.json +41 -59
  13. data/lib/slack_resources/resources/event_api/details/app_uninstalled.json +16 -22
  14. data/lib/slack_resources/resources/event_api/details/channel_archive.json +30 -42
  15. data/lib/slack_resources/resources/event_api/details/channel_created.json +54 -63
  16. data/lib/slack_resources/resources/event_api/details/channel_deleted.json +23 -32
  17. data/lib/slack_resources/resources/event_api/details/channel_history_changed.json +33 -48
  18. data/lib/slack_resources/resources/event_api/details/channel_left.json +23 -32
  19. data/lib/slack_resources/resources/event_api/details/channel_rename.json +49 -58
  20. data/lib/slack_resources/resources/event_api/details/channel_unarchive.json +30 -42
  21. data/lib/slack_resources/resources/event_api/details/dnd_updated.json +54 -66
  22. data/lib/slack_resources/resources/event_api/details/dnd_updated_user.json +50 -62
  23. data/lib/slack_resources/resources/event_api/details/email_domain_changed.json +27 -39
  24. data/lib/slack_resources/resources/event_api/details/emoji_changed.json +44 -85
  25. data/lib/slack_resources/resources/event_api/details/event_callback.json +72 -102
  26. data/lib/slack_resources/resources/event_api/details/file_change.json +37 -49
  27. data/lib/slack_resources/resources/event_api/details/file_comment_added.json +46 -61
  28. data/lib/slack_resources/resources/event_api/details/file_comment_deleted.json +44 -59
  29. data/lib/slack_resources/resources/event_api/details/file_comment_edited.json +46 -61
  30. data/lib/slack_resources/resources/event_api/details/file_created.json +37 -49
  31. data/lib/slack_resources/resources/event_api/details/file_deleted.json +29 -41
  32. data/lib/slack_resources/resources/event_api/details/file_public.json +37 -49
  33. data/lib/slack_resources/resources/event_api/details/file_shared.json +37 -49
  34. data/lib/slack_resources/resources/event_api/details/file_unshared.json +37 -49
  35. data/lib/slack_resources/resources/event_api/details/grid_migration_finished.json +22 -31
  36. data/lib/slack_resources/resources/event_api/details/grid_migration_started.json +22 -31
  37. data/lib/slack_resources/resources/event_api/details/group_archive.json +23 -32
  38. data/lib/slack_resources/resources/event_api/details/group_close.json +30 -42
  39. data/lib/slack_resources/resources/event_api/details/group_deleted.json +23 -32
  40. data/lib/slack_resources/resources/event_api/details/group_history_changed.json +33 -48
  41. data/lib/slack_resources/resources/event_api/details/group_left.json +23 -32
  42. data/lib/slack_resources/resources/event_api/details/group_open.json +30 -42
  43. data/lib/slack_resources/resources/event_api/details/group_rename.json +49 -58
  44. data/lib/slack_resources/resources/event_api/details/group_unarchive.json +23 -32
  45. data/lib/slack_resources/resources/event_api/details/im_close.json +30 -42
  46. data/lib/slack_resources/resources/event_api/details/im_created.json +41 -53
  47. data/lib/slack_resources/resources/event_api/details/im_history_changed.json +33 -48
  48. data/lib/slack_resources/resources/event_api/details/im_open.json +30 -42
  49. data/lib/slack_resources/resources/event_api/details/link_shared.json +83 -107
  50. data/lib/slack_resources/resources/event_api/details/member_joined_channel.json +48 -66
  51. data/lib/slack_resources/resources/event_api/details/member_left_channel.json +43 -58
  52. data/lib/slack_resources/resources/event_api/details/message.app_home.json +53 -74
  53. data/lib/slack_resources/resources/event_api/details/message.channels.json +56 -74
  54. data/lib/slack_resources/resources/event_api/details/message.groups.json +56 -74
  55. data/lib/slack_resources/resources/event_api/details/message.im.json +56 -74
  56. data/lib/slack_resources/resources/event_api/details/message.json +60 -106
  57. data/lib/slack_resources/resources/event_api/details/message.mpim.json +56 -74
  58. data/lib/slack_resources/resources/event_api/details/pin_added.json +47 -65
  59. data/lib/slack_resources/resources/event_api/details/pin_removed.json +52 -73
  60. data/lib/slack_resources/resources/event_api/details/reaction_added.json +73 -94
  61. data/lib/slack_resources/resources/event_api/details/reaction_removed.json +73 -94
  62. data/lib/slack_resources/resources/event_api/details/resources_added.json +115 -127
  63. data/lib/slack_resources/resources/event_api/details/resources_removed.json +115 -127
  64. data/lib/slack_resources/resources/event_api/details/scope_denied.json +59 -74
  65. data/lib/slack_resources/resources/event_api/details/scope_granted.json +59 -74
  66. data/lib/slack_resources/resources/event_api/details/star_added.json +41 -56
  67. data/lib/slack_resources/resources/event_api/details/star_removed.json +41 -56
  68. data/lib/slack_resources/resources/event_api/details/subteam_created.json +168 -177
  69. data/lib/slack_resources/resources/event_api/details/subteam_members_changed.json +82 -118
  70. data/lib/slack_resources/resources/event_api/details/subteam_self_added.json +22 -31
  71. data/lib/slack_resources/resources/event_api/details/subteam_self_removed.json +22 -31
  72. data/lib/slack_resources/resources/event_api/details/subteam_updated.json +180 -189
  73. data/lib/slack_resources/resources/event_api/details/team_domain_change.json +26 -38
  74. data/lib/slack_resources/resources/event_api/details/team_join.json +26 -35
  75. data/lib/slack_resources/resources/event_api/details/team_rename.json +23 -32
  76. data/lib/slack_resources/resources/event_api/details/tokens_revoked.json +49 -58
  77. data/lib/slack_resources/resources/event_api/details/url_verification.json +26 -32
  78. data/lib/slack_resources/resources/event_api/details/user_change.json +26 -35
  79. data/lib/slack_resources/resources/event_api/details/user_resource_denied.json +64 -82
  80. data/lib/slack_resources/resources/event_api/details/user_resource_granted.json +64 -82
  81. data/lib/slack_resources/resources/event_api/details/user_resource_removed.json +29 -41
  82. data/lib/slack_resources/resources/event_api/examples/app_mention.json +4 -4
  83. data/lib/slack_resources/resources/event_api/examples/app_rate_limited.json +4 -4
  84. data/lib/slack_resources/resources/event_api/examples/app_uninstalled.json +9 -1
  85. data/lib/slack_resources/resources/event_api/examples/channel_archive.json +1 -1
  86. data/lib/slack_resources/resources/event_api/examples/channel_created.json +2 -2
  87. data/lib/slack_resources/resources/event_api/examples/channel_deleted.json +2 -2
  88. data/lib/slack_resources/resources/event_api/examples/channel_history_changed.json +2 -2
  89. data/lib/slack_resources/resources/event_api/examples/channel_left.json +2 -2
  90. data/lib/slack_resources/resources/event_api/examples/channel_rename.json +2 -2
  91. data/lib/slack_resources/resources/event_api/examples/channel_unarchive.json +1 -1
  92. data/lib/slack_resources/resources/event_api/examples/dnd_updated.json +3 -3
  93. data/lib/slack_resources/resources/event_api/examples/dnd_updated_user.json +3 -3
  94. data/lib/slack_resources/resources/event_api/examples/email_domain_changed.json +2 -2
  95. data/lib/slack_resources/resources/event_api/examples/emoji_changed.json +5 -4
  96. data/lib/slack_resources/resources/event_api/examples/event_callback.json +6 -7
  97. data/lib/slack_resources/resources/event_api/examples/file_change.json +3 -3
  98. data/lib/slack_resources/resources/event_api/examples/file_comment_added.json +3 -3
  99. data/lib/slack_resources/resources/event_api/examples/file_comment_deleted.json +3 -3
  100. data/lib/slack_resources/resources/event_api/examples/file_comment_edited.json +3 -3
  101. data/lib/slack_resources/resources/event_api/examples/file_created.json +3 -3
  102. data/lib/slack_resources/resources/event_api/examples/file_deleted.json +2 -2
  103. data/lib/slack_resources/resources/event_api/examples/file_public.json +3 -3
  104. data/lib/slack_resources/resources/event_api/examples/file_shared.json +3 -3
  105. data/lib/slack_resources/resources/event_api/examples/file_unshared.json +3 -3
  106. data/lib/slack_resources/resources/event_api/examples/grid_migration_finished.json +10 -2
  107. data/lib/slack_resources/resources/event_api/examples/grid_migration_started.json +10 -2
  108. data/lib/slack_resources/resources/event_api/examples/group_archive.json +2 -2
  109. data/lib/slack_resources/resources/event_api/examples/group_close.json +2 -2
  110. data/lib/slack_resources/resources/event_api/examples/group_deleted.json +2 -2
  111. data/lib/slack_resources/resources/event_api/examples/group_history_changed.json +2 -2
  112. data/lib/slack_resources/resources/event_api/examples/group_left.json +2 -2
  113. data/lib/slack_resources/resources/event_api/examples/group_open.json +2 -2
  114. data/lib/slack_resources/resources/event_api/examples/group_rename.json +2 -2
  115. data/lib/slack_resources/resources/event_api/examples/group_unarchive.json +2 -2
  116. data/lib/slack_resources/resources/event_api/examples/im_close.json +2 -2
  117. data/lib/slack_resources/resources/event_api/examples/im_created.json +3 -3
  118. data/lib/slack_resources/resources/event_api/examples/im_history_changed.json +2 -2
  119. data/lib/slack_resources/resources/event_api/examples/im_open.json +2 -2
  120. data/lib/slack_resources/resources/event_api/examples/link_shared.json +30 -18
  121. data/lib/slack_resources/resources/event_api/examples/member_joined_channel.json +3 -3
  122. data/lib/slack_resources/resources/event_api/examples/member_left_channel.json +3 -3
  123. data/lib/slack_resources/resources/event_api/examples/message.app_home.json +18 -7
  124. data/lib/slack_resources/resources/event_api/examples/message.channels.json +18 -7
  125. data/lib/slack_resources/resources/event_api/examples/message.groups.json +18 -7
  126. data/lib/slack_resources/resources/event_api/examples/message.im.json +18 -7
  127. data/lib/slack_resources/resources/event_api/examples/message.json +4 -6
  128. data/lib/slack_resources/resources/event_api/examples/message.mpim.json +18 -7
  129. data/lib/slack_resources/resources/event_api/examples/pin_added.json +3 -3
  130. data/lib/slack_resources/resources/event_api/examples/pin_removed.json +4 -4
  131. data/lib/slack_resources/resources/event_api/examples/reaction_added.json +5 -5
  132. data/lib/slack_resources/resources/event_api/examples/reaction_removed.json +5 -5
  133. data/lib/slack_resources/resources/event_api/examples/resources_added.json +28 -17
  134. data/lib/slack_resources/resources/event_api/examples/resources_removed.json +28 -17
  135. data/lib/slack_resources/resources/event_api/examples/scope_denied.json +17 -6
  136. data/lib/slack_resources/resources/event_api/examples/scope_granted.json +17 -6
  137. data/lib/slack_resources/resources/event_api/examples/star_added.json +3 -3
  138. data/lib/slack_resources/resources/event_api/examples/star_removed.json +3 -3
  139. data/lib/slack_resources/resources/event_api/examples/subteam_created.json +2 -2
  140. data/lib/slack_resources/resources/event_api/examples/subteam_members_changed.json +6 -6
  141. data/lib/slack_resources/resources/event_api/examples/subteam_self_added.json +2 -2
  142. data/lib/slack_resources/resources/event_api/examples/subteam_self_removed.json +2 -2
  143. data/lib/slack_resources/resources/event_api/examples/subteam_updated.json +2 -2
  144. data/lib/slack_resources/resources/event_api/examples/team_domain_change.json +2 -2
  145. data/lib/slack_resources/resources/event_api/examples/team_rename.json +2 -2
  146. data/lib/slack_resources/resources/event_api/examples/tokens_revoked.json +16 -8
  147. data/lib/slack_resources/resources/event_api/examples/url_verification.json +1 -1
  148. data/lib/slack_resources/resources/event_api/examples/user_resource_denied.json +17 -6
  149. data/lib/slack_resources/resources/event_api/examples/user_resource_granted.json +17 -6
  150. data/lib/slack_resources/resources/event_api/examples/user_resource_removed.json +14 -3
  151. data/lib/slack_resources/{raw_data → resources}/event_api/meta.json +72 -0
  152. data/lib/slack_resources/resources/event_api/schema.json +105 -257
  153. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.json +9 -27
  154. data/lib/slack_resources/resources/event_api/schemas/member_joined_channel.json +4 -1
  155. data/lib/slack_resources/resources/event_api/schemas/member_left_channel.json +4 -1
  156. data/lib/slack_resources/resources/event_api/schemas/message.app_home.json +4 -1
  157. data/lib/slack_resources/resources/event_api/schemas/message.channels.json +7 -1
  158. data/lib/slack_resources/resources/event_api/schemas/message.groups.json +7 -1
  159. data/lib/slack_resources/resources/event_api/schemas/message.im.json +7 -1
  160. data/lib/slack_resources/resources/event_api/schemas/message.json +17 -39
  161. data/lib/slack_resources/resources/event_api/schemas/message.mpim.json +7 -1
  162. data/lib/slack_resources/resources/event_api/schemas/resources_added.json +15 -15
  163. data/lib/slack_resources/resources/event_api/schemas/resources_removed.json +15 -15
  164. data/lib/slack_resources/resources/event_api/schemas/team_rename.json +2 -2
  165. data/lib/slack_resources/resources/event_api/schemas/url_verification.json +6 -0
  166. data/lib/slack_resources/resources/event_api/summary.json +3397 -4884
  167. data/lib/slack_resources/version.rb +3 -0
  168. data/lib/slack_resources.rb +1 -9
  169. data/slack_resources.gemspec +2 -4
  170. metadata +10 -93
  171. data/.circleci/gem_deployment.rb +0 -53
  172. data/lib/generate_event_api_resources.rb +0 -8
  173. data/lib/slack_resources/generator/event_api/examples_preparation.rb +0 -71
  174. data/lib/slack_resources/generator/event_api/strong_hash.rb +0 -25
  175. data/lib/slack_resources/generator/event_api/to_schema.rb +0 -200
  176. data/lib/slack_resources/generator/event_api/type_detection.rb +0 -272
  177. data/lib/slack_resources/generator/event_api/write.rb +0 -123
  178. data/lib/slack_resources/raw_data/event_api/_added_examples/emoji_changed.add.json +0 -7
  179. data/lib/slack_resources/raw_data/event_api/_added_examples/emoji_changed.remove.json +0 -6
  180. data/lib/slack_resources/raw_data/event_api/examples/app_mention.json +0 -8
  181. data/lib/slack_resources/raw_data/event_api/examples/app_rate_limited.json +0 -7
  182. data/lib/slack_resources/raw_data/event_api/examples/app_uninstalled.json +0 -11
  183. data/lib/slack_resources/raw_data/event_api/examples/channel_archive.json +0 -5
  184. data/lib/slack_resources/raw_data/event_api/examples/channel_created.json +0 -9
  185. data/lib/slack_resources/raw_data/event_api/examples/channel_deleted.json +0 -4
  186. data/lib/slack_resources/raw_data/event_api/examples/channel_history_changed.json +0 -6
  187. data/lib/slack_resources/raw_data/event_api/examples/channel_left.json +0 -4
  188. data/lib/slack_resources/raw_data/event_api/examples/channel_rename.json +0 -8
  189. data/lib/slack_resources/raw_data/event_api/examples/channel_unarchive.json +0 -5
  190. data/lib/slack_resources/raw_data/event_api/examples/dnd_updated.json +0 -11
  191. data/lib/slack_resources/raw_data/event_api/examples/dnd_updated_user.json +0 -9
  192. data/lib/slack_resources/raw_data/event_api/examples/email_domain_changed.json +0 -5
  193. data/lib/slack_resources/raw_data/event_api/examples/emoji_changed.json +0 -8
  194. data/lib/slack_resources/raw_data/event_api/examples/file_change.json +0 -7
  195. data/lib/slack_resources/raw_data/event_api/examples/file_comment_added.json +0 -9
  196. data/lib/slack_resources/raw_data/event_api/examples/file_comment_deleted.json +0 -8
  197. data/lib/slack_resources/raw_data/event_api/examples/file_comment_edited.json +0 -9
  198. data/lib/slack_resources/raw_data/event_api/examples/file_created.json +0 -7
  199. data/lib/slack_resources/raw_data/event_api/examples/file_deleted.json +0 -5
  200. data/lib/slack_resources/raw_data/event_api/examples/file_public.json +0 -7
  201. data/lib/slack_resources/raw_data/event_api/examples/file_shared.json +0 -7
  202. data/lib/slack_resources/raw_data/event_api/examples/file_unshared.json +0 -7
  203. data/lib/slack_resources/raw_data/event_api/examples/grid_migration_finished.json +0 -12
  204. data/lib/slack_resources/raw_data/event_api/examples/grid_migration_started.json +0 -12
  205. data/lib/slack_resources/raw_data/event_api/examples/group_archive.json +0 -4
  206. data/lib/slack_resources/raw_data/event_api/examples/group_close.json +0 -5
  207. data/lib/slack_resources/raw_data/event_api/examples/group_deleted.json +0 -4
  208. data/lib/slack_resources/raw_data/event_api/examples/group_history_changed.json +0 -6
  209. data/lib/slack_resources/raw_data/event_api/examples/group_left.json +0 -4
  210. data/lib/slack_resources/raw_data/event_api/examples/group_open.json +0 -5
  211. data/lib/slack_resources/raw_data/event_api/examples/group_rename.json +0 -8
  212. data/lib/slack_resources/raw_data/event_api/examples/group_unarchive.json +0 -4
  213. data/lib/slack_resources/raw_data/event_api/examples/im_close.json +0 -5
  214. data/lib/slack_resources/raw_data/event_api/examples/im_created.json +0 -6
  215. data/lib/slack_resources/raw_data/event_api/examples/im_history_changed.json +0 -6
  216. data/lib/slack_resources/raw_data/event_api/examples/im_open.json +0 -5
  217. data/lib/slack_resources/raw_data/event_api/examples/link_shared.json +0 -33
  218. data/lib/slack_resources/raw_data/event_api/examples/member_joined_channel.json +0 -8
  219. data/lib/slack_resources/raw_data/event_api/examples/member_left_channel.json +0 -7
  220. data/lib/slack_resources/raw_data/event_api/examples/message.app_home.json +0 -20
  221. data/lib/slack_resources/raw_data/event_api/examples/message.channels.json +0 -20
  222. data/lib/slack_resources/raw_data/event_api/examples/message.groups.json +0 -20
  223. data/lib/slack_resources/raw_data/event_api/examples/message.im.json +0 -20
  224. data/lib/slack_resources/raw_data/event_api/examples/message.json +0 -7
  225. data/lib/slack_resources/raw_data/event_api/examples/message.mpim.json +0 -20
  226. data/lib/slack_resources/raw_data/event_api/examples/pin_added.json +0 -8
  227. data/lib/slack_resources/raw_data/event_api/examples/pin_removed.json +0 -9
  228. data/lib/slack_resources/raw_data/event_api/examples/reaction_added.json +0 -12
  229. data/lib/slack_resources/raw_data/event_api/examples/reaction_removed.json +0 -12
  230. data/lib/slack_resources/raw_data/event_api/examples/resources_added.json +0 -31
  231. data/lib/slack_resources/raw_data/event_api/examples/resources_removed.json +0 -31
  232. data/lib/slack_resources/raw_data/event_api/examples/scope_denied.json +0 -20
  233. data/lib/slack_resources/raw_data/event_api/examples/scope_granted.json +0 -20
  234. data/lib/slack_resources/raw_data/event_api/examples/star_added.json +0 -7
  235. data/lib/slack_resources/raw_data/event_api/examples/star_removed.json +0 -7
  236. data/lib/slack_resources/raw_data/event_api/examples/subteam_created.json +0 -28
  237. data/lib/slack_resources/raw_data/event_api/examples/subteam_members_changed.json +0 -17
  238. data/lib/slack_resources/raw_data/event_api/examples/subteam_self_added.json +0 -4
  239. data/lib/slack_resources/raw_data/event_api/examples/subteam_self_removed.json +0 -4
  240. data/lib/slack_resources/raw_data/event_api/examples/subteam_updated.json +0 -34
  241. data/lib/slack_resources/raw_data/event_api/examples/team_domain_change.json +0 -5
  242. data/lib/slack_resources/raw_data/event_api/examples/team_join.json +0 -5
  243. data/lib/slack_resources/raw_data/event_api/examples/team_rename.json +0 -4
  244. data/lib/slack_resources/raw_data/event_api/examples/tokens_revoked.json +0 -19
  245. data/lib/slack_resources/raw_data/event_api/examples/url_verification.json +0 -5
  246. data/lib/slack_resources/raw_data/event_api/examples/user_change.json +0 -5
  247. data/lib/slack_resources/raw_data/event_api/examples/user_resource_denied.json +0 -20
  248. data/lib/slack_resources/raw_data/event_api/examples/user_resource_granted.json +0 -20
  249. data/lib/slack_resources/raw_data/event_api/examples/user_resource_removed.json +0 -16
  250. data/lib/slack_resources/resources/event_api/details/emoji_changed.add.json +0 -78
  251. data/lib/slack_resources/resources/event_api/details/emoji_changed.remove.json +0 -77
  252. data/lib/slack_resources/resources/event_api/examples/emoji_changed.add.json +0 -7
  253. data/lib/slack_resources/resources/event_api/examples/emoji_changed.remove.json +0 -8
  254. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.add.json +0 -42
  255. data/lib/slack_resources/resources/event_api/schemas/emoji_changed.remove.json +0 -40
  256. data/lib/slack_resources/resources/event_api.rb +0 -38
@@ -1,96 +1,55 @@
1
1
  {
2
2
  "url": "https://api.slack.com/events/emoji_changed",
3
- "event": "emoji_changed",
4
- "sub_schemas": {
5
- "timestamp": {
6
- "type": "string"
7
- },
8
- "emoji_name": {
9
- "type": [
10
- "null",
11
- "string"
12
- ]
13
- },
14
- "emoji_subtype": {
15
- "type": "string",
16
- "enum": [
17
- "add",
18
- "remove"
19
- ]
20
- },
21
- "emoji_value": {
22
- "type": [
23
- "null",
24
- "string"
25
- ]
26
- },
27
- "emoji_changed": {
28
- "type": "object",
29
- "description": "learn more: https://api.slack.com/events/emoji_changed",
30
- "properties": {
31
- "event_ts": {
32
- "$ref": "#/definitions/timestamp"
33
- },
34
- "name": {
35
- "$ref": "#/definitions/emoji_name"
36
- },
37
- "names": {
38
- "type": "array",
39
- "items": {
40
- "$ref": "#/definitions/emoji_name"
41
- }
42
- },
43
- "subtype": {
44
- "$ref": "#/definitions/emoji_subtype"
45
- },
46
- "type": {
47
- "const": "emoji_changed"
48
- },
49
- "value": {
50
- "$ref": "#/definitions/emoji_value"
51
- }
52
- },
53
- "example": {
54
- "event_ts": "1361482916.000004",
55
- "name": "picard_facepalm",
56
- "subtype": "add",
57
- "type": "emoji_changed",
58
- "value": "https://my.slack.com/emoji/picard_facepalm/db8e287430eaa459.gif"
59
- }
60
- }
3
+ "type": "emoji_changed",
4
+ "response": {
5
+ "event_ts": "1361482916.000004",
6
+ "names": [
7
+ "picard_facepalm"
8
+ ],
9
+ "subtype": "remove",
10
+ "type": "emoji_changed"
61
11
  },
62
12
  "schema": {
63
- "type": "object",
64
- "description": "learn more: https://api.slack.com/events/emoji_changed",
65
- "properties": {
66
- "event_ts": {
67
- "$ref": "#/definitions/timestamp"
68
- },
69
- "name": {
70
- "$ref": "#/definitions/emoji_name"
71
- },
72
- "names": {
73
- "type": "array",
74
- "items": {
75
- "$ref": "#/definitions/emoji_name"
76
- }
13
+ "$schema": "http://json-schema.org/draft-07/schema",
14
+ "definitions": {
15
+ "timestamp": {
16
+ "type": "string"
77
17
  },
78
- "subtype": {
79
- "$ref": "#/definitions/emoji_subtype"
18
+ "emoji_name": {
19
+ "type": "string"
80
20
  },
81
- "type": {
82
- "const": "emoji_changed"
21
+ "subscription_subtype": {
22
+ "type": "string"
83
23
  },
84
- "value": {
85
- "$ref": "#/definitions/emoji_value"
24
+ "emoji_changed": {
25
+ "type": "object",
26
+ "description": "learn more: https://api.slack.com/events/emoji_changed",
27
+ "properties": {
28
+ "event_ts": {
29
+ "$ref": "#/definitions/timestamp"
30
+ },
31
+ "names": {
32
+ "type": "array",
33
+ "items": {
34
+ "$ref": "#/definitions/emoji_name"
35
+ }
36
+ },
37
+ "subtype": {
38
+ "$ref": "#/definitions/subscription_subtype"
39
+ },
40
+ "type": {
41
+ "const": "emoji_changed"
42
+ }
43
+ },
44
+ "example": {
45
+ "event_ts": "1361482916.000004",
46
+ "names": [
47
+ "picard_facepalm"
48
+ ],
49
+ "subtype": "remove",
50
+ "type": "emoji_changed"
51
+ }
86
52
  }
87
- },
88
- "example": {
89
- "event_ts": "1361482916.000004",
90
- "name": "picard_facepalm",
91
- "subtype": "add",
92
- "type": "emoji_changed",
93
- "value": "https://my.slack.com/emoji/picard_facepalm/db8e287430eaa459.gif"
94
53
  }
95
54
  },
96
55
  "compatibility": [
@@ -1,124 +1,94 @@
1
1
  {
2
2
  "url": null,
3
- "event": "event_callback",
4
- "sub_schemas": {
5
- "api_app_id": {
6
- "type": "string"
7
- },
8
- "user_id": {
9
- "type": "string"
10
- },
3
+ "type": "event_callback",
4
+ "response": {
5
+ "api_app_id": "AXXXXXXXXX",
6
+ "authed_users": [
7
+ "UXXXXXXX1",
8
+ "UXXXXXXX2"
9
+ ],
11
10
  "event": {
12
- "type": "object",
13
- "description": "definition snipped. learn more: ",
14
- "properties": {
15
- }
16
- },
17
- "event_id": {
18
- "type": "string"
19
- },
20
- "time_integer": {
21
- "type": "number"
22
- },
23
- "team_id": {
24
- "type": "string"
25
- },
26
- "token": {
27
- "type": "string"
28
11
  },
29
- "event_callback": {
30
- "type": "object",
31
- "description": "learn more: ",
32
- "properties": {
33
- "api_app_id": {
34
- "$ref": "#/definitions/api_app_id"
35
- },
36
- "authed_users": {
37
- "type": "array",
38
- "items": {
39
- "$ref": "#/definitions/user_id"
40
- }
41
- },
42
- "event": {
43
- "$ref": "#/definitions/event"
44
- },
45
- "event_id": {
46
- "$ref": "#/definitions/event_id"
47
- },
48
- "event_time": {
49
- "$ref": "#/definitions/time_integer"
50
- },
51
- "team_id": {
52
- "$ref": "#/definitions/team_id"
53
- },
54
- "token": {
55
- "$ref": "#/definitions/token"
56
- },
57
- "type": {
58
- "const": "event_callback"
59
- }
60
- },
61
- "example": {
62
- "api_app_id": "AXXXXXXXXX",
63
- "authed_users": [
64
- "UXXXXXXX1",
65
- "UXXXXXXX2"
66
- ],
67
- "event": {
68
- },
69
- "event_id": "Ev08MFMKH6",
70
- "event_time": 1234567890,
71
- "team_id": "TXXXXXXXX",
72
- "token": "XXYYZZ",
73
- "type": "event_callback"
74
- }
75
- }
12
+ "event_id": "Ev08MFMKH6",
13
+ "event_time": 1234567890,
14
+ "team_id": "TXXXXXXXX",
15
+ "token": "XXYYZZ",
16
+ "type": "event_callback"
76
17
  },
77
18
  "schema": {
78
- "type": "object",
79
- "description": "learn more: ",
80
- "properties": {
19
+ "$schema": "http://json-schema.org/draft-07/schema",
20
+ "definitions": {
81
21
  "api_app_id": {
82
- "$ref": "#/definitions/api_app_id"
22
+ "type": "string"
83
23
  },
84
- "authed_users": {
85
- "type": "array",
86
- "items": {
87
- "$ref": "#/definitions/user_id"
88
- }
24
+ "user_id": {
25
+ "type": "string"
89
26
  },
90
27
  "event": {
91
- "$ref": "#/definitions/event"
28
+ "type": "object",
29
+ "description": "definition snipped. learn more: ",
30
+ "properties": {
31
+ }
92
32
  },
93
33
  "event_id": {
94
- "$ref": "#/definitions/event_id"
34
+ "type": "string"
95
35
  },
96
- "event_time": {
97
- "$ref": "#/definitions/time_integer"
36
+ "time_integer": {
37
+ "type": "number"
98
38
  },
99
39
  "team_id": {
100
- "$ref": "#/definitions/team_id"
40
+ "type": "string"
101
41
  },
102
42
  "token": {
103
- "$ref": "#/definitions/token"
43
+ "type": "string"
104
44
  },
105
- "type": {
106
- "const": "event_callback"
45
+ "event_callback": {
46
+ "type": "object",
47
+ "description": "learn more: ",
48
+ "properties": {
49
+ "api_app_id": {
50
+ "$ref": "#/definitions/api_app_id"
51
+ },
52
+ "authed_users": {
53
+ "type": "array",
54
+ "items": {
55
+ "$ref": "#/definitions/user_id"
56
+ }
57
+ },
58
+ "event": {
59
+ "$ref": "#/definitions/event"
60
+ },
61
+ "event_id": {
62
+ "$ref": "#/definitions/event_id"
63
+ },
64
+ "event_time": {
65
+ "$ref": "#/definitions/time_integer"
66
+ },
67
+ "team_id": {
68
+ "$ref": "#/definitions/team_id"
69
+ },
70
+ "token": {
71
+ "$ref": "#/definitions/token"
72
+ },
73
+ "type": {
74
+ "const": "event_callback"
75
+ }
76
+ },
77
+ "example": {
78
+ "api_app_id": "AXXXXXXXXX",
79
+ "authed_users": [
80
+ "UXXXXXXX1",
81
+ "UXXXXXXX2"
82
+ ],
83
+ "event": {
84
+ },
85
+ "event_id": "Ev08MFMKH6",
86
+ "event_time": 1234567890,
87
+ "team_id": "TXXXXXXXX",
88
+ "token": "XXYYZZ",
89
+ "type": "event_callback"
90
+ }
107
91
  }
108
- },
109
- "example": {
110
- "api_app_id": "AXXXXXXXXX",
111
- "authed_users": [
112
- "UXXXXXXX1",
113
- "UXXXXXXX2"
114
- ],
115
- "event": {
116
- },
117
- "event_id": "Ev08MFMKH6",
118
- "event_time": 1234567890,
119
- "team_id": "TXXXXXXXX",
120
- "token": "XXYYZZ",
121
- "type": "event_callback"
122
92
  }
123
93
  },
124
94
  "compatibility": null,
@@ -1,62 +1,50 @@
1
1
  {
2
2
  "url": "https://api.slack.com/events/file_change",
3
- "event": "file_change",
4
- "sub_schemas": {
5
- "file_id": {
6
- "type": "string"
7
- },
3
+ "type": "file_change",
4
+ "response": {
8
5
  "file": {
9
- "type": "object",
10
- "description": "(defined by script)",
11
- "properties": {
12
- "id": {
13
- "$ref": "#/definitions/file_id"
14
- }
15
- }
6
+ "id": "F2147483862"
16
7
  },
17
- "file_change": {
18
- "type": "object",
19
- "description": "learn more: https://api.slack.com/events/file_change",
20
- "properties": {
21
- "file": {
22
- "$ref": "#/definitions/file"
23
- },
24
- "file_id": {
25
- "$ref": "#/definitions/file_id"
26
- },
27
- "type": {
28
- "const": "file_change"
29
- }
30
- },
31
- "example": {
32
- "file": {
33
- "id": "F2147483862"
34
- },
35
- "file_id": "F2147483862",
36
- "type": "file_change"
37
- }
38
- }
8
+ "file_id": "F2147483862",
9
+ "type": "file_change"
39
10
  },
40
11
  "schema": {
41
- "type": "object",
42
- "description": "learn more: https://api.slack.com/events/file_change",
43
- "properties": {
44
- "file": {
45
- "$ref": "#/definitions/file"
46
- },
12
+ "$schema": "http://json-schema.org/draft-07/schema",
13
+ "definitions": {
47
14
  "file_id": {
48
- "$ref": "#/definitions/file_id"
15
+ "type": "string"
49
16
  },
50
- "type": {
51
- "const": "file_change"
52
- }
53
- },
54
- "example": {
55
17
  "file": {
56
- "id": "F2147483862"
18
+ "type": "object",
19
+ "description": "(defined by script)",
20
+ "properties": {
21
+ "id": {
22
+ "$ref": "#/definitions/file_id"
23
+ }
24
+ }
57
25
  },
58
- "file_id": "F2147483862",
59
- "type": "file_change"
26
+ "file_change": {
27
+ "type": "object",
28
+ "description": "learn more: https://api.slack.com/events/file_change",
29
+ "properties": {
30
+ "file": {
31
+ "$ref": "#/definitions/file"
32
+ },
33
+ "file_id": {
34
+ "$ref": "#/definitions/file_id"
35
+ },
36
+ "type": {
37
+ "const": "file_change"
38
+ }
39
+ },
40
+ "example": {
41
+ "file": {
42
+ "id": "F2147483862"
43
+ },
44
+ "file_id": "F2147483862",
45
+ "type": "file_change"
46
+ }
47
+ }
60
48
  }
61
49
  },
62
50
  "compatibility": [
@@ -1,78 +1,63 @@
1
1
  {
2
2
  "url": "https://api.slack.com/events/file_comment_added",
3
- "event": "file_comment_added",
4
- "sub_schemas": {
3
+ "type": "file_comment_added",
4
+ "response": {
5
5
  "comment": {
6
- "type": "object",
7
- "description": "definition snipped. learn more: https://api.slack.com/events/file_comment_added",
8
- "properties": {
9
- }
10
- },
11
- "file_id": {
12
- "type": "string"
13
6
  },
14
7
  "file": {
15
- "type": "object",
16
- "description": "(defined by script)",
17
- "properties": {
18
- "id": {
19
- "$ref": "#/definitions/file_id"
20
- }
21
- }
8
+ "id": "F2147483862"
22
9
  },
23
- "file_comment_added": {
24
- "type": "object",
25
- "description": "learn more: https://api.slack.com/events/file_comment_added",
26
- "properties": {
27
- "comment": {
28
- "$ref": "#/definitions/comment"
29
- },
30
- "file": {
31
- "$ref": "#/definitions/file"
32
- },
33
- "file_id": {
34
- "$ref": "#/definitions/file_id"
35
- },
36
- "type": {
37
- "const": "file_comment_added"
38
- }
39
- },
40
- "example": {
41
- "comment": {
42
- },
43
- "file": {
44
- "id": "F2147483862"
45
- },
46
- "file_id": "F2147483862",
47
- "type": "file_comment_added"
48
- }
49
- }
10
+ "file_id": "F2147483862",
11
+ "type": "file_comment_added"
50
12
  },
51
13
  "schema": {
52
- "type": "object",
53
- "description": "learn more: https://api.slack.com/events/file_comment_added",
54
- "properties": {
14
+ "$schema": "http://json-schema.org/draft-07/schema",
15
+ "definitions": {
55
16
  "comment": {
56
- "$ref": "#/definitions/comment"
57
- },
58
- "file": {
59
- "$ref": "#/definitions/file"
17
+ "type": "object",
18
+ "description": "definition snipped. learn more: https://api.slack.com/events/file_comment_added",
19
+ "properties": {
20
+ }
60
21
  },
61
22
  "file_id": {
62
- "$ref": "#/definitions/file_id"
63
- },
64
- "type": {
65
- "const": "file_comment_added"
66
- }
67
- },
68
- "example": {
69
- "comment": {
23
+ "type": "string"
70
24
  },
71
25
  "file": {
72
- "id": "F2147483862"
26
+ "type": "object",
27
+ "description": "(defined by script)",
28
+ "properties": {
29
+ "id": {
30
+ "$ref": "#/definitions/file_id"
31
+ }
32
+ }
73
33
  },
74
- "file_id": "F2147483862",
75
- "type": "file_comment_added"
34
+ "file_comment_added": {
35
+ "type": "object",
36
+ "description": "learn more: https://api.slack.com/events/file_comment_added",
37
+ "properties": {
38
+ "comment": {
39
+ "$ref": "#/definitions/comment"
40
+ },
41
+ "file": {
42
+ "$ref": "#/definitions/file"
43
+ },
44
+ "file_id": {
45
+ "$ref": "#/definitions/file_id"
46
+ },
47
+ "type": {
48
+ "const": "file_comment_added"
49
+ }
50
+ },
51
+ "example": {
52
+ "comment": {
53
+ },
54
+ "file": {
55
+ "id": "F2147483862"
56
+ },
57
+ "file_id": "F2147483862",
58
+ "type": "file_comment_added"
59
+ }
60
+ }
76
61
  }
77
62
  },
78
63
  "compatibility": [
@@ -1,73 +1,58 @@
1
1
  {
2
2
  "url": "https://api.slack.com/events/file_comment_deleted",
3
- "event": "file_comment_deleted",
4
- "sub_schemas": {
5
- "comment_id": {
6
- "type": "string"
7
- },
8
- "file_id": {
9
- "type": "string"
10
- },
3
+ "type": "file_comment_deleted",
4
+ "response": {
5
+ "comment": "Fc67890",
11
6
  "file": {
12
- "type": "object",
13
- "description": "(defined by script)",
14
- "properties": {
15
- "id": {
16
- "$ref": "#/definitions/file_id"
17
- }
18
- }
7
+ "id": "F2147483862"
19
8
  },
20
- "file_comment_deleted": {
21
- "type": "object",
22
- "description": "learn more: https://api.slack.com/events/file_comment_deleted",
23
- "properties": {
24
- "comment": {
25
- "$ref": "#/definitions/comment_id"
26
- },
27
- "file": {
28
- "$ref": "#/definitions/file"
29
- },
30
- "file_id": {
31
- "$ref": "#/definitions/file_id"
32
- },
33
- "type": {
34
- "const": "file_comment_deleted"
35
- }
36
- },
37
- "example": {
38
- "comment": "Fc67890",
39
- "file": {
40
- "id": "F2147483862"
41
- },
42
- "file_id": "F2147483862",
43
- "type": "file_comment_deleted"
44
- }
45
- }
9
+ "file_id": "F2147483862",
10
+ "type": "file_comment_deleted"
46
11
  },
47
12
  "schema": {
48
- "type": "object",
49
- "description": "learn more: https://api.slack.com/events/file_comment_deleted",
50
- "properties": {
51
- "comment": {
52
- "$ref": "#/definitions/comment_id"
53
- },
54
- "file": {
55
- "$ref": "#/definitions/file"
13
+ "$schema": "http://json-schema.org/draft-07/schema",
14
+ "definitions": {
15
+ "comment_id": {
16
+ "type": "string"
56
17
  },
57
18
  "file_id": {
58
- "$ref": "#/definitions/file_id"
19
+ "type": "string"
59
20
  },
60
- "type": {
61
- "const": "file_comment_deleted"
62
- }
63
- },
64
- "example": {
65
- "comment": "Fc67890",
66
21
  "file": {
67
- "id": "F2147483862"
22
+ "type": "object",
23
+ "description": "(defined by script)",
24
+ "properties": {
25
+ "id": {
26
+ "$ref": "#/definitions/file_id"
27
+ }
28
+ }
68
29
  },
69
- "file_id": "F2147483862",
70
- "type": "file_comment_deleted"
30
+ "file_comment_deleted": {
31
+ "type": "object",
32
+ "description": "learn more: https://api.slack.com/events/file_comment_deleted",
33
+ "properties": {
34
+ "comment": {
35
+ "$ref": "#/definitions/comment_id"
36
+ },
37
+ "file": {
38
+ "$ref": "#/definitions/file"
39
+ },
40
+ "file_id": {
41
+ "$ref": "#/definitions/file_id"
42
+ },
43
+ "type": {
44
+ "const": "file_comment_deleted"
45
+ }
46
+ },
47
+ "example": {
48
+ "comment": "Fc67890",
49
+ "file": {
50
+ "id": "F2147483862"
51
+ },
52
+ "file_id": "F2147483862",
53
+ "type": "file_comment_deleted"
54
+ }
55
+ }
71
56
  }
72
57
  },
73
58
  "compatibility": [