@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,75 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Reactions {
3
+ namespace Params {
4
+ interface Add {
5
+ channel: string;
6
+ name: string;
7
+ timestamp: string;
8
+ }
9
+ interface Get {
10
+ channel?: string;
11
+ file?: string;
12
+ file_comment?: string;
13
+ full?: boolean;
14
+ timestamp?: string;
15
+ }
16
+ interface List {
17
+ user?: string;
18
+ full?: boolean;
19
+ count?: number;
20
+ page?: number;
21
+ cursor?: string;
22
+ limit?: number;
23
+ }
24
+ interface Remove {
25
+ name: string;
26
+ file?: string;
27
+ file_comment?: string;
28
+ channel?: string;
29
+ timestamp?: string;
30
+ }
31
+ }
32
+ }
33
+ declare module './internal' {
34
+ interface Internal {
35
+ /**
36
+ * Adds a reaction to an item.
37
+ * @see https://api.slack.com/methods/reactions.add
38
+ */
39
+ reactionsAdd(token: TokenInput, params: Reactions.Params.Add): Promise<{
40
+ ok: boolean;
41
+ }>;
42
+ /**
43
+ * Gets reactions for an item.
44
+ * @see https://api.slack.com/methods/reactions.get
45
+ */
46
+ reactionsGet(token: TokenInput, params: Reactions.Params.Get): Promise<{
47
+ channel: string;
48
+ message: Definitions.Message;
49
+ ok: boolean;
50
+ type: string;
51
+ }>;
52
+ /**
53
+ * Lists reactions made by a user.
54
+ * @see https://api.slack.com/methods/reactions.list
55
+ */
56
+ reactionsList(token: TokenInput, params: Reactions.Params.List): Promise<{
57
+ items: {
58
+ channel: string;
59
+ message: Definitions.Message;
60
+ type: string;
61
+ }[];
62
+ ok: boolean;
63
+ paging?: Definitions.Paging;
64
+ response_metadata?: Definitions.ResponseMetadata;
65
+ }>;
66
+ /**
67
+ * Removes a reaction from an item.
68
+ * @see https://api.slack.com/methods/reactions.remove
69
+ */
70
+ reactionsRemove(token: TokenInput, params: Reactions.Params.Remove): Promise<{
71
+ ok: boolean;
72
+ }>;
73
+ }
74
+ }
75
+ //# sourceMappingURL=reactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.d.ts","sourceRoot":"","sources":["../../../src/types/reactions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAgB7C,yBAAiB,SAAS,CAAC;IACzB,UAAiB,MAAM,CAAC;QACtB,UAAiB,GAAG;YAClB,OAAO,EAAE,MAAM,CAAA;YACf,IAAI,EAAE,MAAM,CAAA;YACZ,SAAS,EAAE,MAAM,CAAA;SAClB;QACD,UAAiB,GAAG;YAClB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,IAAI,CAAC,EAAE,OAAO,CAAA;YACd,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB;QACD,UAAiB,IAAI;YACnB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,IAAI,CAAC,EAAE,OAAO,CAAA;YACd,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;SACf;QACD,UAAiB,MAAM;YACrB,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB;KACF;CACF;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,QAAQ;QAEhB;;;WAGG;QACH,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;YACrE,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;YACrE,OAAO,EAAE,MAAM,CAAA;YACf,OAAO,EAAE,WAAW,CAAC,OAAO,CAAA;YAC5B,EAAE,EAAE,OAAO,CAAA;YACX,IAAI,EAAE,MAAM,CAAA;SACb,CAAC,CAAA;QAEF;;;WAGG;QACH,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;YACvE,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM,CAAA;gBACf,OAAO,EAAE,WAAW,CAAC,OAAO,CAAA;gBAC5B,IAAI,EAAE,MAAM,CAAA;aACb,EAAE,CAAA;YACH,EAAE,EAAE,OAAO,CAAA;YACX,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAA;YAC3B,iBAAiB,CAAC,EAAE,WAAW,CAAC,gBAAgB,CAAA;SACjD,CAAC,CAAA;QAEF;;;WAGG;QACH,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC;YAC3E,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,16 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/reactions.add': {
4
+ POST: { 'reactionsAdd': true },
5
+ },
6
+ '/reactions.get': {
7
+ GET: { 'reactionsGet': false },
8
+ },
9
+ '/reactions.list': {
10
+ GET: { 'reactionsList': false },
11
+ },
12
+ '/reactions.remove': {
13
+ POST: { 'reactionsRemove': true },
14
+ },
15
+ });
16
+ //# sourceMappingURL=reactions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.js","sourceRoot":"","sources":["../../../src/types/reactions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,gBAAgB,EAAE;QAChB,IAAI,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;KAC/B;IACD,gBAAgB,EAAE;QAChB,GAAG,EAAE,EAAE,cAAc,EAAE,KAAK,EAAE;KAC/B;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE;KAChC;IACD,mBAAmB,EAAE;QACnB,IAAI,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE;KAClC;CACF,CAAC,CAAA"}
@@ -0,0 +1,64 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Reminders {
3
+ namespace Params {
4
+ interface Add {
5
+ text: string;
6
+ time: string;
7
+ user?: string;
8
+ }
9
+ interface Complete {
10
+ reminder?: string;
11
+ }
12
+ interface Delete {
13
+ reminder?: string;
14
+ }
15
+ interface Info {
16
+ reminder?: string;
17
+ }
18
+ interface List {
19
+ }
20
+ }
21
+ }
22
+ declare module './internal' {
23
+ interface Internal {
24
+ /**
25
+ * Creates a reminder.
26
+ * @see https://api.slack.com/methods/reminders.add
27
+ */
28
+ remindersAdd(token: TokenInput, params: Reminders.Params.Add): Promise<{
29
+ ok: boolean;
30
+ reminder: Definitions.Reminder;
31
+ }>;
32
+ /**
33
+ * Marks a reminder as complete.
34
+ * @see https://api.slack.com/methods/reminders.complete
35
+ */
36
+ remindersComplete(token: TokenInput, params: Reminders.Params.Complete): Promise<{
37
+ ok: boolean;
38
+ }>;
39
+ /**
40
+ * Deletes a reminder.
41
+ * @see https://api.slack.com/methods/reminders.delete
42
+ */
43
+ remindersDelete(token: TokenInput, params: Reminders.Params.Delete): Promise<{
44
+ ok: boolean;
45
+ }>;
46
+ /**
47
+ * Gets information about a reminder.
48
+ * @see https://api.slack.com/methods/reminders.info
49
+ */
50
+ remindersInfo(token: TokenInput, params: Reminders.Params.Info): Promise<{
51
+ ok: boolean;
52
+ reminder: Definitions.Reminder;
53
+ }>;
54
+ /**
55
+ * Lists all reminders created by or for a given user.
56
+ * @see https://api.slack.com/methods/reminders.list
57
+ */
58
+ remindersList(token: TokenInput): Promise<{
59
+ ok: boolean;
60
+ reminders: Definitions.Reminder[];
61
+ }>;
62
+ }
63
+ }
64
+ //# sourceMappingURL=reminders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reminders.d.ts","sourceRoot":"","sources":["../../../src/types/reminders.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAmB7C,yBAAiB,SAAS,CAAC;IACzB,UAAiB,MAAM,CAAC;QACtB,UAAiB,GAAG;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,EAAE,MAAM,CAAA;YACZ,IAAI,CAAC,EAAE,MAAM,CAAA;SACd;QACD,UAAiB,QAAQ;YACvB,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB;QACD,UAAiB,MAAM;YACrB,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB;QACD,UAAiB,IAAI;YACnB,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB;QACD,UAAiB,IAAI;SACpB;KACF;CACF;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,QAAQ;QAEhB;;;WAGG;QACH,YAAY,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;YACrE,EAAE,EAAE,OAAO,CAAA;YACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;SAC/B,CAAC,CAAA;QAEF;;;WAGG;QACH,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC;YAC/E,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC;YAC3E,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,aAAa,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;YACvE,EAAE,EAAE,OAAO,CAAA;YACX,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAA;SAC/B,CAAC,CAAA;QAEF;;;WAGG;QACH,aAAa,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC;YACxC,EAAE,EAAE,OAAO,CAAA;YACX,SAAS,EAAE,WAAW,CAAC,QAAQ,EAAE,CAAA;SAClC,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,19 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/reminders.add': {
4
+ POST: { 'remindersAdd': true },
5
+ },
6
+ '/reminders.complete': {
7
+ POST: { 'remindersComplete': true },
8
+ },
9
+ '/reminders.delete': {
10
+ POST: { 'remindersDelete': true },
11
+ },
12
+ '/reminders.info': {
13
+ GET: { 'remindersInfo': false },
14
+ },
15
+ '/reminders.list': {
16
+ GET: { 'remindersList': false },
17
+ },
18
+ });
19
+ //# sourceMappingURL=reminders.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reminders.js","sourceRoot":"","sources":["../../../src/types/reminders.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,gBAAgB,EAAE;QAChB,IAAI,EAAE,EAAE,cAAc,EAAE,IAAI,EAAE;KAC/B;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,iBAAiB,EAAE;QACjB,GAAG,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE;KAChC;IACD,iBAAiB,EAAE;QACjB,GAAG,EAAE,EAAE,eAAe,EAAE,KAAK,EAAE;KAChC;CACF,CAAC,CAAA"}
@@ -0,0 +1,30 @@
1
+ export declare namespace Rtm {
2
+ namespace Params {
3
+ interface Connect {
4
+ batch_presence_aware?: boolean;
5
+ presence_sub?: boolean;
6
+ }
7
+ }
8
+ }
9
+ declare module './internal' {
10
+ interface Internal {
11
+ /**
12
+ * Starts a Real Time Messaging session.
13
+ * @see https://api.slack.com/methods/rtm.connect
14
+ */
15
+ rtmConnect(token: TokenInput, params: Rtm.Params.Connect): Promise<{
16
+ ok: boolean;
17
+ self: {
18
+ id: string;
19
+ name: string;
20
+ };
21
+ team: {
22
+ domain: string;
23
+ id: string;
24
+ name: string;
25
+ };
26
+ url: string;
27
+ }>;
28
+ }
29
+ }
30
+ //# sourceMappingURL=rtm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtm.d.ts","sourceRoot":"","sources":["../../../src/types/rtm.ts"],"names":[],"mappings":"AAQA,yBAAiB,GAAG,CAAC;IACnB,UAAiB,MAAM,CAAC;QACtB,UAAiB,OAAO;YACtB,oBAAoB,CAAC,EAAE,OAAO,CAAA;YAC9B,YAAY,CAAC,EAAE,OAAO,CAAA;SACvB;KACF;CACF;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,QAAQ;QAChB;;;WAGG;QACH,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,OAAO,GAAG,OAAO,CAAC;YACjE,EAAE,EAAE,OAAO,CAAA;YACX,IAAI,EAAE;gBACJ,EAAE,EAAE,MAAM,CAAA;gBACV,IAAI,EAAE,MAAM,CAAA;aACb,CAAA;YACD,IAAI,EAAE;gBACJ,MAAM,EAAE,MAAM,CAAA;gBACd,EAAE,EAAE,MAAM,CAAA;gBACV,IAAI,EAAE,MAAM,CAAA;aACb,CAAA;YACD,GAAG,EAAE,MAAM,CAAA;SACZ,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,7 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/rtm.connect': {
4
+ GET: { 'rtmConnect': false },
5
+ },
6
+ });
7
+ //# sourceMappingURL=rtm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rtm.js","sourceRoot":"","sources":["../../../src/types/rtm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,cAAc,EAAE;QACd,GAAG,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE;KAC7B;CACF,CAAC,CAAA"}
@@ -0,0 +1,24 @@
1
+ export declare namespace Search {
2
+ namespace Params {
3
+ interface Messages {
4
+ count?: number;
5
+ highlight?: boolean;
6
+ page?: number;
7
+ query: string;
8
+ sort?: string;
9
+ sort_dir?: string;
10
+ }
11
+ }
12
+ }
13
+ declare module './internal' {
14
+ interface Internal {
15
+ /**
16
+ * Searches for messages matching a query.
17
+ * @see https://api.slack.com/methods/search.messages
18
+ */
19
+ searchMessages(token: TokenInput, params: Search.Params.Messages): Promise<{
20
+ ok: boolean;
21
+ }>;
22
+ }
23
+ }
24
+ //# sourceMappingURL=search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/types/search.ts"],"names":[],"mappings":"AAQA,yBAAiB,MAAM,CAAC;IACtB,UAAiB,MAAM,CAAC;QACtB,UAAiB,QAAQ;YACvB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,SAAS,CAAC,EAAE,OAAO,CAAA;YACnB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,QAAQ,CAAC,EAAE,MAAM,CAAA;SAClB;KACF;CACF;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,QAAQ;QAChB;;;WAGG;QACH,cAAc,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,GAAG,OAAO,CAAC;YACzE,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,7 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/search.messages': {
4
+ GET: { 'searchMessages': false },
5
+ },
6
+ });
7
+ //# sourceMappingURL=search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/types/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,kBAAkB,EAAE;QAClB,GAAG,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE;KACjC;CACF,CAAC,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Stars {
3
+ namespace Params {
4
+ interface Add {
5
+ channel?: string;
6
+ file?: string;
7
+ file_comment?: string;
8
+ timestamp?: string;
9
+ }
10
+ interface List {
11
+ count?: string;
12
+ page?: string;
13
+ cursor?: string;
14
+ limit?: number;
15
+ }
16
+ interface Remove {
17
+ channel?: string;
18
+ file?: string;
19
+ file_comment?: string;
20
+ timestamp?: string;
21
+ }
22
+ }
23
+ }
24
+ declare module './internal' {
25
+ interface Internal {
26
+ /**
27
+ * Adds a star to an item.
28
+ * @see https://api.slack.com/methods/stars.add
29
+ */
30
+ starsAdd(token: TokenInput, params: Stars.Params.Add): Promise<{
31
+ ok: boolean;
32
+ }>;
33
+ /**
34
+ * Lists stars for a user.
35
+ * @see https://api.slack.com/methods/stars.list
36
+ */
37
+ starsList(token: TokenInput, params: Stars.Params.List): Promise<{
38
+ items: {
39
+ channel: string;
40
+ date_create: number;
41
+ message: Definitions.Message;
42
+ type: string;
43
+ }[];
44
+ ok: boolean;
45
+ paging?: Definitions.Paging;
46
+ }>;
47
+ /**
48
+ * Removes a star from an item.
49
+ * @see https://api.slack.com/methods/stars.remove
50
+ */
51
+ starsRemove(token: TokenInput, params: Stars.Params.Remove): Promise<{
52
+ ok: boolean;
53
+ }>;
54
+ }
55
+ }
56
+ //# sourceMappingURL=stars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stars.d.ts","sourceRoot":"","sources":["../../../src/types/stars.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAa7C,yBAAiB,KAAK,CAAC;IACrB,UAAiB,MAAM,CAAC;QACtB,UAAiB,GAAG;YAClB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB;QACD,UAAiB,IAAI;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;SACf;QACD,UAAiB,MAAM;YACrB,OAAO,CAAC,EAAE,MAAM,CAAA;YAChB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,YAAY,CAAC,EAAE,MAAM,CAAA;YACrB,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB;KACF;CACF;AAED,OAAO,QAAQ,YAAY,CAAC;IAC1B,UAAU,QAAQ;QAEhB;;;WAGG;QACH,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;YAC7D,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;QAEF;;;WAGG;QACH,SAAS,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,GAAG,OAAO,CAAC;YAC/D,KAAK,EAAE;gBACL,OAAO,EAAE,MAAM,CAAA;gBACf,WAAW,EAAE,MAAM,CAAA;gBACnB,OAAO,EAAE,WAAW,CAAC,OAAO,CAAA;gBAC5B,IAAI,EAAE,MAAM,CAAA;aACb,EAAE,CAAA;YACH,EAAE,EAAE,OAAO,CAAA;YACX,MAAM,CAAC,EAAE,WAAW,CAAC,MAAM,CAAA;SAC5B,CAAC,CAAA;QAEF;;;WAGG;QACH,WAAW,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,OAAO,CAAC;YACnE,EAAE,EAAE,OAAO,CAAA;SACZ,CAAC,CAAA;KACH;CACF"}
@@ -0,0 +1,13 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/stars.add': {
4
+ POST: { 'starsAdd': true },
5
+ },
6
+ '/stars.list': {
7
+ GET: { 'starsList': false },
8
+ },
9
+ '/stars.remove': {
10
+ POST: { 'starsRemove': true },
11
+ },
12
+ });
13
+ //# sourceMappingURL=stars.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stars.js","sourceRoot":"","sources":["../../../src/types/stars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,YAAY,EAAE;QACZ,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;KAC3B;IACD,aAAa,EAAE;QACb,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE;KAC5B;IACD,eAAe,EAAE;QACf,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;KAC9B;CACF,CAAC,CAAA"}
@@ -0,0 +1,98 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Team {
3
+ namespace Params {
4
+ interface AccessLogs {
5
+ before?: string;
6
+ count?: string;
7
+ page?: string;
8
+ }
9
+ interface BillableInfo {
10
+ user?: string;
11
+ }
12
+ interface Info {
13
+ team?: string;
14
+ }
15
+ interface IntegrationLogs {
16
+ app_id?: string;
17
+ change_type?: string;
18
+ count?: string;
19
+ page?: string;
20
+ service_id?: string;
21
+ user?: string;
22
+ }
23
+ interface ProfileGet {
24
+ visibility?: string;
25
+ }
26
+ }
27
+ }
28
+ declare module './internal' {
29
+ interface Internal {
30
+ /**
31
+ * Gets the access logs for the current team.
32
+ * @see https://api.slack.com/methods/team.accessLogs
33
+ */
34
+ teamAccessLogs(token: TokenInput, params: Team.Params.AccessLogs): Promise<{
35
+ logins: {
36
+ count: number;
37
+ country: unknown;
38
+ date_first: number;
39
+ date_last: number;
40
+ ip: unknown;
41
+ isp: unknown;
42
+ region: unknown;
43
+ user_agent: string;
44
+ user_id: string;
45
+ username: string;
46
+ }[];
47
+ ok: boolean;
48
+ paging: Definitions.Paging;
49
+ }>;
50
+ /**
51
+ * Gets billable users information for the current team.
52
+ * @see https://api.slack.com/methods/team.billableInfo
53
+ */
54
+ teamBillableInfo(token: TokenInput, params: Team.Params.BillableInfo): Promise<{
55
+ ok: boolean;
56
+ }>;
57
+ /**
58
+ * Gets information about the current team.
59
+ * @see https://api.slack.com/methods/team.info
60
+ */
61
+ teamInfo(token: TokenInput, params: Team.Params.Info): Promise<{
62
+ ok: boolean;
63
+ team: Definitions.Team;
64
+ }>;
65
+ /**
66
+ * Gets the integration logs for the current team.
67
+ * @see https://api.slack.com/methods/team.integrationLogs
68
+ */
69
+ teamIntegrationLogs(token: TokenInput, params: Team.Params.IntegrationLogs): Promise<{
70
+ logs: {
71
+ admin_app_id: string;
72
+ app_id: string;
73
+ app_type: string;
74
+ change_type: string;
75
+ channel: string;
76
+ date: string;
77
+ scope: string;
78
+ service_id: string;
79
+ service_type: string;
80
+ user_id: string;
81
+ user_name: string;
82
+ }[];
83
+ ok: boolean;
84
+ paging: Definitions.Paging;
85
+ }>;
86
+ /**
87
+ * Retrieve a team's profile.
88
+ * @see https://api.slack.com/methods/team.profile.get
89
+ */
90
+ teamProfileGet(token: TokenInput, params: Team.Params.ProfileGet): Promise<{
91
+ ok: boolean;
92
+ profile: {
93
+ fields: Definitions.TeamProfileField[];
94
+ };
95
+ }>;
96
+ }
97
+ }
98
+ //# sourceMappingURL=team.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.d.ts","sourceRoot":"","sources":["../../../src/types/team.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,19 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/team.accessLogs': {
4
+ GET: { 'teamAccessLogs': false },
5
+ },
6
+ '/team.billableInfo': {
7
+ GET: { 'teamBillableInfo': false },
8
+ },
9
+ '/team.info': {
10
+ GET: { 'teamInfo': false },
11
+ },
12
+ '/team.integrationLogs': {
13
+ GET: { 'teamIntegrationLogs': false },
14
+ },
15
+ '/team.profile.get': {
16
+ GET: { 'teamProfileGet': false },
17
+ },
18
+ });
19
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"team.js","sourceRoot":"","sources":["../../../src/types/team.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,kBAAkB,EAAE;QAClB,GAAG,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE;KACjC;IACD,oBAAoB,EAAE;QACpB,GAAG,EAAE,EAAE,kBAAkB,EAAE,KAAK,EAAE;KACnC;IACD,YAAY,EAAE;QACZ,GAAG,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE;KAC3B;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE;KACtC;IACD,mBAAmB,EAAE;QACnB,GAAG,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE;KACjC;CACF,CAAC,CAAA"}
@@ -0,0 +1,103 @@
1
+ import { Definitions } from './definition.ts';
2
+ export declare namespace Usergroups {
3
+ namespace Params {
4
+ interface Create {
5
+ channels?: string;
6
+ description?: string;
7
+ handle?: string;
8
+ include_count?: boolean;
9
+ name: string;
10
+ }
11
+ interface Disable {
12
+ include_count?: boolean;
13
+ usergroup: string;
14
+ }
15
+ interface Enable {
16
+ include_count?: boolean;
17
+ usergroup: string;
18
+ }
19
+ interface List {
20
+ include_users?: boolean;
21
+ include_count?: boolean;
22
+ include_disabled?: boolean;
23
+ }
24
+ interface Update {
25
+ handle?: string;
26
+ description?: string;
27
+ channels?: string;
28
+ include_count?: boolean;
29
+ usergroup: string;
30
+ name?: string;
31
+ }
32
+ interface UsersList {
33
+ include_disabled?: boolean;
34
+ usergroup: string;
35
+ }
36
+ interface UsersUpdate {
37
+ include_count?: boolean;
38
+ usergroup: string;
39
+ users: string;
40
+ }
41
+ }
42
+ }
43
+ declare module './internal' {
44
+ interface Internal {
45
+ /**
46
+ * Create a User Group
47
+ * @see https://api.slack.com/methods/usergroups.create
48
+ */
49
+ usergroupsCreate(token: TokenInput, params: Usergroups.Params.Create): Promise<{
50
+ ok: boolean;
51
+ usergroup: Definitions.Subteam;
52
+ }>;
53
+ /**
54
+ * Disable an existing User Group
55
+ * @see https://api.slack.com/methods/usergroups.disable
56
+ */
57
+ usergroupsDisable(token: TokenInput, params: Usergroups.Params.Disable): Promise<{
58
+ ok: boolean;
59
+ usergroup: Definitions.Subteam;
60
+ }>;
61
+ /**
62
+ * Enable a User Group
63
+ * @see https://api.slack.com/methods/usergroups.enable
64
+ */
65
+ usergroupsEnable(token: TokenInput, params: Usergroups.Params.Enable): Promise<{
66
+ ok: boolean;
67
+ usergroup: Definitions.Subteam;
68
+ }>;
69
+ /**
70
+ * List all User Groups for a team
71
+ * @see https://api.slack.com/methods/usergroups.list
72
+ */
73
+ usergroupsList(token: TokenInput, params: Usergroups.Params.List): Promise<{
74
+ ok: boolean;
75
+ usergroups: Definitions.Subteam[];
76
+ }>;
77
+ /**
78
+ * Update an existing User Group
79
+ * @see https://api.slack.com/methods/usergroups.update
80
+ */
81
+ usergroupsUpdate(token: TokenInput, params: Usergroups.Params.Update): Promise<{
82
+ ok: boolean;
83
+ usergroup: Definitions.Subteam;
84
+ }>;
85
+ /**
86
+ * List all users in a User Group
87
+ * @see https://api.slack.com/methods/usergroups.users.list
88
+ */
89
+ usergroupsUsersList(token: TokenInput, params: Usergroups.Params.UsersList): Promise<{
90
+ ok: boolean;
91
+ users: string[];
92
+ }>;
93
+ /**
94
+ * Update the list of users for a User Group
95
+ * @see https://api.slack.com/methods/usergroups.users.update
96
+ */
97
+ usergroupsUsersUpdate(token: TokenInput, params: Usergroups.Params.UsersUpdate): Promise<{
98
+ ok: boolean;
99
+ usergroup: Definitions.Subteam;
100
+ }>;
101
+ }
102
+ }
103
+ //# sourceMappingURL=usergroups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usergroups.d.ts","sourceRoot":"","sources":["../../../src/types/usergroups.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,25 @@
1
+ import { Internal } from "./internal.js";
2
+ Internal.define({
3
+ '/usergroups.create': {
4
+ POST: { 'usergroupsCreate': true },
5
+ },
6
+ '/usergroups.disable': {
7
+ POST: { 'usergroupsDisable': true },
8
+ },
9
+ '/usergroups.enable': {
10
+ POST: { 'usergroupsEnable': true },
11
+ },
12
+ '/usergroups.list': {
13
+ GET: { 'usergroupsList': false },
14
+ },
15
+ '/usergroups.update': {
16
+ POST: { 'usergroupsUpdate': true },
17
+ },
18
+ '/usergroups.users.list': {
19
+ GET: { 'usergroupsUsersList': false },
20
+ },
21
+ '/usergroups.users.update': {
22
+ POST: { 'usergroupsUsersUpdate': true },
23
+ },
24
+ });
25
+ //# sourceMappingURL=usergroups.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usergroups.js","sourceRoot":"","sources":["../../../src/types/usergroups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,QAAQ,CAAC,MAAM,CAAC;IACd,oBAAoB,EAAE;QACpB,IAAI,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACnC;IACD,qBAAqB,EAAE;QACrB,IAAI,EAAE,EAAE,mBAAmB,EAAE,IAAI,EAAE;KACpC;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACnC;IACD,kBAAkB,EAAE;QAClB,GAAG,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE;KACjC;IACD,oBAAoB,EAAE;QACpB,IAAI,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE;KACnC;IACD,wBAAwB,EAAE;QACxB,GAAG,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE;KACtC;IACD,0BAA0B,EAAE;QAC1B,IAAI,EAAE,EAAE,uBAAuB,EAAE,IAAI,EAAE;KACxC;CACF,CAAC,CAAA"}