@im-more/dsh-slack 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/LICENSE +21 -0
  2. package/cordis.patch.yml +13 -0
  3. package/lib/index.js +2659 -0
  4. package/lib/index.js.map +1 -0
  5. package/lib/types/bot.d.ts +66 -0
  6. package/lib/types/bot.d.ts.map +1 -0
  7. package/lib/types/bot.js +165 -0
  8. package/lib/types/bot.js.map +1 -0
  9. package/lib/types/config.d.ts +49 -0
  10. package/lib/types/config.d.ts.map +1 -0
  11. package/lib/types/config.js +54 -0
  12. package/lib/types/config.js.map +1 -0
  13. package/lib/types/decode.d.ts +126 -0
  14. package/lib/types/decode.d.ts.map +1 -0
  15. package/lib/types/decode.js +396 -0
  16. package/lib/types/decode.js.map +1 -0
  17. package/lib/types/errors.d.ts +61 -0
  18. package/lib/types/errors.d.ts.map +1 -0
  19. package/lib/types/errors.js +196 -0
  20. package/lib/types/errors.js.map +1 -0
  21. package/lib/types/identity.d.ts +27 -0
  22. package/lib/types/identity.d.ts.map +1 -0
  23. package/lib/types/identity.js +35 -0
  24. package/lib/types/identity.js.map +1 -0
  25. package/lib/types/index.d.ts +14 -0
  26. package/lib/types/index.d.ts.map +1 -0
  27. package/lib/types/index.js +14 -0
  28. package/lib/types/index.js.map +1 -0
  29. package/lib/types/modes/mrkdwn.d.ts +17 -0
  30. package/lib/types/modes/mrkdwn.d.ts.map +1 -0
  31. package/lib/types/modes/mrkdwn.js +123 -0
  32. package/lib/types/modes/mrkdwn.js.map +1 -0
  33. package/lib/types/modes/shared.d.ts +164 -0
  34. package/lib/types/modes/shared.d.ts.map +1 -0
  35. package/lib/types/modes/shared.js +411 -0
  36. package/lib/types/modes/shared.js.map +1 -0
  37. package/lib/types/mrkdwn.d.ts +41 -0
  38. package/lib/types/mrkdwn.d.ts.map +1 -0
  39. package/lib/types/mrkdwn.js +137 -0
  40. package/lib/types/mrkdwn.js.map +1 -0
  41. package/lib/types/request.d.ts +225 -0
  42. package/lib/types/request.d.ts.map +1 -0
  43. package/lib/types/request.js +330 -0
  44. package/lib/types/request.js.map +1 -0
  45. package/lib/types/send.d.ts +74 -0
  46. package/lib/types/send.d.ts.map +1 -0
  47. package/lib/types/send.js +200 -0
  48. package/lib/types/send.js.map +1 -0
  49. package/lib/types/transport/socket.d.ts +58 -0
  50. package/lib/types/transport/socket.d.ts.map +1 -0
  51. package/lib/types/transport/socket.js +297 -0
  52. package/lib/types/transport/socket.js.map +1 -0
  53. package/lib/types/transport/webhook.d.ts +48 -0
  54. package/lib/types/transport/webhook.d.ts.map +1 -0
  55. package/lib/types/transport/webhook.js +210 -0
  56. package/lib/types/transport/webhook.js.map +1 -0
  57. package/lib/types/types/admin.d.ts +682 -0
  58. package/lib/types/types/admin.d.ts.map +1 -0
  59. package/lib/types/types/admin.js +172 -0
  60. package/lib/types/types/admin.js.map +1 -0
  61. package/lib/types/types/api.d.ts +20 -0
  62. package/lib/types/types/api.d.ts.map +1 -0
  63. package/lib/types/types/api.js +7 -0
  64. package/lib/types/types/api.js.map +1 -0
  65. package/lib/types/types/apps.d.ts +138 -0
  66. package/lib/types/types/apps.d.ts.map +1 -0
  67. package/lib/types/types/apps.js +28 -0
  68. package/lib/types/types/apps.js.map +1 -0
  69. package/lib/types/types/auth.d.ts +36 -0
  70. package/lib/types/types/auth.d.ts.map +1 -0
  71. package/lib/types/types/auth.js +10 -0
  72. package/lib/types/types/auth.js.map +1 -0
  73. package/lib/types/types/bots.d.ts +32 -0
  74. package/lib/types/types/bots.d.ts.map +1 -0
  75. package/lib/types/types/bots.js +7 -0
  76. package/lib/types/types/bots.js.map +1 -0
  77. package/lib/types/types/calls.d.ts +82 -0
  78. package/lib/types/types/calls.d.ts.map +1 -0
  79. package/lib/types/types/calls.js +22 -0
  80. package/lib/types/types/calls.js.map +1 -0
  81. package/lib/types/types/chat.d.ts +208 -0
  82. package/lib/types/types/chat.d.ts.map +1 -0
  83. package/lib/types/types/chat.js +34 -0
  84. package/lib/types/types/chat.js.map +1 -0
  85. package/lib/types/types/conversations.d.ts +266 -0
  86. package/lib/types/types/conversations.d.ts.map +1 -0
  87. package/lib/types/types/conversations.js +58 -0
  88. package/lib/types/types/conversations.js.map +1 -0
  89. package/lib/types/types/definition.d.ts +505 -0
  90. package/lib/types/types/definition.d.ts.map +1 -0
  91. package/lib/types/types/definition.js +2 -0
  92. package/lib/types/types/definition.js.map +1 -0
  93. package/lib/types/types/dialog.d.ts +20 -0
  94. package/lib/types/types/dialog.d.ts.map +1 -0
  95. package/lib/types/types/dialog.js +7 -0
  96. package/lib/types/types/dialog.js.map +1 -0
  97. package/lib/types/types/dnd.d.ts +70 -0
  98. package/lib/types/types/dnd.d.ts.map +1 -0
  99. package/lib/types/types/dnd.js +19 -0
  100. package/lib/types/types/dnd.js.map +1 -0
  101. package/lib/types/types/emoji.d.ts +18 -0
  102. package/lib/types/types/emoji.d.ts.map +1 -0
  103. package/lib/types/types/emoji.js +7 -0
  104. package/lib/types/types/emoji.js.map +1 -0
  105. package/lib/types/types/events/base-events.d.ts +235 -0
  106. package/lib/types/types/events/base-events.d.ts.map +1 -0
  107. package/lib/types/types/events/base-events.js +3 -0
  108. package/lib/types/types/events/base-events.js.map +1 -0
  109. package/lib/types/types/events/index.d.ts +97 -0
  110. package/lib/types/types/events/index.d.ts.map +1 -0
  111. package/lib/types/types/events/index.js +3 -0
  112. package/lib/types/types/events/index.js.map +1 -0
  113. package/lib/types/types/events/message-events.d.ts +215 -0
  114. package/lib/types/types/events/message-events.d.ts.map +1 -0
  115. package/lib/types/types/events/message-events.js +3 -0
  116. package/lib/types/types/events/message-events.js.map +1 -0
  117. package/lib/types/types/files.d.ts +189 -0
  118. package/lib/types/types/files.d.ts.map +1 -0
  119. package/lib/types/types/files.js +43 -0
  120. package/lib/types/types/files.js.map +1 -0
  121. package/lib/types/types/index.d.ts +82 -0
  122. package/lib/types/types/index.d.ts.map +1 -0
  123. package/lib/types/types/index.js +29 -0
  124. package/lib/types/types/index.js.map +1 -0
  125. package/lib/types/types/internal.d.ts +17 -0
  126. package/lib/types/types/internal.d.ts.map +1 -0
  127. package/lib/types/types/internal.js +60 -0
  128. package/lib/types/types/internal.js.map +1 -0
  129. package/lib/types/types/migration.d.ts +25 -0
  130. package/lib/types/types/migration.d.ts.map +1 -0
  131. package/lib/types/types/migration.js +7 -0
  132. package/lib/types/types/migration.js.map +1 -0
  133. package/lib/types/types/oauth.d.ts +50 -0
  134. package/lib/types/types/oauth.d.ts.map +1 -0
  135. package/lib/types/types/oauth.js +13 -0
  136. package/lib/types/types/oauth.js.map +1 -0
  137. package/lib/types/types/pins.d.ts +39 -0
  138. package/lib/types/types/pins.d.ts.map +1 -0
  139. package/lib/types/types/pins.js +13 -0
  140. package/lib/types/types/pins.js.map +1 -0
  141. package/lib/types/types/reactions.d.ts +75 -0
  142. package/lib/types/types/reactions.d.ts.map +1 -0
  143. package/lib/types/types/reactions.js +16 -0
  144. package/lib/types/types/reactions.js.map +1 -0
  145. package/lib/types/types/reminders.d.ts +64 -0
  146. package/lib/types/types/reminders.d.ts.map +1 -0
  147. package/lib/types/types/reminders.js +19 -0
  148. package/lib/types/types/reminders.js.map +1 -0
  149. package/lib/types/types/rtm.d.ts +30 -0
  150. package/lib/types/types/rtm.d.ts.map +1 -0
  151. package/lib/types/types/rtm.js +7 -0
  152. package/lib/types/types/rtm.js.map +1 -0
  153. package/lib/types/types/search.d.ts +24 -0
  154. package/lib/types/types/search.d.ts.map +1 -0
  155. package/lib/types/types/search.js +7 -0
  156. package/lib/types/types/search.js.map +1 -0
  157. package/lib/types/types/stars.d.ts +56 -0
  158. package/lib/types/types/stars.d.ts.map +1 -0
  159. package/lib/types/types/stars.js +13 -0
  160. package/lib/types/types/stars.js.map +1 -0
  161. package/lib/types/types/team.d.ts +98 -0
  162. package/lib/types/types/team.d.ts.map +1 -0
  163. package/lib/types/types/team.js +19 -0
  164. package/lib/types/types/team.js.map +1 -0
  165. package/lib/types/types/usergroups.d.ts +103 -0
  166. package/lib/types/types/usergroups.d.ts.map +1 -0
  167. package/lib/types/types/usergroups.js +25 -0
  168. package/lib/types/types/usergroups.js.map +1 -0
  169. package/lib/types/types/users.d.ts +169 -0
  170. package/lib/types/types/users.d.ts.map +1 -0
  171. package/lib/types/types/users.js +40 -0
  172. package/lib/types/types/users.js.map +1 -0
  173. package/lib/types/types/views.d.ts +56 -0
  174. package/lib/types/types/views.d.ts.map +1 -0
  175. package/lib/types/types/views.js +16 -0
  176. package/lib/types/types/views.js.map +1 -0
  177. package/lib/types/types/workflows.d.ts +45 -0
  178. package/lib/types/types/workflows.d.ts.map +1 -0
  179. package/lib/types/types/workflows.js +13 -0
  180. package/lib/types/types/workflows.js.map +1 -0
  181. package/package.json +65 -3
  182. package/src/bot.ts +273 -0
  183. package/src/config.ts +92 -0
  184. package/src/decode.ts +489 -0
  185. package/src/errors.ts +230 -0
  186. package/src/identity.ts +59 -0
  187. package/src/index.ts +64 -0
  188. package/src/modes/mrkdwn.ts +159 -0
  189. package/src/modes/shared.ts +515 -0
  190. package/src/mrkdwn.ts +146 -0
  191. package/src/request.ts +449 -0
  192. package/src/send.ts +300 -0
  193. package/src/transport/socket.ts +393 -0
  194. package/src/transport/webhook.ts +269 -0
  195. package/src/types/admin.ts +910 -0
  196. package/src/types/api.ts +28 -0
  197. package/src/types/apps.ts +175 -0
  198. package/src/types/auth.ts +49 -0
  199. package/src/types/bots.ts +40 -0
  200. package/src/types/calls.ts +110 -0
  201. package/src/types/chat.ts +255 -0
  202. package/src/types/conversations.ts +342 -0
  203. package/src/types/definition.ts +530 -0
  204. package/src/types/dialog.ts +28 -0
  205. package/src/types/dnd.ts +94 -0
  206. package/src/types/emoji.ts +26 -0
  207. package/src/types/events/base-events.ts +281 -0
  208. package/src/types/events/index.ts +125 -0
  209. package/src/types/events/message-events.ts +253 -0
  210. package/src/types/files.ts +245 -0
  211. package/src/types/index.ts +84 -0
  212. package/src/types/internal.ts +60 -0
  213. package/src/types/migration.ts +34 -0
  214. package/src/types/oauth.ts +66 -0
  215. package/src/types/pins.ts +55 -0
  216. package/src/types/reactions.ts +95 -0
  217. package/src/types/reminders.ts +88 -0
  218. package/src/types/rtm.ts +38 -0
  219. package/src/types/search.ts +32 -0
  220. package/src/types/stars.ts +72 -0
  221. package/src/types/team.ts +122 -0
  222. package/src/types/usergroups.ts +135 -0
  223. package/src/types/users.ts +221 -0
  224. package/src/types/views.ts +76 -0
  225. package/src/types/workflows.ts +61 -0
  226. package/README.md +0 -3
