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,101 @@
1
+ type MessageDescriptor = {
2
+ id: string;
3
+ defaultMessage: string;
4
+ };
5
+ export type PluginsGetResponse = {
6
+ active: PluginManifest[];
7
+ inactive: PluginManifest[];
8
+ };
9
+ export type PluginManifest = {
10
+ id: string;
11
+ name: string;
12
+ description?: string;
13
+ homepage_url?: string;
14
+ support_url?: string;
15
+ release_notes_url?: string;
16
+ icon_path?: string;
17
+ version: string;
18
+ min_server_version?: string;
19
+ translate?: boolean;
20
+ server?: PluginManifestServer;
21
+ backend?: PluginManifestServer;
22
+ webapp?: PluginManifestWebapp;
23
+ settings_schema?: PluginSettingsSchema;
24
+ props?: {
25
+ [key: string]: unknown;
26
+ enterprise: boolean;
27
+ experimental: boolean;
28
+ };
29
+ };
30
+ export type PluginRedux = PluginManifest & {
31
+ active: boolean;
32
+ };
33
+ export type PluginManifestServer = {
34
+ executables?: {
35
+ "linux-amd64"?: string;
36
+ "darwin-amd64"?: string;
37
+ "windows-amd64"?: string;
38
+ };
39
+ executable: string;
40
+ };
41
+ export type PluginManifestWebapp = {
42
+ bundle_path: string;
43
+ };
44
+ export type PluginSettingsSchema = {
45
+ header: string;
46
+ footer: string;
47
+ settings: PluginSetting[];
48
+ };
49
+ export type PluginSetting = {
50
+ key: string;
51
+ display_name: string;
52
+ type: string;
53
+ help_text: string | MessageDescriptor;
54
+ regenerate_help_text?: string;
55
+ placeholder: string;
56
+ default: unknown;
57
+ options?: PluginSettingOption[];
58
+ hosting?: "on-prem" | "cloud";
59
+ };
60
+ export type PluginSettingOption = {
61
+ display_name: string;
62
+ value: string;
63
+ };
64
+ export type PluginsResponse = {
65
+ active: PluginManifest[];
66
+ inactive: PluginManifest[];
67
+ };
68
+ export type PluginStatus = {
69
+ plugin_id: string;
70
+ cluster_id: string;
71
+ plugin_path: string;
72
+ state: number;
73
+ name: string;
74
+ description: string;
75
+ version: string;
76
+ };
77
+ type PluginInstance = {
78
+ cluster_id: string;
79
+ version: string;
80
+ state: number;
81
+ };
82
+ export type PluginStatusRedux = {
83
+ id: string;
84
+ name: string;
85
+ description: string;
86
+ version: string;
87
+ active: boolean;
88
+ state: number;
89
+ error?: string;
90
+ instances: PluginInstance[];
91
+ };
92
+ export type ClientPluginManifest = {
93
+ id: string;
94
+ min_server_version?: string;
95
+ version: string;
96
+ webapp: {
97
+ bundle_path: string;
98
+ };
99
+ };
100
+ export {};
101
+ //# sourceMappingURL=plugins.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../src/types/plugins.ts"],"names":[],"mappings":"AACA,KAAK,iBAAiB,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAChC,MAAM,EAAE,cAAc,EAAE,CAAC;IACzB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,kBAAk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 @@
1
+ {"version":3,"file":"plugins.js","sourceRoot":"","sources":["../../src/types/plugins.ts"],"names":[],"mappings":""}
@@ -0,0 +1,290 @@
1
+ import type { AppBinding } from "./apps";
2
+ import type { ChannelType } from "./channels";
3
+ import type { CustomEmoji } from "./emojis";
4
+ import type { FileInfo } from "./files";
5
+ import type { OpenGraphMetadata } from "./metadata";
6
+ import type { Reaction } from "./reactions";
7
+ import type { TeamType } from "./teams";
8
+ import type { UserProfile } from "./users";
9
+ /**
10
+ * ===============================================
11
+ * @description Posts main object
12
+ * ===============================================
13
+ */
14
+ export interface Post<PROPS_TYPE = Record<string, unknown>> {
15
+ id: string;
16
+ create_at: number;
17
+ update_at: number;
18
+ edit_at: number;
19
+ delete_at: number;
20
+ is_pinned: boolean;
21
+ user_id: string;
22
+ channel_id: string;
23
+ root_id: string;
24
+ original_id: string;
25
+ message: string;
26
+ type: PostType;
27
+ props?: PROPS_TYPE & {
28
+ app_bindings?: AppBinding[];
29
+ attachments?: PostAttachment[];
30
+ from_bot?: "true" | "false";
31
+ };
32
+ hashtags: string;
33
+ pending_post_id: string;
34
+ reply_count: number;
35
+ file_ids?: string[];
36
+ metadata: PostMetadata;
37
+ failed?: boolean;
38
+ user_activity_posts?: Post[];
39
+ state?: PostState;
40
+ filenames?: string[];
41
+ last_reply_at?: number;
42
+ participants?: (UserProfile | string /** userID */)[];
43
+ message_source?: string;
44
+ is_following?: boolean;
45
+ exists?: boolean;
46
+ }
47
+ /**
48
+ * ===============================================
49
+ * @description Posts main enums
50
+ * ===============================================
51
+ */
52
+ export declare enum PostState {
53
+ DELETED = "DELETED",
54
+ NULL = ""
55
+ }
56
+ export declare enum PostPriority {
57
+ URGENT = "urgent",
58
+ IMPORTANT = "important",
59
+ NULL = ""
60
+ }
61
+ export declare enum PostEmbedType {
62
+ IMAGE = "image",
63
+ LINK = "link",
64
+ ATTACHMENT = "message_attachment",
65
+ OPEN_GRAPH = "opengraph",
66
+ PERMALINK = "permalink"
67
+ }
68
+ export declare enum PostType {
69
+ SYSTEM_ADD_REMOVE = "system_add_remove",
70
+ SYSTEM_ADD_TO_CHANNEL = "system_add_to_channel",
71
+ SYSTEM_ADD_TO_TEAM = "system_add_to_team",
72
+ SYSTEM_CHANNEL_DELETED = "system_channel_deleted",
73
+ SYSTEM_CHANNEL_RESTORED = "system_channel_restored",
74
+ SYSTEM_DISPLAY_NAME_CHANGE = "system_displayname_change",
75
+ SYSTEM_CONVERT_CHANNEL = "system_convert_channel",
76
+ SYSTEM_EPHEMERAL = "system_ephemeral",
77
+ SYSTEM_HEADER_CHANGE = "system_header_change",
78
+ SYSTEM_JOIN_CHANNEL = "system_join_channel",
79
+ SYSTEM_JOIN_LEAVE = "system_join_leave",
80
+ SYSTEM_LEAVE_CHANNEL = "system_leave_channel",
81
+ SYSTEM_PURPOSE_CHANGE = "system_purpose_change",
82
+ SYSTEM_REMOVE_FROM_CHANNEL = "system_remove_from_channel",
83
+ SYSTEM_COMBINED_USER_ACTIVITY = "system_combined_user_activity",
84
+ SYSTEM_FAKE_PARENT_DELETED = "system_fake_parent_deleted",
85
+ SYSTEM_GENERIC = "system_generic",
86
+ REMINDER = "reminder",
87
+ SYSTEM_WRANGLER = "system_wrangler",
88
+ NULL = ""
89
+ }
90
+ /**
91
+ * ===============================================
92
+ * @description Posts metadata
93
+ * ===============================================
94
+ */
95
+ export interface PostEmbed {
96
+ type: PostEmbedType;
97
+ url: string;
98
+ data?: OpenGraphMetadata | PostPreviewMetadata;
99
+ }
100
+ export interface PostPriorityMetadata {
101
+ priority: PostPriority;
102
+ requested_ack?: boolean;
103
+ persistent_notifications?: boolean;
104
+ }
105
+ export interface PostImage {
106
+ format: string;
107
+ frameCount: number;
108
+ height: number;
109
+ width: number;
110
+ }
111
+ export interface PostAcknowledgement {
112
+ post_id: string;
113
+ user_id: string;
114
+ acknowledged_at: number;
115
+ }
116
+ export interface PostPreviewMetadata {
117
+ post_id: string;
118
+ post?: Post;
119
+ channel_display_name: string;
120
+ team_name: string;
121
+ channel_type: ChannelType;
122
+ channel_id: string;
123
+ }
124
+ export interface PostMetadata {
125
+ embeds: PostEmbed[];
126
+ emojis: CustomEmoji[];
127
+ files: FileInfo[];
128
+ images: Record<string, PostImage>;
129
+ reactions?: Reaction[];
130
+ priority?: PostPriorityMetadata;
131
+ acknowledgements?: PostAcknowledgement[];
132
+ }
133
+ /**
134
+ * ===============================================
135
+ * @description Posts attachments
136
+ * ===============================================
137
+ */
138
+ export declare enum PostAttachmentColor {
139
+ DARK_RED = "#8B0000",
140
+ GREEN = "#008000",
141
+ BLUE = "#0000FF",
142
+ ORANGE = "#FFA500",
143
+ GRAY = "#808080"
144
+ }
145
+ export interface PostAttachment {
146
+ id: number;
147
+ fallback: string;
148
+ color: PostAttachmentColor | string;
149
+ pretext: string;
150
+ author_name: string;
151
+ author_link: string;
152
+ author_icon: string;
153
+ title: string;
154
+ title_link: string;
155
+ text: string;
156
+ fields: PostAttachmentField[];
157
+ actions?: PostAction[];
158
+ image_url: string;
159
+ thumb_url: string;
160
+ footer: string;
161
+ footer_icon: string;
162
+ timestamp: number | string;
163
+ }
164
+ export interface PostAttachmentField {
165
+ title: string;
166
+ value: unknown;
167
+ short: boolean;
168
+ }
169
+ /**
170
+ * ===============================================
171
+ * @description Posts actions
172
+ * ===============================================
173
+ */
174
+ export declare enum PostActionStyle {
175
+ GOOD = "good",
176
+ WARNING = "warning",
177
+ DANGER = "danger",
178
+ DEFAULT = "default",
179
+ PRIMARY = "primary",
180
+ SUCCESS = "success"
181
+ }
182
+ export declare enum PostActionType {
183
+ SELECT = "select",
184
+ BUTTON = "button"
185
+ }
186
+ export declare enum PostActionDataSource {
187
+ CHANNELS = "channels",
188
+ USERS = "users"
189
+ }
190
+ export interface PostActionOption {
191
+ text: string;
192
+ value: string;
193
+ }
194
+ export interface PostActionIntegration {
195
+ url: string;
196
+ context?: PostContext;
197
+ }
198
+ export interface PostAction {
199
+ id: string;
200
+ name: string;
201
+ integration: PostActionIntegration;
202
+ type: PostActionType;
203
+ options?: PostActionOption[];
204
+ style?: PostActionStyle;
205
+ data_source?: PostActionDataSource;
206
+ }
207
+ /**
208
+ * ===============================================
209
+ * @description Posts context
210
+ * ===============================================
211
+ */
212
+ export type PostContextProps = {
213
+ [name: string]: string;
214
+ };
215
+ export interface PostContext {
216
+ app_id?: string;
217
+ location?: string;
218
+ acting_user_id?: string;
219
+ user_id?: string;
220
+ channel_id?: string;
221
+ team_id?: string;
222
+ post_id?: string;
223
+ root_id?: string;
224
+ props?: PostContextProps;
225
+ user_agent?: string;
226
+ track_as_submit?: boolean;
227
+ acting_user?: {
228
+ id: string;
229
+ };
230
+ [key: string]: unknown;
231
+ }
232
+ /**
233
+ * ===============================================
234
+ * @description Posts analytics
235
+ * ===============================================
236
+ */
237
+ export interface PostAnalytics {
238
+ channel_id: string;
239
+ post_id: string;
240
+ user_actual_id: string;
241
+ root_id: string;
242
+ priority?: PostPriority;
243
+ requested_ack?: boolean | undefined;
244
+ persistent_notifications?: boolean | undefined;
245
+ }
246
+ /**
247
+ * ===============================================
248
+ * @description Posts state
249
+ * ===============================================
250
+ */
251
+ export interface PostOrderBlock {
252
+ order: string[];
253
+ recent?: boolean;
254
+ oldest?: boolean;
255
+ }
256
+ export interface MessageHistory {
257
+ messages: string[];
258
+ index: {
259
+ post: number;
260
+ comment: number;
261
+ };
262
+ }
263
+ /**
264
+ * ===============================================
265
+ * @description Posts other
266
+ * ===============================================
267
+ */
268
+ /**
269
+ * @todo Find where its used
270
+ */
271
+ export interface PostActivityEntry {
272
+ postType: PostType;
273
+ actorId: string[];
274
+ userIds: string[];
275
+ usernames: string[];
276
+ }
277
+ /**
278
+ * @todo Find where its used
279
+ */
280
+ export interface PostInfo {
281
+ channel_id: string;
282
+ channel_type: ChannelType;
283
+ channel_display_name: string;
284
+ has_joined_channel: boolean;
285
+ team_id: string;
286
+ team_type: TeamType;
287
+ team_display_name: string;
288
+ has_joined_team: boolean;
289
+ }
290
+ //# sourceMappingURL=posts.d.ts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AAK,EAAE,MAAM,EAAE,CAAC;IAChB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KAChB,CAAC;CACF;AAED;;;;GAIG;AAEH;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,WAAW,CAAC;IAC1B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,QAAQ,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,OAAO,CAAC;CACzB"}
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostActionDataSource = exports.PostActionType = exports.PostActionStyle = exports.PostAttachmentColor = exports.PostType = exports.PostEmbedType = exports.PostPriority = exports.PostState = void 0;
4
+ /**
5
+ * ===============================================
6
+ * @description Posts main enums
7
+ * ===============================================
8
+ */
9
+ var PostState;
10
+ (function (PostState) {
11
+ PostState["DELETED"] = "DELETED";
12
+ PostState["NULL"] = "";
13
+ })(PostState || (exports.PostState = PostState = {}));
14
+ var PostPriority;
15
+ (function (PostPriority) {
16
+ PostPriority["URGENT"] = "urgent";
17
+ PostPriority["IMPORTANT"] = "important";
18
+ PostPriority["NULL"] = "";
19
+ })(PostPriority || (exports.PostPriority = PostPriority = {}));
20
+ var PostEmbedType;
21
+ (function (PostEmbedType) {
22
+ PostEmbedType["IMAGE"] = "image";
23
+ PostEmbedType["LINK"] = "link";
24
+ PostEmbedType["ATTACHMENT"] = "message_attachment";
25
+ PostEmbedType["OPEN_GRAPH"] = "opengraph";
26
+ PostEmbedType["PERMALINK"] = "permalink";
27
+ })(PostEmbedType || (exports.PostEmbedType = PostEmbedType = {}));
28
+ var PostType;
29
+ (function (PostType) {
30
+ PostType["SYSTEM_ADD_REMOVE"] = "system_add_remove";
31
+ PostType["SYSTEM_ADD_TO_CHANNEL"] = "system_add_to_channel";
32
+ PostType["SYSTEM_ADD_TO_TEAM"] = "system_add_to_team";
33
+ PostType["SYSTEM_CHANNEL_DELETED"] = "system_channel_deleted";
34
+ PostType["SYSTEM_CHANNEL_RESTORED"] = "system_channel_restored";
35
+ PostType["SYSTEM_DISPLAY_NAME_CHANGE"] = "system_displayname_change";
36
+ PostType["SYSTEM_CONVERT_CHANNEL"] = "system_convert_channel";
37
+ PostType["SYSTEM_EPHEMERAL"] = "system_ephemeral";
38
+ PostType["SYSTEM_HEADER_CHANGE"] = "system_header_change";
39
+ PostType["SYSTEM_JOIN_CHANNEL"] = "system_join_channel";
40
+ PostType["SYSTEM_JOIN_LEAVE"] = "system_join_leave";
41
+ PostType["SYSTEM_LEAVE_CHANNEL"] = "system_leave_channel";
42
+ PostType["SYSTEM_PURPOSE_CHANGE"] = "system_purpose_change";
43
+ PostType["SYSTEM_REMOVE_FROM_CHANNEL"] = "system_remove_from_channel";
44
+ PostType["SYSTEM_COMBINED_USER_ACTIVITY"] = "system_combined_user_activity";
45
+ PostType["SYSTEM_FAKE_PARENT_DELETED"] = "system_fake_parent_deleted";
46
+ PostType["SYSTEM_GENERIC"] = "system_generic";
47
+ PostType["REMINDER"] = "reminder";
48
+ PostType["SYSTEM_WRANGLER"] = "system_wrangler";
49
+ PostType["NULL"] = "";
50
+ })(PostType || (exports.PostType = PostType = {}));
51
+ /**
52
+ * ===============================================
53
+ * @description Posts attachments
54
+ * ===============================================
55
+ */
56
+ var PostAttachmentColor;
57
+ (function (PostAttachmentColor) {
58
+ PostAttachmentColor["DARK_RED"] = "#8B0000";
59
+ PostAttachmentColor["GREEN"] = "#008000";
60
+ PostAttachmentColor["BLUE"] = "#0000FF";
61
+ PostAttachmentColor["ORANGE"] = "#FFA500";
62
+ PostAttachmentColor["GRAY"] = "#808080";
63
+ })(PostAttachmentColor || (exports.PostAttachmentColor = PostAttachmentColor = {}));
64
+ /**
65
+ * ===============================================
66
+ * @description Posts actions
67
+ * ===============================================
68
+ */
69
+ var PostActionStyle;
70
+ (function (PostActionStyle) {
71
+ PostActionStyle["GOOD"] = "good";
72
+ PostActionStyle["WARNING"] = "warning";
73
+ PostActionStyle["DANGER"] = "danger";
74
+ PostActionStyle["DEFAULT"] = "default";
75
+ PostActionStyle["PRIMARY"] = "primary";
76
+ PostActionStyle["SUCCESS"] = "success";
77
+ })(PostActionStyle || (exports.PostActionStyle = PostActionStyle = {}));
78
+ var PostActionType;
79
+ (function (PostActionType) {
80
+ PostActionType["SELECT"] = "select";
81
+ PostActionType["BUTTON"] = "button";
82
+ })(PostActionType || (exports.PostActionType = PostActionType = {}));
83
+ var PostActionDataSource;
84
+ (function (PostActionDataSource) {
85
+ PostActionDataSource["CHANNELS"] = "channels";
86
+ PostActionDataSource["USERS"] = "users";
87
+ })(PostActionDataSource || (exports.PostActionDataSource = PostActionDataSource = {}));
88
+ //# sourceMappingURL=posts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"posts.js","sourceRoot":"","sources":["../../src/types/posts.ts"],"names":[],"mappings":";;;AAgDA;;;;GAIG;AAEH,IAAY,SAGX;AAHD,WAAY,SAAS;IACpB,gCAAmB,CAAA;IACnB,sBAAS,CAAA;AACV,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAED,IAAY,YAIX;AAJD,WAAY,YAAY;IACvB,iCAAiB,CAAA;IACjB,uCAAuB,CAAA;IACv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AAA;AAClB,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAED,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC/B,6CAAqB,CAAA;IACrB,uCAAe,CAAA;AAChB,CAAC,EAHW,oBAAoB,oCAApB,oBAAoB,QAG/B"}
@@ -0,0 +1,7 @@
1
+ export type Preference = {
2
+ user_id: string;
3
+ category: string;
4
+ name: string;
5
+ value: string;
6
+ };
7
+ //# sourceMappingURL=preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferences.d.ts","sourceRoot":"","sources":["../../src/types/preferences.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=preferences.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preferences.js","sourceRoot":"","sources":["../../src/types/preferences.ts"],"names":[],"mappings":""}
@@ -0,0 +1,27 @@
1
+ export declare enum Action {
2
+ URL = "url"
3
+ }
4
+ export type ProductNotice = {
5
+ /** Unique identifier for this notice. Can be a running number. Used for storing 'viewed' state on the server. */
6
+ id: string;
7
+ /** Notice title. Use {{Mattermost}} instead of plain text to support white-labeling. Text supports Markdown. */
8
+ title: string;
9
+ /** Notice content. Use {{Mattermost}} instead of plain text to support white-labeling. Text supports Markdown. */
10
+ description: string;
11
+ image?: string;
12
+ /** Optional override for the action button text (defaults to OK) */
13
+ actionText?: string;
14
+ /** Optional action to perform on action button click. (defaults to closing the notice) */
15
+ action?: Action;
16
+ /** Optional action parameter.
17
+ * Example: {"action": "url", actionParam: "/console/some-page"}
18
+ */
19
+ actionParam?: string;
20
+ sysAdminOnly: boolean;
21
+ teamAdminOnly: boolean;
22
+ };
23
+ /** List of product notices. Order is important and is used to resolve priorities.
24
+ * Each notice will only be show if conditions are met.
25
+ */
26
+ export type ProductNotices = ProductNotice[];
27
+ //# sourceMappingURL=product-notices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-notices.d.ts","sourceRoot":"","sources":["../../src/types/product-notices.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IACjB,GAAG,QAAQ;CACX;AAED,MAAM,MAAM,aAAa,GAAG;IAC3B,iHAAiH;IACjH,EAAE,EAAE,MAAM,CAAC;IAEX,gHAAgH;IAChH,KAAK,EAAE,MAAM,CAAC;IAEd,kHAAkH;IAClH,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,oEAAoE;IACpE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0FAA0F;IAC1F,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,aAAa,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Action = void 0;
4
+ var Action;
5
+ (function (Action) {
6
+ Action["URL"] = "url";
7
+ })(Action || (exports.Action = Action = {}));
8
+ //# sourceMappingURL=product-notices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-notices.js","sourceRoot":"","sources":["../../src/types/product-notices.ts"],"names":[],"mappings":";;;AAAA,IAAY,MAEX;AAFD,WAAY,MAAM;IACjB,qBAAW,CAAA;AACZ,CAAC,EAFW,MAAM,sBAAN,MAAM,QAEjB"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * - `null` - explicitly Channels
3
+ * - `string` - uuid - any other product
4
+ */
5
+ export type ProductIdentifier = null | string;
6
+ /** @see {@link ProductIdentifier} */
7
+ export type ProductScope = ProductIdentifier | ProductIdentifier[];
8
+ //# sourceMappingURL=products.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/types/products.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,MAAM,CAAC;AAE9C,qCAAqC;AACrC,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,iBAAiB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=products.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/types/products.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export type Reaction = {
2
+ user_id: string;
3
+ post_id: string;
4
+ emoji_name: string;
5
+ create_at: number;
6
+ };
7
+ //# sourceMappingURL=reactions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.d.ts","sourceRoot":"","sources":["../../src/types/reactions.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=reactions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reactions.js","sourceRoot":"","sources":["../../src/types/reactions.ts"],"names":[],"mappings":""}