loop-client 0.0.1

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 (351) hide show
  1. package/CHANGELOG.md +0 -0
  2. package/README.md +3 -0
  3. package/build/const.d.ts +31 -0
  4. package/build/const.d.ts.map +1 -0
  5. package/build/const.js +40 -0
  6. package/build/const.js.map +1 -0
  7. package/build/errors.d.ts +621 -0
  8. package/build/errors.d.ts.map +1 -0
  9. package/build/errors.js +665 -0
  10. package/build/errors.js.map +1 -0
  11. package/build/index.d.ts +6 -0
  12. package/build/index.d.ts.map +1 -0
  13. package/build/index.js +27 -0
  14. package/build/index.js.map +1 -0
  15. package/build/instrument.d.ts +14 -0
  16. package/build/instrument.d.ts.map +1 -0
  17. package/build/instrument.js +75 -0
  18. package/build/instrument.js.map +1 -0
  19. package/build/logger.d.ts +6 -0
  20. package/build/logger.d.ts.map +1 -0
  21. package/build/logger.js +24 -0
  22. package/build/logger.js.map +1 -0
  23. package/build/methods.d.ts +1101 -0
  24. package/build/methods.d.ts.map +1 -0
  25. package/build/methods.js +2080 -0
  26. package/build/methods.js.map +1 -0
  27. package/build/types/admin.d.ts +56 -0
  28. package/build/types/admin.d.ts.map +1 -0
  29. package/build/types/admin.js +18 -0
  30. package/build/types/admin.js.map +1 -0
  31. package/build/types/apps.d.ts +214 -0
  32. package/build/types/apps.d.ts.map +1 -0
  33. package/build/types/apps.js +81 -0
  34. package/build/types/apps.js.map +1 -0
  35. package/build/types/audits.d.ts +10 -0
  36. package/build/types/audits.d.ts.map +1 -0
  37. package/build/types/audits.js +3 -0
  38. package/build/types/audits.js.map +1 -0
  39. package/build/types/autocomplete.d.ts +13 -0
  40. package/build/types/autocomplete.d.ts.map +1 -0
  41. package/build/types/autocomplete.js +3 -0
  42. package/build/types/autocomplete.js.map +1 -0
  43. package/build/types/boards.d.ts +57 -0
  44. package/build/types/boards.d.ts.map +1 -0
  45. package/build/types/boards.js +28 -0
  46. package/build/types/boards.js.map +1 -0
  47. package/build/types/bots.d.ts +16 -0
  48. package/build/types/bots.d.ts.map +1 -0
  49. package/build/types/bots.js +3 -0
  50. package/build/types/bots.js.map +1 -0
  51. package/build/types/channels.d.ts +279 -0
  52. package/build/types/channels.d.ts.map +1 -0
  53. package/build/types/channels.js +62 -0
  54. package/build/types/channels.js.map +1 -0
  55. package/build/types/cloud.d.ts +155 -0
  56. package/build/types/cloud.d.ts.map +1 -0
  57. package/build/types/cloud.js +12 -0
  58. package/build/types/cloud.js.map +1 -0
  59. package/build/types/common.d.ts +5 -0
  60. package/build/types/common.d.ts.map +1 -0
  61. package/build/types/common.js +3 -0
  62. package/build/types/common.js.map +1 -0
  63. package/build/types/compliance.d.ts +14 -0
  64. package/build/types/compliance.d.ts.map +1 -0
  65. package/build/types/compliance.js +3 -0
  66. package/build/types/compliance.js.map +1 -0
  67. package/build/types/config.d.ts +966 -0
  68. package/build/types/config.d.ts.map +1 -0
  69. package/build/types/config.js +17 -0
  70. package/build/types/config.js.map +1 -0
  71. package/build/types/data-retention.d.ts +31 -0
  72. package/build/types/data-retention.d.ts.map +1 -0
  73. package/build/types/data-retention.js +3 -0
  74. package/build/types/data-retention.js.map +1 -0
  75. package/build/types/dialog.d.ts +63 -0
  76. package/build/types/dialog.d.ts.map +1 -0
  77. package/build/types/dialog.js +26 -0
  78. package/build/types/dialog.js.map +1 -0
  79. package/build/types/drafts.d.ts +15 -0
  80. package/build/types/drafts.d.ts.map +1 -0
  81. package/build/types/drafts.js +3 -0
  82. package/build/types/drafts.js.map +1 -0
  83. package/build/types/emojis.d.ts +52 -0
  84. package/build/types/emojis.d.ts.map +1 -0
  85. package/build/types/emojis.js +19 -0
  86. package/build/types/emojis.js.map +1 -0
  87. package/build/types/files.d.ts +53 -0
  88. package/build/types/files.d.ts.map +1 -0
  89. package/build/types/files.js +3 -0
  90. package/build/types/files.js.map +1 -0
  91. package/build/types/groups.d.ts +143 -0
  92. package/build/types/groups.d.ts.map +1 -0
  93. package/build/types/groups.js +14 -0
  94. package/build/types/groups.js.map +1 -0
  95. package/build/types/index.d.ts +46 -0
  96. package/build/types/index.d.ts.map +1 -0
  97. package/build/types/index.js +62 -0
  98. package/build/types/index.js.map +1 -0
  99. package/build/types/integrations.d.ts +108 -0
  100. package/build/types/integrations.d.ts.map +1 -0
  101. package/build/types/integrations.js +15 -0
  102. package/build/types/integrations.js.map +1 -0
  103. package/build/types/jobs.d.ts +28 -0
  104. package/build/types/jobs.d.ts.map +1 -0
  105. package/build/types/jobs.js +22 -0
  106. package/build/types/jobs.js.map +1 -0
  107. package/build/types/limits.d.ts +5 -0
  108. package/build/types/limits.d.ts.map +1 -0
  109. package/build/types/limits.js +3 -0
  110. package/build/types/limits.js.map +1 -0
  111. package/build/types/marketplace.d.ts +43 -0
  112. package/build/types/marketplace.d.ts.map +1 -0
  113. package/build/types/marketplace.js +21 -0
  114. package/build/types/marketplace.js.map +1 -0
  115. package/build/types/metadata.d.ts +16 -0
  116. package/build/types/metadata.d.ts.map +1 -0
  117. package/build/types/metadata.js +3 -0
  118. package/build/types/metadata.js.map +1 -0
  119. package/build/types/methods/bots.methods.d.ts +77 -0
  120. package/build/types/methods/bots.methods.d.ts.map +1 -0
  121. package/build/types/methods/bots.methods.js +3 -0
  122. package/build/types/methods/bots.methods.js.map +1 -0
  123. package/build/types/methods/brand.methods.d.ts +15 -0
  124. package/build/types/methods/brand.methods.d.ts.map +1 -0
  125. package/build/types/methods/brand.methods.js +3 -0
  126. package/build/types/methods/brand.methods.js.map +1 -0
  127. package/build/types/methods/channels.methods.d.ts +473 -0
  128. package/build/types/methods/channels.methods.d.ts.map +1 -0
  129. package/build/types/methods/channels.methods.js +3 -0
  130. package/build/types/methods/channels.methods.js.map +1 -0
  131. package/build/types/methods/cloud.methods.d.ts +14 -0
  132. package/build/types/methods/cloud.methods.d.ts.map +1 -0
  133. package/build/types/methods/cloud.methods.js +3 -0
  134. package/build/types/methods/cloud.methods.js.map +1 -0
  135. package/build/types/methods/common.methods.d.ts +87 -0
  136. package/build/types/methods/common.methods.d.ts.map +1 -0
  137. package/build/types/methods/common.methods.js +4 -0
  138. package/build/types/methods/common.methods.js.map +1 -0
  139. package/build/types/methods/compliance.methods.d.ts +32 -0
  140. package/build/types/methods/compliance.methods.d.ts.map +1 -0
  141. package/build/types/methods/compliance.methods.js +3 -0
  142. package/build/types/methods/compliance.methods.js.map +1 -0
  143. package/build/types/methods/data-retention.methods.d.ts +67 -0
  144. package/build/types/methods/data-retention.methods.d.ts.map +1 -0
  145. package/build/types/methods/data-retention.methods.js +3 -0
  146. package/build/types/methods/data-retention.methods.js.map +1 -0
  147. package/build/types/methods/emojis.methods.d.ts +32 -0
  148. package/build/types/methods/emojis.methods.d.ts.map +1 -0
  149. package/build/types/methods/emojis.methods.js +3 -0
  150. package/build/types/methods/emojis.methods.js.map +1 -0
  151. package/build/types/methods/files.methods.d.ts +139 -0
  152. package/build/types/methods/files.methods.d.ts.map +1 -0
  153. package/build/types/methods/files.methods.js +3 -0
  154. package/build/types/methods/files.methods.js.map +1 -0
  155. package/build/types/methods/groups.methods.d.ts +113 -0
  156. package/build/types/methods/groups.methods.d.ts.map +1 -0
  157. package/build/types/methods/groups.methods.js +3 -0
  158. package/build/types/methods/groups.methods.js.map +1 -0
  159. package/build/types/methods/index.d.ts +28 -0
  160. package/build/types/methods/index.d.ts.map +1 -0
  161. package/build/types/methods/index.js +44 -0
  162. package/build/types/methods/index.js.map +1 -0
  163. package/build/types/methods/integrations.methods.d.ts +191 -0
  164. package/build/types/methods/integrations.methods.d.ts.map +1 -0
  165. package/build/types/methods/integrations.methods.js +3 -0
  166. package/build/types/methods/integrations.methods.js.map +1 -0
  167. package/build/types/methods/interactive.methods.d.ts +38 -0
  168. package/build/types/methods/interactive.methods.d.ts.map +1 -0
  169. package/build/types/methods/interactive.methods.js +3 -0
  170. package/build/types/methods/interactive.methods.js.map +1 -0
  171. package/build/types/methods/jobs.methods.d.ts +20 -0
  172. package/build/types/methods/jobs.methods.d.ts.map +1 -0
  173. package/build/types/methods/jobs.methods.js +3 -0
  174. package/build/types/methods/jobs.methods.js.map +1 -0
  175. package/build/types/methods/playbook-runs.methods.d.ts +89 -0
  176. package/build/types/methods/playbook-runs.methods.d.ts.map +1 -0
  177. package/build/types/methods/playbook-runs.methods.js +3 -0
  178. package/build/types/methods/playbook-runs.methods.js.map +1 -0
  179. package/build/types/methods/playbooks.methods.d.ts +156 -0
  180. package/build/types/methods/playbooks.methods.d.ts.map +1 -0
  181. package/build/types/methods/playbooks.methods.js +3 -0
  182. package/build/types/methods/playbooks.methods.js.map +1 -0
  183. package/build/types/methods/plugins.methods.d.ts +31 -0
  184. package/build/types/methods/plugins.methods.d.ts.map +1 -0
  185. package/build/types/methods/plugins.methods.js +3 -0
  186. package/build/types/methods/plugins.methods.js.map +1 -0
  187. package/build/types/methods/posts.methods.d.ts +216 -0
  188. package/build/types/methods/posts.methods.d.ts.map +1 -0
  189. package/build/types/methods/posts.methods.js +3 -0
  190. package/build/types/methods/posts.methods.js.map +1 -0
  191. package/build/types/methods/preferences.methods.d.ts +12 -0
  192. package/build/types/methods/preferences.methods.d.ts.map +1 -0
  193. package/build/types/methods/preferences.methods.js +3 -0
  194. package/build/types/methods/preferences.methods.js.map +1 -0
  195. package/build/types/methods/reactions.methods.d.ts +15 -0
  196. package/build/types/methods/reactions.methods.d.ts.map +1 -0
  197. package/build/types/methods/reactions.methods.js +3 -0
  198. package/build/types/methods/reactions.methods.js.map +1 -0
  199. package/build/types/methods/reports.methods.d.ts +4 -0
  200. package/build/types/methods/reports.methods.d.ts.map +1 -0
  201. package/build/types/methods/reports.methods.js +3 -0
  202. package/build/types/methods/reports.methods.js.map +1 -0
  203. package/build/types/methods/roles.methods.d.ts +14 -0
  204. package/build/types/methods/roles.methods.d.ts.map +1 -0
  205. package/build/types/methods/roles.methods.js +3 -0
  206. package/build/types/methods/roles.methods.js.map +1 -0
  207. package/build/types/methods/schemes.methods.d.ts +30 -0
  208. package/build/types/methods/schemes.methods.d.ts.map +1 -0
  209. package/build/types/methods/schemes.methods.js +3 -0
  210. package/build/types/methods/schemes.methods.js.map +1 -0
  211. package/build/types/methods/system.methods.d.ts +107 -0
  212. package/build/types/methods/system.methods.d.ts.map +1 -0
  213. package/build/types/methods/system.methods.js +3 -0
  214. package/build/types/methods/system.methods.js.map +1 -0
  215. package/build/types/methods/teams.methods.d.ts +161 -0
  216. package/build/types/methods/teams.methods.d.ts.map +1 -0
  217. package/build/types/methods/teams.methods.js +3 -0
  218. package/build/types/methods/teams.methods.js.map +1 -0
  219. package/build/types/methods/terms-of-service.methods.d.ts +24 -0
  220. package/build/types/methods/terms-of-service.methods.d.ts.map +1 -0
  221. package/build/types/methods/terms-of-service.methods.js +3 -0
  222. package/build/types/methods/terms-of-service.methods.js.map +1 -0
  223. package/build/types/methods/uploads.methods.d.ts +13 -0
  224. package/build/types/methods/uploads.methods.d.ts.map +1 -0
  225. package/build/types/methods/uploads.methods.js +3 -0
  226. package/build/types/methods/uploads.methods.js.map +1 -0
  227. package/build/types/methods/users.methods.d.ts +257 -0
  228. package/build/types/methods/users.methods.d.ts.map +1 -0
  229. package/build/types/methods/users.methods.js +3 -0
  230. package/build/types/methods/users.methods.js.map +1 -0
  231. package/build/types/mfa.d.ts +5 -0
  232. package/build/types/mfa.d.ts.map +1 -0
  233. package/build/types/mfa.js +3 -0
  234. package/build/types/mfa.js.map +1 -0
  235. package/build/types/playbooks.d.ts +221 -0
  236. package/build/types/playbooks.d.ts.map +1 -0
  237. package/build/types/playbooks.js +3 -0
  238. package/build/types/playbooks.js.map +1 -0
  239. package/build/types/plugins.d.ts +101 -0
  240. package/build/types/plugins.d.ts.map +1 -0
  241. package/build/types/plugins.js +3 -0
  242. package/build/types/plugins.js.map +1 -0
  243. package/build/types/posts.d.ts +290 -0
  244. package/build/types/posts.d.ts.map +1 -0
  245. package/build/types/posts.js +88 -0
  246. package/build/types/posts.js.map +1 -0
  247. package/build/types/preferences.d.ts +7 -0
  248. package/build/types/preferences.d.ts.map +1 -0
  249. package/build/types/preferences.js +3 -0
  250. package/build/types/preferences.js.map +1 -0
  251. package/build/types/product-notices.d.ts +27 -0
  252. package/build/types/product-notices.d.ts.map +1 -0
  253. package/build/types/product-notices.js +8 -0
  254. package/build/types/product-notices.js.map +1 -0
  255. package/build/types/products.d.ts +8 -0
  256. package/build/types/products.d.ts.map +1 -0
  257. package/build/types/products.js +3 -0
  258. package/build/types/products.js.map +1 -0
  259. package/build/types/reactions.d.ts +7 -0
  260. package/build/types/reactions.d.ts.map +1 -0
  261. package/build/types/reactions.js +3 -0
  262. package/build/types/reactions.js.map +1 -0
  263. package/build/types/reports.d.ts +66 -0
  264. package/build/types/reports.d.ts.map +1 -0
  265. package/build/types/reports.js +30 -0
  266. package/build/types/reports.js.map +1 -0
  267. package/build/types/requests.d.ts +61 -0
  268. package/build/types/requests.d.ts.map +1 -0
  269. package/build/types/requests.js +12 -0
  270. package/build/types/requests.js.map +1 -0
  271. package/build/types/responses/common.responses.d.ts +23 -0
  272. package/build/types/responses/common.responses.d.ts.map +1 -0
  273. package/build/types/responses/common.responses.js +3 -0
  274. package/build/types/responses/common.responses.js.map +1 -0
  275. package/build/types/responses/index.d.ts +5 -0
  276. package/build/types/responses/index.d.ts.map +1 -0
  277. package/build/types/responses/index.js +21 -0
  278. package/build/types/responses/index.js.map +1 -0
  279. package/build/types/responses/playbooks.responses.d.ts +19 -0
  280. package/build/types/responses/playbooks.responses.d.ts.map +1 -0
  281. package/build/types/responses/playbooks.responses.js +3 -0
  282. package/build/types/responses/playbooks.responses.js.map +1 -0
  283. package/build/types/responses/posts.responses.d.ts +32 -0
  284. package/build/types/responses/posts.responses.d.ts.map +1 -0
  285. package/build/types/responses/posts.responses.js +8 -0
  286. package/build/types/responses/posts.responses.js.map +1 -0
  287. package/build/types/responses/system.responses.d.ts +87 -0
  288. package/build/types/responses/system.responses.d.ts.map +1 -0
  289. package/build/types/responses/system.responses.js +3 -0
  290. package/build/types/responses/system.responses.js.map +1 -0
  291. package/build/types/roles.d.ts +41 -0
  292. package/build/types/roles.d.ts.map +1 -0
  293. package/build/types/roles.js +33 -0
  294. package/build/types/roles.js.map +1 -0
  295. package/build/types/saml.d.ts +11 -0
  296. package/build/types/saml.d.ts.map +1 -0
  297. package/build/types/saml.js +3 -0
  298. package/build/types/saml.js.map +1 -0
  299. package/build/types/schemes.d.ts +28 -0
  300. package/build/types/schemes.d.ts.map +1 -0
  301. package/build/types/schemes.js +9 -0
  302. package/build/types/schemes.js.map +1 -0
  303. package/build/types/search.d.ts +13 -0
  304. package/build/types/search.d.ts.map +1 -0
  305. package/build/types/search.js +3 -0
  306. package/build/types/search.js.map +1 -0
  307. package/build/types/setup.d.ts +5 -0
  308. package/build/types/setup.d.ts.map +1 -0
  309. package/build/types/setup.js +3 -0
  310. package/build/types/setup.js.map +1 -0
  311. package/build/types/state.d.ts +464 -0
  312. package/build/types/state.d.ts.map +1 -0
  313. package/build/types/state.js +3 -0
  314. package/build/types/state.js.map +1 -0
  315. package/build/types/store.d.ts +65 -0
  316. package/build/types/store.d.ts.map +1 -0
  317. package/build/types/store.js +3 -0
  318. package/build/types/store.js.map +1 -0
  319. package/build/types/teams.d.ts +94 -0
  320. package/build/types/teams.d.ts.map +1 -0
  321. package/build/types/teams.js +9 -0
  322. package/build/types/teams.js.map +1 -0
  323. package/build/types/terms-of-service.d.ts +7 -0
  324. package/build/types/terms-of-service.d.ts.map +1 -0
  325. package/build/types/terms-of-service.js +3 -0
  326. package/build/types/terms-of-service.js.map +1 -0
  327. package/build/types/threads.d.ts +40 -0
  328. package/build/types/threads.d.ts.map +1 -0
  329. package/build/types/threads.js +8 -0
  330. package/build/types/threads.js.map +1 -0
  331. package/build/types/typing.d.ts +6 -0
  332. package/build/types/typing.d.ts.map +1 -0
  333. package/build/types/typing.js +3 -0
  334. package/build/types/typing.js.map +1 -0
  335. package/build/types/users.d.ts +281 -0
  336. package/build/types/users.d.ts.map +1 -0
  337. package/build/types/users.js +42 -0
  338. package/build/types/users.js.map +1 -0
  339. package/build/types/web-client.d.ts +82 -0
  340. package/build/types/web-client.d.ts.map +1 -0
  341. package/build/types/web-client.js +17 -0
  342. package/build/types/web-client.js.map +1 -0
  343. package/build/utils.d.ts +24 -0
  344. package/build/utils.d.ts.map +1 -0
  345. package/build/utils.js +136 -0
  346. package/build/utils.js.map +1 -0
  347. package/build/web-client.d.ts +117 -0
  348. package/build/web-client.d.ts.map +1 -0
  349. package/build/web-client.js +421 -0
  350. package/build/web-client.js.map +1 -0
  351. package/package.json +74 -0
