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 @@
1
+ {"version":3,"file":"bots.d.ts","sourceRoot":"","sources":["../../src/types/bots.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,GAAG;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,QAAQ;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bots.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bots.js","sourceRoot":"","sources":["../../src/types/bots.ts"],"names":[],"mappings":""}
@@ -0,0 +1,279 @@
1
+ import type { FileInfo } from "./files";
2
+ /**
3
+ * ===============================================
4
+ * @description Channel main object
5
+ * ===============================================
6
+ */
7
+ export type Channel = {
8
+ id: string;
9
+ create_at: number;
10
+ update_at: number;
11
+ delete_at: number;
12
+ team_id: string;
13
+ type: ChannelType;
14
+ display_name: string;
15
+ name: string;
16
+ header: string;
17
+ purpose: string;
18
+ last_post_at: number;
19
+ total_msg_count: number;
20
+ extra_update_at: number;
21
+ creator_id: string;
22
+ scheme_id?: string | null;
23
+ props?: Record<string, unknown> | null;
24
+ group_constrained?: boolean | null;
25
+ shared?: boolean | null;
26
+ total_msg_count_root: number;
27
+ policy_id: string | null;
28
+ last_root_post_at: number;
29
+ };
30
+ /**
31
+ * ===============================================
32
+ * @description Channel enums
33
+ * ===============================================
34
+ */
35
+ export declare enum ChannelType {
36
+ OPEN = "O",
37
+ PRIVATE = "P",
38
+ DIRECT = "D",
39
+ GROUP = "G",
40
+ THREADS = "threads"
41
+ }
42
+ export declare enum ChannelNotify {
43
+ DEFAULT = "default",
44
+ ALL = "all",
45
+ MENTION = "mention",
46
+ NONE = "none"
47
+ }
48
+ export declare enum ChannelNotifyDesktopSound {
49
+ BING = "Bing",
50
+ CRACKLE = "Crackle",
51
+ DOWN = "Down",
52
+ HELLO = "Hello",
53
+ RIPPLE = "Ripple",
54
+ UPSTAIRS = "Upstairs"
55
+ }
56
+ /**
57
+ * ===============================================
58
+ * @description Channels general types
59
+ * ===============================================
60
+ */
61
+ export interface ServerChannel extends Channel {
62
+ /**
63
+ * The total number of posts in this channel, not including join/leave messages
64
+ *
65
+ * @remarks This field will be moved to a {@link ChannelMessageCount} object when this channel is stored in Redux.
66
+ */
67
+ total_msg_count: number;
68
+ /**
69
+ * The number of root posts in this channel, not including join/leave messages
70
+ *
71
+ * @remarks This field will be moved to a {@link ChannelMessageCount} object when this channel is stored in Redux.
72
+ */
73
+ total_msg_count_root: number;
74
+ }
75
+ /**
76
+ * ===============================================
77
+ * @description Channels category types
78
+ * ===============================================
79
+ */
80
+ export declare enum ChannelCategoryType {
81
+ FAVORITES = "favorites",
82
+ CHANNELS = "channels",
83
+ DIRECTT_MESSAGES = "direct_messages",
84
+ CUSTOM = "custom"
85
+ }
86
+ export declare enum ChannelCategorySorting {
87
+ ALPHABETICAL = "alpha",
88
+ DEFAULT = "",// behaves the same as manual
89
+ RECENCY = "recent",
90
+ MANUAL = "manual"
91
+ }
92
+ export interface ChannelCategory {
93
+ id: string;
94
+ user_id: string;
95
+ team_id: string;
96
+ type: ChannelCategoryType;
97
+ display_name: string;
98
+ sorting: ChannelCategorySorting;
99
+ channel_ids: string[];
100
+ muted: boolean;
101
+ collapsed: boolean;
102
+ }
103
+ export interface OrderedChannelCategories {
104
+ categories: ChannelCategory[];
105
+ order: string[];
106
+ }
107
+ /**
108
+ * ===============================================
109
+ * @description Channels bookmark types
110
+ * ===============================================
111
+ */
112
+ export declare enum ChannelBookmarkType {
113
+ LINK = "link",
114
+ FILE = "file"
115
+ }
116
+ export type ChannelBookmark = {
117
+ id: string;
118
+ create_at: number;
119
+ update_at: number;
120
+ delete_at: number;
121
+ channel_id: string;
122
+ owner_id: string;
123
+ file_id?: string;
124
+ file?: FileInfo;
125
+ display_name: string;
126
+ sort_order: number;
127
+ link_url?: string;
128
+ image_url?: string;
129
+ emoji?: string;
130
+ type: ChannelBookmarkType;
131
+ original_id?: string;
132
+ parent_id?: string;
133
+ };
134
+ export interface ChannelBookmarkCreateLink {
135
+ type: ChannelBookmarkType.LINK;
136
+ link_url: string;
137
+ }
138
+ export interface ChannelBookmarkCreateFile {
139
+ type: ChannelBookmarkType.FILE;
140
+ file_id: string;
141
+ }
142
+ export interface ChannelBookmarkCreateBase {
143
+ display_name: string;
144
+ image_url?: string;
145
+ emoji?: string;
146
+ }
147
+ export type ChannelBookmarkCreate = ChannelBookmarkCreateBase & (ChannelBookmarkCreateLink | ChannelBookmarkCreateFile);
148
+ export interface ChannelBookmarkPatch {
149
+ file_id?: string;
150
+ display_name?: string;
151
+ sort_order?: number;
152
+ link_url?: string;
153
+ image_url?: string;
154
+ emoji?: string;
155
+ }
156
+ export interface ChannelBookmarkWithFileInfo extends ChannelBookmark {
157
+ file: FileInfo;
158
+ }
159
+ /**
160
+ * ===============================================
161
+ * @description Channels other types
162
+ * ===============================================
163
+ */
164
+ export interface ChannelMessageCount {
165
+ /** The total number of posts in this channel, not including join/leave messages */
166
+ total: number;
167
+ /** The number of root posts in this channel, not including join/leave messages */
168
+ root: number;
169
+ }
170
+ export interface ChannelModeration {
171
+ name: string;
172
+ roles: {
173
+ guests?: {
174
+ value: boolean;
175
+ enabled: boolean;
176
+ };
177
+ members: {
178
+ value: boolean;
179
+ enabled: boolean;
180
+ };
181
+ admins: {
182
+ value: boolean;
183
+ enabled: boolean;
184
+ };
185
+ };
186
+ }
187
+ export interface ChannelModerationPatch {
188
+ name: string;
189
+ roles: {
190
+ guests?: boolean;
191
+ members?: boolean;
192
+ };
193
+ }
194
+ export interface ChannelWithTeamData extends Channel {
195
+ team_display_name: string;
196
+ team_name: string;
197
+ team_update_at: number;
198
+ }
199
+ export interface ChannelsWithTotalCount {
200
+ channels: ChannelWithTeamData[];
201
+ total_count: number;
202
+ }
203
+ export interface ChannelMemberCountByGroup {
204
+ group_id: string;
205
+ channel_member_count: number;
206
+ channel_member_timezones_count: number;
207
+ }
208
+ export interface ChannelMemberCountsByGroup {
209
+ [channelId: string]: ChannelMemberCountByGroup;
210
+ }
211
+ /**
212
+ * ===============================================
213
+ * @description Channel responses types
214
+ * ===============================================
215
+ */
216
+ export interface ChannelViewResponse {
217
+ status: string;
218
+ last_viewed_at_times: {
219
+ [channelId: string]: number;
220
+ };
221
+ }
222
+ export interface ChannelStats {
223
+ channel_id: string;
224
+ member_count: number;
225
+ guest_count: number;
226
+ pinnedpost_count: number;
227
+ files_count: number;
228
+ }
229
+ export interface ChannelMembership {
230
+ channel_id: string;
231
+ user_id: string;
232
+ roles: string;
233
+ last_viewed_at: number;
234
+ /** The number of posts in this channel which have been read by the user */
235
+ msg_count: number;
236
+ /** The number of root posts in this channel which have been read by the user */
237
+ msg_count_root: number;
238
+ /** The number of unread mentions in this channel */
239
+ mention_count: number;
240
+ /** The number of unread mentions in root posts in this channel */
241
+ mention_count_root: number;
242
+ /** The number of unread urgent mentions in this channel */
243
+ urgent_mention_count: number;
244
+ notify_props: Partial<ChannelNotifyPropsResponse>;
245
+ last_update_at: number;
246
+ scheme_user: boolean;
247
+ scheme_admin: boolean;
248
+ post_root_id?: string;
249
+ }
250
+ export interface ChannelNotifyPropsResponse {
251
+ desktop_threads: ChannelNotify;
252
+ desktop: ChannelNotify;
253
+ desktop_sound: "on" | "off";
254
+ desktop_notification_sound?: ChannelNotifyDesktopSound;
255
+ email: ChannelNotify;
256
+ mark_unread: ChannelNotify;
257
+ push: ChannelNotify;
258
+ push_threads: ChannelNotify;
259
+ ignore_channel_mentions: "default" | "off" | "on";
260
+ channel_auto_follow_threads: "off" | "on";
261
+ }
262
+ export interface ChannelUnreadResponse {
263
+ channel_id: string;
264
+ user_id: string;
265
+ team_id: string;
266
+ /** The number of posts which have been read by the user */
267
+ msg_count: number;
268
+ /** The number of root posts which have been read by the user */
269
+ msg_count_root: number;
270
+ /** The number of unread mentions in this channel */
271
+ mention_count: number;
272
+ /** The number of unread urgent mentions in this channel */
273
+ urgent_mention_count: number;
274
+ /** The number of unread mentions in root posts in this channel */
275
+ mention_count_root: number;
276
+ last_viewed_at: number;
277
+ deltaMsgs: number;
278
+ }
279
+ //# sourceMappingURL=channels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../src/types/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,WAAW,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC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M,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,0BAA0B;IAC1C,eAAe,EAAE,aAAa,CAAC;IAC/B,OAAO,EAAE,aAAa,CAAC;IACvB,aAAa,EAAE,IAAI,GAAG,KAAK,CAAC;IAC5B,0BAA0B,CAAC,EAAE,yBAAyB,CAAC;IACvD,KAAK,EAAE,aAAa,CAAC;IACrB,WAAW,EAAE,aAAa,CAAC;IAC3B,IAAI,EAAE,aAAa,CAAC;IACpB,YAAY,EAAE,aAAa,CAAC;IAC5B,uBAAuB,EAAE,SAAS,GAAG,KAAK,GAAG,IAAI,CAAC;IAClD,2BAA2B,EAAE,KAAK,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,qBAAqB;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAEhB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAElB,gEAAgE;IAChE,cAAc,EAAE,MAAM,CAAC;IAEvB,oDAAoD;IACpD,aAAa,EAAE,MAAM,CAAC;IAEtB,2DAA2D;IAC3D,oBAAoB,EAAE,MAAM,CAAC;IAE7B,kEAAkE;IAClE,kBAAkB,EAAE,MAAM,CAAC;IAE3B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CAClB"}
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChannelBookmarkType = exports.ChannelCategorySorting = exports.ChannelCategoryType = exports.ChannelNotifyDesktopSound = exports.ChannelNotify = exports.ChannelType = void 0;
4
+ /**
5
+ * ===============================================
6
+ * @description Channel enums
7
+ * ===============================================
8
+ */
9
+ var ChannelType;
10
+ (function (ChannelType) {
11
+ ChannelType["OPEN"] = "O";
12
+ ChannelType["PRIVATE"] = "P";
13
+ ChannelType["DIRECT"] = "D";
14
+ ChannelType["GROUP"] = "G";
15
+ ChannelType["THREADS"] = "threads";
16
+ })(ChannelType || (exports.ChannelType = ChannelType = {}));
17
+ var ChannelNotify;
18
+ (function (ChannelNotify) {
19
+ ChannelNotify["DEFAULT"] = "default";
20
+ ChannelNotify["ALL"] = "all";
21
+ ChannelNotify["MENTION"] = "mention";
22
+ ChannelNotify["NONE"] = "none";
23
+ })(ChannelNotify || (exports.ChannelNotify = ChannelNotify = {}));
24
+ var ChannelNotifyDesktopSound;
25
+ (function (ChannelNotifyDesktopSound) {
26
+ ChannelNotifyDesktopSound["BING"] = "Bing";
27
+ ChannelNotifyDesktopSound["CRACKLE"] = "Crackle";
28
+ ChannelNotifyDesktopSound["DOWN"] = "Down";
29
+ ChannelNotifyDesktopSound["HELLO"] = "Hello";
30
+ ChannelNotifyDesktopSound["RIPPLE"] = "Ripple";
31
+ ChannelNotifyDesktopSound["UPSTAIRS"] = "Upstairs";
32
+ })(ChannelNotifyDesktopSound || (exports.ChannelNotifyDesktopSound = ChannelNotifyDesktopSound = {}));
33
+ /**
34
+ * ===============================================
35
+ * @description Channels category types
36
+ * ===============================================
37
+ */
38
+ var ChannelCategoryType;
39
+ (function (ChannelCategoryType) {
40
+ ChannelCategoryType["FAVORITES"] = "favorites";
41
+ ChannelCategoryType["CHANNELS"] = "channels";
42
+ ChannelCategoryType["DIRECTT_MESSAGES"] = "direct_messages";
43
+ ChannelCategoryType["CUSTOM"] = "custom";
44
+ })(ChannelCategoryType || (exports.ChannelCategoryType = ChannelCategoryType = {}));
45
+ var ChannelCategorySorting;
46
+ (function (ChannelCategorySorting) {
47
+ ChannelCategorySorting["ALPHABETICAL"] = "alpha";
48
+ ChannelCategorySorting["DEFAULT"] = "";
49
+ ChannelCategorySorting["RECENCY"] = "recent";
50
+ ChannelCategorySorting["MANUAL"] = "manual";
51
+ })(ChannelCategorySorting || (exports.ChannelCategorySorting = ChannelCategorySorting = {}));
52
+ /**
53
+ * ===============================================
54
+ * @description Channels bookmark types
55
+ * ===============================================
56
+ */
57
+ var ChannelBookmarkType;
58
+ (function (ChannelBookmarkType) {
59
+ ChannelBookmarkType["LINK"] = "link";
60
+ ChannelBookmarkType["FILE"] = "file";
61
+ })(ChannelBookmarkType || (exports.ChannelBookmarkType = ChannelBookmarkType = {}));
62
+ //# sourceMappingURL=channels.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"channels.js","sourceRoot":"","sources":["../../src/types/channels.ts"],"names":[],"mappings":";;;AAgCA;;;;GAIG;AACH,IAAY,WAMX;AAND,WAAY,WAAW;IACtB,yBAAU,CAAA;IACV,4BAAa,CAAA;IACb,2BAAY,CAAA;IACZ,0BAAW,CAAA;IACX,kCAAmB,CAAA;AACpB,CAAC,EANW,WAAW,2BAAX,WAAW,QAMtB;AAED,IAAY,aAKX;AALD,WAAY,aAAa;IACxB,oCAAmB,CAAA;IACnB,4BAAW,CAAA;IACX,oCAAmB,CAAA;IACnB,8BAAa,CAAA;AACd,CAAC,EALW,aAAa,6BAAb,aAAa,QAKxB;AAED,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACpC,0CAAa,CAAA;IACb,gDAAmB,CAAA;IACnB,0CAAa,CAAA;IACb,4CAAe,CAAA;IACf,8CAAiB,CAAA;IACjB,kDAAqB,CAAA;AACtB,CAAC,EAPW,yBAAyB,yCAAzB,yBAAyB,QAOpC;AAwBD;;;;GAIG;AAEH,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC9B,8CAAuB,CAAA;IACvB,4CAAqB,CAAA;IACrB,2DAAoC,CAAA;IACpC,wCAAiB,CAAA;AAClB,CAAC,EALW,mBAAmB,mCAAnB,mBAAmB,QAK9B;AAED,IAAY,sBAKX;AALD,WAAY,sBAAsB;IACjC,gDAAsB,CAAA;IACtB,sCAAY,CAAA;IACZ,4CAAkB,CAAA;IAClB,2CAAiB,CAAA;AAClB,CAAC,EALW,sBAAsB,sCAAtB,sBAAsB,QAKjC;AAmBD;;;;GAIG;AAEH,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC9B,oCAAa,CAAA;IACb,oCAAa,CAAA;AACd,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
@@ -0,0 +1,155 @@
1
+ import type { AllowedIPRange } from "./config";
2
+ export interface CloudInstallation {
3
+ id: string;
4
+ state: string;
5
+ allowed_ip_ranges: AllowedIPRange[];
6
+ }
7
+ export interface CloudSubscription {
8
+ id: string;
9
+ customer_id: string;
10
+ product_id: string;
11
+ add_ons: string[];
12
+ start_at: number;
13
+ end_at: number;
14
+ create_at: number;
15
+ seats: number;
16
+ last_invoice?: CloudInvoice;
17
+ upcoming_invoice?: CloudInvoice;
18
+ trial_end_at: number;
19
+ is_free_trial: string;
20
+ delinquent_since?: number;
21
+ compliance_blocked?: string;
22
+ billing_type?: string;
23
+ cancel_at?: number;
24
+ will_renew?: string;
25
+ simulated_current_time_ms?: number;
26
+ }
27
+ export interface CloudProduct {
28
+ id: string;
29
+ name: string;
30
+ description: string;
31
+ price_per_seat: number;
32
+ add_ons: CloudAddOn[];
33
+ product_family: string;
34
+ sku: string;
35
+ billing_scheme: string;
36
+ recurring_interval: string;
37
+ cross_sells_to: string;
38
+ }
39
+ export interface CloudAddOn {
40
+ id: string;
41
+ name: string;
42
+ display_name: string;
43
+ price_per_seat: number;
44
+ }
45
+ export interface CloudCustomer {
46
+ id: string;
47
+ creator_id: string;
48
+ create_at: number;
49
+ email: string;
50
+ name: string;
51
+ num_employees: number;
52
+ contact_first_name: string;
53
+ contact_last_name: string;
54
+ billing_address: CloudCustomerAddress;
55
+ company_address: CloudCustomerAddress;
56
+ payment_method: CloudCustomerPaymentMethod;
57
+ }
58
+ export interface CloudCustomerPatch {
59
+ email?: string;
60
+ name?: string;
61
+ num_employees?: number;
62
+ contact_first_name?: string;
63
+ contact_last_name?: string;
64
+ }
65
+ export interface CloudCustomerAddress {
66
+ city: string;
67
+ country: string;
68
+ line1: string;
69
+ line2: string;
70
+ postal_code: string;
71
+ state: string;
72
+ }
73
+ export interface CloudCustomerPaymentMethod {
74
+ type: string;
75
+ last_four: string;
76
+ exp_month: number;
77
+ exp_year: number;
78
+ card_brand: string;
79
+ name: string;
80
+ }
81
+ export interface CloudNotifyAdminRequest {
82
+ trial_notification: boolean;
83
+ required_plan: string;
84
+ required_feature: string;
85
+ }
86
+ export interface CloudInvoice {
87
+ id: string;
88
+ number: string;
89
+ create_at: number;
90
+ total: number;
91
+ tax: number;
92
+ status: string;
93
+ description: string;
94
+ period_start: number;
95
+ period_end: number;
96
+ subscription_id: string;
97
+ line_items: CloudInvoiceLineItem[];
98
+ current_product_name: string;
99
+ }
100
+ export declare enum CloudInvoiceLineItemType {
101
+ FULL = "full",
102
+ PARTIAL = "partial",
103
+ ON_PREMISE = "onpremise",
104
+ METERED = "metered"
105
+ }
106
+ export interface CloudInvoiceLineItem {
107
+ price_id: string;
108
+ total: number;
109
+ quantity: number;
110
+ price_per_unit: number;
111
+ description: string;
112
+ type: CloudInvoiceLineItemType;
113
+ metadata: Record<string, string>;
114
+ period_start: number;
115
+ period_end: number;
116
+ }
117
+ export interface CloudLimits {
118
+ messages?: {
119
+ history?: number;
120
+ };
121
+ files?: {
122
+ total_storage?: number;
123
+ };
124
+ teams?: {
125
+ active?: number;
126
+ };
127
+ }
128
+ export interface CloudUsage {
129
+ files: {
130
+ totalStorage: number;
131
+ totalStorageLoaded: boolean;
132
+ };
133
+ messages: {
134
+ history: number;
135
+ historyLoaded: boolean;
136
+ };
137
+ teams: CloudTeamsUsage;
138
+ }
139
+ export interface CloudTeamsUsage {
140
+ active: number;
141
+ cloudArchived: number;
142
+ teamsLoaded: boolean;
143
+ }
144
+ export interface CloudValidBusinessEmail {
145
+ is_valid: boolean;
146
+ }
147
+ export interface CloudNewsletterRequestBody {
148
+ email: string;
149
+ subscribed_content: string;
150
+ }
151
+ export interface CloudFeedback {
152
+ reason: string;
153
+ comments: string;
154
+ }
155
+ //#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AE,MAAM,CAAC;QACrB,kBAAkB,EAAE,OAAO,CAAC;KAC5B,CAAC;IACF,QAAQ,EAAE;QACT,OAAO,EAAE,MAAM,CAAC;QAChB,aAAa,EAAE,OAAO,CAAC;KACvB,CAAC;IACF,KAAK,EAAE,eAAe,CAAC;CACvB;AAED,MAAM,WAAW,eAAe;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACvC,QAAQ,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CloudInvoiceLineItemType = void 0;
4
+ // actual string values come from customer-web-server and should be kept in sync with values seen there
5
+ var CloudInvoiceLineItemType;
6
+ (function (CloudInvoiceLineItemType) {
7
+ CloudInvoiceLineItemType["FULL"] = "full";
8
+ CloudInvoiceLineItemType["PARTIAL"] = "partial";
9
+ CloudInvoiceLineItemType["ON_PREMISE"] = "onpremise";
10
+ CloudInvoiceLineItemType["METERED"] = "metered";
11
+ })(CloudInvoiceLineItemType || (exports.CloudInvoiceLineItemType = CloudInvoiceLineItemType = {}));
12
+ //# sourceMappingURL=cloud.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud.js","sourceRoot":"","sources":["../../src/types/cloud.ts"],"names":[],"mappings":";;;AAmHA,uGAAuG;AACvG,IAAY,wBAKX;AALD,WAAY,wBAAwB;IACnC,yCAAa,CAAA;IACb,+CAAmB,CAAA;IACnB,oDAAwB,CAAA;IACxB,+CAAmB,CAAA;AACpB,CAAC,EALW,wBAAwB,wCAAxB,wBAAwB,QAKnC"}
@@ -0,0 +1,5 @@
1
+ export type SystemSetting = {
2
+ name: string;
3
+ value: string;
4
+ };
5
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,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=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ export type ComplianceReport = {
2
+ id: string;
3
+ create_at: number;
4
+ user_id: string;
5
+ status: string;
6
+ count: number;
7
+ desc: string;
8
+ type: string;
9
+ start_at: number;
10
+ end_at: number;
11
+ keywords: string;
12
+ emails: string;
13
+ };
14
+ //# sourceMappingURL=compliance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.d.ts","sourceRoot":"","sources":["../../src/types/compliance.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=compliance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compliance.js","sourceRoot":"","sources":["../../src/types/compliance.ts"],"names":[],"mappings":""}