@@ -0,0 +1,208 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Chat {
3
+ namespace Params {
4
+ interface Delete {
5
+ ts?: number;
6
+ channel?: string;
7
+ as_user?: boolean;
8
+ }
9
+ interface DeleteScheduledMessage {
10
+ as_user?: boolean;
11
+ channel: string;
12
+ scheduled_message_id: string;
13
+ }
14
+ interface GetPermalink {
15
+ channel: string;
16
+ message_ts: string;
17
+ }
18
+ interface MeMessage {
19
+ channel?: string;
20
+ text?: string;
21
+ }
22
+ interface PostEphemeral {
23
+ as_user?: boolean;
24
+ attachments?: string;
25
+ blocks?: string;
26
+ channel: string;
27
+ icon_emoji?: string;
28
+ icon_url?: string;
29
+ link_names?: boolean;
30
+ parse?: string;
31
+ text?: string;
32
+ thread_ts?: string;
33
+ user: string;
34
+ username?: string;
35
+ }
36
+ interface PostMessage {
37
+ as_user?: string;
38
+ attachments?: string;
39
+ blocks?: string;
40
+ channel: string;
41
+ icon_emoji?: string;
42
+ icon_url?: string;
43
+ link_names?: boolean;
44
+ mrkdwn?: boolean;
45
+ parse?: string;
46
+ reply_broadcast?: boolean;
47
+ text?: string;
48
+ thread_ts?: string;
49
+ unfurl_links?: boolean;
50
+ unfurl_media?: boolean;
51
+ username?: string;
52
+ }
53
+ interface ScheduleMessage {
54
+ channel?: string;
55
+ text?: string;
56
+ post_at?: string;
57
+ parse?: string;
58
+ as_user?: boolean;
59
+ link_names?: boolean;
60
+ attachments?: string;
61
+ blocks?: string;
62
+ unfurl_links?: boolean;
63
+ unfurl_media?: boolean;
64
+ thread_ts?: number;
65
+ reply_broadcast?: boolean;
66
+ }
67
+ interface ScheduledMessagesList {
68
+ channel?: string;
69
+ latest?: number;
70
+ oldest?: number;
71
+ limit?: number;
72
+ cursor?: string;
73
+ }
74
+ interface Unfurl {
75
+ channel: string;
76
+ ts: string;
77
+ unfurls?: string;
78
+ user_auth_message?: string;
79
+ user_auth_required?: boolean;
80
+ user_auth_url?: string;
81
+ }
82
+ interface Update {
83
+ as_user?: string;
84
+ attachments?: string;
85
+ blocks?: string;
86
+ channel: string;
87
+ link_names?: string;
88
+ parse?: string;
89
+ text?: string;
90
+ ts: string;
91
+ }
92
+ }
93
+ }
94
+ declare module './internal' {
95
+ interface Internal {
96
+ /**
97
+ * Deletes a message.
98
+ * @see https://api.slack.com/methods/chat.delete
99
+ */
100
+ chatDelete(token: TokenInput, params: Chat.Params.Delete): Promise<{
101
+ channel: string;
102
+ ok: boolean;
103
+ ts: string;
104
+ }>;
105
+ /**
106
+ * Deletes a pending scheduled message from the queue.
107
+ * @see https://api.slack.com/methods/chat.deleteScheduledMessage
108
+ */
109
+ chatDeleteScheduledMessage(token: TokenInput, params: Chat.Params.DeleteScheduledMessage): Promise<{
110
+ ok: boolean;
111
+ }>;
112
+ /**
113
+ * Retrieve a permalink URL for a specific extant message
114
+ * @see https://api.slack.com/methods/chat.getPermalink
115
+ */
116
+ chatGetPermalink(token: TokenInput, params: Chat.Params.GetPermalink): Promise<{
117
+ channel: string;
118
+ ok: boolean;
119
+ permalink: string;
120
+ }>;
121
+ /**
122
+ * Share a me message into a channel.
123
+ * @see https://api.slack.com/methods/chat.meMessage
124
+ */
125
+ chatMeMessage(token: TokenInput, params: Chat.Params.MeMessage): Promise<{
126
+ channel?: string;
127
+ ok: boolean;
128
+ ts?: string;
129
+ }>;
130
+ /**
131
+ * Sends an ephemeral message to a user in a channel.
132
+ * @see https://api.slack.com/methods/chat.postEphemeral
133
+ */
134
+ chatPostEphemeral(token: TokenInput, params: Chat.Params.PostEphemeral): Promise<{
135
+ message_ts: string;
136
+ ok: boolean;
137
+ }>;
138
+ /**
139
+ * Sends a message to a channel.
140
+ * @see https://api.slack.com/methods/chat.postMessage
141
+ */
142
+ chatPostMessage(token: TokenInput, params: Chat.Params.PostMessage): Promise<{
143
+ channel: string;
144
+ message: Definitions.Message;
145
+ ok: boolean;
146
+ ts: string;
147
+ }>;
148
+ /**
149
+ * Schedules a message to be sent to a channel.
150
+ * @see https://api.slack.com/methods/chat.scheduleMessage
151
+ */
152
+ chatScheduleMessage(token: TokenInput, params: Chat.Params.ScheduleMessage): Promise<{
153
+ channel: string;
154
+ message: {
155
+ bot_id: string;
156
+ bot_profile: Definitions.BotProfile;
157
+ team: string;
158
+ text: string;
159
+ type: string;
160
+ user: string;
161
+ username: string;
162
+ };
163
+ ok: boolean;
164
+ post_at: number;
165
+ scheduled_message_id: string;
166
+ }>;
167
+ /**
168
+ * Returns a list of scheduled messages.
169
+ * @see https://api.slack.com/methods/chat.scheduledMessages.list
170
+ */
171
+ chatScheduledMessagesList(token: TokenInput, params: Chat.Params.ScheduledMessagesList): Promise<{
172
+ ok: boolean;
173
+ response_metadata: {
174
+ next_cursor: string;
175
+ };
176
+ scheduled_messages: {
177
+ channel_id: string;
178
+ date_created: number;
179
+ id: string;
180
+ post_at: number;
181
+ text: string;
182
+ }[];
183
+ }>;
184
+ /**
185
+ * Provide custom unfurl behavior for user-posted URLs
186
+ * @see https://api.slack.com/methods/chat.unfurl
187
+ */
188
+ chatUnfurl(token: TokenInput, params: Chat.Params.Unfurl): Promise<{
189
+ ok: boolean;
190
+ }>;
191
+ /**
192
+ * Updates a message.
193
+ * @see https://api.slack.com/methods/chat.update
194
+ */
195
+ chatUpdate(token: TokenInput, params: Chat.Params.Update): Promise<{
196
+ channel: string;
197
+ message: {
198
+ attachments: {}[];
199
+ blocks: {};
200
+ text: string;
201
+ };
202
+ ok: boolean;
203
+ text: string;
204
+ ts: string;
205
+ }>;
206
+ }
207
+ }
208
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../src/types/chat.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAmC7C,yBAAiB,IAAI,CAAC;IACpB,UAAiB,MAAM,CAAC;QACtB,UAAiB,MAAM;YACrB,EAAE,CAAC,EAAE,MAAM,CAAA;YACX,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,OAAO,CAAC,EAAE,OAAO,CAAA;SAClB;QACD,UAAiB,sBAAsB;YACrC,OAAO,CAAC,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,CAAA;YACf,oBAAoB,EAAE,MAAM,CAAA;SAC7B;QACD,UAAiB,YAAY;YAC3B,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,EAAE,MAAM,CAAA;SACnB;QACD,UAAiB,SAAS;YACxB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,IAAI,CAAC,EAAE,MAAM,CAAA;SACd;QACD,UAAiB,aAAa;YAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;YACjB,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,OAAO,EAAE,MAAM,CAAA;YACf,UAAU,CAAC,EAAE,MAAM,CAAA;YACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;YACjB,UAAU,CAAC,EAAE,OAAO,CAAA;YACpB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,SAAS,CAAC,EAAE,MAAM,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB;QACD,UAAiB,WAAW;YAC1B,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,WAAW,CAAC,E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,OAAO,CAAA;YACX,iBAAiB,EAAE;gBACjB,WAAW,EAAE,MAAM,CAAA;aACpB,CAAA;YACD,kBAAkB,EAAE;gBAClB,UAAU,EAAE,MAAM,CAAA;gBAClB,YAAY,EAAE,MAAM,CAAA;gBACpB,EAAE,EAAE,MAAM,CAAA;gBACV,OAAO,EAAE,MAAM,CAAA;gBACf,IAAI,EAAE,MAAM,CAAA;aACb,EAAE,CAAA;SACJ,CAAC,CAAA;QAEF;;;WAGG;QACH,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC;YACjE,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC;YACjE,OAAO,EAAE,MAAM,CAAA;YACf,OAAO,EAAE;gBACP,WAAW,EAAE,EACZ,EAAE,CAAA;gBACH,MAAM,EAAE,EACP,CAAA;gBACD,IAAI,EAAE,MAAM,CAAA;aACb,CAAA;YACD,EAAE,EAAE,OAAO,CAAA;YACX,IAAI,EAAE,MAAM,CAAA;YACZ,EAAE,EAAE,MAAM,CAAA;SACX,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,34 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/chat.delete': {
4
+ POST: { 'chatDelete': true },
5
+ },
6
+ '/chat.deleteScheduledMessage': {
7
+ POST: { 'chatDeleteScheduledMessage': true },
8
+ },
9
+ '/chat.getPermalink': {
10
+ GET: { 'chatGetPermalink': false },
11
+ },
12
+ '/chat.meMessage': {
13
+ POST: { 'chatMeMessage': true },
14
+ },
15
+ '/chat.postEphemeral': {
16
+ POST: { 'chatPostEphemeral': true },
17
+ },
18
+ '/chat.postMessage': {
19
+ POST: { 'chatPostMessage': true },
20
+ },
21
+ '/chat.scheduleMessage': {
22
+ POST: { 'chatScheduleMessage': true },
23
+ },
24
+ '/chat.scheduledMessages.list': {
25
+ GET: { 'chatScheduledMessagesList': true },
26
+ },
27
+ '/chat.unfurl': {
28
+ POST: { 'chatUnfurl': true },
29
+ },
30
+ '/chat.update': {
31
+ POST: { 'chatUpdate': true },
32
+ },
33
+ });
34
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../../src/types/chat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAGxC,QAAQ,CAAC,MAAM,CAAC;IACd,cAAc,EAAE;QACd,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;KAC7B;IACD,8BAA8B,EAAE;QAC9B,IAAI,EAAE,EAAE,4BAA4B,EAAE,IAAI,EAAE;KAC7C;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE;KACnC;IACD,iBAAiB,EAAE;QACjB,IAAI,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;KAChC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;KAClC;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE;KACtC;IACD,8BAA8B,EAAE;QAC9B,GAAG,EAAE,EAAE,2BAA2B,EAAE,IAAI,EAAE;KAC3C;IACD,cAAc,EAAE;QACd,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;KAC7B;IACD,cAAc,EAAE;QACd,IAAI,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;KAC7B;CACF,CAAC,CAAA"}
@@ -0,0 +1,266 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Conversations {
3
+ namespace Params {
4
+ interface Archive {
5
+ channel?: string;
6
+ }
7
+ interface Close {
8
+ channel?: string;
9
+ }
10
+ interface Create {
11
+ name?: string;
12
+ is_private?: boolean;
13
+ }
14
+ interface History {
15
+ channel?: string;
16
+ latest?: number;
17
+ oldest?: number;
18
+ inclusive?: boolean;
19
+ limit?: number;
20
+ cursor?: string;
21
+ }
22
+ interface Info {
23
+ channel?: string;
24
+ include_locale?: boolean;
25
+ include_num_members?: boolean;
26
+ }
27
+ interface Invite {
28
+ channel?: string;
29
+ users?: string;
30
+ }
31
+ interface Join {
32
+ channel?: string;
33
+ }
34
+ interface Kick {
35
+ channel?: string;
36
+ user?: string;
37
+ }
38
+ interface Leave {
39
+ channel?: string;
40
+ }
41
+ interface List {
42
+ exclude_archived?: boolean;
43
+ types?: string;
44
+ limit?: number;
45
+ cursor?: string;
46
+ }
47
+ interface Mark {
48
+ channel?: string;
49
+ ts?: number;
50
+ }
51
+ interface Members {
52
+ channel?: string;
53
+ limit?: number;
54
+ cursor?: string;
55
+ }
56
+ interface Open {
57
+ channel?: string;
58
+ users?: string;
59
+ return_im?: boolean;
60
+ }
61
+ interface Rename {
62
+ channel?: string;
63
+ name?: string;
64
+ }
65
+ interface Replies {
66
+ channel?: string;
67
+ ts?: number;
68
+ latest?: number;
69
+ oldest?: number;
70
+ inclusive?: boolean;
71
+ limit?: number;
72
+ cursor?: string;
73
+ }
74
+ interface SetPurpose {
75
+ channel?: string;
76
+ purpose?: string;
77
+ }
78
+ interface SetTopic {
79
+ channel?: string;
80
+ topic?: string;
81
+ }
82
+ interface Unarchive {
83
+ channel?: string;
84
+ }
85
+ }
86
+ }
87
+ declare module './internal' {
88
+ interface Internal {
89
+ /**
90
+ * Archives a conversation.
91
+ * @see https://api.slack.com/methods/conversations.archive
92
+ */
93
+ conversationsArchive(token: TokenInput, params: Conversations.Params.Archive): Promise<{
94
+ ok: boolean;
95
+ }>;
96
+ /**
97
+ * Closes a direct message or multi-person direct message.
98
+ * @see https://api.slack.com/methods/conversations.close
99
+ */
100
+ conversationsClose(token: TokenInput, params: Conversations.Params.Close): Promise<{
101
+ already_closed?: boolean;
102
+ no_op?: boolean;
103
+ ok: boolean;
104
+ }>;
105
+ /**
106
+ * Initiates a public or private channel-based conversation
107
+ * @see https://api.slack.com/methods/conversations.create
108
+ */
109
+ conversationsCreate(token: TokenInput, params: Conversations.Params.Create): Promise<{
110
+ channel: Definitions.Conversation;
111
+ ok: boolean;
112
+ }>;
113
+ /**
114
+ * Fetches a conversation's history of messages and events.
115
+ * @see https://api.slack.com/methods/conversations.history
116
+ */
117
+ conversationsHistory(token: TokenInput, params: Conversations.Params.History): Promise<{
118
+ channel_actions_count: number;
119
+ channel_actions_ts: number;
120
+ has_more: boolean;
121
+ messages: Definitions.Message[];
122
+ ok: boolean;
123
+ pin_count: number;
124
+ }>;
125
+ /**
126
+ * Retrieve information about a conversation.
127
+ * @see https://api.slack.com/methods/conversations.info
128
+ */
129
+ conversationsInfo(token: TokenInput, params: Conversations.Params.Info): Promise<{
130
+ channel: Definitions.Conversation;
131
+ ok: boolean;
132
+ }>;
133
+ /**
134
+ * Invites users to a channel.
135
+ * @see https://api.slack.com/methods/conversations.invite
136
+ */
137
+ conversationsInvite(token: TokenInput, params: Conversations.Params.Invite): Promise<{
138
+ channel: Definitions.Conversation;
139
+ ok: boolean;
140
+ }>;
141
+ /**
142
+ * Joins an existing conversation.
143
+ * @see https://api.slack.com/methods/conversations.join
144
+ */
145
+ conversationsJoin(token: TokenInput, params: Conversations.Params.Join): Promise<{
146
+ channel: Definitions.Conversation;
147
+ ok: boolean;
148
+ response_metadata?: {
149
+ warnings: string[];
150
+ };
151
+ warning?: string;
152
+ }>;
153
+ /**
154
+ * Removes a user from a conversation.
155
+ * @see https://api.slack.com/methods/conversations.kick
156
+ */
157
+ conversationsKick(token: TokenInput, params: Conversations.Params.Kick): Promise<{
158
+ ok: boolean;
159
+ }>;
160
+ /**
161
+ * Leaves a conversation.
162
+ * @see https://api.slack.com/methods/conversations.leave
163
+ */
164
+ conversationsLeave(token: TokenInput, params: Conversations.Params.Leave): Promise<{
165
+ not_in_channel?: boolean;
166
+ ok: boolean;
167
+ }>;
168
+ /**
169
+ * Lists all channels in a Slack team.
170
+ * @see https://api.slack.com/methods/conversations.list
171
+ */
172
+ conversationsList(token: TokenInput, params: Conversations.Params.List): Promise<{
173
+ channels: Definitions.Conversation[];
174
+ ok: boolean;
175
+ response_metadata?: {
176
+ next_cursor: string;
177
+ };
178
+ }>;
179
+ /**
180
+ * Sets the read cursor in a channel.
181
+ * @see https://api.slack.com/methods/conversations.mark
182
+ */
183
+ conversationsMark(token: TokenInput, params: Conversations.Params.Mark): Promise<{
184
+ ok: boolean;
185
+ }>;
186
+ /**
187
+ * Retrieve members of a conversation.
188
+ * @see https://api.slack.com/methods/conversations.members
189
+ */
190
+ conversationsMembers(token: TokenInput, params: Conversations.Params.Members): Promise<{
191
+ members: string[];
192
+ ok: boolean;
193
+ response_metadata: {
194
+ next_cursor: string;
195
+ };
196
+ }>;
197
+ /**
198
+ * Opens or resumes a direct message or multi-person direct message.
199
+ * @see https://api.slack.com/methods/conversations.open
200
+ */
201
+ conversationsOpen(token: TokenInput, params: Conversations.Params.Open): Promise<{
202
+ already_open?: boolean;
203
+ channel: Definitions.Conversation;
204
+ no_op?: boolean;
205
+ ok: boolean;
206
+ }>;
207
+ /**
208
+ * Renames a conversation.
209
+ * @see https://api.slack.com/methods/conversations.rename
210
+ */
211
+ conversationsRename(token: TokenInput, params: Conversations.Params.Rename): Promise<{
212
+ channel: Definitions.Conversation;
213
+ ok: boolean;
214
+ }>;
215
+ /**
216
+ * Retrieve a thread of messages posted to a conversation
217
+ * @see https://api.slack.com/methods/conversations.replies
218
+ */
219
+ conversationsReplies(token: TokenInput, params: Conversations.Params.Replies): Promise<{
220
+ has_more?: boolean;
221
+ messages: {
222
+ last_read: string;
223
+ latest_reply: string;
224
+ reply_count: number;
225
+ reply_users: string[];
226
+ reply_users_count: number;
227
+ source_team: string;
228
+ subscribed: boolean;
229
+ team: string;
230
+ text: string;
231
+ thread_ts: string;
232
+ ts: string;
233
+ type: string;
234
+ unread_count: number;
235
+ user: string;
236
+ user_profile: Definitions.UserProfileShort;
237
+ user_team: string;
238
+ }[];
239
+ ok: boolean;
240
+ }>;
241
+ /**
242
+ * Sets the purpose for a conversation.
243
+ * @see https://api.slack.com/methods/conversations.setPurpose
244
+ */
245
+ conversationsSetPurpose(token: TokenInput, params: Conversations.Params.SetPurpose): Promise<{
246
+ channel: Definitions.Conversation;
247
+ ok: boolean;
248
+ }>;
249
+ /**
250
+ * Sets the topic for a conversation.
251
+ * @see https://api.slack.com/methods/conversations.setTopic
252
+ */
253
+ conversationsSetTopic(token: TokenInput, params: Conversations.Params.SetTopic): Promise<{
254
+ channel: Definitions.Conversation;
255
+ ok: boolean;
256
+ }>;
257
+ /**
258
+ * Reverses conversation archival.
259
+ * @see https://api.slack.com/methods/conversations.unarchive
260
+ */
261
+ conversationsUnarchive(token: TokenInput, params: Conversations.Params.Unarchive): Promise<{
262
+ ok: boolean;
263
+ }>;
264
+ }
265
+ }
266
+ //# sourceMappingURL=conversations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.d.ts","sourceRoot":"","sources":["../../../src/types/conversations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AA0D7C,yBAAiB,aAAa,CAAC;IAC7B,UAAiB,MAAM,CAAC;QACtB,UAAiB,OAAO;YACtB,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB;QACD,UAAiB,KAAK;YACpB,OAAO,CAAC,EAAE,MAAM,CAAA;SACjB;QACD,UAAiB,MAAM;YACrB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,UAAU,CAAC,EAAE,OAAO,CAAA;SACrB;QACD,UAAiB,OAAO;YACtB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,M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AO,EAAE,WAAW,CAAC,YAAY,CAAA;YACjC,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,sBAAsB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,SAAS,GAAG,OAAO,CAAC;YACzF,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,58 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/conversations.archive': {
4
+ POST: { 'conversationsArchive': true },
5
+ },
6
+ '/conversations.close': {
7
+ POST: { 'conversationsClose': true },
8
+ },
9
+ '/conversations.create': {
10
+ POST: { 'conversationsCreate': true },
11
+ },
12
+ '/conversations.history': {
13
+ GET: { 'conversationsHistory': true },
14
+ },
15
+ '/conversations.info': {
16
+ GET: { 'conversationsInfo': false },
17
+ },
18
+ '/conversations.invite': {
19
+ POST: { 'conversationsInvite': true },
20
+ },
21
+ '/conversations.join': {
22
+ POST: { 'conversationsJoin': true },
23
+ },
24
+ '/conversations.kick': {
25
+ POST: { 'conversationsKick': true },
26
+ },
27
+ '/conversations.leave': {
28
+ POST: { 'conversationsLeave': true },
29
+ },
30
+ '/conversations.list': {
31
+ GET: { 'conversationsList': false },
32
+ },
33
+ '/conversations.mark': {
34
+ POST: { 'conversationsMark': true },
35
+ },
36
+ '/conversations.members': {
37
+ GET: { 'conversationsMembers': false },
38
+ },
39
+ '/conversations.open': {
40
+ POST: { 'conversationsOpen': true },
41
+ },
42
+ '/conversations.rename': {
43
+ POST: { 'conversationsRename': true },
44
+ },
45
+ '/conversations.replies': {
46
+ GET: { 'conversationsReplies': false },
47
+ },
48
+ '/conversations.setPurpose': {
49
+ POST: { 'conversationsSetPurpose': true },
50
+ },
51
+ '/conversations.setTopic': {
52
+ POST: { 'conversationsSetTopic': true },
53
+ },
54
+ '/conversations.unarchive': {
55
+ POST: { 'conversationsUnarchive': true },
56
+ },
57
+ });
58
+ //# sourceMappingURL=conversations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversations.js","sourceRoot":"","sources":["../../../src/types/conversations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,wBAAwB,EAAE;QACxB,IAAI,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE;KACvC;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACrC;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE;KACtC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,EAAE,sBAAsB,EAAE,IAAI,EAAE;KACtC;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE;KACpC;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,EAAE,qBAAqB,EAAE,IAAI,EAAE;KACtC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE;KACrC;IACD,qBAAqB,EAAE;QACrB,GAAG,EAAE,EAAE,mBAAmB,EAAE,KAAK,EAAE;KACpC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,EAAE,sBAAsB,EAAE,KAAK,EAAE;KACvC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,uBAAuB,EAAE;QACvB,IAAI,EAAE,EAAE,qBAAqB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