@@ -0,0 +1,216 @@
1
+ import type { Post } from "../posts";
2
+ import type { ChannelID, Paginated, TokenOverridable, UserID } from "./common.methods";
3
+ interface PostArguments {
4
+ /** The message to be included in the post */
5
+ message: string;
6
+ /** The ID of the root post, if this is a reply */
7
+ root_id?: string;
8
+ /** A list of file IDs to be attached to the post */
9
+ file_ids?: string[];
10
+ /** A general JSON property bag to attach to the post */
11
+ props?: Record<string, unknown>;
12
+ /**
13
+ * @description Whether to set the user status as online or not.
14
+ */
15
+ set_online?: boolean;
16
+ }
17
+ interface PostCreateWithUserIDArguments extends TokenOverridable, UserID, PostArguments {
18
+ }
19
+ interface PostCreateWithChannelIDArguments extends TokenOverridable, ChannelID, PostArguments {
20
+ }
21
+ /**
22
+ * Arguments for creating a new post.
23
+ */
24
+ export type PostsCreateArguments = PostCreateWithChannelIDArguments | PostCreateWithUserIDArguments;
25
+ /**
26
+ * Arguments for updating a post.
27
+ */
28
+ export interface PostsUpdateArguments extends TokenOverridable, Omit<Partial<Post>, "id"> {
29
+ /** ID of the post to update */
30
+ id: string;
31
+ }
32
+ /**
33
+ * Arguments for getting a post.
34
+ */
35
+ export interface PostsGetArguments extends TokenOverridable {
36
+ /** ID of the post to get */
37
+ post_id: string;
38
+ }
39
+ /**
40
+ * Arguments for deleting a post.
41
+ */
42
+ export interface PostsDeleteArguments extends TokenOverridable {
43
+ /** ID of the post to delete */
44
+ post_id: string;
45
+ }
46
+ /**
47
+ * Arguments for getting a thread of posts.
48
+ */
49
+ export interface PostsGetThreadArguments extends TokenOverridable, Paginated {
50
+ /** ID of the root post of the thread */
51
+ post_id: string;
52
+ }
53
+ /**
54
+ * Arguments for getting posts for a channel.
55
+ */
56
+ export interface PostsGetForChannelArguments extends TokenOverridable, ChannelID, Paginated {
57
+ /** Include deleted posts */
58
+ include_deleted?: boolean;
59
+ /** Only get posts created after this time (timestamp in milliseconds) */
60
+ since?: number;
61
+ /** Only get posts created before this post ID */
62
+ before?: string;
63
+ /** Only get posts created after this post ID */
64
+ after?: string;
65
+ }
66
+ /**
67
+ * Arguments for pinning a post.
68
+ */
69
+ export interface PostsPinArguments extends TokenOverridable {
70
+ /** ID of the post to pin */
71
+ post_id: string;
72
+ }
73
+ /**
74
+ * Arguments for unpinning a post.
75
+ */
76
+ export interface PostsUnpinArguments extends TokenOverridable {
77
+ /** ID of the post to unpin */
78
+ post_id: string;
79
+ }
80
+ /**
81
+ * Arguments for moving a post.
82
+ */
83
+ export interface PostsMoveArguments extends TokenOverridable {
84
+ /** ID of the post to move */
85
+ post_id: string;
86
+ /** ID of the channel to move the post to */
87
+ channel_id: string;
88
+ }
89
+ /**
90
+ * Arguments for creating an ephemeral post.
91
+ * @description Create a new ephemeral post that is visible only to the specified user.
92
+ */
93
+ export interface PostsCreateEphemeralArguments extends TokenOverridable {
94
+ /** The ID of the user to receive the ephemeral post */
95
+ user_id: string;
96
+ /** The post content */
97
+ post: Omit<PostsCreateArguments, "channel_id"> & {
98
+ channel_id?: string;
99
+ };
100
+ }
101
+ /**
102
+ * Arguments for marking a post as unread.
103
+ * @description Mark a channel as being unread from a given post.
104
+ */
105
+ export interface PostsMarkAsUnreadArguments extends TokenOverridable {
106
+ /** The ID of the user */
107
+ user_id: string;
108
+ /** The ID of the post */
109
+ post_id: string;
110
+ }
111
+ /**
112
+ * Arguments for getting flagged posts.
113
+ * @description Get a list of the target user's flagged posts.
114
+ */
115
+ export interface PostsGetFlaggedArguments extends TokenOverridable, Paginated {
116
+ /** The ID of the user whose flagged posts to retrieve */
117
+ user_id: string;
118
+ /** The ID of the team to filter by */
119
+ team_id?: string;
120
+ /** The ID of the channel to filter by */
121
+ channel_id?: string;
122
+ }
123
+ /**
124
+ * Arguments for getting file info from a post.
125
+ * @description Gets a list of file information objects for the files attached to a post.
126
+ */
127
+ export interface PostsGetFileInfoArguments extends TokenOverridable {
128
+ /** The ID of the post */
129
+ post_id: string;
130
+ }
131
+ /**
132
+ * Arguments for getting posts around the last unread.
133
+ * @description Get the posts around the oldest unread post in a channel for a given user.
134
+ */
135
+ export interface PostsGetAroundLastUnreadArguments extends TokenOverridable {
136
+ /** The ID of the channel */
137
+ channel_id: string;
138
+ /** The ID of the user */
139
+ user_id: string;
140
+ /** Number of posts to fetch before the unread post */
141
+ limit_before?: number;
142
+ /** Number of posts to fetch after the unread post */
143
+ limit_after?: number;
144
+ }
145
+ /**
146
+ * Arguments for searching posts.
147
+ * @description Search posts in the specified team.
148
+ */
149
+ export interface PostsSearchArguments extends TokenOverridable {
150
+ /** The ID of the team to search in */
151
+ team_id: string;
152
+ /** The search terms */
153
+ terms: string;
154
+ /** Use OR instead of AND for search terms */
155
+ is_or_search: boolean;
156
+ /** The time zone offset in seconds */
157
+ time_zone_offset?: number;
158
+ /** Include posts from deleted channels */
159
+ include_deleted_channels?: boolean;
160
+ /** The page number */
161
+ page?: number;
162
+ /** The number of results per page */
163
+ per_page?: number;
164
+ }
165
+ /**
166
+ * Arguments for performing a post action.
167
+ * @description Perform a post action (e.g., clicking an interactive button).
168
+ */
169
+ export interface PostsDoActionArguments extends TokenOverridable {
170
+ /** The ID of the post */
171
+ post_id: string;
172
+ /** The ID of the action to perform */
173
+ action_id: string;
174
+ /** The ID of the channel (optional) */
175
+ channel_id?: string;
176
+ }
177
+ /**
178
+ * Arguments for setting a reminder on a post.
179
+ * @description Set a reminder for the specified user on the specified post.
180
+ */
181
+ export interface PostsSetReminderArguments extends TokenOverridable {
182
+ /** The ID of the user */
183
+ user_id: string;
184
+ /** The ID of the post */
185
+ post_id: string;
186
+ /** Unix timestamp (in seconds) when the reminder should fire */
187
+ target_time: number;
188
+ }
189
+ /**
190
+ * Arguments for partially updating a post.
191
+ * @description Partially update a post by providing only the fields that need to be changed.
192
+ */
193
+ export interface PostsPatchArguments extends TokenOverridable {
194
+ /** The ID of the post to patch */
195
+ post_id: string;
196
+ /** Set to `true` to pin the post to the channel */
197
+ is_pinned?: boolean;
198
+ /** The message text of the post */
199
+ message?: string;
200
+ /** A list of file IDs to be attached to the post */
201
+ file_ids?: string[];
202
+ /** Whether the post has reactions */
203
+ has_reactions?: boolean;
204
+ /** A general JSON property bag to attach to the post */
205
+ props?: Record<string, unknown>;
206
+ }
207
+ /**
208
+ * Arguments for getting multiple posts by IDs.
209
+ * @description Retrieve a list of posts by providing an array of post IDs.
210
+ */
211
+ export interface PostsGetByIdsArguments extends TokenOverridable {
212
+ /** List of post IDs to retrieve */
213
+ ids: string[];
214
+ }
215
+ export {};
216
+ //# sourceMappingURL=posts.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/posts.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,KAAK,EACX,SAAS,EACT,SAAS,EACT,gBAAgB,EAChB,MAAM,EACN,MAAM,kBAAkB,CAAC;AAE1B,UAAU,aAAa;IACtB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,UAAU,6BACT,SAAQ,gBAA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sC;IACtC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,0CAA0C;IAC1C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,sBAAsB;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC/D,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;IAClE,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,WAAW,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC5D,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,mDAAmD;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,qCAAqC;IACrC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC/D,mCAAmC;IACnC,GAAG,EAAE,MAAM,EAAE,CAAC;CACd"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=posts.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.methods.js","sourceRoot":"","sources":["../../../src/types/methods/posts.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { Preference } from "../preferences";
2
+ import type { TokenOverridable, UserID } from "./common.methods";
3
+ export interface PreferencesGetArguments extends TokenOverridable, UserID {
4
+ category?: string;
5
+ }
6
+ export interface PreferencesSaveArguments extends TokenOverridable, UserID {
7
+ preferences: Preference[];
8
+ }
9
+ export interface PreferencesDeleteArguments extends TokenOverridable, UserID {
10
+ preferences: Preference[];
11
+ }
12
+ //# sourceMappingURL=preferences.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferences.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/preferences.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB,EAAE,MAAM;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB,EAAE,MAAM;IACzE,WAAW,EAAE,UAAU,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,0BAA2B,SAAQ,gBAAgB,EAAE,MAAM;IAC3E,WAAW,EAAE,UAAU,EAAE,CAAC;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=preferences.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferences.methods.js","sourceRoot":"","sources":["../../../src/types/methods/preferences.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ import type { Reaction } from "../reactions";
2
+ import type { TokenOverridable, UserIDMe } from "./common.methods";
3
+ export interface ReactionsCreateArguments extends TokenOverridable, Reaction {
4
+ }
5
+ export interface ReactionsGetForPostArguments extends TokenOverridable {
6
+ post_id: string;
7
+ }
8
+ export interface ReactionsDeleteArguments extends TokenOverridable, UserIDMe {
9
+ post_id: string;
10
+ emoji_name: string;
11
+ }
12
+ export interface ReactionsGetBulkArguments extends TokenOverridable {
13
+ post_ids: string[];
14
+ }
15
+ //# sourceMappingURL=reactions.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/reactions.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEnE,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB,EAAE,QAAQ;CAAG;AAE/E,MAAM,WAAW,4BAA6B,SAAQ,gBAAgB;IACrE,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,wBAAyB,SAAQ,gBAAgB,EAAE,QAAQ;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;IAClE,QAAQ,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reactions.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.methods.js","sourceRoot":"","sources":["../../../src/types/methods/reactions.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export interface ReportsStartUsersBatchExportArguments {
2
+ date_range: string;
3
+ }
4
+ //# sourceMappingURL=reports.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reports.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/reports.methods.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qCAAqC;IACrD,UAAU,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reports.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reports.methods.js","sourceRoot":"","sources":["../../../src/types/methods/reports.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export interface RolesGetArguments {
2
+ role_id: string;
3
+ }
4
+ export interface RolesGetByNameArguments {
5
+ name: string;
6
+ }
7
+ export interface RolesPatchArguments {
8
+ role_id: string;
9
+ permissions: string[];
10
+ }
11
+ export interface RolesGetByNamesArguments {
12
+ roles: string[];
13
+ }
14
+ //# sourceMappingURL=roles.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/roles.methods.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACvC,IAAI,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,wBAAwB;IACxC,KAAK,EAAE,MAAM,EAAE,CAAC;CAChB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=roles.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roles.methods.js","sourceRoot":"","sources":["../../../src/types/methods/roles.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,30 @@
1
+ import type { Scheme, SchemePatch } from "../schemes";
2
+ export interface SchemesCreateArguments {
3
+ scheme: Scheme;
4
+ }
5
+ export interface SchemesGetArguments {
6
+ scheme_id: string;
7
+ }
8
+ export interface SchemesListArguments {
9
+ scope?: string;
10
+ page?: number;
11
+ per_page?: number;
12
+ }
13
+ export interface SchemesDeleteArguments {
14
+ scheme_id: string;
15
+ }
16
+ export interface SchemesPatchArguments {
17
+ scheme_id: string;
18
+ scheme: SchemePatch;
19
+ }
20
+ export interface SchemesGetTeamsArguments {
21
+ scheme_id: string;
22
+ page?: number;
23
+ per_page?: number;
24
+ }
25
+ export interface SchemesGetChannelsArguments {
26
+ scheme_id: string;
27
+ page?: number;
28
+ per_page?: number;
29
+ }
30
+ //# sourceMappingURL=schemes.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemes.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/schemes.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,sBAAsB;IACtC,MAAM,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IACnC,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,oBAAoB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,sBAAsB;IACtC,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,WAAW,CAAC;CACpB;AAED,MAAM,WAAW,wBAAwB;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,2BAA2B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=schemes.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemes.methods.js","sourceRoot":"","sources":["../../../src/types/methods/schemes.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,107 @@
1
+ import type { LogFilter } from "../admin";
2
+ import type { AdminConfig } from "../config";
3
+ import type { OptionalTeamID, TokenOverridable } from "./common.methods";
4
+ /**
5
+ * Check if the server is up and healthy based on the configuration setting GoRoutineHealthThreshold.
6
+ *
7
+ * @description If GoRoutineHealthThreshold and the number of goroutines on the server exceeds that threshold the server is considered unhealthy.
8
+ * If GoRoutineHealthThreshold is not set or the number of goroutines is below the threshold the server is considered healthy.
9
+ *
10
+ * @version 3.10+
11
+ *
12
+ * If a "device_id" is passed in the query, it will test the Push Notification Proxy in order to discover whether the device is able to receive notifications.
13
+ * The response will have a "CanReceiveNotifications" property with one of the following values:
14
+ * - true: It can receive notifications
15
+ * - false: It cannot receive notifications
16
+ * - unknown: There has been an unknown error, and it is not certain whether it can receive notifications.
17
+ */
18
+ export interface SystemCheckHealthArguments extends TokenOverridable {
19
+ /**
20
+ * @description Check the status of the database and file storage as well
21
+ */ get_server_status?: boolean;
22
+ /**
23
+ * @description Check whether this device id can receive push notifications
24
+ */ device_id?: string;
25
+ }
26
+ /**
27
+ * Get configuration
28
+ * @description Retrieve the current server configuration
29
+ *
30
+ * Must have manage_system permission.
31
+ */
32
+ export interface SystemGetConfigArguments extends TokenOverridable {
33
+ }
34
+ /**
35
+ * Update configuration
36
+ * @description Submit a new configuration for the server to use.
37
+ *
38
+ * As of server version 4.8, the PluginSettings.EnableUploads setting cannot be modified by this endpoint.
39
+ *
40
+ * Note that the parameters that aren't set in the configuration that you provide will be reset to default values.
41
+ * Therefore, if you want to change a configuration parameter and leave the other ones unchanged, you need to get the existing configuration first,
42
+ * change the field that you want, then put that new configuration.
43
+ *
44
+ * Must have manage_system permission.
45
+ */
46
+ export interface SystemUpdateConfigArguments {
47
+ /** The new configuration */
48
+ config: AdminConfig;
49
+ }
50
+ /**
51
+ * Perform a database integrity check
52
+ * @description Performs a database integrity check.
53
+ *
54
+ * Note: This check may temporarily harm system performance.
55
+ * Local mode only: This endpoint is only available through local mode.
56
+ */
57
+ export type SystemCheckDatabaseIntegrityArguments = never;
58
+ /**
59
+ * Arguments for getting server logs.
60
+ */
61
+ export interface SystemGetLogsArguments extends LogFilter {
62
+ /** Page number of logs to return */
63
+ page?: number;
64
+ /** Number of logs per page */
65
+ logs_per_page?: number;
66
+ }
67
+ /**
68
+ * Arguments for uploading a log file.
69
+ */
70
+ export interface SystemUploadLogFileArguments {
71
+ /** The log file to upload */
72
+ file: File;
73
+ }
74
+ /**
75
+ * Arguments for testing the site URL.
76
+ */
77
+ export interface SystemTestSiteURLArguments {
78
+ /** The site URL to test */
79
+ site_url: string;
80
+ }
81
+ /**
82
+ * Arguments for testing email configuration.
83
+ */
84
+ export interface SystemTestEmailArguments {
85
+ /** The email configuration to test */
86
+ config: AdminConfig;
87
+ }
88
+ /**
89
+ * Arguments for testing S3 connection.
90
+ */
91
+ export interface SystemTestS3ConnectionArguments {
92
+ /** The S3 configuration to test */
93
+ config: AdminConfig;
94
+ }
95
+ /**
96
+ * Get some analytics data about the system.
97
+ * @description This endpoint uses the old format, the /analytics route is reserved for the new format when it gets implemented.
98
+ * The returned JSON changes based on the name query parameter but is always key/value pairs.
99
+ *
100
+ * Must have manage_system permission.
101
+ */
102
+ export interface SystemGetAnalyticsArguments extends TokenOverridable, OptionalTeamID {
103
+ /**
104
+ * @description Name of the specific analytic to retrieve
105
+ */ name?: "standard" | "bot_post_counts_day" | "post_counts_day" | "user_counts_with_posts_day" | "extra_counts";
106
+ }
107
+ //# sourceMappingURL=system.methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.methods.d.ts","sourceRoot":"","sources":["../../../src/types/methods/system.methods.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU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
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.methods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.methods.js","sourceRoot":"","sources":["../../../src/types/methods/system.methods.ts"],"names":[],"mappings":""}
@@ -0,0 +1,161 @@
1
+ import type { Team, TeamSearchOpts, TeamType } from "../teams";
2
+ import type { Paginated, TeamID, TokenOverridable, UserID } from "./common.methods";
3
+ /**
4
+ * Arguments for creating a new team.
5
+ */
6
+ export interface TeamsCreateArguments extends TokenOverridable {
7
+ display_name: string;
8
+ name: string;
9
+ type: TeamType;
10
+ }
11
+ /**
12
+ * Arguments for getting teams.
13
+ */
14
+ export interface TeamsGetArguments extends TokenOverridable, Paginated {
15
+ /** Include total count of teams */
16
+ include_total_count?: boolean;
17
+ }
18
+ /**
19
+ * Arguments for getting a team by ID.
20
+ */
21
+ export interface TeamsGetByIdArguments extends TokenOverridable, TeamID {
22
+ }
23
+ /**
24
+ * Arguments for getting a team by name.
25
+ */
26
+ export interface TeamsGetByNameArguments extends TokenOverridable {
27
+ /** Name of the team to get */
28
+ name: string;
29
+ }
30
+ /**
31
+ * Arguments for updating a team.
32
+ */
33
+ export interface TeamsUpdateArguments extends TokenOverridable, Partial<Team> {
34
+ }
35
+ /**
36
+ * Arguments for deleting a team.
37
+ */
38
+ export interface TeamsDeleteArguments extends TokenOverridable, TeamID {
39
+ /** Permanently delete the team (soft delete if false) */
40
+ permanent?: boolean;
41
+ }
42
+ /**
43
+ * Arguments for patching a team.
44
+ */
45
+ export interface TeamsPatchArguments extends TokenOverridable, TeamID, Partial<Team> {
46
+ }
47
+ /**
48
+ * Arguments for regenerating a team invite ID.
49
+ */
50
+ export interface TeamsRegenerateInviteIdArguments extends TokenOverridable, TeamID {
51
+ }
52
+ /**
53
+ * Arguments for getting team statistics.
54
+ */
55
+ export interface TeamsGetStatsArguments extends TokenOverridable, TeamID {
56
+ }
57
+ /**
58
+ * Arguments for searching teams.
59
+ */
60
+ export type TeamsSearchArguments = TokenOverridable & Paginated & TeamSearchOpts & {
61
+ /** Search term */
62
+ term: string;
63
+ };
64
+ /**
65
+ * Arguments for checking if a team name exists.
66
+ */
67
+ export interface TeamsCheckNameExistsArguments extends TokenOverridable {
68
+ /** Team name to check */
69
+ name: string;
70
+ }
71
+ /**
72
+ * Arguments for importing a team.
73
+ */
74
+ export interface TeamsImportArguments extends TokenOverridable {
75
+ /** File to import */
76
+ file: File;
77
+ /** Size of the file */
78
+ filesize: number;
79
+ /** Source to import from */
80
+ importFrom: string;
81
+ }
82
+ /**
83
+ * Arguments for setting the team icon.
84
+ */
85
+ export interface TeamsSetIconArguments extends TokenOverridable, TeamID {
86
+ /** The icon image */
87
+ image: File | Blob;
88
+ }
89
+ /**
90
+ * Arguments for removing the team icon.
91
+ */
92
+ export interface TeamsRemoveIconArguments extends TokenOverridable, TeamID {
93
+ }
94
+ /**
95
+ * Arguments for getting the team icon.
96
+ */
97
+ export interface TeamsGetIconArguments extends TeamID {
98
+ }
99
+ /**
100
+ * Arguments for listing team members.
101
+ * @see https://developers.loop.ru/API/4.0.0/get-team-members
102
+ */
103
+ export interface TeamsMembersListArguments extends TokenOverridable, TeamID, Paginated {
104
+ }
105
+ /**
106
+ * Arguments for adding a user to a team.
107
+ * @see https://developers.loop.ru/API/4.0.0/add-team-member
108
+ */
109
+ export interface TeamsMemberAddArguments extends TokenOverridable, TeamID {
110
+ /** The user ID to add to the team */
111
+ user_id: string;
112
+ }
113
+ /**
114
+ * Arguments for batch adding users to a team.
115
+ * @see https://developers.loop.ru/API/4.0.0/add-team-members
116
+ */
117
+ export interface TeamsMemberAddBatchArguments extends TokenOverridable, TeamID {
118
+ /** Array of team member objects with user_id */
119
+ members: Array<{
120
+ user_id: string;
121
+ }>;
122
+ }
123
+ /**
124
+ * Arguments for getting a specific team member.
125
+ * @see https://developers.loop.ru/API/4.0.0/get-team-member
126
+ */
127
+ export interface TeamsMemberGetArguments extends TokenOverridable, TeamID, UserID {
128
+ }
129
+ /**
130
+ * Arguments for removing a user from a team.
131
+ * @see https://developers.loop.ru/API/4.0.0/remove-team-member
132
+ */
133
+ export interface TeamsMemberRemoveArguments extends TokenOverridable, TeamID, UserID {
134
+ }
135
+ /**
136
+ * Arguments for getting team members by user IDs.
137
+ * @see https://developers.loop.ru/API/4.0.0/get-team-members-by-ids
138
+ */
139
+ export interface TeamsMembersGetByIdsArguments extends TokenOverridable, TeamID {
140
+ /** Array of user IDs to look up */
141
+ user_ids: string[];
142
+ }
143
+ /**
144
+ * Arguments for updating team member roles.
145
+ * @see https://developers.loop.ru/API/4.0.0/update-team-member-roles
146
+ */
147
+ export interface TeamsMemberUpdateRolesArguments extends TokenOverridable, TeamID, UserID {
148
+ /** Space-separated list of roles to assign */
149
+ roles: string;
150
+ }
151
+ /**
152
+ * Arguments for updating team member scheme roles.
153
+ * @see https://developers.loop.ru/API/4.0.0/update-team-member-scheme-roles
154
+ */
155
+ export interface TeamsMemberUpdateSchemeRolesArguments extends TokenOverridable, TeamID, UserID {
156
+ /** Whether user is a scheme admin */
157
+ scheme_admin: boolean;
158
+ /** Whether user is a scheme user */
159
+ scheme_user: boolean;
160
+ }
161
+ //# sourceMappingURL=teams.methods.d.ts.map