@selfcommunity/api-services 0.4.0-alpha.9 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (518) hide show
  1. package/lib/cjs/client/index.d.ts +2 -10
  2. package/lib/cjs/client/index.js +3 -6
  3. package/lib/cjs/constants/Endpoints.d.ts +1 -2
  4. package/lib/cjs/constants/Endpoints.js +15 -4
  5. package/lib/cjs/constants/Errors.d.ts +0 -1
  6. package/lib/cjs/constants/Errors.js +0 -1
  7. package/lib/cjs/index.d.ts +3 -4
  8. package/lib/cjs/index.js +36 -61
  9. package/lib/cjs/services/account/index.d.ts +7 -1
  10. package/lib/cjs/services/account/index.js +20 -19
  11. package/lib/cjs/services/category/index.d.ts +0 -1
  12. package/lib/cjs/services/category/index.js +18 -30
  13. package/lib/cjs/services/comment/index.d.ts +0 -1
  14. package/lib/cjs/services/comment/index.js +13 -25
  15. package/lib/cjs/services/custom_adv/index.d.ts +0 -1
  16. package/lib/cjs/services/custom_adv/index.js +5 -17
  17. package/lib/cjs/services/custom_menu/index.d.ts +0 -1
  18. package/lib/cjs/services/custom_menu/index.js +6 -18
  19. package/lib/cjs/services/custom_page/index.d.ts +0 -1
  20. package/lib/cjs/services/custom_page/index.js +5 -17
  21. package/lib/cjs/services/data_portability/index.d.ts +0 -1
  22. package/lib/cjs/services/data_portability/index.js +5 -17
  23. package/lib/cjs/services/embed/index.d.ts +0 -1
  24. package/lib/cjs/services/embed/index.js +10 -22
  25. package/lib/cjs/services/feature/index.d.ts +0 -1
  26. package/lib/cjs/services/feature/index.js +3 -15
  27. package/lib/cjs/services/feed/index.d.ts +0 -1
  28. package/lib/cjs/services/feed/index.js +7 -19
  29. package/lib/cjs/services/feed_object/index.d.ts +0 -1
  30. package/lib/cjs/services/feed_object/index.js +29 -41
  31. package/lib/cjs/services/incubator/index.d.ts +0 -1
  32. package/lib/cjs/services/incubator/index.js +9 -21
  33. package/lib/cjs/services/insight/index.d.ts +0 -1
  34. package/lib/cjs/services/insight/index.js +8 -20
  35. package/lib/cjs/services/invite/index.d.ts +0 -1
  36. package/lib/cjs/services/invite/index.js +3 -15
  37. package/lib/cjs/services/legal_page/index.d.ts +0 -1
  38. package/lib/cjs/services/legal_page/index.js +11 -23
  39. package/lib/cjs/services/locality/index.d.ts +0 -1
  40. package/lib/cjs/services/locality/index.js +4 -16
  41. package/lib/cjs/services/loyalty/index.d.ts +5 -5
  42. package/lib/cjs/services/loyalty/index.js +16 -27
  43. package/lib/cjs/services/media/index.d.ts +0 -1
  44. package/lib/cjs/services/media/index.js +9 -21
  45. package/lib/cjs/services/moderation/index.d.ts +0 -1
  46. package/lib/cjs/services/moderation/index.js +8 -20
  47. package/lib/cjs/services/notification/index.d.ts +0 -1
  48. package/lib/cjs/services/notification/index.js +11 -23
  49. package/lib/cjs/services/preference/index.d.ts +0 -1
  50. package/lib/cjs/services/preference/index.js +5 -17
  51. package/lib/cjs/services/private_message/index.d.ts +0 -1
  52. package/lib/cjs/services/private_message/index.js +13 -25
  53. package/lib/cjs/services/promo/index.d.ts +0 -1
  54. package/lib/cjs/services/promo/index.js +3 -15
  55. package/lib/cjs/services/reactions/index.d.ts +7 -1
  56. package/lib/cjs/services/reactions/index.js +24 -16
  57. package/lib/cjs/services/score/index.d.ts +0 -1
  58. package/lib/cjs/services/score/index.js +5 -17
  59. package/lib/cjs/services/sso/index.d.ts +0 -1
  60. package/lib/cjs/services/sso/index.js +4 -16
  61. package/lib/cjs/services/suggestion/index.d.ts +0 -1
  62. package/lib/cjs/services/suggestion/index.js +7 -19
  63. package/lib/cjs/services/tag/index.d.ts +0 -1
  64. package/lib/cjs/services/tag/index.js +9 -21
  65. package/lib/cjs/services/user/index.d.ts +20 -13
  66. package/lib/cjs/services/user/index.js +82 -84
  67. package/lib/cjs/services/webhook/index.d.ts +0 -1
  68. package/lib/cjs/services/webhook/index.js +14 -26
  69. package/lib/cjs/types/account.d.ts +0 -1
  70. package/lib/cjs/types/account.js +0 -1
  71. package/lib/cjs/types/baseParams.d.ts +0 -1
  72. package/lib/cjs/types/baseParams.js +0 -1
  73. package/lib/cjs/types/category.d.ts +0 -1
  74. package/lib/cjs/types/category.js +0 -1
  75. package/lib/cjs/types/comment.d.ts +0 -1
  76. package/lib/cjs/types/comment.js +0 -1
  77. package/lib/cjs/types/customAdv.d.ts +0 -1
  78. package/lib/cjs/types/customAdv.js +0 -1
  79. package/lib/cjs/types/customPage.d.ts +0 -1
  80. package/lib/cjs/types/customPage.js +0 -1
  81. package/lib/cjs/types/embed.d.ts +0 -1
  82. package/lib/cjs/types/embed.js +0 -1
  83. package/lib/cjs/types/feature.d.ts +0 -1
  84. package/lib/cjs/types/feature.js +0 -1
  85. package/lib/cjs/types/feed.d.ts +0 -1
  86. package/lib/cjs/types/feed.js +0 -1
  87. package/lib/cjs/types/feedObject.d.ts +0 -1
  88. package/lib/cjs/types/feedObject.js +0 -1
  89. package/lib/cjs/types/incubator.d.ts +0 -1
  90. package/lib/cjs/types/incubator.js +0 -1
  91. package/lib/cjs/types/index.d.ts +2 -3
  92. package/lib/cjs/types/index.js +0 -1
  93. package/lib/cjs/types/insight.d.ts +0 -1
  94. package/lib/cjs/types/insight.js +0 -1
  95. package/lib/cjs/types/legalPage.d.ts +0 -1
  96. package/lib/cjs/types/legalPage.js +0 -1
  97. package/lib/cjs/types/media.d.ts +0 -1
  98. package/lib/cjs/types/media.js +0 -1
  99. package/lib/cjs/types/moderation.d.ts +0 -1
  100. package/lib/cjs/types/moderation.js +0 -1
  101. package/lib/cjs/types/notification.d.ts +0 -1
  102. package/lib/cjs/types/notification.js +0 -1
  103. package/lib/cjs/types/paginatedResponse.d.ts +0 -1
  104. package/lib/cjs/types/paginatedResponse.js +0 -1
  105. package/lib/cjs/types/privateMessage.d.ts +0 -1
  106. package/lib/cjs/types/privateMessage.js +0 -1
  107. package/lib/cjs/types/prize.d.ts +14 -1
  108. package/lib/cjs/types/prize.js +0 -1
  109. package/lib/cjs/types/reaction.d.ts +0 -1
  110. package/lib/cjs/types/reaction.js +0 -1
  111. package/lib/cjs/types/score.d.ts +0 -1
  112. package/lib/cjs/types/score.js +0 -1
  113. package/lib/cjs/types/sso.d.ts +0 -1
  114. package/lib/cjs/types/sso.js +0 -1
  115. package/lib/cjs/types/tag.d.ts +0 -1
  116. package/lib/cjs/types/tag.js +0 -1
  117. package/lib/cjs/types/user.d.ts +0 -1
  118. package/lib/cjs/types/user.js +0 -1
  119. package/lib/cjs/types/webhook.d.ts +0 -1
  120. package/lib/cjs/types/webhook.js +0 -1
  121. package/lib/cjs/utils/apiRequest.d.ts +0 -1
  122. package/lib/cjs/utils/apiRequest.js +2 -5
  123. package/lib/cjs/utils/http.d.ts +2 -2
  124. package/lib/cjs/utils/http.js +32 -6
  125. package/lib/cjs/utils/token.d.ts +0 -1
  126. package/lib/cjs/utils/token.js +3 -35
  127. package/lib/cjs/utils/url.d.ts +0 -1
  128. package/lib/cjs/utils/url.js +0 -1
  129. package/lib/esm/client/index.d.ts +2 -10
  130. package/lib/esm/client/index.js +1 -2
  131. package/lib/esm/constants/Endpoints.d.ts +1 -2
  132. package/lib/esm/constants/Endpoints.js +15 -4
  133. package/lib/esm/constants/Errors.d.ts +0 -1
  134. package/lib/esm/constants/Errors.js +0 -1
  135. package/lib/esm/index.d.ts +3 -4
  136. package/lib/esm/index.js +2 -3
  137. package/lib/esm/services/account/index.d.ts +7 -1
  138. package/lib/esm/services/account/index.js +14 -10
  139. package/lib/esm/services/category/index.d.ts +0 -1
  140. package/lib/esm/services/category/index.js +1 -10
  141. package/lib/esm/services/comment/index.d.ts +0 -1
  142. package/lib/esm/services/comment/index.js +1 -10
  143. package/lib/esm/services/custom_adv/index.d.ts +0 -1
  144. package/lib/esm/services/custom_adv/index.js +1 -10
  145. package/lib/esm/services/custom_menu/index.d.ts +0 -1
  146. package/lib/esm/services/custom_menu/index.js +1 -10
  147. package/lib/esm/services/custom_page/index.d.ts +0 -1
  148. package/lib/esm/services/custom_page/index.js +1 -10
  149. package/lib/esm/services/data_portability/index.d.ts +0 -1
  150. package/lib/esm/services/data_portability/index.js +1 -10
  151. package/lib/esm/services/embed/index.d.ts +0 -1
  152. package/lib/esm/services/embed/index.js +1 -10
  153. package/lib/esm/services/feature/index.d.ts +0 -1
  154. package/lib/esm/services/feature/index.js +1 -10
  155. package/lib/esm/services/feed/index.d.ts +0 -1
  156. package/lib/esm/services/feed/index.js +1 -10
  157. package/lib/esm/services/feed_object/index.d.ts +0 -1
  158. package/lib/esm/services/feed_object/index.js +1 -10
  159. package/lib/esm/services/incubator/index.d.ts +0 -1
  160. package/lib/esm/services/incubator/index.js +1 -10
  161. package/lib/esm/services/insight/index.d.ts +0 -1
  162. package/lib/esm/services/insight/index.js +1 -10
  163. package/lib/esm/services/invite/index.d.ts +0 -1
  164. package/lib/esm/services/invite/index.js +1 -10
  165. package/lib/esm/services/legal_page/index.d.ts +0 -1
  166. package/lib/esm/services/legal_page/index.js +1 -10
  167. package/lib/esm/services/locality/index.d.ts +0 -1
  168. package/lib/esm/services/locality/index.js +1 -10
  169. package/lib/esm/services/loyalty/index.d.ts +5 -5
  170. package/lib/esm/services/loyalty/index.js +6 -14
  171. package/lib/esm/services/media/index.d.ts +0 -1
  172. package/lib/esm/services/media/index.js +1 -10
  173. package/lib/esm/services/moderation/index.d.ts +0 -1
  174. package/lib/esm/services/moderation/index.js +1 -10
  175. package/lib/esm/services/notification/index.d.ts +0 -1
  176. package/lib/esm/services/notification/index.js +1 -10
  177. package/lib/esm/services/preference/index.d.ts +0 -1
  178. package/lib/esm/services/preference/index.js +1 -10
  179. package/lib/esm/services/private_message/index.d.ts +0 -1
  180. package/lib/esm/services/private_message/index.js +1 -10
  181. package/lib/esm/services/promo/index.d.ts +0 -1
  182. package/lib/esm/services/promo/index.js +1 -10
  183. package/lib/esm/services/reactions/index.d.ts +7 -1
  184. package/lib/esm/services/reactions/index.js +21 -10
  185. package/lib/esm/services/score/index.d.ts +0 -1
  186. package/lib/esm/services/score/index.js +1 -10
  187. package/lib/esm/services/sso/index.d.ts +0 -1
  188. package/lib/esm/services/sso/index.js +1 -10
  189. package/lib/esm/services/suggestion/index.d.ts +0 -1
  190. package/lib/esm/services/suggestion/index.js +1 -10
  191. package/lib/esm/services/tag/index.d.ts +0 -1
  192. package/lib/esm/services/tag/index.js +1 -10
  193. package/lib/esm/services/user/index.d.ts +20 -13
  194. package/lib/esm/services/user/index.js +31 -30
  195. package/lib/esm/services/webhook/index.d.ts +0 -1
  196. package/lib/esm/services/webhook/index.js +1 -10
  197. package/lib/esm/types/account.d.ts +0 -1
  198. package/lib/esm/types/account.js +0 -1
  199. package/lib/esm/types/baseParams.d.ts +0 -1
  200. package/lib/esm/types/baseParams.js +0 -1
  201. package/lib/esm/types/category.d.ts +0 -1
  202. package/lib/esm/types/category.js +0 -1
  203. package/lib/esm/types/comment.d.ts +0 -1
  204. package/lib/esm/types/comment.js +0 -1
  205. package/lib/esm/types/customAdv.d.ts +0 -1
  206. package/lib/esm/types/customAdv.js +0 -1
  207. package/lib/esm/types/customPage.d.ts +0 -1
  208. package/lib/esm/types/customPage.js +0 -1
  209. package/lib/esm/types/embed.d.ts +0 -1
  210. package/lib/esm/types/embed.js +0 -1
  211. package/lib/esm/types/feature.d.ts +0 -1
  212. package/lib/esm/types/feature.js +0 -1
  213. package/lib/esm/types/feed.d.ts +0 -1
  214. package/lib/esm/types/feed.js +0 -1
  215. package/lib/esm/types/feedObject.d.ts +0 -1
  216. package/lib/esm/types/feedObject.js +0 -1
  217. package/lib/esm/types/incubator.d.ts +0 -1
  218. package/lib/esm/types/incubator.js +0 -1
  219. package/lib/esm/types/index.d.ts +2 -3
  220. package/lib/esm/types/index.js +0 -1
  221. package/lib/esm/types/insight.d.ts +0 -1
  222. package/lib/esm/types/insight.js +0 -1
  223. package/lib/esm/types/legalPage.d.ts +0 -1
  224. package/lib/esm/types/legalPage.js +0 -1
  225. package/lib/esm/types/media.d.ts +0 -1
  226. package/lib/esm/types/media.js +0 -1
  227. package/lib/esm/types/moderation.d.ts +0 -1
  228. package/lib/esm/types/moderation.js +0 -1
  229. package/lib/esm/types/notification.d.ts +0 -1
  230. package/lib/esm/types/notification.js +0 -1
  231. package/lib/esm/types/paginatedResponse.d.ts +0 -1
  232. package/lib/esm/types/paginatedResponse.js +0 -1
  233. package/lib/esm/types/privateMessage.d.ts +0 -1
  234. package/lib/esm/types/privateMessage.js +0 -1
  235. package/lib/esm/types/prize.d.ts +14 -1
  236. package/lib/esm/types/prize.js +0 -1
  237. package/lib/esm/types/reaction.d.ts +0 -1
  238. package/lib/esm/types/reaction.js +0 -1
  239. package/lib/esm/types/score.d.ts +0 -1
  240. package/lib/esm/types/score.js +0 -1
  241. package/lib/esm/types/sso.d.ts +0 -1
  242. package/lib/esm/types/sso.js +0 -1
  243. package/lib/esm/types/tag.d.ts +0 -1
  244. package/lib/esm/types/tag.js +0 -1
  245. package/lib/esm/types/user.d.ts +0 -1
  246. package/lib/esm/types/user.js +0 -1
  247. package/lib/esm/types/webhook.d.ts +0 -1
  248. package/lib/esm/types/webhook.js +0 -1
  249. package/lib/esm/utils/apiRequest.d.ts +0 -1
  250. package/lib/esm/utils/apiRequest.js +0 -1
  251. package/lib/esm/utils/http.d.ts +2 -2
  252. package/lib/esm/utils/http.js +29 -2
  253. package/lib/esm/utils/token.d.ts +0 -1
  254. package/lib/esm/utils/token.js +1 -10
  255. package/lib/esm/utils/url.d.ts +0 -1
  256. package/lib/esm/utils/url.js +0 -1
  257. package/lib/umd/956.js +2 -0
  258. package/lib/umd/956.js.LICENSE.txt +1 -0
  259. package/lib/umd/api-services.js +1 -2
  260. package/lib/umd/api-services.js.LICENSE.txt +1 -1
  261. package/package.json +20 -19
  262. package/lib/cjs/client/index.d.ts.map +0 -1
  263. package/lib/cjs/client/index.js.map +0 -1
  264. package/lib/cjs/constants/Endpoints.d.ts.map +0 -1
  265. package/lib/cjs/constants/Endpoints.js.map +0 -1
  266. package/lib/cjs/constants/Errors.d.ts.map +0 -1
  267. package/lib/cjs/constants/Errors.js.map +0 -1
  268. package/lib/cjs/index.d.ts.map +0 -1
  269. package/lib/cjs/index.js.map +0 -1
  270. package/lib/cjs/services/account/index.d.ts.map +0 -1
  271. package/lib/cjs/services/account/index.js.map +0 -1
  272. package/lib/cjs/services/category/index.d.ts.map +0 -1
  273. package/lib/cjs/services/category/index.js.map +0 -1
  274. package/lib/cjs/services/comment/index.d.ts.map +0 -1
  275. package/lib/cjs/services/comment/index.js.map +0 -1
  276. package/lib/cjs/services/custom_adv/index.d.ts.map +0 -1
  277. package/lib/cjs/services/custom_adv/index.js.map +0 -1
  278. package/lib/cjs/services/custom_menu/index.d.ts.map +0 -1
  279. package/lib/cjs/services/custom_menu/index.js.map +0 -1
  280. package/lib/cjs/services/custom_page/index.d.ts.map +0 -1
  281. package/lib/cjs/services/custom_page/index.js.map +0 -1
  282. package/lib/cjs/services/data_portability/index.d.ts.map +0 -1
  283. package/lib/cjs/services/data_portability/index.js.map +0 -1
  284. package/lib/cjs/services/embed/index.d.ts.map +0 -1
  285. package/lib/cjs/services/embed/index.js.map +0 -1
  286. package/lib/cjs/services/feature/index.d.ts.map +0 -1
  287. package/lib/cjs/services/feature/index.js.map +0 -1
  288. package/lib/cjs/services/feed/index.d.ts.map +0 -1
  289. package/lib/cjs/services/feed/index.js.map +0 -1
  290. package/lib/cjs/services/feed_object/index.d.ts.map +0 -1
  291. package/lib/cjs/services/feed_object/index.js.map +0 -1
  292. package/lib/cjs/services/incubator/index.d.ts.map +0 -1
  293. package/lib/cjs/services/incubator/index.js.map +0 -1
  294. package/lib/cjs/services/insight/index.d.ts.map +0 -1
  295. package/lib/cjs/services/insight/index.js.map +0 -1
  296. package/lib/cjs/services/invite/index.d.ts.map +0 -1
  297. package/lib/cjs/services/invite/index.js.map +0 -1
  298. package/lib/cjs/services/legal_page/index.d.ts.map +0 -1
  299. package/lib/cjs/services/legal_page/index.js.map +0 -1
  300. package/lib/cjs/services/locality/index.d.ts.map +0 -1
  301. package/lib/cjs/services/locality/index.js.map +0 -1
  302. package/lib/cjs/services/loyalty/index.d.ts.map +0 -1
  303. package/lib/cjs/services/loyalty/index.js.map +0 -1
  304. package/lib/cjs/services/media/index.d.ts.map +0 -1
  305. package/lib/cjs/services/media/index.js.map +0 -1
  306. package/lib/cjs/services/moderation/index.d.ts.map +0 -1
  307. package/lib/cjs/services/moderation/index.js.map +0 -1
  308. package/lib/cjs/services/notification/index.d.ts.map +0 -1
  309. package/lib/cjs/services/notification/index.js.map +0 -1
  310. package/lib/cjs/services/preference/index.d.ts.map +0 -1
  311. package/lib/cjs/services/preference/index.js.map +0 -1
  312. package/lib/cjs/services/private_message/index.d.ts.map +0 -1
  313. package/lib/cjs/services/private_message/index.js.map +0 -1
  314. package/lib/cjs/services/promo/index.d.ts.map +0 -1
  315. package/lib/cjs/services/promo/index.js.map +0 -1
  316. package/lib/cjs/services/reactions/index.d.ts.map +0 -1
  317. package/lib/cjs/services/reactions/index.js.map +0 -1
  318. package/lib/cjs/services/score/index.d.ts.map +0 -1
  319. package/lib/cjs/services/score/index.js.map +0 -1
  320. package/lib/cjs/services/sso/index.d.ts.map +0 -1
  321. package/lib/cjs/services/sso/index.js.map +0 -1
  322. package/lib/cjs/services/suggestion/index.d.ts.map +0 -1
  323. package/lib/cjs/services/suggestion/index.js.map +0 -1
  324. package/lib/cjs/services/tag/index.d.ts.map +0 -1
  325. package/lib/cjs/services/tag/index.js.map +0 -1
  326. package/lib/cjs/services/user/index.d.ts.map +0 -1
  327. package/lib/cjs/services/user/index.js.map +0 -1
  328. package/lib/cjs/services/webhook/index.d.ts.map +0 -1
  329. package/lib/cjs/services/webhook/index.js.map +0 -1
  330. package/lib/cjs/types/account.d.ts.map +0 -1
  331. package/lib/cjs/types/account.js.map +0 -1
  332. package/lib/cjs/types/baseParams.d.ts.map +0 -1
  333. package/lib/cjs/types/baseParams.js.map +0 -1
  334. package/lib/cjs/types/category.d.ts.map +0 -1
  335. package/lib/cjs/types/category.js.map +0 -1
  336. package/lib/cjs/types/comment.d.ts.map +0 -1
  337. package/lib/cjs/types/comment.js.map +0 -1
  338. package/lib/cjs/types/customAdv.d.ts.map +0 -1
  339. package/lib/cjs/types/customAdv.js.map +0 -1
  340. package/lib/cjs/types/customPage.d.ts.map +0 -1
  341. package/lib/cjs/types/customPage.js.map +0 -1
  342. package/lib/cjs/types/embed.d.ts.map +0 -1
  343. package/lib/cjs/types/embed.js.map +0 -1
  344. package/lib/cjs/types/feature.d.ts.map +0 -1
  345. package/lib/cjs/types/feature.js.map +0 -1
  346. package/lib/cjs/types/feed.d.ts.map +0 -1
  347. package/lib/cjs/types/feed.js.map +0 -1
  348. package/lib/cjs/types/feedObject.d.ts.map +0 -1
  349. package/lib/cjs/types/feedObject.js.map +0 -1
  350. package/lib/cjs/types/incubator.d.ts.map +0 -1
  351. package/lib/cjs/types/incubator.js.map +0 -1
  352. package/lib/cjs/types/index.d.ts.map +0 -1
  353. package/lib/cjs/types/index.js.map +0 -1
  354. package/lib/cjs/types/insight.d.ts.map +0 -1
  355. package/lib/cjs/types/insight.js.map +0 -1
  356. package/lib/cjs/types/legalPage.d.ts.map +0 -1
  357. package/lib/cjs/types/legalPage.js.map +0 -1
  358. package/lib/cjs/types/media.d.ts.map +0 -1
  359. package/lib/cjs/types/media.js.map +0 -1
  360. package/lib/cjs/types/moderation.d.ts.map +0 -1
  361. package/lib/cjs/types/moderation.js.map +0 -1
  362. package/lib/cjs/types/notification.d.ts.map +0 -1
  363. package/lib/cjs/types/notification.js.map +0 -1
  364. package/lib/cjs/types/paginatedResponse.d.ts.map +0 -1
  365. package/lib/cjs/types/paginatedResponse.js.map +0 -1
  366. package/lib/cjs/types/privateMessage.d.ts.map +0 -1
  367. package/lib/cjs/types/privateMessage.js.map +0 -1
  368. package/lib/cjs/types/prize.d.ts.map +0 -1
  369. package/lib/cjs/types/prize.js.map +0 -1
  370. package/lib/cjs/types/reaction.d.ts.map +0 -1
  371. package/lib/cjs/types/reaction.js.map +0 -1
  372. package/lib/cjs/types/score.d.ts.map +0 -1
  373. package/lib/cjs/types/score.js.map +0 -1
  374. package/lib/cjs/types/sso.d.ts.map +0 -1
  375. package/lib/cjs/types/sso.js.map +0 -1
  376. package/lib/cjs/types/tag.d.ts.map +0 -1
  377. package/lib/cjs/types/tag.js.map +0 -1
  378. package/lib/cjs/types/user.d.ts.map +0 -1
  379. package/lib/cjs/types/user.js.map +0 -1
  380. package/lib/cjs/types/webhook.d.ts.map +0 -1
  381. package/lib/cjs/types/webhook.js.map +0 -1
  382. package/lib/cjs/utils/apiRequest.d.ts.map +0 -1
  383. package/lib/cjs/utils/apiRequest.js.map +0 -1
  384. package/lib/cjs/utils/http.d.ts.map +0 -1
  385. package/lib/cjs/utils/http.js.map +0 -1
  386. package/lib/cjs/utils/token.d.ts.map +0 -1
  387. package/lib/cjs/utils/token.js.map +0 -1
  388. package/lib/cjs/utils/url.d.ts.map +0 -1
  389. package/lib/cjs/utils/url.js.map +0 -1
  390. package/lib/esm/client/index.d.ts.map +0 -1
  391. package/lib/esm/client/index.js.map +0 -1
  392. package/lib/esm/constants/Endpoints.d.ts.map +0 -1
  393. package/lib/esm/constants/Endpoints.js.map +0 -1
  394. package/lib/esm/constants/Errors.d.ts.map +0 -1
  395. package/lib/esm/constants/Errors.js.map +0 -1
  396. package/lib/esm/index.d.ts.map +0 -1
  397. package/lib/esm/index.js.map +0 -1
  398. package/lib/esm/services/account/index.d.ts.map +0 -1
  399. package/lib/esm/services/account/index.js.map +0 -1
  400. package/lib/esm/services/category/index.d.ts.map +0 -1
  401. package/lib/esm/services/category/index.js.map +0 -1
  402. package/lib/esm/services/comment/index.d.ts.map +0 -1
  403. package/lib/esm/services/comment/index.js.map +0 -1
  404. package/lib/esm/services/custom_adv/index.d.ts.map +0 -1
  405. package/lib/esm/services/custom_adv/index.js.map +0 -1
  406. package/lib/esm/services/custom_menu/index.d.ts.map +0 -1
  407. package/lib/esm/services/custom_menu/index.js.map +0 -1
  408. package/lib/esm/services/custom_page/index.d.ts.map +0 -1
  409. package/lib/esm/services/custom_page/index.js.map +0 -1
  410. package/lib/esm/services/data_portability/index.d.ts.map +0 -1
  411. package/lib/esm/services/data_portability/index.js.map +0 -1
  412. package/lib/esm/services/embed/index.d.ts.map +0 -1
  413. package/lib/esm/services/embed/index.js.map +0 -1
  414. package/lib/esm/services/feature/index.d.ts.map +0 -1
  415. package/lib/esm/services/feature/index.js.map +0 -1
  416. package/lib/esm/services/feed/index.d.ts.map +0 -1
  417. package/lib/esm/services/feed/index.js.map +0 -1
  418. package/lib/esm/services/feed_object/index.d.ts.map +0 -1
  419. package/lib/esm/services/feed_object/index.js.map +0 -1
  420. package/lib/esm/services/incubator/index.d.ts.map +0 -1
  421. package/lib/esm/services/incubator/index.js.map +0 -1
  422. package/lib/esm/services/insight/index.d.ts.map +0 -1
  423. package/lib/esm/services/insight/index.js.map +0 -1
  424. package/lib/esm/services/invite/index.d.ts.map +0 -1
  425. package/lib/esm/services/invite/index.js.map +0 -1
  426. package/lib/esm/services/legal_page/index.d.ts.map +0 -1
  427. package/lib/esm/services/legal_page/index.js.map +0 -1
  428. package/lib/esm/services/locality/index.d.ts.map +0 -1
  429. package/lib/esm/services/locality/index.js.map +0 -1
  430. package/lib/esm/services/loyalty/index.d.ts.map +0 -1
  431. package/lib/esm/services/loyalty/index.js.map +0 -1
  432. package/lib/esm/services/media/index.d.ts.map +0 -1
  433. package/lib/esm/services/media/index.js.map +0 -1
  434. package/lib/esm/services/moderation/index.d.ts.map +0 -1
  435. package/lib/esm/services/moderation/index.js.map +0 -1
  436. package/lib/esm/services/notification/index.d.ts.map +0 -1
  437. package/lib/esm/services/notification/index.js.map +0 -1
  438. package/lib/esm/services/preference/index.d.ts.map +0 -1
  439. package/lib/esm/services/preference/index.js.map +0 -1
  440. package/lib/esm/services/private_message/index.d.ts.map +0 -1
  441. package/lib/esm/services/private_message/index.js.map +0 -1
  442. package/lib/esm/services/promo/index.d.ts.map +0 -1
  443. package/lib/esm/services/promo/index.js.map +0 -1
  444. package/lib/esm/services/reactions/index.d.ts.map +0 -1
  445. package/lib/esm/services/reactions/index.js.map +0 -1
  446. package/lib/esm/services/score/index.d.ts.map +0 -1
  447. package/lib/esm/services/score/index.js.map +0 -1
  448. package/lib/esm/services/sso/index.d.ts.map +0 -1
  449. package/lib/esm/services/sso/index.js.map +0 -1
  450. package/lib/esm/services/suggestion/index.d.ts.map +0 -1
  451. package/lib/esm/services/suggestion/index.js.map +0 -1
  452. package/lib/esm/services/tag/index.d.ts.map +0 -1
  453. package/lib/esm/services/tag/index.js.map +0 -1
  454. package/lib/esm/services/user/index.d.ts.map +0 -1
  455. package/lib/esm/services/user/index.js.map +0 -1
  456. package/lib/esm/services/webhook/index.d.ts.map +0 -1
  457. package/lib/esm/services/webhook/index.js.map +0 -1
  458. package/lib/esm/types/account.d.ts.map +0 -1
  459. package/lib/esm/types/account.js.map +0 -1
  460. package/lib/esm/types/baseParams.d.ts.map +0 -1
  461. package/lib/esm/types/baseParams.js.map +0 -1
  462. package/lib/esm/types/category.d.ts.map +0 -1
  463. package/lib/esm/types/category.js.map +0 -1
  464. package/lib/esm/types/comment.d.ts.map +0 -1
  465. package/lib/esm/types/comment.js.map +0 -1
  466. package/lib/esm/types/customAdv.d.ts.map +0 -1
  467. package/lib/esm/types/customAdv.js.map +0 -1
  468. package/lib/esm/types/customPage.d.ts.map +0 -1
  469. package/lib/esm/types/customPage.js.map +0 -1
  470. package/lib/esm/types/embed.d.ts.map +0 -1
  471. package/lib/esm/types/embed.js.map +0 -1
  472. package/lib/esm/types/feature.d.ts.map +0 -1
  473. package/lib/esm/types/feature.js.map +0 -1
  474. package/lib/esm/types/feed.d.ts.map +0 -1
  475. package/lib/esm/types/feed.js.map +0 -1
  476. package/lib/esm/types/feedObject.d.ts.map +0 -1
  477. package/lib/esm/types/feedObject.js.map +0 -1
  478. package/lib/esm/types/incubator.d.ts.map +0 -1
  479. package/lib/esm/types/incubator.js.map +0 -1
  480. package/lib/esm/types/index.d.ts.map +0 -1
  481. package/lib/esm/types/index.js.map +0 -1
  482. package/lib/esm/types/insight.d.ts.map +0 -1
  483. package/lib/esm/types/insight.js.map +0 -1
  484. package/lib/esm/types/legalPage.d.ts.map +0 -1
  485. package/lib/esm/types/legalPage.js.map +0 -1
  486. package/lib/esm/types/media.d.ts.map +0 -1
  487. package/lib/esm/types/media.js.map +0 -1
  488. package/lib/esm/types/moderation.d.ts.map +0 -1
  489. package/lib/esm/types/moderation.js.map +0 -1
  490. package/lib/esm/types/notification.d.ts.map +0 -1
  491. package/lib/esm/types/notification.js.map +0 -1
  492. package/lib/esm/types/paginatedResponse.d.ts.map +0 -1
  493. package/lib/esm/types/paginatedResponse.js.map +0 -1
  494. package/lib/esm/types/privateMessage.d.ts.map +0 -1
  495. package/lib/esm/types/privateMessage.js.map +0 -1
  496. package/lib/esm/types/prize.d.ts.map +0 -1
  497. package/lib/esm/types/prize.js.map +0 -1
  498. package/lib/esm/types/reaction.d.ts.map +0 -1
  499. package/lib/esm/types/reaction.js.map +0 -1
  500. package/lib/esm/types/score.d.ts.map +0 -1
  501. package/lib/esm/types/score.js.map +0 -1
  502. package/lib/esm/types/sso.d.ts.map +0 -1
  503. package/lib/esm/types/sso.js.map +0 -1
  504. package/lib/esm/types/tag.d.ts.map +0 -1
  505. package/lib/esm/types/tag.js.map +0 -1
  506. package/lib/esm/types/user.d.ts.map +0 -1
  507. package/lib/esm/types/user.js.map +0 -1
  508. package/lib/esm/types/webhook.d.ts.map +0 -1
  509. package/lib/esm/types/webhook.js.map +0 -1
  510. package/lib/esm/utils/apiRequest.d.ts.map +0 -1
  511. package/lib/esm/utils/apiRequest.js.map +0 -1
  512. package/lib/esm/utils/http.d.ts.map +0 -1
  513. package/lib/esm/utils/http.js.map +0 -1
  514. package/lib/esm/utils/token.d.ts.map +0 -1
  515. package/lib/esm/utils/token.js.map +0 -1
  516. package/lib/esm/utils/url.d.ts.map +0 -1
  517. package/lib/esm/utils/url.js.map +0 -1
  518. package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webpack://SelfCommunityApiServices/webpack/universalModuleDefinition","webpack://SelfCommunityApiServices/../../node_modules/axios/index.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/adapters/xhr.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/axios.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/cancel/Cancel.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/cancel/CancelToken.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/cancel/isCancel.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/Axios.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/InterceptorManager.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/buildFullPath.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/createError.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/dispatchRequest.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/enhanceError.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/mergeConfig.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/settle.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/core/transformData.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/defaults.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/env/data.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/bind.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/buildURL.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/combineURLs.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/cookies.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/isAxiosError.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/parseHeaders.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/spread.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/helpers/validator.js","webpack://SelfCommunityApiServices/../../node_modules/axios/lib/utils.js","webpack://SelfCommunityApiServices/./src/client/index.ts","webpack://SelfCommunityApiServices/./src/constants/Endpoints.ts","webpack://SelfCommunityApiServices/./src/constants/Errors.ts","webpack://SelfCommunityApiServices/./src/services/account/index.ts","webpack://SelfCommunityApiServices/./src/services/category/index.ts","webpack://SelfCommunityApiServices/./src/services/comment/index.ts","webpack://SelfCommunityApiServices/./src/services/custom_adv/index.ts","webpack://SelfCommunityApiServices/./src/services/custom_menu/index.ts","webpack://SelfCommunityApiServices/./src/services/custom_page/index.ts","webpack://SelfCommunityApiServices/./src/services/data_portability/index.ts","webpack://SelfCommunityApiServices/./src/services/embed/index.ts","webpack://SelfCommunityApiServices/./src/services/feature/index.ts","webpack://SelfCommunityApiServices/./src/services/feed/index.ts","webpack://SelfCommunityApiServices/./src/services/feed_object/index.ts","webpack://SelfCommunityApiServices/./src/services/incubator/index.ts","webpack://SelfCommunityApiServices/./src/services/insight/index.ts","webpack://SelfCommunityApiServices/./src/services/invite/index.ts","webpack://SelfCommunityApiServices/./src/services/legal_page/index.ts","webpack://SelfCommunityApiServices/./src/services/locality/index.ts","webpack://SelfCommunityApiServices/./src/services/loyalty/index.ts","webpack://SelfCommunityApiServices/./src/services/media/index.ts","webpack://SelfCommunityApiServices/./src/services/moderation/index.ts","webpack://SelfCommunityApiServices/./src/services/notification/index.ts","webpack://SelfCommunityApiServices/./src/services/preference/index.ts","webpack://SelfCommunityApiServices/./src/services/private_message/index.ts","webpack://SelfCommunityApiServices/./src/services/promo/index.ts","webpack://SelfCommunityApiServices/./src/services/reactions/index.ts","webpack://SelfCommunityApiServices/./src/services/score/index.ts","webpack://SelfCommunityApiServices/./src/services/sso/index.ts","webpack://SelfCommunityApiServices/./src/services/suggestion/index.ts","webpack://SelfCommunityApiServices/./src/services/tag/index.ts","webpack://SelfCommunityApiServices/./src/services/user/index.ts","webpack://SelfCommunityApiServices/./src/services/webhook/index.ts","webpack://SelfCommunityApiServices/./src/types/index.ts","webpack://SelfCommunityApiServices/./src/types/media.ts","webpack://SelfCommunityApiServices/./src/utils/apiRequest.ts","webpack://SelfCommunityApiServices/./src/utils/http.ts","webpack://SelfCommunityApiServices/./src/utils/token.ts","webpack://SelfCommunityApiServices/./src/utils/url.ts","webpack://SelfCommunityApiServices/../../src/index.ts","webpack://SelfCommunityApiServices/../../../src/utils/array.ts","webpack://SelfCommunityApiServices/../../../src/utils/browser.ts","webpack://SelfCommunityApiServices/../../../src/utils/cache.ts","webpack://SelfCommunityApiServices/../../../src/utils/image.ts","webpack://SelfCommunityApiServices/../../../src/utils/logger.ts","webpack://SelfCommunityApiServices/../../../src/utils/object.ts","webpack://SelfCommunityApiServices/../../../src/utils/string.ts","webpack://SelfCommunityApiServices/../../../src/utils/url.ts","webpack://SelfCommunityApiServices/../../../src/utils/websocket.ts","webpack://SelfCommunityApiServices/../../../src/utils/window.ts","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/webcrypto.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/digest.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/buffer_utils.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/base64url.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/util/errors.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/random.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/iv.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/check_iv_length.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/check_cek_length.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/env.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/crypto_key.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/invalid_key_input.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/is_key_like.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/decrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/timing_safe_equal.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/zlib.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/is_disjoint.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/is_object.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/bogus.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/aeskw.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/ecdhes.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/pbes2kw.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/check_p2s.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/subtle_rsaes.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/check_key_length.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/cek.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/format_pem.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/asn1.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/jwk_to_key.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/key/import.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/check_key_type.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/encrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/validate_crit.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/validate_algorithms.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/flattened/decrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/decrypt_key_management.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/rsaes.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/aesgcmkw.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/compact/decrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/general/decrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/key/export.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/key_to_jwk.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/encrypt_key_management.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/flattened/encrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/general/encrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/subtle_dsa.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/get_sign_verify_key.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/flattened/verify.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/verify.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/compact/verify.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/general/verify.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/epoch.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/secs.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/lib/jwt_claims_set.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/verify.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/decrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwe/compact/encrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/flattened/sign.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/sign.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/compact/sign.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jws/general/sign.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/produce.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/sign.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/encrypt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwk/thumbprint.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwk/embedded.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwks/local.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwks/remote.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/fetch_jwks.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/jwt/unsecured.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/util/base64url.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/util/decode_protected_header.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/util/decode_jwt.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/runtime/generate.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/key/generate_key_pair.js","webpack://SelfCommunityApiServices/../../node_modules/jose/dist/browser/key/generate_secret.js","webpack://SelfCommunityApiServices/webpack/bootstrap","webpack://SelfCommunityApiServices/webpack/runtime/define property getters","webpack://SelfCommunityApiServices/webpack/runtime/global","webpack://SelfCommunityApiServices/webpack/runtime/hasOwnProperty shorthand","webpack://SelfCommunityApiServices/webpack/runtime/make namespace object","webpack://SelfCommunityApiServices/./src/index.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"SelfCommunityApiServices\"] = factory();\n\telse\n\t\troot[\"SelfCommunityApiServices\"] = factory();\n})(self, () => {\nreturn ","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\nvar defaults = require('../defaults');\nvar Cancel = require('../cancel/Cancel');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n var onCanceled;\n function done() {\n if (config.cancelToken) {\n config.cancelToken.unsubscribe(onCanceled);\n }\n\n if (config.signal) {\n config.signal.removeEventListener('abort', onCanceled);\n }\n }\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(function _resolve(value) {\n resolve(value);\n done();\n }, function _reject(err) {\n reject(err);\n done();\n }, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';\n var transitional = config.transitional || defaults.transitional;\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken || config.signal) {\n // Handle cancellation\n // eslint-disable-next-line func-names\n onCanceled = function(cancel) {\n if (!request) {\n return;\n }\n reject(!cancel || (cancel && cancel.type) ? new Cancel('canceled') : cancel);\n request.abort();\n request = null;\n };\n\n config.cancelToken && config.cancelToken.subscribe(onCanceled);\n if (config.signal) {\n config.signal.aborted ? onCanceled() : config.signal.addEventListener('abort', onCanceled);\n }\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n // Factory for creating new instances\n instance.create = function create(instanceConfig) {\n return createInstance(mergeConfig(defaultConfig, instanceConfig));\n };\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\naxios.VERSION = require('./env/data').version;\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n\n // eslint-disable-next-line func-names\n this.promise.then(function(cancel) {\n if (!token._listeners) return;\n\n var i;\n var l = token._listeners.length;\n\n for (i = 0; i < l; i++) {\n token._listeners[i](cancel);\n }\n token._listeners = null;\n });\n\n // eslint-disable-next-line func-names\n this.promise.then = function(onfulfilled) {\n var _resolve;\n // eslint-disable-next-line func-names\n var promise = new Promise(function(resolve) {\n token.subscribe(resolve);\n _resolve = resolve;\n }).then(onfulfilled);\n\n promise.cancel = function reject() {\n token.unsubscribe(_resolve);\n };\n\n return promise;\n };\n\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Subscribe to the cancel signal\n */\n\nCancelToken.prototype.subscribe = function subscribe(listener) {\n if (this.reason) {\n listener(this.reason);\n return;\n }\n\n if (this._listeners) {\n this._listeners.push(listener);\n } else {\n this._listeners = [listener];\n }\n};\n\n/**\n * Unsubscribe from the cancel signal\n */\n\nCancelToken.prototype.unsubscribe = function unsubscribe(listener) {\n if (!this._listeners) {\n return;\n }\n var index = this._listeners.indexOf(listener);\n if (index !== -1) {\n this._listeners.splice(index, 1);\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean),\n forcedJSONParsing: validators.transitional(validators.boolean),\n clarifyTimeoutError: validators.transitional(validators.boolean)\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar Cancel = require('../cancel/Cancel');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n\n if (config.signal && config.signal.aborted) {\n throw new Cancel('canceled');\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code,\n status: this.response && this.response.status ? this.response.status : null\n };\n };\n return error;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n return getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n // eslint-disable-next-line consistent-return\n function mergeDirectKeys(prop) {\n if (prop in config2) {\n return getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n return getMergedValue(undefined, config1[prop]);\n }\n }\n\n var mergeMap = {\n 'url': valueFromConfig2,\n 'method': valueFromConfig2,\n 'data': valueFromConfig2,\n 'baseURL': defaultToConfig2,\n 'transformRequest': defaultToConfig2,\n 'transformResponse': defaultToConfig2,\n 'paramsSerializer': defaultToConfig2,\n 'timeout': defaultToConfig2,\n 'timeoutMessage': defaultToConfig2,\n 'withCredentials': defaultToConfig2,\n 'adapter': defaultToConfig2,\n 'responseType': defaultToConfig2,\n 'xsrfCookieName': defaultToConfig2,\n 'xsrfHeaderName': defaultToConfig2,\n 'onUploadProgress': defaultToConfig2,\n 'onDownloadProgress': defaultToConfig2,\n 'decompress': defaultToConfig2,\n 'maxContentLength': defaultToConfig2,\n 'maxBodyLength': defaultToConfig2,\n 'transport': defaultToConfig2,\n 'httpAgent': defaultToConfig2,\n 'httpsAgent': defaultToConfig2,\n 'cancelToken': defaultToConfig2,\n 'socketPath': defaultToConfig2,\n 'responseEncoding': defaultToConfig2,\n 'validateStatus': mergeDirectKeys\n };\n\n utils.forEach(Object.keys(config1).concat(Object.keys(config2)), function computeConfigValue(prop) {\n var merge = mergeMap[prop] || mergeDeepProperties;\n var configValue = merge(prop);\n (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);\n });\n\n return config;\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional || defaults.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n },\n\n headers: {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","module.exports = {\n \"version\": \"0.23.0\"\n};","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar VERSION = require('../env/data').version;\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator - set to false if the transitional option has been removed\n * @param {string?} version - deprecated version / removed since version\n * @param {string?} message - some message with additional info\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n function formatMessage(opt, desc) {\n return '[Axios v' + VERSION + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed' + (version ? ' in ' + version : '')));\n }\n\n if (version && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","import axios, {AxiosInstance, AxiosRequestConfig} from 'axios';\n\n/**\n * List of all Http methods\n */\nexport type HttpMethod =\n | 'get'\n | 'GET'\n | 'delete'\n | 'DELETE'\n | 'head'\n | 'HEAD'\n | 'options'\n | 'OPTIONS'\n | 'post'\n | 'POST'\n | 'put'\n | 'PUT'\n | 'patch'\n | 'PATCH'\n | 'purge'\n | 'PURGE'\n | 'link'\n | 'LINK'\n | 'unlink'\n | 'UNLINK';\n\n/**\n * AxiosResponseHeaders interface\n */\nexport type AxiosResponseHeaders = Record<string, string> & {\n 'set-cookie'?: string[];\n};\n\n/**\n * General HttpResponse\n */\nexport interface HttpResponse<T = unknown, D = any> {\n data: T;\n status: number;\n statusText: string;\n headers: AxiosResponseHeaders;\n config: AxiosRequestConfig<D>;\n request?: any;\n}\n\n/**\n * Interface for the ApiClient\n */\nexport interface ApiClientInterface {\n request<TRequest, TResponse>(config?: any): Promise<HttpResponse<TResponse>>;\n post<TRequest, TResponse>(path: string, object: TRequest, config?: any): Promise<HttpResponse<TResponse>>;\n patch<TRequest, TResponse>(path: string, object: TRequest): Promise<HttpResponse<TResponse>>;\n put<TRequest, TResponse>(path: string, object: TRequest): Promise<HttpResponse<TResponse>>;\n get<TResponse>(path: string): Promise<HttpResponse<TResponse>>;\n}\n\n/**\n * Create an abstraction wrapping of axios\n * Create a sort of interface between axios and the rest of application\n * This makes it easy for instance, to swap axios out for another package,\n * should we choose to do so in the future, without it breaking our app.\n */\nexport class ApiClient implements ApiClientInterface {\n static DEFAULT_TIMEOUT = 10 * 1000;\n protected readonly client: AxiosInstance;\n\n protected createClient(config?: any): AxiosInstance {\n return axios.create({\n ...(config && config.baseURL && {baseURL: config.baseURL}),\n responseType: 'json' as const,\n headers: {\n ...(config && config.accessToken && {Authorization: `Token ${config.accessToken}`})\n },\n timeout: ApiClient.DEFAULT_TIMEOUT\n });\n }\n\n constructor(config?: any) {\n this.client = this.createClient(config);\n this.setDefaultHeader({name: 'Content-Type', value: 'application/x-www-form-urlencoded', methods: ['post']});\n }\n\n /**\n * Get client instance\n */\n public getClientInstance() {\n return this.client;\n }\n\n /**\n * Change configuration\n * @param config\n */\n public config(config: any) {\n this.client(config);\n }\n\n /**\n * Set default header\n * @param name\n * @param value\n * @param methods\n */\n public setDefaultHeader = ({name, value, methods}: {name: string; value: string; methods?: string[]}) => {\n const headers = this.client.defaults.headers;\n if (Array.isArray(methods)) {\n methods.forEach((method) => {\n if (headers[method]) {\n headers[method][name] = value;\n }\n });\n } else {\n headers.common[name] = value;\n }\n };\n\n /**\n * Delete default header\n * @param name\n * @param methods\n */\n public deleteDefaultHeader = ({name, methods}: {name: string; methods?: string[]}) => {\n const headers = this.client.defaults.headers;\n if (Array.isArray(methods)) {\n methods.forEach((method) => {\n if (headers[method]) {\n delete headers[method][name];\n }\n });\n } else {\n delete headers.common[name];\n }\n };\n\n /**\n * setSupportWithCredentials\n * Disable/enable withCredentials\n * Bypass cookie if disabled\n * @param enable\n */\n public setSupportWithCredentials(enable: boolean): void {\n this.client.defaults.withCredentials = enable;\n }\n\n /**\n * setBasePortal\n * Set base path of all http requests\n * @param portal\n */\n public setBasePortal(baseUrl: string): void {\n this.client.defaults.baseURL = baseUrl;\n }\n\n /**\n * setAuthorizeToken\n * Set authorization header for all http requests\n * @param token\n */\n public setAuthorizeToken(token?: string): void {\n if (token) {\n this.setDefaultHeader({name: 'Authorization', value: `Bearer ${token}`});\n } else {\n this.deleteDefaultHeader({name: 'Authorization'});\n }\n }\n\n /**\n * request wrapper\n * @param config\n */\n request<TRequest, TResponse>(config: any): Promise<HttpResponse<TResponse>> {\n return this.client.request<TResponse>(config);\n }\n\n /**\n * get wrapper\n * @param path\n * @param config\n */\n get<TResponse>(path: string, config?: any): Promise<HttpResponse<TResponse>> {\n return this.client.get<TResponse>(path, config);\n }\n\n /**\n * post wrapper\n * @param path\n * @param payload\n * @param config\n */\n post<TRequest, TResponse>(path: string, payload: TRequest, config?: any): Promise<HttpResponse<TResponse>> {\n return config ? this.client.post<TResponse>(path, payload, config) : this.client.post<TResponse>(path, payload);\n }\n\n /**\n * patch wrapper\n * @param path\n * @param object\n */\n patch<TRequest, TResponse>(path: string, payload: TRequest): Promise<HttpResponse<TResponse>> {\n return this.client.patch<TResponse>(path, payload);\n }\n\n /**\n * put wrapper\n * @param path\n * @param payload\n */\n put<TRequest, TResponse>(path: string, payload: TRequest): Promise<HttpResponse<TResponse>> {\n return this.client.put<TResponse>(path, payload);\n }\n}\n\nconst client = new ApiClient();\nexport default client;\n","import {urlReplacer} from '@selfcommunity/utils';\nimport {HttpMethod} from '../client';\n\nexport interface EndpointType {\n url: (params?: object) => string;\n method: HttpMethod;\n}\n\nconst Endpoints: {[key: string]: EndpointType} = {\n /**\n * Account Endpoints\n */\n AccountCreate: {\n url: urlReplacer('/api/v2/account/create/'),\n method: 'POST'\n },\n AccountVerify: {\n url: urlReplacer('/api/v2/account/verify/'),\n method: 'POST'\n },\n AccountRecover: {\n url: urlReplacer('/api/v2/account/recover/'),\n method: 'POST'\n },\n AccountReset: {\n url: urlReplacer('/api/v2/account/reset/'),\n method: 'POST'\n },\n AccountSearch: {\n url: urlReplacer('/api/v2/account/search/'),\n method: 'GET'\n },\n /**\n * Invite Code Endpoints\n */\n InviteCode: {\n url: urlReplacer('/api/v2/invite_code/$(code)/'),\n method: 'GET'\n },\n /**\n * Promo Code Endpoints\n */\n PromoCode: {\n url: urlReplacer('/api/v2/promo_code/$(code)/'),\n method: 'GET'\n },\n /**\n * OAuth2 Endpoints\n */\n OAuthToken: {\n url: urlReplacer('/oauth/token/'),\n method: 'POST'\n },\n /**\n * Dynamic Preference Endpoints\n */\n Preferences: {\n url: urlReplacer('/api/v2/dynamic_preference/'),\n method: 'GET'\n },\n GetPreference: {\n url: urlReplacer('/api/v2/dynamic_preference/$(id)/'),\n method: 'GET'\n },\n /**\n * SSO Endpoints\n */\n SignIn: {\n url: urlReplacer('/api/v2/sso/signin/'),\n method: 'POST'\n },\n SignUp: {\n url: urlReplacer('/api/v2/sso/signup/'),\n method: 'POST'\n },\n /**\n * Features Endpoints\n * */\n Feature: {\n url: urlReplacer('/api/v2/feature/'),\n method: 'GET'\n },\n /**\n * FeedObject Endpoints\n */\n FeedObjectList: {\n url: urlReplacer('/api/v2/$(type)/'),\n method: 'GET'\n },\n FeedObjectsUncommented: {\n url: urlReplacer('/api/v2/$(type)/uncommented/'),\n method: 'GET'\n },\n SearchFeedObject: {\n url: urlReplacer('/api/v2/$(type)/search/'),\n method: 'GET'\n },\n CreateFeedObject: {\n url: urlReplacer('/api/v2/$(type)/'),\n method: 'POST'\n },\n FeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/'),\n method: 'GET'\n },\n UpdateFeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/'),\n method: 'PUT'\n },\n DeleteFeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/'),\n method: 'DELETE'\n },\n FeedObjectContributorsList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/contributors/'),\n method: 'GET'\n },\n FeedObjectSharesList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/shares/'),\n method: 'GET'\n },\n FeedObjectUserSharesList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/shares_users/'),\n method: 'GET'\n },\n RestoreFeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/restore/'),\n method: 'POST'\n },\n RelatedFeedObjects: {\n url: urlReplacer('/api/v2/$(type)/$(id)/related/'),\n method: 'GET'\n },\n HideFeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/hide/'),\n method: 'POST'\n },\n FeedObjectHideStatus: {\n url: urlReplacer('/api/v2/$(type)/$(id)/hide/status/'),\n method: 'GET'\n },\n CheckIfFollowingFeedObject: {\n url: urlReplacer('/api/v2/$(type)/$(id)/following/'),\n method: 'GET'\n },\n FeedObjectFollowingList: {\n url: urlReplacer('/api/v2/$(type)/following/'),\n method: 'GET'\n },\n FeedObjectFlagList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/flag/'),\n method: 'POST'\n },\n /**\n * Comments\n */\n Comment: {\n url: urlReplacer('/api/v2/comment/$(id)/'),\n method: 'GET'\n },\n NewComment: {\n url: urlReplacer('/api/v2/comment/'),\n method: 'POST'\n },\n UpdateComment: {\n url: urlReplacer('/api/v2/comment/$(id)/'),\n method: 'PUT'\n },\n DeleteComment: {\n url: urlReplacer('/api/v2/comment/$(id)/'),\n method: 'DELETE'\n },\n RestoreComment: {\n url: urlReplacer('/api/v2/comment/$(id)/restore/'),\n method: 'POST'\n },\n Comments: {\n url: urlReplacer('/api/v2/comment/'),\n method: 'GET'\n },\n CommentVote: {\n url: urlReplacer('/api/v2/comment/$(id)/vote/'),\n method: 'POST'\n },\n CommentVotesList: {\n url: urlReplacer('/api/v2/comment/$(id)/vote/'),\n method: 'GET'\n },\n CommentRestore: {\n url: urlReplacer('/api/v2/comment/$(id)/restore'),\n method: 'POST'\n },\n CommentFlagList: {\n url: urlReplacer('/api/v2/comment/$(id)/flag/'),\n method: 'GET'\n },\n FlagComment: {\n url: urlReplacer('/api/v2/comment/$(id)/flag/'),\n method: 'POST'\n },\n CommentFlagStatus: {\n url: urlReplacer('/api/v2/comment/$(id)/flag/status/'),\n method: 'GET'\n },\n /**\n * Reporting Flag Endpoints\n */\n FlagStatus: {\n url: urlReplacer('/api/v2/$(type)/$(id)/flag/status/'),\n method: 'GET'\n },\n Flag: {\n url: urlReplacer('/api/v2/$(type)/$(id)/flag/'),\n method: 'POST'\n },\n /**\n * Categories Endpoints\n */\n CategoryList: {\n url: urlReplacer('/api/v2/category/'),\n method: 'GET'\n },\n SearchCategory: {\n url: urlReplacer('/api/v2/category/search/'),\n method: 'GET'\n },\n CreateCategory: {\n url: urlReplacer('/api/v2/category/'),\n method: 'POST'\n },\n UpdateCategory: {\n url: urlReplacer('/api/v2/category/$(id)/'),\n method: 'PUT'\n },\n PatchCategory: {\n url: urlReplacer('/api/v2/category/$(id)/'),\n method: 'PATCH'\n },\n DeleteCategory: {\n url: urlReplacer('/api/v2/category/$(id)/'),\n method: 'DELETE'\n },\n CategoryAudience: {\n url: urlReplacer('/api/v2/category/$(id)/audience/'),\n method: 'GET'\n },\n Category: {\n url: urlReplacer('/api/v2/category/$(id)/'),\n method: 'GET'\n },\n CategoriesFollowed: {\n url: urlReplacer('/api/v2/category/followed/'),\n method: 'GET'\n },\n CategoryFollowers: {\n url: urlReplacer('/api/v2/category/$(id)/followers/'),\n method: 'GET'\n },\n CategoryTrendingFeed: {\n url: urlReplacer('/api/v2/category/$(id)/feed/trending/'),\n method: 'GET'\n },\n CategoryTrendingPeople: {\n url: urlReplacer('/api/v2/category/$(id)/followers/trending/'),\n method: 'GET'\n },\n FollowCategory: {\n url: urlReplacer('/api/v2/category/$(id)/follow/'),\n method: 'POST'\n },\n CheckCategoryIsFollowed: {\n url: urlReplacer('/api/v2/category/$(id)/is_followed/'),\n method: 'GET'\n },\n PopularCategories: {\n url: urlReplacer('/api/v2/category/popular/'),\n method: 'GET'\n },\n /**\n * Tag Endpoints\n */\n TagsList: {\n url: urlReplacer('/api/v2/tag/'),\n method: 'GET'\n },\n CreateTag: {\n url: urlReplacer('/api/v2/tag/'),\n method: 'POST'\n },\n SearchTag: {\n url: urlReplacer('/api/v2/tag/'),\n method: 'GET'\n },\n Tag: {\n url: urlReplacer('/api/v2/tag/$(id)/'),\n method: 'GET'\n },\n UpdateTag: {\n url: urlReplacer('/api/v2/tag/$(id)/'),\n method: 'PUT'\n },\n PatchTag: {\n url: urlReplacer('/api/v2/tag/$(id)/'),\n method: 'PATCH'\n },\n AssignTag: {\n url: urlReplacer('/api/v2/tag/$(id)/assign/'),\n method: 'POST'\n },\n /**\n * User Endpoints\n */\n UserList: {\n url: urlReplacer('/api/v2/user/'),\n method: 'GET'\n },\n ListHiddenUsers: {\n url: urlReplacer('/api/v2/user/hidden_users/'),\n method: 'GET'\n },\n UserAutocomplete: {\n url: urlReplacer('/api/v2/user/autocomplete/'),\n method: 'GET'\n },\n UserSearch: {\n url: urlReplacer('/api/v2/user/search/'),\n method: 'GET'\n },\n User: {\n url: urlReplacer('/api/v2/user/$(id)/'),\n method: 'GET'\n },\n UserCounters: {\n url: urlReplacer('/api/v2/user/$(id)/counters/'),\n method: 'GET'\n },\n UserUpdate: {\n url: urlReplacer('/api/v2/user/$(id)/'),\n method: 'PUT'\n },\n UserPatch: {\n url: urlReplacer('/api/v2/user/$(id)/'),\n method: 'PATCH'\n },\n UserDelete: {\n url: urlReplacer('/api/v2/user/$(id)/'),\n method: 'DELETE'\n },\n ChangeUserMail: {\n url: urlReplacer('/api/v2/user/$(id)/change_email/'),\n method: 'PATCH'\n },\n ConfirmUserChangeMail: {\n url: urlReplacer('/api/v2/user/$(id)/confirm_email/'),\n method: 'POST'\n },\n ChangeUserPassword: {\n url: urlReplacer('/api/v2/user/$(id)/change_password/'),\n method: 'PATCH'\n },\n UserSettings: {\n url: urlReplacer('/api/v2/user/$(id)/settings/'),\n method: 'GET'\n },\n UserSettingsPatch: {\n url: urlReplacer('/api/v2/user/$(id)/settings/'),\n method: 'PATCH'\n },\n Me: {\n url: urlReplacer('/api/v2/user/me/'),\n method: 'GET'\n },\n MyAvatar: {\n url: urlReplacer('/api/v2/user/me/avatar/'),\n method: 'GET'\n },\n Permission: {\n url: urlReplacer('/api/v2/user/me/permission/'),\n method: 'GET'\n },\n Platform: {\n url: urlReplacer('/api/v2/user/me/platform_url/'),\n method: 'GET'\n },\n FollowedCategories: {\n url: urlReplacer('/api/v2/user/$(id)/categories/'),\n method: 'GET'\n },\n UserFollowers: {\n url: urlReplacer('/api/v2/user/$(id)/followers/'),\n method: 'GET'\n },\n UserFollowings: {\n url: urlReplacer('/api/v2/user/$(id)/followings/'),\n method: 'GET'\n },\n FollowUser: {\n url: urlReplacer('/api/v2/user/$(id)/follow/'),\n method: 'POST'\n },\n CheckUserFollowed: {\n url: urlReplacer('/api/v2/user/$(id)/is_followed/'),\n method: 'GET'\n },\n CheckUserFollower: {\n url: urlReplacer('/api/v2/user/$(id)/is_follower/'),\n method: 'GET'\n },\n UserConnections: {\n url: urlReplacer('/api/v2/user/$(id)/connections/'),\n method: 'GET'\n },\n UserCheckConnection: {\n url: urlReplacer('/api/v2/user/$(id)/is_connection/'),\n method: 'GET'\n },\n UserConnectionRequests: {\n url: urlReplacer('/api/v2/user/$(id)/connection/requests/'),\n method: 'GET'\n },\n UserRequestConnectionsSent: {\n url: urlReplacer('/api/v2/user/$(id)/connection/requests_sent/'),\n method: 'GET'\n },\n UserAcceptRequestConnection: {\n url: urlReplacer('/api/v2/user/$(id)/connection/accept/'),\n method: 'POST'\n },\n UserRequestConnection: {\n url: urlReplacer('/api/v2/user/$(id)/connection/request/'),\n method: 'POST'\n },\n UserRemoveConnection: {\n url: urlReplacer('/api/v2/user/$(id)/connection/remove/'),\n method: 'POST'\n },\n UserCancelRejectConnectionRequest: {\n url: urlReplacer('/api/v2/user/$(id)/connection/cancel_reject/'),\n method: 'POST'\n },\n UserCancelRequestConnection: {\n url: urlReplacer('/api/v2/user/$(id)/connection/cancel_request/'),\n method: 'POST'\n },\n UserRejectConnectionRequest: {\n url: urlReplacer('/api/v2/user/$(id)/connection/reject/'),\n method: 'POST'\n },\n UserMarkSeenConnectionRequest: {\n url: urlReplacer('/api/v2/user/$(id)/connection_requests/mark_seen/'),\n method: 'POST'\n },\n UserShowHide: {\n url: urlReplacer('/api/v2/user/$(id)/hide/'),\n method: 'POST'\n },\n CheckUserHidden: {\n url: urlReplacer('/api/v2/user/$(id)/is_hidden/'),\n method: 'GET'\n },\n CheckUserHiddenBy: {\n url: urlReplacer('/api/v2/user/$(id)/is_hidden_by/'),\n method: 'GET'\n },\n GetUserLoyaltyPoints: {\n url: urlReplacer('/api/v2/user/$(id)/loyalty/points/'),\n method: 'GET'\n },\n UserConnectionStatuses: {\n url: urlReplacer('/api/v2/user/connection/statuses/'),\n method: 'POST'\n },\n UserTagToAddressContribution: {\n url: urlReplacer('/api/v2/user/tag/tags_to_address_a_contribution/'),\n method: 'GET'\n },\n CheckEmailToken: {\n url: urlReplacer('/api/v2/user/$(id)/check_email_token/'),\n method: 'GET'\n },\n AddAvatar: {\n url: urlReplacer('/api/v2/user/avatar/'),\n method: 'POST'\n },\n GetAvatars: {\n url: urlReplacer('/api/v2/user/avatar/'),\n method: 'GET'\n },\n RemoveAvatar: {\n url: urlReplacer('/api/v2/user/avatar/'),\n method: 'DELETE'\n },\n SetPrimaryAvatar: {\n url: urlReplacer('/api/v2/user/avatar/'),\n method: 'PATCH'\n },\n ProviderAssociations: {\n url: urlReplacer('/api/v2/user/$(id)/provider/'),\n method: 'GET'\n },\n CreateProviderAssociation: {\n url: urlReplacer('/api/v2/user/$(id)/provider/'),\n method: 'POST'\n },\n DeleteProviderAssociation: {\n url: urlReplacer('/api/v2/user/$(id)/provider/'),\n method: 'DELETE'\n },\n /**\n * Broadcast Messages\n */\n BroadcastMessagesList: {\n url: urlReplacer('/api/v2/notification/banner/'),\n method: 'GET'\n },\n BroadcastMessagesMarkRead: {\n url: urlReplacer('/api/v2/notification/banner/read/'),\n method: 'POST'\n },\n BroadcastMessagesDispose: {\n url: urlReplacer('/api/v2/notification/banner/dispose/'),\n method: 'POST'\n },\n BroadcastMessagesUnseenCount: {\n url: urlReplacer('/api/v2/notification/banner/unseen/count/'),\n method: 'GET'\n },\n BroadcastMessagesUndisposedCount: {\n url: urlReplacer('/api/v2/notification/banner/undisposed/count/'),\n method: 'GET'\n },\n /**\n * Notifications\n */\n UserNotificationList: {\n url: urlReplacer('/api/v2/notification/'),\n method: 'GET'\n },\n UserMarkReadNotification: {\n url: urlReplacer('/api/v2/notification/read/'),\n method: 'POST'\n },\n UserUnseenNotificationCount: {\n url: urlReplacer('/api/v2/notification/unseen/count/'),\n method: 'GET'\n },\n CreateCustomNotification: {\n url: urlReplacer('/api/v2/notification/notify/'),\n method: 'POST'\n },\n UserSuspendContributionNotification: {\n url: urlReplacer('/api/v2/$(type)/$(id)/suspend/'),\n method: 'POST'\n },\n UserCheckContributionNotificationSuspended: {\n url: urlReplacer('/api/v2/$(type)/$(id)/suspended/'),\n method: 'GET'\n },\n UserListContributionNotificationSuspended: {\n url: urlReplacer('/api/v2/$(type)/suspended/'),\n method: 'GET'\n },\n\n /**\n * Suggestion Endpoints\n */\n CategoriesSuggestion: {\n url: urlReplacer('/api/v2/suggestion/category/'),\n method: 'GET'\n },\n GetIncubatorSuggestion: {\n url: urlReplacer('/api/v2/suggestion/incubator/'),\n method: 'GET'\n },\n PollSuggestion: {\n url: urlReplacer('/api/v2/suggestion/poll/'),\n method: 'GET'\n },\n UserSuggestion: {\n url: urlReplacer('/api/v2/suggestion/user/'),\n method: 'GET'\n },\n SearchSuggestion: {\n url: urlReplacer('/api/v2/suggestion/'),\n method: 'GET'\n },\n /**\n * Follow\n */\n FollowContribution: {\n url: urlReplacer('/api/v2/$(type)/$(id)/follow/'),\n method: 'POST'\n },\n /**\n * Manage votes for post, discussion, status and comment\n */\n Vote: {\n url: urlReplacer('/api/v2/$(type)/$(id)/vote/'),\n method: 'POST'\n },\n VotesList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/vote/'),\n method: 'GET'\n },\n /**\n * Shares\n */\n ShareUsersList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/shares_users/'),\n method: 'GET'\n },\n /**\n * Poll\n */\n PollVote: {\n url: urlReplacer('/api/v2/$(type)/$(id)/poll/vote/'),\n method: 'POST'\n },\n PollVotesList: {\n url: urlReplacer('/api/v2/$(type)/$(id)/poll/vote/'),\n method: 'GET'\n },\n\n /**\n * Contributors\n */\n Contributors: {\n url: urlReplacer('/api/v2/$(type)/$(id)/contributors/'),\n method: 'GET'\n },\n /**\n * Loyalty Endpoints\n */\n GetPrizes: {\n url: urlReplacer('/api/v2/loyalty/prize/'),\n method: 'GET'\n },\n CreatePrize: {\n url: urlReplacer('/api/v2/loyalty/prize/'),\n method: 'POST'\n },\n GetSpecificPrize: {\n url: urlReplacer('/api/v2/loyalty/prize/$(id)/'),\n method: 'GET'\n },\n UpdatePrize: {\n url: urlReplacer('/api/v2/loyalty/prize/$(id)/'),\n method: 'PUT'\n },\n PatchPrize: {\n url: urlReplacer('/api/v2/loyalty/prize/$(id)/'),\n method: 'PATCH'\n },\n GetPrizeRequests: {\n url: urlReplacer('/api/v2/loyalty/request/'),\n method: 'GET'\n },\n CreatePrizeRequest: {\n url: urlReplacer('/api/v2/loyalty/request/'),\n method: 'POST'\n },\n GetSpecificPrizeRequest: {\n url: urlReplacer('/api/v2/loyalty/request/$(id)/'),\n method: 'GET'\n },\n PatchPrizeRequest: {\n url: urlReplacer('/api/v2/loyalty/request/$(id)/'),\n method: 'PATCH'\n },\n /**\n * Composer Endpoints\n */\n Composer: {\n url: urlReplacer('/api/v2/$(type)/'),\n method: 'POST'\n },\n ComposerEdit: {\n url: urlReplacer('/api/v2/$(type)/$(id)/'),\n method: 'PUT'\n },\n ComposerChunkUploadMedia: {\n url: urlReplacer('/api/v2/media/upload/chunk/'),\n method: 'POST'\n },\n ComposerChunkUploadMediaComplete: {\n url: urlReplacer('/api/v2/media/upload/complete/'),\n method: 'POST'\n },\n ComposerMediaCreate: {\n url: urlReplacer('/api/v2/media/'),\n method: 'POST'\n },\n ComposerCategoryList: {\n url: urlReplacer('/api/v2/category/'),\n method: 'GET'\n },\n ComposerAddressingTagList: {\n url: urlReplacer('/api/v2/user/tag/tags_to_address_a_contribution/'),\n method: 'GET'\n },\n ComposerLocalitySearch: {\n url: urlReplacer('/api/v2/locality/search/'),\n method: 'GET'\n },\n\n /**\n * Media\n */\n GetMedia: {\n url: urlReplacer('/api/v2/media/$(id)/'),\n method: 'GET'\n },\n UpdateMedia: {\n url: urlReplacer('/api/v2/media/$(id)/'),\n method: 'PUT'\n },\n DeleteMedia: {\n url: urlReplacer('/api/v2/media/$(id)/'),\n method: 'DELETE'\n },\n MediaClickTracker: {\n url: urlReplacer('/api/v2/media/$(id)/click/'),\n method: 'POST'\n },\n\n /**\n * Locality\n */\n GetLocalities: {\n url: urlReplacer('/api/v2/locality/'),\n method: 'GET'\n },\n /**\n * Custom ADV\n */\n CustomAdvList: {\n url: urlReplacer('/api/v2/custom_adv/'),\n method: 'GET'\n },\n CustomAdv: {\n url: urlReplacer('/api/v2/custom_adv/$(id)/'),\n method: 'GET'\n },\n CustomAdvSearch: {\n url: urlReplacer('/api/v2/custom_adv/search/'),\n method: 'GET'\n },\n\n /**\n * Feed\n */\n MainFeed: {\n url: urlReplacer('/api/v2/feed/'),\n method: 'GET'\n },\n MainFeedUnseenCount: {\n url: urlReplacer('/api/v2/feed/unseen/count/'),\n method: 'GET'\n },\n FeedObjectMarkRead: {\n url: urlReplacer('/api/v2/feed/read/'),\n method: 'POST'\n },\n ExploreFeed: {\n url: urlReplacer('/api/v2/feed/explore/'),\n method: 'GET'\n },\n FeedLikeThese: {\n url: urlReplacer('/api/v2/feed/likethis/'),\n method: 'POST'\n },\n CategoryFeed: {\n url: urlReplacer('/api/v2/category/$(id)/feed/'),\n method: 'GET'\n },\n UserFeed: {\n url: urlReplacer('/api/v2/user/$(id)/feed/'),\n method: 'GET'\n },\n EmbedFeed: {\n url: urlReplacer('/api/v2/embed/feed/'),\n method: 'GET'\n },\n /**\n * Embed\n */\n EmbedList: {\n url: urlReplacer('/api/v2/embed/'),\n method: 'GET'\n },\n EmbedCreate: {\n url: urlReplacer('/api/v2/embed/'),\n method: 'POST'\n },\n EmbedSearch: {\n url: urlReplacer('/api/v2/embed/search/'),\n method: 'GET'\n },\n Embed: {\n url: urlReplacer('/api/v2/embed/$(id)/'),\n method: 'GET'\n },\n UpdateEmbed: {\n url: urlReplacer('/api/v2/embed/$(id)/'),\n method: 'PUT'\n },\n PatchEmbed: {\n url: urlReplacer('/api/v2/embed/$(id)/'),\n method: 'PATCH'\n },\n SpecificEmbedFeed: {\n url: urlReplacer('/api/v2/embed/$(id)/feed/'),\n method: 'GET'\n },\n /**\n * Private Messages Endpoints\n */\n GetSnippets: {\n url: urlReplacer('/api/v2/pm/'),\n method: 'GET'\n },\n GetASingleMessage: {\n url: urlReplacer('/api/v2/pm/$(id)/'),\n method: 'GET'\n },\n SendMessage: {\n url: urlReplacer('/api/v2/pm/'),\n method: 'POST'\n },\n GetAThread: {\n url: urlReplacer('/api/v2/pm/'),\n method: 'GET'\n },\n PrivateMessageUploadMedia: {\n url: urlReplacer('/api/v2/pm/upload/'),\n method: 'POST'\n },\n PrivateMessageUploadThumbnail: {\n url: urlReplacer('/api/v2/pm/upload/'),\n method: 'POST'\n },\n PrivateMessageUploadMediaInChunks: {\n url: urlReplacer('/api/v2/pm/upload/'),\n method: 'POST'\n },\n PrivateMessageChunkUploadDone: {\n url: urlReplacer('/api/v2/pm/upload/?done'),\n method: 'POST'\n },\n DeleteASingleMessage: {\n url: urlReplacer('/api/v2/pm/$(id)/'),\n method: 'DELETE'\n },\n DeleteAThread: {\n url: urlReplacer('/api/v2/pm/'),\n method: 'DELETE'\n },\n PrivateMessageSearchUser: {\n url: urlReplacer('/api/v2/pm/search/?user=$(search)'),\n method: 'GET'\n },\n\n /**\n * Device\n */\n Device: {\n url: urlReplacer('/api/v2/device/$(type)/$(id)/'),\n method: 'GET'\n },\n NewDevice: {\n url: urlReplacer('/api/v2/device/$(type)/'),\n method: 'POST'\n },\n DeleteDevice: {\n url: urlReplacer('/api/v2/device/$(type)/$(id)/'),\n method: 'DELETE'\n },\n\n /**\n * Moderation\n */\n UsersForModeration: {\n url: urlReplacer('/api/v2/moderation/user/'),\n method: 'GET'\n },\n ModerateUser: {\n url: urlReplacer('/api/v2/moderation/user/$(id)/'),\n method: 'PATCH'\n },\n FlaggedContributions: {\n url: urlReplacer('/api/v2/moderation/contribution/'),\n method: 'GET'\n },\n FlagsForSpecificContribution: {\n url: urlReplacer('/api/v2/moderation/contribution/$(id)/flag/?contribution_type=$(contribution_type)'),\n method: 'GET'\n },\n ModerateContribution: {\n url: urlReplacer('/api/v2/moderation/contribution/$(id)/'),\n method: 'PATCH'\n },\n\n ModerateContributionStatus: {\n url: urlReplacer('/api/v2/moderation/contribution/$(id)/status/?contribution_type=$(contribution_type)'),\n method: 'GET'\n },\n\n /**\n * Insights\n **/\n InsightBestContribution: {\n url: urlReplacer('/api/v2/insight/contribution/'),\n method: 'GET'\n },\n InsightBestEmbed: {\n url: urlReplacer('/api/v2/insight/embed/'),\n method: 'GET'\n },\n InsightBestUser: {\n url: urlReplacer('/api/v2/insight/user/'),\n method: 'GET'\n },\n InsightContributionCounter: {\n url: urlReplacer('/api/v2/insight/contribution/counters/?contribution_id=$(id)'),\n method: 'GET'\n },\n InsightEmbedCounter: {\n url: urlReplacer('/api/v2/insight/embed/counters/?embed_type=$(type)&embed_id=$(id)'),\n method: 'GET'\n },\n InsightUserCounter: {\n url: urlReplacer('/api/v2/insight/user/counters/?user_id=$(id)'),\n method: 'GET'\n },\n\n /**\n * Incubators\n */\n GetAllIncubators: {\n url: urlReplacer('/api/v2/incubator/'),\n method: 'GET'\n },\n SearchIncubators: {\n url: urlReplacer('/api/v2/incubator/search/'),\n method: 'GET'\n },\n GetASpecificIncubator: {\n url: urlReplacer('/api/v2/incubator/$(id)/'),\n method: 'GET'\n },\n CheckIncubatorSubscription: {\n url: urlReplacer('/api/v2/incubator/$(id)/subscribed/'),\n method: 'GET'\n },\n SubscribeToIncubator: {\n url: urlReplacer('/api/v2/incubator/$(id)/subscribe/'),\n method: 'POST'\n },\n CreateAnIncubator: {\n url: urlReplacer('/api/v2/incubator/'),\n method: 'POST'\n },\n GetIncubatorSubscribers: {\n url: urlReplacer('/api/v2/incubator/$(id)/subscribers/'),\n method: 'GET'\n },\n /**\n * Custom Menu\n */\n GetCustomMenus: {\n url: urlReplacer('/api/v2/custom_menu/'),\n method: 'GET'\n },\n CustomMenu: {\n url: urlReplacer('/api/v2/custom_menu/$(id)/'),\n method: 'GET'\n },\n CustomMenuSearch: {\n url: urlReplacer('/api/v2/custom_menu/search/'),\n method: 'GET'\n },\n /**\n * Custom Page\n */\n GetCustomPages: {\n url: urlReplacer('/api/v2/custom_page/'),\n method: 'GET'\n },\n CustomPage: {\n url: urlReplacer('/api/v2/custom_page/$(id)/'),\n method: 'GET'\n },\n CustomPageSearch: {\n url: urlReplacer('/api/v2/custom_page/search/'),\n method: 'GET'\n },\n /**\n * Legal Page\n */\n LegalPage: {\n url: urlReplacer('/api/v2/legal_page/$(id)/'),\n method: 'GET'\n },\n GetLegalPages: {\n url: urlReplacer('/api/v2/legal_page/'),\n method: 'GET'\n },\n SearchLegalPages: {\n url: urlReplacer('/api/v2/legal_page/search/'),\n method: 'GET'\n },\n LegalPagesLastRevision: {\n url: urlReplacer('/api/v2/legal_page/last_revisions/'),\n method: 'GET'\n },\n LegalPageLastRevision: {\n url: urlReplacer('/api/v2/legal_page/$(policy)/'),\n method: 'GET'\n },\n LegalPageRevisions: {\n url: urlReplacer('/api/v2/legal_page/$(policy)/revisions/'),\n method: 'GET'\n },\n AckLegalPage: {\n url: urlReplacer('/api/v2/legal_page/$(id)/ack/'),\n method: 'POST'\n },\n SpecificUserAck: {\n url: urlReplacer('/api/v2/legal_page/$(id)/user_ack/'),\n method: 'GET'\n },\n UserAckList: {\n url: urlReplacer('/api/v2/legal_page/user_acks/'),\n method: 'GET'\n },\n\n /**\n * Webhook\n */\n WebhookEndpointsList: {\n url: urlReplacer('/api/v2/webhook/endpoint/'),\n method: 'GET'\n },\n WebhookEventsList: {\n url: urlReplacer('/api/v2/webhook/endpoint/event/'),\n method: 'GET'\n },\n WebhookCreate: {\n url: urlReplacer('/api/v2/webhook/endpoint/'),\n method: 'POST'\n },\n GetSpecificWebhook: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/'),\n method: 'GET'\n },\n WebhookUpdate: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/'),\n method: 'PUT'\n },\n WebhookPatch: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/'),\n method: 'PATCH'\n },\n WebhookDelete: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/'),\n method: 'DELETE'\n },\n WebhookEndpointAttempts: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/attempt/'),\n method: 'GET'\n },\n WebhookExpireSigningSecret: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/secret/expire/'),\n method: 'POST'\n },\n WebhookRevealSigningSecret: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/secret/reveal/'),\n method: 'POST'\n },\n WebhookResendEndpointEvent: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/event/resend/'),\n method: 'POST'\n },\n WebhookResendMultipleEndpointEvent: {\n url: urlReplacer('/api/v2/webhook/endpoint/$(id)/event/resend/bulk/'),\n method: 'POST'\n },\n /**\n * Data Portability\n */\n GenerateDataPortability: {\n url: urlReplacer('/api/v2/udp/'),\n method: 'POST'\n },\n DataPortabilityStatus: {\n url: urlReplacer('/api/v2/udp/'),\n method: 'GET'\n },\n DataPortabilityDownload: {\n url: urlReplacer('/api/v2/udp/download'),\n method: 'GET'\n },\n /**\n * Score\n */\n ScoresList: {\n url: urlReplacer('/api/v2/score/'),\n method: 'GET'\n },\n SearchScore: {\n url: urlReplacer('/api/v2/score/search/'),\n method: 'GET'\n },\n AddScore: {\n url: urlReplacer('/api/v2/score/'),\n method: 'POST'\n },\n /**\n * Reactions\n */\n GetReactions: {\n url: urlReplacer('/api/v2/reaction/'),\n method: 'GET'\n },\n GetSpecificReaction: {\n url: urlReplacer('/api/v2/reaction/$(id)/'),\n method: 'GET'\n }\n};\n\nexport default Endpoints;\n","/**\n * Scope prefix used to emit errors\n */\nexport const SCOPE_API_SERVICES = '@selfcommunity/api-services';\n","import Endpoints from '../../constants/Endpoints';\nimport {AccountCreateParams, AccountRecoverParams, AccountResetParams, AccountSearchParams, AccountVerifyParams} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {SCUserType} from '@selfcommunity/types';\n\nexport interface AccountApiClientInterface {\n create(data?: AccountCreateParams, config?: AxiosRequestConfig): Promise<SCUserType>;\n verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any>;\n recover(data?: AccountRecoverParams, config?: AxiosRequestConfig): Promise<any>;\n reset(data?: AccountResetParams, config?: AxiosRequestConfig): Promise<any>;\n search(params?: AccountSearchParams, config?: AxiosRequestConfig): Promise<SCUserType>;\n}\n\n/**\n * Contains all the endpoints needed to manage categories.\n */\nexport class AccountApiClient {\n /**\n * This endpoint create an account.\n *\n * It requires an administration token.\n *\n * @param data\n * @param config\n */\n static create(data?: AccountCreateParams, config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, data, url: Endpoints.AccountCreate.url({}), method: Endpoints.AccountCreate.method});\n }\n /**\n * This endpoint verify an account.\n * @param data\n * @param config\n */\n static verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, data, url: Endpoints.AccountVerify.url({}), method: Endpoints.AccountVerify.method});\n }\n /**\n * This endpoint recover an account.\n * @param data\n * @param config\n */\n static recover(data?: AccountRecoverParams, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, data, url: Endpoints.AccountRecover.url({}), method: Endpoints.AccountRecover.method});\n }\n /**\n * This endpoint reset an account.\n * @param data\n * @param config\n */\n static reset(data?: AccountResetParams, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, data, url: Endpoints.AccountReset.url({}), method: Endpoints.AccountReset.method});\n }\n /**\n * This endpoint search an account.\n *\n * It requires an administration token.\n *\n * @param params\n * @param config\n */\n static search(params?: AccountSearchParams, config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, params, url: Endpoints.AccountSearch.url({}), method: Endpoints.AccountSearch.method});\n }\n}\n\n/**\n *\n :::tipAccount service can be used in the following way:\n ```jsx\n 1. Import the service from our library:\n\n import {AccountService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `create` will return the paginated list of categories.\n\n async create() {\n return await AccountService.create();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async create(data) {\n return await AccountService.create(data);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class AccountService {\n static async create(data?: AccountCreateParams, config?: AxiosRequestConfig): Promise<SCUserType> {\n return AccountApiClient.create(data, config);\n }\n static async verify(data?: AccountVerifyParams, config?: AxiosRequestConfig): Promise<any> {\n return AccountApiClient.verify(data, config);\n }\n static async recover(data?: AccountRecoverParams, config?: AxiosRequestConfig): Promise<any> {\n return AccountApiClient.recover(data, config);\n }\n static async reset(data?: AccountResetParams, config?: AxiosRequestConfig): Promise<any> {\n return AccountApiClient.reset(data, config);\n }\n static async search(params?: AccountSearchParams, config?: AxiosRequestConfig): Promise<SCUserType> {\n return AccountApiClient.search(params, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {SCCategoryType, SCCategoryAudienceType, SCUserType, SCFeedUnitType, SCCategoryFollowedStatusType} from '@selfcommunity/types';\nimport {BaseGetParams, CategoryParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface CategoryApiClientInterface {\n getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;\n searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;\n createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;\n getSpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryType>;\n updateASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;\n patchASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType>;\n deleteASpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n getCategoryAudience(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType>;\n getCategoryFollowers(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n getCategoryFeed(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getCategoryTrendingFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getCategoryTrendingFollowers(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n followCategory(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n checkCategoryIsFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType>;\n getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;\n getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;\n}\n\n/**\n * Contains all the endpoints needed to manage categories.\n */\nexport class CategoryApiClient {\n /**\n * This endpoint retrieves all categories.\n * @param params\n * @param config\n */\n static getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n const p = urlParams(params);\n return apiRequest({url: `${Endpoints.CategoryList.url({})}?${p.toString()}`, method: Endpoints.CategoryList.method, ...config});\n }\n\n /**\n * This endpoint performs category search.\n * @param params\n * @param config\n */\n static searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n const p = urlParams(params);\n return apiRequest({url: `${Endpoints.SearchCategory.url({})}?${p.toString()}`, method: Endpoints.SearchCategory.method, ...config});\n }\n\n /**\n * This endpoint creates a category.\n * @param data\n * @param config\n */\n static createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return apiRequest({url: Endpoints.CreateCategory.url({}), method: Endpoints.CreateCategory.method, data: data, ...config});\n }\n\n /**\n * This endpoint retrieves a specific category.\n * @param id\n * @param config\n */\n static getSpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return apiRequest({url: Endpoints.Category.url({id}), method: Endpoints.Category.method, ...config});\n }\n\n /**\n * This endpoint updates a specific category.\n * @param id\n * @param data\n * @param config\n */\n static updateASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return apiRequest({url: Endpoints.UpdateCategory.url({id}), method: Endpoints.UpdateCategory.method, data: data, ...config});\n }\n\n /**\n * This endpoint patches a specific category.\n * @param id\n * @param data\n * @param config\n */\n static patchASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return apiRequest({url: Endpoints.PatchCategory.url({id}), method: Endpoints.PatchCategory.method, data: data, ...config});\n }\n\n /**\n * This endpoint deletes a specific category identified by {id}.\n * @param id\n * @param config\n */\n static deleteASpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({url: Endpoints.DeleteCategory.url({id}), method: Endpoints.DeleteCategory.method, ...config});\n }\n\n /**\n * This endpoint returns the audience of a specific category.\n * @param id\n * @param config\n */\n static getCategoryAudience(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType> {\n return apiRequest({url: Endpoints.CategoryAudience.url({id}), method: Endpoints.CategoryAudience.method, ...config});\n }\n\n /**\n * This endpoint returns all followers of a specific category.\n * @param id\n * @param config\n */\n static getCategoryFollowers(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({url: Endpoints.CategoryFollowers.url({id}), method: Endpoints.CategoryFollowers.method, params, ...config});\n }\n\n /**\n * This endpoint retrieves the category feed.\n * @param id\n * @param config\n */\n static getCategoryFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return apiRequest({url: Endpoints.CategoryFeed.url({id}), method: Endpoints.CategoryFeed.method, params, ...config});\n }\n\n /**\n * This endpoint retrieves the category trending feed.\n * @param id\n * @param params\n * @param config\n */\n static getCategoryTrendingFeed(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n const p = urlParams(params);\n return apiRequest({url: `${Endpoints.CategoryTrendingFeed.url({id})}?${p.toString()}`, method: Endpoints.CategoryTrendingFeed.method, ...config});\n }\n\n /**\n * This endpoint returns all trending followers of a specific category during last n days (default 90) .\n * @param id\n * @param config\n */\n static getCategoryTrendingFollowers(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({url: Endpoints.CategoryTrendingPeople.url({id}), method: Endpoints.CategoryTrendingPeople.method, params, ...config});\n }\n\n /**\n * This endpoint follows a category.\n * @param id\n * @param config\n */\n static followCategory(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({url: Endpoints.FollowCategory.url({id}), method: Endpoints.FollowCategory.method, ...config});\n }\n\n /**\n * This endpoint returns is_followed = true if the category (identified in path) is followed by the authenticated user.\n * @param id\n * @param config\n */\n static checkCategoryIsFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType> {\n return apiRequest({url: Endpoints.CheckCategoryIsFollowed.url({id}), method: Endpoints.CheckCategoryIsFollowed.method, ...config});\n }\n\n /**\n * This endpoint retrieves all followed categories by the user.\n * @param params\n * @param config\n */\n static getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n const p = urlParams(params);\n return apiRequest({url: `${Endpoints.CategoriesFollowed.url({})}?${p.toString()}`, method: Endpoints.CategoriesFollowed.method, ...config});\n }\n\n /**\n * This endpoint retrieves all categories ordered by the number of followers (in descending order).\n * @param params\n * @param config\n */\n static getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.PopularCategories.url({})}?${p.toString()}`, method: Endpoints.PopularCategories.method});\n }\n}\n\n/**\n *\n :::tipCategory service can be used in the following way:\n ```jsx\n 1. Import the service from our library:\n\n import {CategoryService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllCategories` will return the paginated list of categories.\n\n async getAllCategories() {\n return await CategoryService.getAllCategories();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificCategory(categoryId) {\n return await CategoryService.getSpecificCategory(categoryId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class CategoryService {\n static async getAllCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return CategoryApiClient.getAllCategories(params, config);\n }\n\n static async searchCategory(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return CategoryApiClient.searchCategory(params, config);\n }\n\n static async createCategory(data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return CategoryApiClient.createCategory(data, config);\n }\n\n static async getSpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return CategoryApiClient.getSpecificCategory(id, config);\n }\n\n static async updateASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return CategoryApiClient.updateASpecificCategory(id, data, config);\n }\n\n static async patchASpecificCategory(id: number | string, data: SCCategoryType, config?: AxiosRequestConfig): Promise<SCCategoryType> {\n return CategoryApiClient.patchASpecificCategory(id, data, config);\n }\n\n static async deleteASpecificCategory(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return CategoryApiClient.deleteASpecificCategory(id, config);\n }\n\n static async getCategoryAudience(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryAudienceType> {\n return CategoryApiClient.getCategoryAudience(id, config);\n }\n\n static async getCategoryFollowers(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n return CategoryApiClient.getCategoryFollowers(id, params, config);\n }\n\n static async getCategoryFeed(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return CategoryApiClient.getCategoryFeed(id, params, config);\n }\n\n static async getCategoryTrendingFeed(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return CategoryApiClient.getCategoryTrendingFeed(id, params, config);\n }\n\n static async getCategoryTrendingFollowers(\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n return CategoryApiClient.getCategoryTrendingFollowers(id, params, config);\n }\n\n static async followCategory(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return CategoryApiClient.followCategory(id, config);\n }\n\n static async checkCategoryIsFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCCategoryFollowedStatusType> {\n return CategoryApiClient.checkCategoryIsFollowed(id, config);\n }\n\n static async getFollowedCategories(params?: CategoryParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return CategoryApiClient.getFollowedCategories(params, config);\n }\n\n static async getPopularCategories(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return CategoryApiClient.getPopularCategories(params, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {SCCommentType, SCFlagType, SCFlagTypeEnum, SCVoteType} from '@selfcommunity/types';\nimport {CommentCreateParams, CommentListParams, SCPaginatedResponse} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface CommentApiClientInterface {\n getAllComments(params: CommentListParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCommentType>>;\n createComment(data: CommentCreateParams, config?: AxiosRequestConfig): Promise<SCCommentType>;\n getASpecificComment(id: number | string, config?: AxiosRequestConfig): Promise<SCCommentType>;\n updateComment(id: number | string, text: string, config?: AxiosRequestConfig): Promise<SCCommentType>;\n deleteComment(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n restoreComment(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n getSpecificCommentVotesList(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCVoteType>>;\n upvoteComment(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n getSpecificCommentFlags(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFlagType>>;\n flagComment(id: number | string, flagType: SCFlagTypeEnum, config?: AxiosRequestConfig): Promise<any>;\n getSpecificCommentFlagStatus(id: number | string, config?: AxiosRequestConfig): Promise<SCFlagType>;\n}\n\n/**\n * Contains all the endpoints needed to manage comments.\n */\n\nexport class CommentApiClient {\n /**\n * This endpoint retrieves all comments.\n * @param params\n * @param config\n */\n static getAllComments(params: CommentListParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCommentType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.Comments.url({})}?${p.toString()}`, method: Endpoints.Comments.method});\n }\n\n /**\n * This endpoint creates a comment.\n * @param data\n * @param config\n */\n static createComment(data: CommentCreateParams, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return apiRequest({...config, url: Endpoints.NewComment.url({}), method: Endpoints.NewComment.method, data: data});\n }\n\n /**\n * This endpoint retrieves a specific comment using ID.\n * @param id\n * @param config\n */\n static getASpecificComment(id: number | string, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return apiRequest({...config, url: Endpoints.Comment.url({id}), method: Endpoints.Comment.method});\n }\n\n /**\n * This endpoint updates a specific comment. The logged user must be the comment creator.\n * @param id\n * @param text\n * @param config\n */\n static updateComment(id: number | string, text: string, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return apiRequest({...config, url: Endpoints.UpdateComment.url({id}), method: Endpoints.UpdateComment.method, data: {text: text}});\n }\n\n /**\n * This endpoint deletes a specific comment using ID. The logged user must be the comment creator.\n * @param id\n * @param config\n */\n static deleteComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.DeleteComment.url({id}), method: Endpoints.DeleteComment.method});\n }\n\n /**\n * This endpoint restores a specific comment using ID. The logged user must be the comment creator.\n * @param id\n * @param config\n */\n static restoreComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.RestoreComment.url({id}), method: Endpoints.RestoreComment.method});\n }\n\n /**\n * This endpoint retrieves all votes for a specific comment.\n * @param id\n * @param config\n */\n static getSpecificCommentVotesList(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCVoteType>> {\n return apiRequest({...config, url: Endpoints.CommentVotesList.url({id}), method: Endpoints.CommentVotesList.method});\n }\n\n /**\n * This endpoint upvotes a specific comment.\n * @param id\n * @param config\n */\n static upvoteComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.CommentVote.url({id}), method: Endpoints.CommentVote.method});\n }\n\n /**\n * This endpoint retrieves a List of Flags for a Specific Comment.\n * This operation requires moderation role.\n * @param id\n * @param config\n */\n static getSpecificCommentFlags(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFlagType>> {\n return apiRequest({...config, url: Endpoints.CommentFlagList.url({id}), method: Endpoints.CommentFlagList.method});\n }\n\n /**\n * This endpoint flags a specific comment.\n * @param id\n * @param flagType\n * @param config\n */\n static flagComment(id: number | string, flagType: SCFlagTypeEnum, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.FlagComment.url({id}), method: Endpoints.FlagComment.method, data: {flagType: flagType}});\n }\n\n /**\n * This endpoint retrieves, if exists, a flag for this contribute created by the user logged.\n * @param id\n * @param config\n */\n static getSpecificCommentFlagStatus(id: number | string, config?: AxiosRequestConfig): Promise<SCFlagType> {\n return apiRequest({...config, url: Endpoints.CommentFlagStatus.url({id}), method: Endpoints.CommentFlagStatus.method});\n }\n}\n\n/**\n *\n :::tipComment service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {CommentService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllComments` will return the paginated list of comments.\n\n async getAllComments() {\n return await CommentService.getAllComments();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASpecificComment(commentId) {\n return await CommentService.getASpecificComment(commentId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class CommentService {\n static async getAllComments(params: CommentListParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCommentType>> {\n return CommentApiClient.getAllComments(params, config);\n }\n static async createComment(data: CommentCreateParams, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return CommentApiClient.createComment(data, config);\n }\n static async getASpecificComment(id: number | string, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return CommentApiClient.getASpecificComment(id, config);\n }\n static async updateComment(id: number | string, text: string, config?: AxiosRequestConfig): Promise<SCCommentType> {\n return CommentApiClient.updateComment(id, text, config);\n }\n static async deleteComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return CommentApiClient.deleteComment(id, config);\n }\n static async restoreComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return CommentApiClient.restoreComment(id, config);\n }\n static async getSpecificCommentVotesList(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCVoteType>> {\n return CommentApiClient.getSpecificCommentVotesList(id, config);\n }\n static async upvoteComment(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return CommentApiClient.upvoteComment(id, config);\n }\n static async getSpecificCommentFlags(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFlagType>> {\n return CommentApiClient.getSpecificCommentFlags(id, config);\n }\n static async flagComment(id: number | string, flagType: SCFlagTypeEnum, config?: AxiosRequestConfig): Promise<any> {\n return CommentApiClient.flagComment(id, flagType, config);\n }\n static async getSpecificCommentFlagStatus(id: number | string, config?: AxiosRequestConfig): Promise<SCFlagType> {\n return CommentApiClient.getSpecificCommentFlagStatus(id, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCCustomAdvType} from '@selfcommunity/types';\nimport {CustomAdvParams, SCPaginatedResponse} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface CustomAdvApiClientInterface {\n getASpecificCustomAdv(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomAdvType>;\n getAllCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>>;\n searchCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>>;\n}\n/**\n * Contains all the endpoints needed to manage custom advs.\n */\n\nexport class CustomAdvApiClient {\n /**\n * This endpoint retrieves a specific custom adv.\n * @param id\n * @param config\n */\n static getASpecificCustomAdv(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomAdvType> {\n return apiRequest({...config, url: Endpoints.CustomAdv.url({id}), method: Endpoints.CustomAdv.method});\n }\n\n /**\n * This endpoint retrieves all custom advs.\n * @param params\n * @param config\n */\n static getAllCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.CustomAdvList.url({})}?${p.toString()}`, method: Endpoints.CustomAdvList.method});\n }\n\n /**\n * This endpoint performs search of a Custom Adv\n * @param params\n * @param config\n */\n static searchCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.CustomAdvSearch.url({})}?${p.toString()}`, method: Endpoints.CustomAdvSearch.method});\n }\n}\n\n/**\n *\n :::tipCustom Adv service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {CustomAdvService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllCustomAdv` will return the paginated list of advs.\n\n async getAllCustomAdv() {\n return await CustomAdvService.getAllCustomAdv();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASpecificCustomAdv(customAdvId) {\n return await CustomAdvService.getASpecificCustomAdv(customAdvId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class CustomAdvService {\n static async getASpecificCustomAdv(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomAdvType> {\n return CustomAdvApiClient.getASpecificCustomAdv(id, config);\n }\n static async getAllCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>> {\n return CustomAdvApiClient.getAllCustomAdv(params, config);\n }\n static async searchCustomAdv(params?: CustomAdvParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomAdvType>> {\n return CustomAdvApiClient.searchCustomAdv(params, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {BaseGetParams, BaseSearchParams, SCPaginatedResponse} from '../../types';\nimport {SCCustomMenuType} from '@selfcommunity/types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface CustomMenuApiClientInterface {\n getASpecificCustomMenu(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomMenuType>;\n getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;\n getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType>;\n searchCustomMenus(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>>;\n}\n/**\n * Contains all the endpoints needed to manage custom menus.\n */\n\nexport class CustomMenuApiClient {\n /**\n * This endpoint retrieves a specific custom menu.\n * @param id\n * @param config\n */\n static getASpecificCustomMenu(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomMenuType> {\n return apiRequest({...config, url: Endpoints.CustomMenu.url({id}), method: Endpoints.CustomMenu.method});\n }\n\n /**\n * This endpoint retrieves all custom menus.\n * @param params\n * @param config\n */\n static getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetCustomMenus.url({})}?${p.toString()}`, method: Endpoints.GetCustomMenus.method});\n }\n\n /**\n * This endpoint retrieves the base custom menu.\n * @param config\n */\n static getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType> {\n return apiRequest({...config, url: Endpoints.CustomMenu.url({id: 'base'}), method: Endpoints.CustomMenu.method});\n }\n\n /**\n * This endpoint performs search of a Custom Menu\n * @param params\n * @param config\n */\n static searchCustomMenus(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.CustomMenuSearch.url({})}?${p.toString()}`, method: Endpoints.CustomMenuSearch.method});\n }\n}\n\n/**\n *\n :::tip Custom Menu service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {CustomMenuService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllCustomMenus` will return the paginated list of custom menus.\n\n async getAllCustomMenus() {\n return await CustomMenuService.getAllCustomMenus();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASpecificCustomMenu(customMenuId) {\n return await CustomMenuService.getASpecificCustomMenu(customMenuId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class CustomMenuService {\n static async getASpecificCustomMenu(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomMenuType> {\n return CustomMenuApiClient.getASpecificCustomMenu(id, config);\n }\n static async getAllCustomMenus(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>> {\n return CustomMenuApiClient.getAllCustomMenus(params, config);\n }\n static async getBaseCustomMenu(config?: AxiosRequestConfig): Promise<SCCustomMenuType> {\n return CustomMenuApiClient.getBaseCustomMenu(config);\n }\n static async searchCustomMenus(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomMenuType>> {\n return CustomMenuApiClient.searchCustomMenus(params, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {CustomPageParams, CustomPageSearchParams, SCPaginatedResponse} from '../../types';\nimport {SCCustomPageType} from '@selfcommunity/types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface CustomPageApiClientInterface {\n getASpecificCustomPage(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomPageType>;\n getAllCustomPages(params?: CustomPageParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>>;\n searchCustomPages(params?: CustomPageSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>>;\n}\n/**\n * Contains all the endpoints needed to manage custom pages.\n */\n\nexport class CustomPageApiClient {\n /**\n * This endpoint retrieves a specific custom page.\n * @param id\n * @param config\n */\n static getASpecificCustomPage(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomPageType> {\n return apiRequest({...config, url: Endpoints.CustomPage.url({id}), method: Endpoints.CustomPage.method});\n }\n\n /**\n * This endpoint retrieves all custom pages.\n * @param params\n * @param config\n */\n static getAllCustomPages(params?: CustomPageParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetCustomPages.url({})}?${p.toString()}`, method: Endpoints.GetCustomPages.method});\n }\n\n /**\n * This endpoint performs search of a Custom Page\n * @param params\n * @param config\n */\n static searchCustomPages(params?: CustomPageSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.CustomPageSearch.url({})}?${p.toString()}`, method: Endpoints.CustomPageSearch.method});\n }\n}\n\n/**\n *\n :::tipCustom Page service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {CustomPageService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllCustomPages` will return the paginated list of custom pages.\n\n async getAllCustomPages() {\n return await CustomPageService.getAllCustomPages();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASpecificCustomPage(customPageId) {\n return await CustomPageService.getASpecificCustomPage(customPageId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class CustomPageService {\n static async getASpecificCustomPage(id: number | string, config?: AxiosRequestConfig): Promise<SCCustomPageType> {\n return CustomPageApiClient.getASpecificCustomPage(id, config);\n }\n static async getAllCustomPages(params?: CustomPageParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>> {\n return CustomPageApiClient.getAllCustomPages(params, config);\n }\n static async searchCustomPages(params?: CustomPageSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCustomPageType>> {\n return CustomPageApiClient.searchCustomPages(params, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCDataPortabilityType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface DataPortabilityApiClientInterface {\n generateDataPortability(config?: AxiosRequestConfig): Promise<SCDataPortabilityType>;\n downloadDataPortability(config?: AxiosRequestConfig): Promise<any>;\n dataPortabilityStatus(config?: AxiosRequestConfig): Promise<SCDataPortabilityType>;\n}\n/**\n * Contains all the endpoints needed to manage data portability.\n */\n\nexport class DataPortabilityApiClient {\n /**\n * This endpoint generates data portability.\n * @param config\n */\n static generateDataPortability(config?: AxiosRequestConfig): Promise<SCDataPortabilityType> {\n return apiRequest({url: Endpoints.GenerateDataPortability.url({}), method: Endpoints.GenerateDataPortability.method, ...config});\n }\n\n /**\n * This endpoint downloads data portability.\n * @param config\n */\n static downloadDataPortability(config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n url: Endpoints.DataPortabilityDownload.url({}),\n method: Endpoints.DataPortabilityDownload.method,\n responseType: 'blob',\n ...config\n });\n }\n\n /**\n * This endpoint retrieves data portability status.\n * @param config\n */\n static dataPortabilityStatus(config?: AxiosRequestConfig): Promise<SCDataPortabilityType> {\n return apiRequest({url: Endpoints.DataPortabilityStatus.url({}), method: Endpoints.DataPortabilityStatus.method, ...config});\n }\n}\n\n/**\n *\n :::tipData Portability service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {DataPortabilityService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `generateDataPortability` will return the generated data portability.\n\n async generateDataPortability() {\n return await DataPortabilityService.generateDataPortability();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class DataPortabilityService {\n static async generateDataPortability(config?: AxiosRequestConfig): Promise<SCDataPortabilityType> {\n return DataPortabilityApiClient.generateDataPortability(config);\n }\n static async downloadDataPortability(config?: AxiosRequestConfig): Promise<any> {\n return DataPortabilityApiClient.downloadDataPortability(config);\n }\n static async dataPortabilityStatus(config?: AxiosRequestConfig): Promise<SCDataPortabilityType> {\n return DataPortabilityApiClient.dataPortabilityStatus(config);\n }\n}\n","import {BaseGetParams, EmbedSearchParams, EmbedUpdateParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCEmbedType, SCFeedUnitType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface EmbedApiClientInterface {\n getAllEmbeds(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>>;\n createEmbed(data: SCEmbedType, config?: AxiosRequestConfig): Promise<SCEmbedType>;\n searchEmbed(params?: EmbedSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>>;\n getSpecificEmbed(id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedType>;\n updateASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType>;\n patchASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType>;\n getEmbedFeed(embed_type?: string, embed_id?: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getSpecificEmbedFeed(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n}\n/**\n * Contains all the endpoints needed to manage embeds.\n */\n\nexport class EmbedApiClient {\n /**\n * This endpoint retrieves all embeds.\n * @param params\n * @param config\n */\n static getAllEmbeds(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.EmbedList.url({})}?${p.toString()}`, method: Endpoints.EmbedList.method});\n }\n\n /**\n * This endpoint creates an embed. This operation requires admin role.\n * @param data\n * @param config\n */\n static createEmbed(data: SCEmbedType, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return apiRequest({...config, url: Endpoints.EmbedCreate.url({}), method: Endpoints.EmbedCreate.method, data});\n }\n\n /**\n * This endpoint performs embed search.\n * @param params\n * @param config\n */\n static searchEmbed(params?: EmbedSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.EmbedSearch.url({})}?${p.toString()}`, method: Endpoints.EmbedSearch.method});\n }\n\n /**\n * This endpoint retrieves a specific embed using ID.\n * @param id\n * @param config\n */\n static getSpecificEmbed(id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return apiRequest({...config, url: Endpoints.Embed.url({id}), method: Endpoints.Embed.method});\n }\n\n /**\n * This endpoint updates a specific embed. This operation requires admin role.\n * @param id\n * @param data\n * @param config\n */\n static updateASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return apiRequest({...config, url: Endpoints.UpdateEmbed.url({id}), method: Endpoints.UpdateEmbed.method, data: data});\n }\n\n /**\n * This endpoint patches a specific embed. This operation requires admin role.\n * @param id\n * @param data\n * @param config\n */\n static patchASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return apiRequest({...config, url: Endpoints.PatchEmbed.url({id}), method: Endpoints.PatchEmbed.method, data: data});\n }\n\n /**\n * This endpoint retrieves the embed's feed which contains Feed that has the Embed as associated media.\n * @param embed_type\n * @param embed_id\n * @param config\n */\n static getEmbedFeed(embed_type?: string, embed_id?: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n const p = urlParams({...(embed_type && {embed_type: embed_type}), ...(embed_id && {embed_id: embed_id})});\n return apiRequest({...config, url: `${Endpoints.EmbedFeed.url({})}?${p.toString()}`, method: Endpoints.EmbedFeed.method});\n }\n\n /**\n * This endpoint retrieves the embed's feed which contains Feed that has an Embed as associated media.\n * @param id\n * @param config\n */\n static getSpecificEmbedFeed(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return apiRequest({...config, url: Endpoints.SpecificEmbedFeed.url({id}), method: Endpoints.SpecificEmbedFeed.method});\n }\n}\n\n/**\n *\n :::tipEmbed service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {EmbedService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllEmbeds` will return the paginated list of embeds.\n\n async getAllEmbeds() {\n return await EmbedService.getAllEmbeds();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificEmbed(embedId) {\n return await EmbedService.getSpecificEmbed(embedId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class EmbedService {\n static async getAllEmbeds(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>> {\n return EmbedApiClient.getAllEmbeds(params, config);\n }\n\n static async searchEmbed(params?: EmbedSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedType>> {\n return EmbedApiClient.searchEmbed(params, config);\n }\n\n static async createEmbed(data: SCEmbedType, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return EmbedApiClient.createEmbed(data, config);\n }\n\n static async getSpecificEmbed(id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return EmbedApiClient.getSpecificEmbed(id, config);\n }\n\n static async updateASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return EmbedApiClient.updateASpecificEmbed(id, data, config);\n }\n\n static async patchASpecificEmbed(id: number | string, data?: EmbedUpdateParams, config?: AxiosRequestConfig): Promise<SCEmbedType> {\n return EmbedApiClient.patchASpecificEmbed(id, data, config);\n }\n\n static async getEmbedFeed(embed_type?: string, embed_id?: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return EmbedApiClient.getEmbedFeed(embed_type, embed_id, config);\n }\n\n static async getSpecificEmbedFeed(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return EmbedApiClient.getSpecificEmbedFeed(id, config);\n }\n}\n","import {FeatureParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCFeatureType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface FeatureApiClientInterface {\n getAllFeatures(params?: FeatureParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeatureType>>;\n}\n/**\n * Contains all the endpoints needed to manage features.\n */\n\nexport class FeatureApiClient {\n /**\n * This endpoint retrieves all features.\n * @param params\n * @param config\n */\n static getAllFeatures(params?: FeatureParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeatureType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.Feature.url({})}?${p.toString()}`, method: Endpoints.Feature.method});\n }\n}\n\n/**\n *\n :::tipFeature service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {FeatureService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllFeatures` will return the paginated list of features.\n\n async getAllFeatures() {\n return await FeatureService.getAllFeatures();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class FeatureService {\n static async getAllFeatures(params?: FeatureParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeatureType>> {\n return FeatureApiClient.getAllFeatures(params, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCFeedUnitType, SCFeedUnseenCountType} from '@selfcommunity/types';\nimport {FeedParams, SCPaginatedResponse} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface FeedApiClientInterface {\n getMainFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getExploreFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getMainFeedUnseenCount(config?: AxiosRequestConfig): Promise<SCFeedUnseenCountType>;\n markReadASpecificFeedObj(object: number[], config?: AxiosRequestConfig): Promise<any>;\n likeFeedObjs(object: number[], config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n}\n/**\n * Contains all the endpoints needed to manage feed.\n */\n\nexport class FeedApiClient {\n /**\n * This endpoint retrieves the main (home) feed.\n * @param params\n * @param config\n */\n static getMainFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.MainFeed.url({})}?${p.toString()}`, method: Endpoints.MainFeed.method});\n }\n\n /**\n * This endpoint retrieves explore feed. This endpoint can be disabled by setting explore_stream_enabled community option to false.\n * @param params\n * @param config\n */\n static getExploreFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.ExploreFeed.url({})}?${p.toString()}`, method: Endpoints.ExploreFeed.method});\n }\n\n /**\n * This endpoint retrieves Main Feed unseen count.\n * @param config\n */\n static getMainFeedUnseenCount(config?: AxiosRequestConfig): Promise<SCFeedUnseenCountType> {\n return apiRequest({...config, url: Endpoints.MainFeedUnseenCount.url({}), method: Endpoints.MainFeedUnseenCount.method});\n }\n\n /**\n * This endpoint marks as read a list of objects in the feed. Usually it is called when a Feed object enter the viewport of the user.\n * @param object\n * @param config\n */\n static markReadASpecificFeedObj(object: number[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.FeedObjectMarkRead.url({}), method: Endpoints.FeedObjectMarkRead.method, data: {object: object}});\n }\n\n /**\n * This endpoint retrieves a list of Feed objects similar to the id of passed objects\n * @param object\n * @param config\n */\n static likeFeedObjs(object: number[], config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return apiRequest({...config, url: Endpoints.FeedLikeThese.url({}), method: Endpoints.FeedLikeThese.method, data: {object: object}});\n }\n}\n\n/**\n *\n :::tipFeed service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {FeedService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getMainFeed` will return the paginated list of main feed posts.\n\n async getMainFeed() {\n return await FeedService.getMainFeed();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async likeFeedObjs(objIds) {\n return await FeedService.likeFeedObjs(objIds);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class FeedService {\n static async getMainFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return FeedApiClient.getMainFeed(params, config);\n }\n static async getExploreFeed(params?: FeedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return FeedApiClient.getExploreFeed(params, config);\n }\n\n static async getMainFeedUnseenCount(config?: AxiosRequestConfig): Promise<SCFeedUnseenCountType> {\n return FeedApiClient.getMainFeedUnseenCount(config);\n }\n static async markReadASpecificFeedObj(object: number[], config?: AxiosRequestConfig): Promise<any> {\n return FeedApiClient.markReadASpecificFeedObj(object, config);\n }\n static async likeFeedObjs(object: number[], config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return FeedApiClient.likeFeedObjs(object, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport {BaseGetParams, BaseSearchParams, FeedObjCreateParams, FeedObjectPollVotesSearch, FeedObjGetParams, SCPaginatedResponse} from '../../types';\nimport Endpoints from '../../constants/Endpoints';\nimport {\n SCContributionType,\n SCFeedObjectFollowingStatusType,\n SCFeedObjectHideStatusType,\n SCFeedObjectSuspendedStatusType,\n SCFeedObjectType,\n SCFlagType,\n SCFlagTypeEnum,\n SCPollVoteType,\n SCUserType,\n SCVoteType\n} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface FeedObjectApiClientInterface {\n getAllFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: FeedObjGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n getUncommentedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n searchFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseSearchParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n createFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType>;\n getSpecificFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType>;\n updateFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType>;\n deleteFeedObject(type: Exclude<SCContributionType, SCContributionType.COMMENT>, id: number | string, config?: AxiosRequestConfig): Promise<any>;\n feedObjectContributorsList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>>;\n feedObjectSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n feedObjectUserSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>>;\n restoreFeedObject(type: Exclude<SCContributionType, SCContributionType.COMMENT>, id: number | string, config?: AxiosRequestConfig): Promise<any>;\n relatedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n voteFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n reaction?: number,\n config?: AxiosRequestConfig\n ): Promise<any>;\n feedObjectVotes(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCVoteType>>;\n feedObjectPollVote(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n choice: number,\n config?: AxiosRequestConfig\n ): Promise<any>;\n feedObjectPollVotesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: FeedObjectPollVotesSearch,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPollVoteType>>;\n followFeedObject(type: Exclude<SCContributionType, SCContributionType.COMMENT>, id: number | string, config?: AxiosRequestConfig): Promise<any>;\n feedObjectFollowingList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n checkIfFollowingFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectFollowingStatusType>;\n suspendFeedObject(type: Exclude<SCContributionType, SCContributionType.COMMENT>, id: number | string, config?: AxiosRequestConfig): Promise<any>;\n checkIfSuspendedFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectSuspendedStatusType>;\n feedObjectSuspendedList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n flagFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n flag_type: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<any>;\n feedObjectFlagList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>>;\n feedObjectFlagStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>>;\n hideFeedObject(type: Exclude<SCContributionType, SCContributionType.COMMENT>, id: number | string, config?: AxiosRequestConfig): Promise<any>;\n feedObjectHideStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectHideStatusType>;\n}\n/**\n * Contains all the endpoints needed to manage feed objs (discussions-posts-statuses).\n */\n\nexport class FeedObjectApiClient {\n /**\n * This endpoint retrieves all feed objs\n * @param type\n * @param params\n * @param config\n */\n static getAllFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: FeedObjGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.FeedObjectList.url({type})}?${p.toString()}`, method: Endpoints.FeedObjectList.method});\n }\n\n /**\n * This endpoint retrieves all uncommented feed objs\n * @param type\n * @param params\n * @param config\n */\n static getUncommentedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.FeedObjectsUncommented.url({type})}?${p.toString()}`,\n method: Endpoints.FeedObjectsUncommented.method\n });\n }\n\n /**\n * This endpoint performs search operation to feed objs\n * @param type\n * @param params\n * @param config\n */\n static searchFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseSearchParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.SearchFeedObject.url({type})}?${p.toString()}`, method: Endpoints.SearchFeedObject.method});\n }\n\n /**\n * This endpoint creates a feed obj\n * @param type\n * @param data\n * @param config\n */\n static createFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return apiRequest({...config, url: Endpoints.CreateFeedObject.url({type}), method: Endpoints.CreateFeedObject.method, data: data});\n }\n\n /**\n * This endpoint retrieves a specific feed obj using ID\n * @param type\n * @param id\n * @param config\n */\n static getSpecificFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return apiRequest({...config, url: Endpoints.FeedObject.url({type, id}), method: Endpoints.FeedObject.method});\n }\n\n /**\n * This endpoint updates a specific feed obj\n * @param type\n * @param id\n * @param data\n * @param config\n */\n static updateFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return apiRequest({...config, url: Endpoints.UpdateFeedObject.url({id, type}), method: Endpoints.UpdateFeedObject.method, data: data});\n }\n\n /**\n * This endpoint deletes a specific feed obj\n * @param type\n * @param id\n * @param config\n */\n static deleteFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.DeleteFeedObject.url({type, id}), method: Endpoints.DeleteFeedObject.method});\n }\n\n /**\n * This endpoint retrieves all contributors for a specific feed obj\n * @param type\n * @param id\n * @param params\n * @param config\n */\n static feedObjectContributorsList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.FeedObjectContributorsList.url({type, id})}?${p.toString()}`,\n method: Endpoints.FeedObjectContributorsList.method\n });\n }\n\n /**\n * This endpoint retrieves all shares for a specific feed obj\n * @param type\n * @param id\n * @param params\n * @param config\n */\n static feedObjectSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.FeedObjectSharesList.url({type, id})}?${p.toString()}`,\n method: Endpoints.FeedObjectSharesList.method\n });\n }\n\n /**\n * This endpoint retrieves all shares users for a specific feed obj\n * @param type\n * @param id\n * @param params\n * @param config\n */\n static feedObjectUserSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.FeedObjectUserSharesList.url({type, id})}?${p.toString()}`,\n method: Endpoints.FeedObjectUserSharesList.method\n });\n }\n\n /**\n *\n * @param type\n * @param id\n * @param config\n */\n static restoreFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.RestoreFeedObject.url({type, id}), method: Endpoints.RestoreFeedObject.method});\n }\n\n /**\n * This endpoint restores a feed obj\n * @param type\n * @param id\n * @param params\n * @param config\n */\n static relatedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.RelatedFeedObjects.url({type, id})}?${p.toString()}`,\n method: Endpoints.RelatedFeedObjects.method\n });\n }\n\n /**\n * This endpoint upvotes a specific feed obj\n * @param type\n * @param id\n * @param config\n * @param reaction\n */\n static voteFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n reaction?: number,\n config?: AxiosRequestConfig\n ): Promise<any> {\n const p = urlParams({...(reaction && {reaction: reaction})});\n return apiRequest({...config, url: `${Endpoints.Vote.url({type, id})}?${p.toString()}`, method: Endpoints.Vote.method});\n }\n\n /**\n * This endpoint retrieves all votes for a specific feed obj\n * @param type\n * @param id\n * @param params\n * @param config\n */\n static feedObjectVotes(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCVoteType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.VotesList.url({type, id})}?${p.toString()}`, method: Endpoints.VotesList.method});\n }\n\n /**\n * This endpoint upvotes a specific poll choice in a feed obj\n * @param type It can be only \"discussion\" or \"post\".\n * @param id\n * @param choice\n * @param config\n */\n static feedObjectPollVote(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n choice: number,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.PollVote.url({type, id}), method: Endpoints.PollVote.method, data: {choice: choice}});\n }\n\n /**\n * This endpoint retrieves all poll votes for a specific feed obj\n * @param type It can be only \"discussion\" or \"post\".\n * @param id\n * @param params\n * @param config\n */\n static feedObjectPollVotesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: FeedObjectPollVotesSearch,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPollVoteType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.PollVotesList.url({type, id})}?${p.toString()}`, method: Endpoints.PollVotesList.method});\n }\n\n /**\n * This endpoint follows a feed obj\n * @param type\n * @param id\n * @param config\n */\n static followFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.FollowContribution.url({id}), method: Endpoints.FollowContribution.method});\n }\n\n /**\n * This endpoint retrieves all feed objs followed by the authenticated user\n * @param type\n * @param params\n * @param config\n */\n static feedObjectFollowingList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.FeedObjectFollowingList.url({type})}?${p.toString()}`,\n method: Endpoints.FeedObjectFollowingList.method\n });\n }\n\n /**\n * This endpoint returns following = true if the feed obj (identified in path) is followed by the authenticated user\n * @param type\n * @param id\n * @param config\n */\n static checkIfFollowingFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectFollowingStatusType> {\n return apiRequest({...config, url: Endpoints.CheckIfFollowingFeedObject.url({type, id}), method: Endpoints.CheckIfFollowingFeedObject.method});\n }\n\n /**\n * This endpoint suspends the notifications for the selected feed obj\n * @param type\n * @param id\n * @param config\n */\n static suspendFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.UserSuspendContributionNotification.url({type, id}),\n method: Endpoints.UserSuspendContributionNotification.method\n });\n }\n\n /**\n * This endpoint returns suspended = true if the notifications for the feed obj (identified in path) is suspended by the authenticated user\n * @param type\n * @param id\n * @param config\n */\n static checkIfSuspendedFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectSuspendedStatusType> {\n return apiRequest({\n ...config,\n url: Endpoints.UserCheckContributionNotificationSuspended.url({type, id}),\n method: Endpoints.UserCheckContributionNotificationSuspended.method\n });\n }\n\n /**\n * This endpoint retrieves the list of feed obj which notifications are suspended by the authenticated user\n * @param type\n * @param params\n * @param config\n */\n static feedObjectSuspendedList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.UserListContributionNotificationSuspended.url({type})}?${p.toString()}`,\n method: Endpoints.UserListContributionNotificationSuspended.method\n });\n }\n\n /**\n * This endpoint flags a specific feed obj\n * @param type\n * @param id\n * @param flag_type\n * @param config\n */\n static flagFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n flag_type: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.Flag.url({type, id}), method: Endpoints.Flag.method, data: flag_type});\n }\n\n /**\n * Retrieves, if exists, a flag for this contribute created by the authenticated user\n * @param type\n * @param id\n * @param config\n */\n static feedObjectFlagStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return apiRequest({...config, url: Endpoints.FlagStatus.url({type, id}), method: Endpoints.FlagStatus.method});\n }\n\n /**\n * This endpoint retrieves a list of flags for a specific feed obj\n * @param type\n * @param id\n * @param config\n */\n static feedObjectFlagList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return apiRequest({...config, url: Endpoints.FeedObjectFlagList.url({type, id}), method: Endpoints.FeedObjectFlagList.method});\n }\n\n /**\n * This endpoint hides the feed obj for the logged user. The feed obj must be in show state\n * @param type\n * @param id\n * @param config\n */\n static hideFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return apiRequest({...config, url: Endpoints.HideFeedObject.url({type, id}), method: Endpoints.HideFeedObject.method});\n }\n\n /**\n * This endpoint retrieves if the feed obj has been hidden by the authenticated user (hidden = true)\n * @param type\n * @param id\n * @param config\n */\n static feedObjectHideStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectHideStatusType> {\n return apiRequest({...config, url: Endpoints.FeedObjectHideStatus.url({type, id}), method: Endpoints.FeedObjectHideStatus.method});\n }\n}\n\n/**\n *\n :::tipFeed Object service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {FeedObjectService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllFeedObjects` will return the paginated list of feed objs.\n\n async getAllFeedObjects(type) {\n return await FeedObjectService.getAllFeedObjects(type);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class FeedObjectService {\n static async getAllFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: FeedObjGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.getAllFeedObjects(type, params, config);\n }\n\n static async getUncommentedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.getUncommentedFeedObjects(type, params, config);\n }\n\n static async searchFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseSearchParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.searchFeedObject(type, params, config);\n }\n\n static async createFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return FeedObjectApiClient.createFeedObject(type, data, config);\n }\n\n static async getSpecificFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return FeedObjectApiClient.getSpecificFeedObject(type, id, config);\n }\n\n static async updateFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n data: FeedObjCreateParams,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectType> {\n return FeedObjectApiClient.updateFeedObject(type, id, data, config);\n }\n\n static async deleteFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.deleteFeedObject(type, id, config);\n }\n\n static async feedObjectContributorsList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>> {\n return FeedObjectApiClient.feedObjectContributorsList(type, id, params, config);\n }\n\n static async feedObjectSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.feedObjectSharesList(type, id, params, config);\n }\n\n static async feedObjectUserSharesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams\n ): Promise<SCPaginatedResponse<SCUserType>> {\n return FeedObjectApiClient.feedObjectUserSharesList(type, id, params);\n }\n\n static async restoreFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.restoreFeedObject(type, id, config);\n }\n\n static async relatedFeedObjects(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.relatedFeedObjects(type, id, params, config);\n }\n\n static async voteFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n reaction?: number,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.voteFeedObject(type, id, reaction, config);\n }\n static async feedObjectVotes(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCVoteType>> {\n return FeedObjectApiClient.feedObjectVotes(type, id, params, config);\n }\n static async feedObjectPollVote(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n choice: number,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.feedObjectPollVote(type, id, choice, config);\n }\n\n static async feedObjectPollVotesList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n params?: FeedObjectPollVotesSearch,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPollVoteType>> {\n return FeedObjectApiClient.feedObjectPollVotesList(type, id, params, config);\n }\n\n static async followFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.followFeedObject(type, id, config);\n }\n\n static async feedObjectFollowingList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.feedObjectFollowingList(type, params, config);\n }\n\n static async checkIfFollowingFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectFollowingStatusType> {\n return FeedObjectApiClient.checkIfFollowingFeedObject(type, id, config);\n }\n\n static async suspendFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.suspendFeedObject(type, id, config);\n }\n\n static async checkIfSuspendedFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectSuspendedStatusType> {\n return FeedObjectApiClient.checkIfSuspendedFeedObject(type, id, config);\n }\n static async feedObjectSuspendedList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return FeedObjectApiClient.feedObjectSuspendedList(type, params, config);\n }\n\n static async flagFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n flag_type: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.flagFeedObject(type, id, flag_type, config);\n }\n\n static async feedObjectFlagList(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return FeedObjectApiClient.feedObjectFlagList(type, id, config);\n }\n\n static async feedObjectFlagStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return FeedObjectApiClient.feedObjectFlagStatus(type, id, config);\n }\n static async hideFeedObject(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return FeedObjectApiClient.hideFeedObject(type, id, config);\n }\n\n static async feedObjectHideStatus(\n type: Exclude<SCContributionType, SCContributionType.COMMENT>,\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCFeedObjectHideStatusType> {\n return FeedObjectApiClient.feedObjectHideStatus(type, id, config);\n }\n}\n","import {IncubatorCreateParams, IncubatorSearchParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCIncubatorSubscriptionType, SCIncubatorType, SCUserType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface IncubatorApiClientInterface {\n getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;\n searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;\n getSpecificIncubator(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorType>;\n createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType>;\n getIncubatorSubscribers(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n subscribeToIncubator(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n checkIncubatorSubscription(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType>;\n}\n/**\n * Contains all the endpoints needed to manage incubators.\n */\n\nexport class IncubatorApiClient {\n /**\n * This endpoint retrieves all incubators.\n * @param params\n * @param config\n */\n static getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetAllIncubators.url({})}?${p.toString()}`, method: Endpoints.GetAllIncubators.method});\n }\n\n /**\n * This endpoint performs search od Incubators\n * @param params\n * @param config\n */\n static searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.SearchIncubators.url({})}?${p.toString()}`, method: Endpoints.SearchIncubators.method});\n }\n\n /**\n * This endpoint retrieves a specific incubator.\n * @param id\n * @param config\n */\n static getSpecificIncubator(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorType> {\n return apiRequest({...config, url: Endpoints.GetASpecificIncubator.url({id}), method: Endpoints.GetASpecificIncubator.method});\n }\n\n /**\n * This endpoint creates an incubator.\n * @param data\n * @param config\n */\n static createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType> {\n return apiRequest({...config, url: Endpoints.CreateAnIncubator.url({}), method: Endpoints.CreateAnIncubator.method, data: data});\n }\n\n /**\n * This endpoint returns all subscribers of a specific incubator.\n * @param id\n * @param config\n */\n static getIncubatorSubscribers(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({...config, url: Endpoints.GetIncubatorSubscribers.url({id}), method: Endpoints.GetIncubatorSubscribers.method});\n }\n\n /**\n * This endpoint subscribes to an incubator.\n * @param id\n * @param config\n */\n static subscribeToIncubator(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.SubscribeToIncubator.url({id}), method: Endpoints.SubscribeToIncubator.method});\n }\n\n /**\n * This endpoint returns subscribed = true if the incubator (identified in path) is subscribed by the authenticated user.\n * @param id\n * @param config\n */\n static checkIncubatorSubscription(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType> {\n return apiRequest({...config, url: Endpoints.CheckIncubatorSubscription.url({id}), method: Endpoints.CheckIncubatorSubscription.method});\n }\n}\n\n/**\n *\n :::tipIncubator service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {IncubatorService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllIncubators` will return the paginated list of incubators.\n\n async getAllIncubators() {\n return await IncubatorService.getAllIncubators();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificIncubator(incubatorId) {\n return await IncubatorService.getSpecificIncubator(incubatorId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class IncubatorService {\n static async getAllIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n return IncubatorApiClient.getAllIncubators(params, config);\n }\n\n static async searchIncubators(params?: IncubatorSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n return IncubatorApiClient.searchIncubators(params, config);\n }\n\n static async getSpecificIncubator(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorType> {\n return IncubatorApiClient.getSpecificIncubator(id, config);\n }\n static async createIncubator(data: IncubatorCreateParams, config?: AxiosRequestConfig): Promise<SCIncubatorType> {\n return IncubatorApiClient.createIncubator(data, config);\n }\n\n static async getIncubatorSubscribers(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return IncubatorApiClient.getIncubatorSubscribers(id, config);\n }\n\n static async subscribeToIncubator(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return IncubatorApiClient.subscribeToIncubator(id, config);\n }\n\n static async checkIncubatorSubscription(id: number | string, config?: AxiosRequestConfig): Promise<SCIncubatorSubscriptionType> {\n return IncubatorApiClient.checkIncubatorSubscription(id, config);\n }\n}\n","import {InsightContributionParams, InsightEmbedParams, InsightUserParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {\n SCContributionInsightCountersType,\n SCContributionInsightType,\n SCEmbedInsightCountersType,\n SCEmbedInsightType,\n SCUsersInsightCountersType,\n SCUsersInsightType\n} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface InsightApiClientInterface {\n getBestContributionInsight(\n params?: InsightContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCContributionInsightType>>;\n getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>>;\n getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>>;\n getContributionsInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType>;\n getEmbedsInsightCounters(type: string, id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType>;\n getUsersInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType>;\n}\n/**\n * Contains all the endpoints needed to manage insights.\n */\n\nexport class InsightApiClient {\n /**\n * This endpoint retrieves the best contribution insights list.\n * @param params\n * @param config\n */\n static getBestContributionInsight(\n params?: InsightContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCContributionInsightType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.InsightBestContribution.url({})}?${p.toString()}`,\n method: Endpoints.InsightBestContribution.method\n });\n }\n\n /**\n * This endpoint retrieves the best embed insights list. The operations of this endpoint is quite complex and returns different result structures based on the parameters passed. For example, pagination (and therefore the use of the offset parameter) is guaranteed only if the metadata and group_by parameter are not passed. If you are passing metadata you MUST pass also group_by. If you pass group_by the result will be not paginated and will contain only user defined custom embeds (not among these: 'sc_vimeo', 'sc_link', 'sc_shared_object').\n * @param params\n * @param config\n */\n static getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.InsightBestEmbed.url({})}?${p.toString()}`, method: Endpoints.InsightBestEmbed.method});\n }\n\n /**\n * This endpoint retrieves the best users insights list.\n * @param params\n * @param config\n */\n static getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.InsightBestUser.url({})}?${p.toString()}`, method: Endpoints.InsightBestUser.method});\n }\n\n /**\n * This endpoint retrieves a specific contribution's insight counters.\n * @param id\n * @param config\n */\n static getContributionsInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType> {\n return apiRequest({...config, url: Endpoints.InsightContributionCounter.url({id}), method: Endpoints.InsightContributionCounter.method});\n }\n\n /**\n * This endpoint retrieves a specific embed's insight counters.\n * @param type\n * @param id\n * @param config\n */\n static getEmbedsInsightCounters(type: string, id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType> {\n return apiRequest({...config, url: Endpoints.InsightEmbedCounter.url({type, id}), method: Endpoints.InsightEmbedCounter.method});\n }\n\n /**\n * This endpoint retrieves a specific user's insight counters.\n * @param id\n * @param config\n */\n static getUsersInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType> {\n return apiRequest({...config, url: Endpoints.InsightUserCounter.url({id}), method: Endpoints.InsightUserCounter.method});\n }\n}\n\n/**\n *\n :::tipInsight service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {InsightService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getBestContributionInsight` will return the paginated list of contribution insights.\n\n async getBestContributionInsight() {\n return await InsightService.getBestContributionInsight();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getEmbedsInsightCounters(embedType, embedId) {\n return await InsightService.getEmbedsInsightCounters(embedType, embedId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class InsightService {\n static async getBestContributionInsight(\n params?: InsightContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCContributionInsightType>> {\n return InsightApiClient.getBestContributionInsight(params, config);\n }\n\n static async getBestEmbedInsight(params?: InsightEmbedParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCEmbedInsightType>> {\n return InsightApiClient.getBestEmbedInsight(params, config);\n }\n\n static async getBestUsersInsight(params?: InsightUserParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUsersInsightType>> {\n return InsightApiClient.getBestUsersInsight(params, config);\n }\n\n static async getContributionsInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCContributionInsightCountersType> {\n return InsightApiClient.getContributionsInsightCounters(id, config);\n }\n\n static async getEmbedsInsightCounters(type: string, id: number | string, config?: AxiosRequestConfig): Promise<SCEmbedInsightCountersType> {\n return InsightApiClient.getEmbedsInsightCounters(type, id, config);\n }\n\n static async getUsersInsightCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUsersInsightCountersType> {\n return InsightApiClient.getUsersInsightCounters(id, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {SCInviteType} from '@selfcommunity/types';\n\nexport interface InviteApiClientInterface {\n getSpecificInvite(code: string, config?: AxiosRequestConfig): Promise<SCInviteType>;\n}\n\n/**\n * Contains all the endpoints needed to manage invite codes.\n */\nexport class InviteApiClient {\n /**\n * This endpoint retrieves a specific invite identified by invite code.\n * @param code\n * @param config\n */\n static getSpecificInvite(code: string, config?: AxiosRequestConfig): Promise<SCInviteType> {\n return apiRequest({...config, url: Endpoints.InviteCode.url({code}), method: Endpoints.User.method});\n }\n}\n\n/**\n *\n :::tip Invite service can be used in the following way:\n ```jsx\n 1. Import the service from our library:\n\n import {InviteService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `create` will return the paginated list of categories.\n\n async getSpecificInviteCode() {\n return await InviteService.getSpecificInvite();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async create(data) {\n return await InviteService.getSpecificInvite(code);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class InviteService {\n static async getSpecificInvite(code: string, config?: AxiosRequestConfig): Promise<SCInviteType> {\n return InviteApiClient.getSpecificInvite(code, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {LegalPageFilterParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {SCLegalPageAckType, SCLegalPageType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface LegalPageApiClientInterface {\n getLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>>;\n getSpecificLegalPage(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageType>;\n getAllRevisionsOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>>;\n getLastRevisionOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCLegalPageType>;\n searchLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>>;\n ackLegalPage(id: number | string, accept?: number, config?: AxiosRequestConfig): Promise<SCLegalPageAckType>;\n getSpecificUserAck(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType>;\n userAckList(config?: AxiosRequestConfig): Promise<SCLegalPageAckType[]>;\n}\n/**\n * Contains all the endpoints needed to manage legal pages.\n */\n\nexport class LegalPageApiClient {\n /**\n * This endpoint retrieves all legal pages.\n * @param params\n * @param config\n */\n static getLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetLegalPages.url({})}?${p.toString()}`, method: Endpoints.GetLegalPages.method});\n }\n\n /**\n * This endpoint retrieves a specific legal page.\n * @param id\n * @param config\n */\n static getSpecificLegalPage(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageType> {\n return apiRequest({...config, url: Endpoints.LegalPage.url({id}), method: Endpoints.LegalPage.method});\n }\n\n /**\n * This endpoint retrieves all revisions of a legal page.\n * @param id\n * @param config\n */\n static getAllRevisionsOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n return apiRequest({...config, url: Endpoints.LegalPageRevisions.url({policy}), method: Endpoints.LegalPageRevisions.method});\n }\n\n /**\n * This endpoint retrieves all last revisions of legal pages.\n */\n static getAllLastRevisionsOfLegalPages(config?: AxiosRequestConfig): Promise<SCLegalPageType[]> {\n return apiRequest({...config, url: Endpoints.LegalPagesLastRevision.url({}), method: Endpoints.LegalPagesLastRevision.method});\n }\n\n /**\n * This endpoint retrieves last revision of a legal page.\n * @param id\n * @param config\n */\n static getLastRevisionOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCLegalPageType> {\n return apiRequest({...config, url: Endpoints.LegalPageLastRevision.url({policy}), method: Endpoints.LegalPageLastRevision.method});\n }\n\n /**\n * This endpoint performs search of a Legal Page.\n * @param params\n * @param config\n */\n static searchLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.SearchLegalPages.url({})}?${p.toString()}`, method: Endpoints.SearchLegalPages.method});\n }\n\n /**\n *\n * @param id\n * @param accept Accept or not accept a legal page, valid values are: ('true', 'on', '1').\n * @param config\n */\n static ackLegalPage(id: number | string, accept?: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType> {\n return apiRequest({...config, url: Endpoints.AckLegalPage.url({id}), method: Endpoints.AckLegalPage.method, data: {accept: accept} ?? null});\n }\n\n /**\n * This endpoint retrieves a specific user ack.\n * @param id\n * @param config\n */\n static getSpecificUserAck(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType> {\n return apiRequest({...config, url: Endpoints.SpecificUserAck.url({id}), method: Endpoints.SpecificUserAck.method});\n }\n\n /**\n * This endpoint retrieves all user acks.\n */\n static userAckList(config?: AxiosRequestConfig): Promise<SCLegalPageAckType[]> {\n return apiRequest({...config, url: Endpoints.UserAckList.url({}), method: Endpoints.UserAckList.method});\n }\n}\n\n/**\n *\n :::tipLegalPage service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {LegalPageService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getLegalPages` will return the paginated list of legal pages.\n\n async getLegalPages() {\n return await LegalPageService.getLegalPages();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificLegalPage(legalPageId) {\n return await LegalPageService.getSpecificLegalPage(legalPageId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class LegalPageService {\n static async getLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n return LegalPageApiClient.getLegalPages(params, config);\n }\n\n static async getSpecificLegalPage(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageType> {\n return LegalPageApiClient.getSpecificLegalPage(id, config);\n }\n\n static async getAllRevisionsOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n return LegalPageApiClient.getAllRevisionsOfLegalPage(policy, config);\n }\n\n static async getAllLastRevisionsOfLegalPages(config?: AxiosRequestConfig): Promise<SCLegalPageType[]> {\n return LegalPageApiClient.getAllLastRevisionsOfLegalPages(config);\n }\n\n static async getLastRevisionOfLegalPage(policy: string, config?: AxiosRequestConfig): Promise<SCLegalPageType> {\n return LegalPageApiClient.getLastRevisionOfLegalPage(policy, config);\n }\n\n static async searchLegalPages(params?: LegalPageFilterParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLegalPageType>> {\n return LegalPageApiClient.searchLegalPages(params, config);\n }\n\n static async ackLegalPage(id: number | string, accept?: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType> {\n return LegalPageApiClient.ackLegalPage(id, accept, config);\n }\n\n static async getSpecificUserAck(id: number | string, config?: AxiosRequestConfig): Promise<SCLegalPageAckType> {\n return LegalPageApiClient.getSpecificUserAck(id, config);\n }\n\n static async userAckList(config?: AxiosRequestConfig): Promise<SCLegalPageAckType[]> {\n return LegalPageApiClient.userAckList(config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {BaseSearchParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {SCLocalityType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface LocalityApiClientInterface {\n getLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>>;\n searchLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>>;\n}\n/**\n * Contains all the endpoints needed to manage localities.\n */\n\nexport class LocalityApiClient {\n /**\n * This endpoint retrieves the list of available localities.\n * @param params\n * @param config\n */\n static getLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetLocalities.url({})}?${p.toString()}`, method: Endpoints.GetLocalities.method});\n }\n\n /**\n * This endpoint searches localities\n * @param params\n * @param config\n */\n static searchLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>> {\n const p = urlParams(params);\n return apiRequest({\n ...config,\n url: `${Endpoints.ComposerLocalitySearch.url({})}?${p.toString()}`,\n method: Endpoints.ComposerLocalitySearch.method\n });\n }\n}\n\n/**\n *\n :::tipLocality service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {LocalityService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getLocalities` will return the paginated list of localities.\n\n async getLocalities() {\n return await LocalityService.getLocalities();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class LocalityService {\n static async getLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>> {\n return LocalityApiClient.getLocalities(params, config);\n }\n static async searchLocalities(params?: BaseSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCLocalityType>> {\n return LocalityApiClient.searchLocalities(params, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCPrizeType, SCPrizeUserStatusType, SCPrizeUserType} from '@selfcommunity/types';\nimport {SCPaginatedResponse, LoyaltyPrizeParams} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface LoyaltyApiClientInterface {\n getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>>;\n createPrize(data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;\n getSpecificPrize(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeType>;\n updatePrize(id: number | string, data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;\n patchPrize(id: number | string, data?: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType>;\n getAllPrizeRequests(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeUserType>>;\n createPrizeRequest(prize: number, config?: AxiosRequestConfig): Promise<SCPrizeUserType>;\n getSpecificPrizeRequest(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeUserType>;\n patchPrizeRequest(id: number | string, status?: SCPrizeUserStatusType, config?: AxiosRequestConfig): Promise<SCPrizeUserType>;\n}\n/**\n * Contains all the endpoints needed to manage loyalty program.\n */\n\nexport class LoyaltyApiClient {\n /**\n * This endpoint retrieves all prizes.\n * @param config\n */\n static getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>> {\n return apiRequest({...config, url: Endpoints.GetPrizes.url({}), method: Endpoints.GetPrizes.method});\n }\n\n /**\n * This endpoint creates a prize.\n * @param data\n * @param config\n */\n static createPrize(data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return apiRequest({...config, url: Endpoints.CreatePrize.url({}), method: Endpoints.CreatePrize.method, data: data});\n }\n\n /**\n * This endpoint retrieves a specific prize\n * @param id\n * @param config\n */\n static getSpecificPrize(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return apiRequest({...config, url: Endpoints.GetSpecificPrize.url({id}), method: Endpoints.GetSpecificPrize.method});\n }\n\n /**\n * This endpoint updates a specific prize.\n * @param id\n * @param data\n * @param config\n */\n static updatePrize(id: number | string, data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return apiRequest({...config, url: Endpoints.UpdatePrize.url({id}), method: Endpoints.UpdatePrize.method, data: data});\n }\n\n /**\n * This endpoint patches a specific prize.\n * @param id\n * @param data\n * @param config\n */\n static patchPrize(id: number | string, data?: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return apiRequest({...config, url: Endpoints.PatchPrize.url({id}), method: Endpoints.PatchPrize.method, data: data});\n }\n\n /**\n * This endpoint retrieves all requests of loyalty prizes.\n * @param config\n */\n static getAllPrizeRequests(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeUserType>> {\n return apiRequest({...config, url: Endpoints.GetPrizeRequests.url({}), method: Endpoints.GetPrizeRequests.method});\n }\n\n /**\n * This endpoint creates a request for a loyalty prize\n * @param prize\n * @param config\n */\n static createPrizeRequest(prize: number, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return apiRequest({...config, url: Endpoints.CreatePrizeRequest.url({}), method: Endpoints.CreatePrizeRequest.method, data: {prize: prize}});\n }\n\n /**\n * This endpoint retrieves a specific request for a loyalty prize.\n * @param id\n * @param config\n */\n static getSpecificPrizeRequest(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return apiRequest({...config, url: Endpoints.GetSpecificPrizeRequest.url({id}), method: Endpoints.GetSpecificPrizeRequest.method});\n }\n\n /**\n * This endpoint patches a specific request for a loyalty prize.\n * You can use this endpoint to change status in an admin list/table interface.\n * @param id\n * @param status\n * @param config\n */\n static patchPrizeRequest(id: number | string, status?: SCPrizeUserStatusType, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return apiRequest({...config, url: Endpoints.PatchPrizeRequest.url({id}), method: Endpoints.PatchPrizeRequest.method, data: {status: status}});\n }\n}\n\n/**\n *\n :::tipLoyalty service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {LoyaltyService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getPrizes` will return the paginated list of available prizes.\n\n async getPrizes() {\n return await LoyaltyService.getPrizes();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificPrize(prizeId) {\n return await LoyaltyService.getSpecificPrize(prizeId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class LoyaltyService {\n static async getPrizes(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeType>> {\n return LoyaltyApiClient.getPrizes(config);\n }\n\n static async createPrize(data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return LoyaltyApiClient.createPrize(data, config);\n }\n\n static async getSpecificPrize(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return LoyaltyApiClient.getSpecificPrize(id, config);\n }\n\n static async updatePrize(id: number | string, data: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return LoyaltyApiClient.updatePrize(id, data, config);\n }\n\n static async patchPrize(id: number | string, data?: LoyaltyPrizeParams, config?: AxiosRequestConfig): Promise<SCPrizeType> {\n return LoyaltyApiClient.patchPrize(id, data, config);\n }\n\n static async getAllPrizeRequests(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrizeUserType>> {\n return LoyaltyApiClient.getAllPrizeRequests(config);\n }\n\n static async createPrizeRequest(prize: number, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return LoyaltyApiClient.createPrizeRequest(prize, config);\n }\n\n static async getSpecificPrizeRequest(id: number | string, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return LoyaltyApiClient.getSpecificPrizeRequest(id, config);\n }\n static async patchPrizeRequest(id: number | string, status?: SCPrizeUserStatusType, config?: AxiosRequestConfig): Promise<SCPrizeUserType> {\n return LoyaltyApiClient.patchPrizeRequest(id, status, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCChunkMediaType, SCMediaType} from '@selfcommunity/types';\nimport {ChunkUploadCompleteParams, ChunkUploadParams, MediaCreateParams} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface MediaApiClientInterface {\n chunkUploadMedia(\n data: ChunkUploadParams,\n bytesStart: number,\n bytesEnd: number,\n bytesTotal: number,\n config?: AxiosRequestConfig\n ): Promise<SCChunkMediaType>;\n chunkUploadMediaComplete(data: ChunkUploadCompleteParams, config?: AxiosRequestConfig): Promise<SCMediaType>;\n createMedia(data: MediaCreateParams, config?: AxiosRequestConfig): Promise<SCMediaType>;\n clickMedia(id: number | string, ip?: string, config?: AxiosRequestConfig): Promise<any>;\n getSpecificMedia(id: number | string, config?: AxiosRequestConfig): Promise<SCMediaType>;\n updateMedia(id: number | string, image: string, config?: AxiosRequestConfig): Promise<SCMediaType>;\n deleteMedia(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n}\n/**\n * Contains all the endpoints needed to manage medias.\n */\nexport class MediaApiClient {\n /**\n * This endpoint performs the chunk upload of a media with type image or document.\n * The client must split the file into chunks and send to the server in series. After all the chunks have been uploaded the client must call the Chunk Upload Complete endpoint with the given upload_id parameter to finalize the upload and retrieve the Media.\n * To perform chunk upload the request must contain Content-Range header with the information about the chunk(range of the chunk upload in the format bytes start-end/total)\n * @param data\n * @param bytesStart\n * @param bytesEnd\n * @param bytesTotal\n * @param config\n */\n static chunkUploadMedia(\n data: ChunkUploadParams,\n bytesStart: number,\n bytesEnd: number,\n bytesTotal: number,\n config?: AxiosRequestConfig\n ): Promise<SCChunkMediaType> {\n return apiRequest({\n ...config,\n url: Endpoints.ComposerChunkUploadMedia.url({}),\n method: Endpoints.ComposerChunkUploadMedia.method,\n data: data,\n headers: {'Content-Range': `bytes ${bytesStart}-${bytesEnd}/${bytesTotal}`}\n });\n }\n\n /**\n * This endpoint completes the chunk upload and create the media.\n * @param data\n * @param config\n */\n static chunkUploadMediaComplete(data: ChunkUploadCompleteParams, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return apiRequest({\n ...config,\n url: Endpoints.ComposerChunkUploadMediaComplete.url({}),\n method: Endpoints.ComposerChunkUploadMediaComplete.method,\n data: data\n });\n }\n\n /**\n * This endpoint creates a media.\n * @param data\n * @param config\n */\n static createMedia(data: MediaCreateParams, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return apiRequest({...config, url: Endpoints.ComposerMediaCreate.url({}), method: Endpoints.ComposerMediaCreate.method, data: data});\n }\n\n /**\n * This endpoint saves a click on a specific media using ID.\n * @param id\n * @param ip\n * @param config\n */\n static clickMedia(id: number | string, ip?: string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.MediaClickTracker.url({id}), method: Endpoints.MediaClickTracker.method, data: {ip: ip} ?? null});\n }\n\n /**\n * This endpoint retrieves a specific media using ID.\n * @param id\n * @param config\n */\n static getSpecificMedia(id: number | string, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return apiRequest({...config, url: Endpoints.GetMedia.url({id}), method: Endpoints.GetMedia.method});\n }\n\n /**\n * This endpoint updates a media.\n * @param id\n * @param image\n * @param config\n */\n static updateMedia(id: number | string, image: string, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return apiRequest({...config, url: Endpoints.UpdateMedia.url({id}), method: Endpoints.UpdateMedia.method, data: {image: image}});\n }\n\n /**\n * This endpoint deletes a media.\n * @param id\n * @param config\n */\n static deleteMedia(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.DeleteMedia.url({id}), method: Endpoints.DeleteMedia.method});\n }\n}\n\n/**\n *\n :::tipMedia service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {MediaService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `createMedia` will return the created media obj. It takes a media obj as body param.\n\n async createMedia() {\n const body = {url: 'string', type: 'url'};\n return await MediaService.createMedia(body);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class MediaService {\n static async chunkUploadMedia(\n data: ChunkUploadParams,\n bytesStart: number,\n bytesEnd: number,\n bytesTotal: number,\n config?: AxiosRequestConfig\n ): Promise<SCChunkMediaType> {\n return MediaApiClient.chunkUploadMedia(data, bytesStart, bytesEnd, bytesTotal, config);\n }\n\n static async chunkUploadMediaComplete(data: ChunkUploadCompleteParams, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return MediaApiClient.chunkUploadMediaComplete(data, config);\n }\n\n static async createMedia(data: MediaCreateParams, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return MediaApiClient.createMedia(data, config);\n }\n\n static async clickMedia(id: number | string, ip?: string, config?: AxiosRequestConfig): Promise<any> {\n return MediaApiClient.clickMedia(id, ip, config);\n }\n\n static async getSpecificMedia(id: number | string, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return MediaApiClient.getSpecificMedia(id, config);\n }\n\n static async updateMedia(id: number | string, image: string, config?: AxiosRequestConfig): Promise<SCMediaType> {\n return MediaApiClient.updateMedia(id, image, config);\n }\n\n static async deleteMedia(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return MediaApiClient.deleteMedia(id, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCUserModerationType, SCUserStatus, SCFlaggedContributionType, SCFlagType, SCFlagTypeEnum, SCContributionType} from '@selfcommunity/types';\nimport {FlaggedContributionParams, ModerateContributionParams, ModerationParams, SCPaginatedResponse} from '../../types';\nimport {SCContributionStatus} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface ModerationApiClientInterface {\n getUsersForModeration(params?: ModerationParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserModerationType>>;\n moderateASpecificUser(id: number | string, status: SCUserStatus, days_blocked?: string, hard?: number, config?: AxiosRequestConfig): Promise<any>;\n getAllFlaggedContributions(\n params?: FlaggedContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlaggedContributionType>>;\n getAllFlagsForSpecificContribution(\n id: number | string,\n contribution_type: SCContributionType,\n flag_type?: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>>;\n moderateAContribution(id: number | string, data: ModerateContributionParams, config?: AxiosRequestConfig): Promise<any>;\n getContributionModerationStatus(id: number | string, contribution_type: SCContributionType, config?: AxiosRequestConfig): Promise<SCContributionStatus>;\n}\n/**\n * Contains all the endpoints needed to manage moderation.\n */\n\nexport class ModerationApiClient {\n /**\n * This endpoint retrieves all users for moderation purpose.\n * @param params\n * @param config\n */\n static getUsersForModeration(params?: ModerationParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserModerationType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.UsersForModeration.url({})}?${p.toString()}`, method: Endpoints.UsersForModeration.method});\n }\n\n /**\n * This endpoint performs users moderation.\n * @param id\n * @param status\n * @param days_blocked\n * @param hard\n * @param config\n */\n static moderateASpecificUser(id: number | string, status: SCUserStatus, days_blocked?: string, hard?: number, config?: AxiosRequestConfig): Promise<any> {\n const p = urlParams({...(days_blocked && {days_blocked: days_blocked}), ...(hard && {hard: hard})});\n return apiRequest({\n ...config,\n url: `${Endpoints.ModerateUser.url({id})}?${p.toString()}`,\n method: Endpoints.ModerateUser.method,\n data: {status: status}\n });\n }\n\n /**\n * This endpoint retrieves all flagged contributions.\n * @param params\n * @param config\n */\n static getAllFlaggedContributions(\n params?: FlaggedContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlaggedContributionType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.FlaggedContributions.url({})}?${p.toString()}`, method: Endpoints.FlaggedContributions.method});\n }\n\n /**\n * This endpoint retrieves all flags for a specific contribution.\n * @param id\n * @param contribution_type\n * @param flag_type\n * @param config\n */\n static getAllFlagsForSpecificContribution(\n id: number | string,\n contribution_type: SCContributionType,\n flag_type?: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return apiRequest({\n ...config,\n url: Endpoints.FlagsForSpecificContribution.url({id, contribution_type}),\n method: Endpoints.FlagsForSpecificContribution.method,\n data: {\n flag_type: flag_type ?? null\n }\n });\n }\n\n /**\n * This endpoint provides actions for flagged contributions moderation.\n * @param id\n * @param data\n * @param config\n */\n static moderateAContribution(id: number | string, data: ModerateContributionParams, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.ModerateContribution.url({id}), method: Endpoints.ModerateContribution.method, data: data});\n }\n\n /**\n * This endpoint retrieves moderation status for a specific contribution.\n * @param id\n * @param contribution_type\n * @param config\n */\n static getContributionModerationStatus(\n id: number | string,\n contribution_type: SCContributionType,\n config?: AxiosRequestConfig\n ): Promise<SCContributionStatus> {\n return apiRequest({\n ...config,\n url: Endpoints.ModerateContributionStatus.url({id, contribution_type}),\n method: Endpoints.ModerateContributionStatus.method\n });\n }\n}\n\n/**\n *\n :::tipModeration service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {ModerationService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getUsersForModeration` will return the paginated list of users to moderate.\n\n async getUsersForModeration() {\n return await ModerationService.getUsersForModeration();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async moderateASpecificUser(userId, userStatus) {\n return await ModerationService.moderateASpecificUser(userId, userStatus);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class ModerationService {\n static async getUsersForModeration(params?: ModerationParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserModerationType>> {\n return ModerationApiClient.getUsersForModeration(params, config);\n }\n static async moderateASpecificUser(\n id: number | string,\n status: SCUserStatus,\n days_blocked?: string,\n hard?: number,\n config?: AxiosRequestConfig\n ): Promise<any> {\n return ModerationApiClient.moderateASpecificUser(id, status, days_blocked, hard, config);\n }\n static async getAllFlaggedContributions(\n params?: FlaggedContributionParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlaggedContributionType>> {\n return ModerationApiClient.getAllFlaggedContributions(params, config);\n }\n static async getAllFlagsForSpecificContribution(\n id: number | string,\n contribution_type: SCContributionType,\n flag_type?: SCFlagTypeEnum,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCFlagType>> {\n return ModerationApiClient.getAllFlagsForSpecificContribution(id, contribution_type, flag_type, config);\n }\n static async moderateAContribution(id: number | string, data: ModerateContributionParams, config?: AxiosRequestConfig): Promise<any> {\n return ModerationApiClient.moderateAContribution(id, data, config);\n }\n static async getContributionModerationStatus(\n id: number | string,\n contribution_type: SCContributionType,\n config?: AxiosRequestConfig\n ): Promise<SCContributionStatus> {\n return ModerationApiClient.getContributionModerationStatus(id, contribution_type, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCBroadcastMessageType, SCNotificationAggregatedType, SCNotificationUnseenCountType} from '@selfcommunity/types';\nimport {CustomNotificationParams, SCPaginatedResponse} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface NotificationApiClientInterface {\n listUserNotification(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCNotificationAggregatedType>>;\n markReadNotification(sids: string[], config?: AxiosRequestConfig): Promise<any>;\n getUnseenNotification(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType>;\n createCustomNotification(data: CustomNotificationParams, config?: AxiosRequestConfig): Promise<any>;\n listBroadcastMessages(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCBroadcastMessageType>>;\n listBroadcastMessagesUnseenCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType>;\n listBroadcastMessagesUndisposedCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType>;\n markReadBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any>;\n disposeBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any>;\n}\n/**\n * Contains all the endpoints needed to manage notifications.\n */\n\nexport class NotificationApiClient {\n /**\n * List all user notifications (in aggregate form) related to the community.\n * @param config\n */\n static listUserNotification(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCNotificationAggregatedType>> {\n return apiRequest({...config, url: Endpoints.UserNotificationList.url({}), method: Endpoints.UserNotificationList.method});\n }\n\n /**\n * This endpoint marks as read a list of notifications identified by serialization_ids (sids).\n * @param sids\n * @param config\n */\n static markReadNotification(sids: string[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.UserMarkReadNotification.url({}),\n method: Endpoints.UserMarkReadNotification.method,\n data: {sids: sids}\n });\n }\n\n /**\n * This endpoint retrieves the number of unseen/unread notifications.\n * @param config\n */\n static getUnseenNotification(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return apiRequest({...config, url: Endpoints.UserUnseenNotificationCount.url({}), method: Endpoints.UserUnseenNotificationCount.method});\n }\n\n /**\n * This endpoint generates a custom notification starting from the user. The recipients of the notification can be the user's friends/followers or the user himself (based on recipients_type value). Es. connections -> \"user\" added an item to the wishlist.\n * @param data\n * @param config\n */\n static createCustomNotification(data: CustomNotificationParams, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.CreateCustomNotification.url({}), method: Endpoints.CreateCustomNotification.method, data: data});\n }\n\n /**\n * This endpoint lists all broadcast messages. Broadcast Message is a feature which allows a specific user to send messages and announcements to a larger group of users at once.\n * @param config\n */\n static listBroadcastMessages(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCBroadcastMessageType>> {\n return apiRequest({...config, url: Endpoints.BroadcastMessagesList.url({}), method: Endpoints.BroadcastMessagesList.method});\n }\n\n /**\n * This endpoint retrieves the total number of broadcast messages not yet seen by the user.\n * @param config\n */\n static listBroadcastMessagesUnseenCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return apiRequest({...config, url: Endpoints.BroadcastMessagesUnseenCount.url({}), method: Endpoints.BroadcastMessagesUnseenCount.method});\n }\n\n /**\n * This endpoint retrieves the total number of broadcast messages not yet disposed by the user.\n * @param config\n */\n static listBroadcastMessagesUndisposedCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return apiRequest({\n ...config,\n url: Endpoints.BroadcastMessagesUndisposedCount.url({}),\n method: Endpoints.BroadcastMessagesUndisposedCount.method\n });\n }\n\n /**\n * This endpoint marks as viewed/read a broadcast message for a user.\n * @param banner_ids\n * @param config\n */\n static markReadBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.BroadcastMessagesMarkRead.url({}),\n method: Endpoints.BroadcastMessagesMarkRead.method,\n data: {banner_ids: banner_ids}\n });\n }\n\n /**\n * This endpoint disposes a broadcast message for a user.\n * @param banner_ids\n * @param config\n */\n static disposeBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.BroadcastMessagesDispose.url({}),\n method: Endpoints.BroadcastMessagesDispose.method,\n data: {banner_ids: banner_ids}\n });\n }\n}\n\n/**\n *\n :::tipNotification service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {NotificationService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `listUserNotification` will return the paginated list of notifications.\n\n async listUserNotification() {\n return await NotificationService.listUserNotification();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async disposeBroadcastMessages(banner_ids) {\n return await NotificationService.disposeBroadcastMessages(banner_ids);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class NotificationService {\n static async listUserNotification(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCNotificationAggregatedType>> {\n return NotificationApiClient.listUserNotification(config);\n }\n static async markReadNotification(sids: string[], config?: AxiosRequestConfig): Promise<any> {\n return NotificationApiClient.markReadNotification(sids, config);\n }\n static async getUnseenNotification(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return NotificationApiClient.getUnseenNotification(config);\n }\n static async createCustomNotification(data: CustomNotificationParams, config?: AxiosRequestConfig): Promise<any> {\n return NotificationApiClient.createCustomNotification(data, config);\n }\n static async listBroadcastMessages(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCBroadcastMessageType>> {\n return NotificationApiClient.listBroadcastMessages(config);\n }\n static async listBroadcastMessagesUnseenCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return NotificationApiClient.listBroadcastMessagesUnseenCount(config);\n }\n static async listBroadcastMessagesUndisposedCount(config?: AxiosRequestConfig): Promise<SCNotificationUnseenCountType> {\n return NotificationApiClient.listBroadcastMessagesUndisposedCount(config);\n }\n static async disposeBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any> {\n return NotificationApiClient.disposeBroadcastMessages(banner_ids, config);\n }\n static async markReadBroadcastMessages(banner_ids: number[], config?: AxiosRequestConfig): Promise<any> {\n return NotificationApiClient.markReadBroadcastMessages(banner_ids, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCPreferenceType} from '@selfcommunity/types';\nimport {SCPaginatedResponse} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface PreferenceApiClientInterface {\n getAllPreferences(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPreferenceType>>;\n searchPreferences(\n search?: string,\n section?: string,\n keys?: string,\n ordering?: string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPreferenceType>>;\n getSpecificPreference(id: number | string, config?: AxiosRequestConfig): Promise<SCPreferenceType>;\n}\n/**\n * Contains all the endpoints needed to manage dynamic preferences.\n */\n\nexport class PreferenceApiClient {\n /**\n * This endpoint retrieves all available dynamic preferences.\n * @param config\n */\n static getAllPreferences(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPreferenceType>> {\n return apiRequest({...config, url: Endpoints.Preferences.url({}), method: Endpoints.Preferences.method});\n }\n\n /**\n * This endpoint searches dynamic preferences.\n * @param search\n * @param section\n * @param keys\n * @param ordering\n * @param config\n */\n static searchPreferences(\n search?: string,\n section?: string,\n keys?: string,\n ordering?: string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPreferenceType>> {\n const params = urlParams({\n ...(search && {search: search}),\n ...(section && {section: section}),\n ...(keys && {keys: keys}),\n ...(ordering && {ordering: ordering})\n });\n return apiRequest({...config, url: `${Endpoints.Preferences.url({})}?${params.toString()}`, method: Endpoints.Preferences.method});\n }\n\n /**\n * This endpoint retrieves a specific dynamic preference.\n * @param id\n * @param config\n */\n static getSpecificPreference(id: number | string, config?: AxiosRequestConfig): Promise<SCPreferenceType> {\n return apiRequest({...config, url: Endpoints.GetPreference.url({id}), method: Endpoints.Preferences.method});\n }\n}\n\n/**\n *\n :::tipPreference service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {PreferenceService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllPreferences` will return the paginated list of preferences.\n\n async getAllPreferences() {\n return await PreferenceService.getAllPreferences();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificPreference(preferenceId) {\n return await PreferenceService.getSpecificPreference(preferenceId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class PreferenceService {\n static async getAllPreferences(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPreferenceType>> {\n return PreferenceApiClient.getAllPreferences(config);\n }\n\n static async searchPreferences(\n search?: string,\n section?: string,\n keys?: string,\n ordering?: string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCPreferenceType>> {\n return PreferenceApiClient.searchPreferences(search, section, keys, ordering, config);\n }\n\n static async getSpecificPreference(id: number | string, config?: AxiosRequestConfig): Promise<SCPreferenceType> {\n return PreferenceApiClient.getSpecificPreference(id, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {\n MessageChunkUploadDoneParams,\n MessageCreateParams,\n MessageMediaChunksParams,\n MessageMediaUploadParams,\n MessageThumbnailUploadParams,\n SCPaginatedResponse,\n ThreadParams,\n ThreadDeleteParams\n} from '../../types';\nimport {\n SCPrivateMessageSnippetType,\n SCPrivateMessageThreadType,\n SCPrivateMessageUploadMediaChunkType,\n SCPrivateMessageUploadMediaType,\n SCPrivateMessageUploadThumbnailType,\n SCUserType\n} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface PrivateMessageApiClientInterface {\n getAllSnippets(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageSnippetType>>;\n getAThread(params: ThreadParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageThreadType>>;\n getASingleMessage(id: number | string, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType>;\n sendAMessage(data: MessageCreateParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType>;\n deleteAMessage(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n deleteAThread(params: ThreadDeleteParams, config?: AxiosRequestConfig): Promise<any>;\n uploadMedia(data: MessageMediaUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType>;\n uploadThumbnail(data: MessageThumbnailUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadThumbnailType>;\n uploadMediaInChunks(data: MessageMediaChunksParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaChunkType>;\n chunkUploadDone(data: MessageChunkUploadDoneParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType>;\n searchUser(search: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n}\n/**\n * Contains all the endpoints needed to manage private messages.\n */\n\nexport class PrivateMessageApiClient {\n /**\n * This endpoint retrieves all snippets.\n * @param config\n */\n static getAllSnippets(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageSnippetType>> {\n return apiRequest({...config, url: Endpoints.GetSnippets.url({}), method: Endpoints.GetSnippets.method});\n }\n\n /**\n * This endpoint retrieves all messages in a thread.\n * @param params\n * @param config\n */\n static getAThread(params: ThreadParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageThreadType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetAThread.url({})}?${p.toString()}`, method: Endpoints.GetAThread.method});\n }\n\n /**\n * This endpoint retrieves a single message using ID.\n * @param id\n * @param config\n */\n static getASingleMessage(id: number | string, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType> {\n return apiRequest({...config, url: Endpoints.GetASingleMessage.url({id}), method: Endpoints.GetASingleMessage.method});\n }\n\n /**\n * This endpoint sends a message.\n * @param data\n * @param config\n */\n static sendAMessage(data: MessageCreateParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType> {\n return apiRequest({...config, data, url: Endpoints.SendMessage.url({}), method: Endpoints.SendMessage.method});\n }\n\n /**\n * This endpoint deletes a single message.\n * @param id\n * @param config\n */\n static deleteAMessage(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.DeleteASingleMessage.url({id}), method: Endpoints.DeleteASingleMessage.method});\n }\n\n /**\n * This endpoint deletes a thread.\n * @param params\n * @param config\n */\n static deleteAThread(params: ThreadDeleteParams, config?: AxiosRequestConfig): Promise<any> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.DeleteAThread.url({})}?${p.toString()}`, method: Endpoints.DeleteAThread.method});\n }\n\n /**\n * This endpoint uploads a media.\n * @param data\n * @param config\n */\n static uploadMedia(data: MessageMediaUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType> {\n return apiRequest({...config, data, url: Endpoints.PrivateMessageUploadMedia.url({}), method: Endpoints.PrivateMessageUploadMedia.method});\n }\n\n /**\n * This endpoint uploads a thumbnail.\n * @param data\n * @param config\n */\n static uploadThumbnail(data: MessageThumbnailUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadThumbnailType> {\n return apiRequest({\n ...config,\n data,\n url: Endpoints.PrivateMessageUploadThumbnail.url({}),\n method: Endpoints.PrivateMessageUploadThumbnail.method\n });\n }\n\n /**\n * This endpoint performs the chunk upload of a file.\n * @param data\n * @param config\n */\n static uploadMediaInChunks(data: MessageMediaChunksParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaChunkType> {\n return apiRequest({\n ...config,\n data,\n url: Endpoints.PrivateMessageUploadMediaInChunks.url({}),\n method: Endpoints.PrivateMessageUploadMediaInChunks.method\n });\n }\n\n /**\n * This endpoint finalizes the chunk upload and creates the file.\n * @param data\n * @param config\n */\n static chunkUploadDone(data: MessageChunkUploadDoneParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType> {\n return apiRequest({\n ...config,\n url: Endpoints.PrivateMessageChunkUploadDone.url({}),\n method: Endpoints.PrivateMessageChunkUploadDone.method,\n data: data\n });\n }\n /**\n * This endpoint performs users search.\n * @param search\n * @param config\n */\n static searchUser(search: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({\n ...config,\n url: Endpoints.PrivateMessageSearchUser.url({search}),\n method: Endpoints.PrivateMessageSearchUser.method\n });\n }\n}\n\n/**\n *\n :::tipPrivate Message service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {PrivateMessageService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllSnippets` will return the paginated list of snippets.\n\n async getAllSnippets() {\n return await PrivateMessageService.getAllSnippets();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASingleMessage(messageId) {\n return await PrivateMessageService.getASingleMessage(messageId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class PrivateMessageService {\n static async getAllSnippets(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageSnippetType>> {\n return PrivateMessageApiClient.getAllSnippets(config);\n }\n static async getAThread(params: ThreadParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCPrivateMessageThreadType>> {\n return PrivateMessageApiClient.getAThread(params, config);\n }\n static async getASingleMessage(id: number | string, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType> {\n return PrivateMessageApiClient.getASingleMessage(id, config);\n }\n static async sendAMessage(data: MessageCreateParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageThreadType> {\n return PrivateMessageApiClient.sendAMessage(data, config);\n }\n static async deleteAMessage(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return PrivateMessageApiClient.deleteAMessage(id, config);\n }\n static async deleteAThread(params: ThreadDeleteParams, config?: AxiosRequestConfig): Promise<any> {\n return PrivateMessageApiClient.deleteAThread(params, config);\n }\n static async uploadMedia(data: MessageMediaUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType> {\n return PrivateMessageApiClient.uploadMedia(data, config);\n }\n static async uploadThumbnail(data: MessageThumbnailUploadParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadThumbnailType> {\n return PrivateMessageApiClient.uploadThumbnail(data, config);\n }\n static async uploadMediaInChunks(data: MessageMediaChunksParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaChunkType> {\n return PrivateMessageApiClient.uploadMediaInChunks(data, config);\n }\n static async chunkUploadDone(data: MessageChunkUploadDoneParams, config?: AxiosRequestConfig): Promise<SCPrivateMessageUploadMediaType> {\n return PrivateMessageApiClient.chunkUploadDone(data, config);\n }\n static async searchUser(search: string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return PrivateMessageApiClient.searchUser(search, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\nimport {SCPromoType} from '@selfcommunity/types';\n\nexport interface PromoApiClientInterface {\n getSpecificPromo(code: string, config?: AxiosRequestConfig): Promise<SCPromoType>;\n}\n\n/**\n * Contains all the endpoints needed to manage Promo codes.\n */\nexport class PromoApiClient {\n /**\n * This endpoint retrieves a specific Promo identified by Promo code.\n * @param code\n * @param config\n */\n static getSpecificPromo(code: string, config?: AxiosRequestConfig): Promise<SCPromoType> {\n return apiRequest({...config, url: Endpoints.PromoCode.url({code}), method: Endpoints.User.method});\n }\n}\n\n/**\n *\n :::tip Promo service can be used in the following way:\n ```jsx\n 1. Import the service from our library:\n\n import {PromoService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `create` will return the paginated list of categories.\n\n async getSpecificPromoCode() {\n return await PromoService.getSpecificPromo();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async create(data) {\n return await PromoService.getSpecificPromo(code);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class PromoService {\n static async getSpecificPromo(code: string, config?: AxiosRequestConfig): Promise<SCPromoType> {\n return PromoApiClient.getSpecificPromo(code, config);\n }\n}\n","import {ReactionParams, SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCReactionType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface ReactionApiClientInterface {\n getAllReactions(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCReactionType>>;\n getSpecificReaction(id: number, config?: AxiosRequestConfig): Promise<SCReactionType>;\n}\n/**\n * Contains all the endpoints needed to manage features.\n */\n\nexport class ReactionApiClient {\n /**\n * This endpoint retrieves all reactions.\n * @param params\n * @param config\n */\n static getAllReactions(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCReactionType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.GetReactions.url({})}?${p.toString()}`, method: Endpoints.GetReactions.method});\n }\n /**\n * This endpoint retrieves a specific reaction.\n * @param id\n * @param config\n */\n static getSpecificReaction(id: number, config?: AxiosRequestConfig): Promise<SCReactionType> {\n return apiRequest({url: Endpoints.GetSpecificReaction.url({id}), method: Endpoints.GetSpecificReaction.method, ...config});\n }\n}\n\n/**\n *\n :::tipFeature service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {ReactionService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllReactions` will return the list of reactions.\n\n async getAllReactions() {\n return await ReactionService.getAllReactions();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class ReactionService {\n static async getAllReactions(params?: ReactionParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCReactionType>> {\n return ReactionApiClient.getAllReactions(params, config);\n }\n static async getSpecificReaction(id: number, config?: AxiosRequestConfig): Promise<SCReactionType> {\n return ReactionApiClient.getSpecificReaction(id, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCUserScoreType} from '@selfcommunity/types';\nimport {ScoreParams, SCPaginatedResponse, UserScoreParams} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface ScoreApiClientInterface {\n getAllScores(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>>;\n searchScore(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>>;\n addScore(data: UserScoreParams, config?: AxiosRequestConfig): Promise<SCUserScoreType>;\n}\n/**\n * Contains all the endpoints needed to manage user scores.\n */\n\nexport class ScoreApiClient {\n /**\n * This endpoint retrieves all users scores.\n * @param params\n * @param config\n */\n static getAllScores(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.ScoresList.url({})}?${p.toString()}`, method: Endpoints.ScoresList.method});\n }\n\n /**\n * This endpoint performs search to user scores.\n * @param params\n * @param config\n */\n static searchScore(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.SearchScore.url({})}?${p.toString()}`, method: Endpoints.SearchScore.method});\n }\n\n /**\n * This endpoint adds/removes score to a user.\n * @param data\n * @param config\n */\n static addScore(data: UserScoreParams, config?: AxiosRequestConfig): Promise<SCUserScoreType> {\n return apiRequest({...config, url: Endpoints.AddScore.url({}), method: Endpoints.AddScore.method, data: data});\n }\n}\n\n/**\n *\n :::tipScore service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {ScoreService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllScores` will return the paginated list of user scores.\n\n async getAllScores() {\n return await ScoreService.getAllScores();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class ScoreService {\n static async getAllScores(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>> {\n return ScoreApiClient.getAllScores(params, config);\n }\n static async searchScore(params?: ScoreParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserScoreType>> {\n return ScoreApiClient.searchScore(params, config);\n }\n static async addScore(data: UserScoreParams, config?: AxiosRequestConfig): Promise<SCUserScoreType> {\n return ScoreApiClient.addScore(data, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {SSOSignInType, SSOSignUpType} from '@selfcommunity/types';\nimport {SSOSignUpParams} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface SSOApiClientInterface {\n SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType>;\n SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType>;\n}\n/**\n * Contains all the endpoints needed to manage sso.\n */\n\nexport class SSOApiClient {\n /**\n * This endpoint signs in the user authenticated with the access token.\n * @param config\n */\n static SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType> {\n return apiRequest({...config, url: Endpoints.SignIn.url({}), method: Endpoints.SignIn.method});\n }\n\n /**\n * This endpoint creates a new account.\n * Only users with the admin role can register new users.\n * @param data\n * @param config\n */\n static SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType> {\n return apiRequest({...config, url: Endpoints.SignUp.url({}), method: Endpoints.SignUp.method, data: data});\n }\n}\n\n/**\n *\n :::tipSSO service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {SSOService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `SignUp` will return the user registration data. It takes the username and ext_id obj as body params.\n\n async SignUp() {\n const data = {username: 'string', ext_id: 'number'};\n return await SSOService.SignUp(data);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class SSOService {\n static async SignIn(config?: AxiosRequestConfig): Promise<SSOSignInType> {\n return SSOApiClient.SignIn(config);\n }\n static async SignUp(data: SSOSignUpParams, config?: AxiosRequestConfig): Promise<SSOSignUpType> {\n return SSOApiClient.SignUp(data, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {BaseGetParams, SCPaginatedResponse} from '../../types';\nimport {SCCategoryType, SCFeedObjectType, SCIncubatorType, SCSuggestionType, SCUserType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface SuggestionApiClientInterface {\n getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>>;\n getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>>;\n getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>>;\n getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>>;\n}\n/**\n * Contains all the endpoints needed to manage suggestions.\n */\n\nexport class SuggestionApiClient {\n /**\n * This endpoint retrieves a list of categories suggested to the current user.\n * @param params\n * @param config\n */\n static getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return apiRequest({...config, url: Endpoints.CategoriesSuggestion.url({}), method: Endpoints.CategoriesSuggestion.method, params});\n }\n\n /**\n * This endpoint retrieves a list of suggested incubators.\n * @param params\n * @param config\n */\n static getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n return apiRequest({...config, url: Endpoints.GetIncubatorSuggestion.url({}), method: Endpoints.GetIncubatorSuggestion.method, params});\n }\n\n /**\n * This endpoint retrieves a list of contributes(discussions, posts, statuses) with a related poll.\n * @param params\n * @param config\n */\n static getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return apiRequest({...config, url: Endpoints.PollSuggestion.url({}), method: Endpoints.PollSuggestion.method, params});\n }\n\n /**\n * This endpoint retrieves a list of users suggested to the current user.\n * @param params\n * @param config\n */\n static getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({...config, url: Endpoints.UserSuggestion.url({}), method: Endpoints.UserSuggestion.method, params});\n }\n /**\n * This endpoint retrieves a list of users suggested to the current user.\n * @param search\n * @param params\n * @param config\n */\n static getSearchSuggestion(search: string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCSuggestionType>> {\n const p = urlParams({search: search});\n return apiRequest({...config, url: `${Endpoints.SearchSuggestion.url({})}?${p.toString()}`, method: Endpoints.UserSuggestion.method, params});\n }\n}\n\n/**\n *\n :::tipSuggestion service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {SuggestionService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getCategorySuggestion` will return the paginated list of categories.\n\n async getCategorySuggestion() {\n return await SuggestionService.getCategorySuggestion();\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class SuggestionService {\n static async getCategorySuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCCategoryType>> {\n return SuggestionApiClient.getCategorySuggestion(params, config);\n }\n\n static async getIncubatorSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCIncubatorType>> {\n return SuggestionApiClient.getIncubatorSuggestion(params, config);\n }\n\n static async getPollSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedObjectType>> {\n return SuggestionApiClient.getPollSuggestion(params, config);\n }\n\n static async getUserSuggestion(params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return SuggestionApiClient.getUserSuggestion(params, config);\n }\n static async getSearchSuggestion(\n search: string,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCSuggestionType>> {\n return SuggestionApiClient.getSearchSuggestion(search, params, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport {TagParams, SCPaginatedResponse, TagGetParams} from '../../types';\nimport Endpoints from '../../constants/Endpoints';\nimport {SCTagType} from '@selfcommunity/types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\n\nexport interface TagApiClientInterface {\n getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;\n createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;\n searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>>;\n getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType>;\n updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;\n patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType>;\n assignATag(id: number | string, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType>;\n}\n/**\n * Contains all the endpoints needed to manage tags.\n * All endpoints require admin role.\n */\nexport class TagApiClient {\n /**\n * This endpoint retrieves all tags.\n * @param params\n * @param config\n */\n static getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.TagsList.url({})}?${p.toString()}`, method: Endpoints.TagsList.method});\n }\n\n /**\n * This endpoint creates a tag\n * @param data\n * @param config\n */\n static createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({...config, url: Endpoints.CreateTag.url({}), method: Endpoints.CreateTag.method, data: data});\n }\n\n /**\n * This endpoint performs tag search.\n * @param params\n * @param config\n */\n static searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.SearchTag.url({})}?${p.toString()}`, method: Endpoints.SearchTag.method});\n }\n\n /**\n * This endpoint retrieves a specific tag.\n * @param id\n * @param config\n */\n static getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({...config, url: Endpoints.Tag.url({id}), method: Endpoints.Tag.method});\n }\n\n /**\n * This endpoint updates a specific tag.\n * @param id\n * @param data\n * @param config\n */\n static updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({...config, url: Endpoints.UpdateTag.url({id}), method: Endpoints.UpdateTag.method, data: data ?? null});\n }\n\n /**\n * This endpoint patches a specific tag.\n * @param id\n * @param data\n * @param config\n */\n static patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({...config, url: Endpoints.PatchTag.url({id}), method: Endpoints.PatchTag.method, data: data ?? null});\n }\n\n /**\n * This endpoint assigns a tag to a user or to a category.\n * One param between \"user\" and \"category\" need to be passed to this endpoint.\n * @param id\n * @param user\n * @param category\n * @param config\n */\n static assignATag(id: number | string, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({\n ...config,\n url: Endpoints.AssignTag.url({id}),\n method: Endpoints.AssignTag.method,\n data: user ? {user: user} : {category: category}\n });\n }\n}\n\n/**\n *\n :::tipTag service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {TagService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllTags` will return the paginated list of tags.\n\n async getAllTags() {\n return await TagService.getAllTags();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificTag(tagId) {\n return await TagService.getSpecificTag(tagId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class TagService {\n static async getAllTags(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>> {\n return TagApiClient.getAllTags(params, config);\n }\n static async createTag(data: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return TagApiClient.createTag(data, config);\n }\n static async searchTag(params?: TagGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCTagType>> {\n return TagApiClient.searchTag(params, config);\n }\n static async getSpecificTag(id: number | string, config?: AxiosRequestConfig): Promise<SCTagType> {\n return TagApiClient.getSpecificTag(id, config);\n }\n static async updateTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return TagApiClient.updateTag(id, data, config);\n }\n static async patchTag(id: number | string, data?: TagParams, config?: AxiosRequestConfig): Promise<SCTagType> {\n return TagApiClient.patchTag(id, data, config);\n }\n static async assignATag(id: number | string, user?: number, category?: number, config?: AxiosRequestConfig): Promise<SCTagType> {\n return TagApiClient.assignATag(id, user, category, config);\n }\n}\n","import {apiRequest} from '../../utils/apiRequest';\nimport Endpoints from '../../constants/Endpoints';\nimport {\n SCAvatarType,\n SCCategoryType,\n SCFeedUnitType,\n SCPlatformType,\n SCTagType,\n SCUserAutocompleteType,\n SCUserAvatarType,\n SCUserChangeEmailType,\n SCUserConnectionRequestType,\n SCUserConnectionStatusType,\n SCUserCounterType,\n SCUserEmailTokenType,\n SCUserFollowedStatusType,\n SCUserFollowerStatusType,\n SCUserHiddenByStatusType,\n SCUserHiddenStatusType,\n SCUserLoyaltyPointsType,\n SCUserPermissionType,\n SCUserProviderAssociationType,\n SCUserSettingsType,\n SCUserType\n} from '@selfcommunity/types';\nimport {BaseGetParams, SCPaginatedResponse, UserAutocompleteParams, UserGetParams, UserSearchParams} from '../../types';\nimport {AxiosRequestConfig} from 'axios';\nimport {urlParams} from '../../utils/url';\nimport {DeleteProviderAssociation} from '../../types/user';\n\nexport interface UserApiClientInterface {\n getAllUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n userAutocomplete(params: UserAutocompleteParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserAutocompleteType>>;\n userSearch(params: UserSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n getSpecificUser(id: number | string, config?: AxiosRequestConfig): Promise<SCUserType>;\n getUserCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUserCounterType>;\n userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;\n userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType>;\n userDelete(id: number | string, hard?: number, config?: AxiosRequestConfig): Promise<any>;\n changeUserMail(id: number | string, new_email: string, confirm?: boolean, config?: AxiosRequestConfig): Promise<any | SCUserChangeEmailType>;\n confirmChangeUserMail(id: number | string, new_email: string, validation_code?: string, config?: AxiosRequestConfig): Promise<any>;\n changeUserPassword(id: number | string, password: string, new_password: string, config?: AxiosRequestConfig): Promise<any>;\n userSettings(id: number | string, config?: AxiosRequestConfig): Promise<SCUserSettingsType>;\n userSettingsPatch(id: number | string, data?: SCUserSettingsType, config?: AxiosRequestConfig): Promise<SCUserSettingsType>;\n getCurrentUser(config?: AxiosRequestConfig): Promise<SCUserType>;\n getCurrentUserAvatar(config?: AxiosRequestConfig): Promise<SCUserAvatarType>;\n getCurrentUserPermission(config?: AxiosRequestConfig): Promise<SCUserPermissionType>;\n getCurrentUserPlatform(next?: string, config?: AxiosRequestConfig): Promise<SCPlatformType>;\n getUserFollowedCategories(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCCategoryType[]>;\n getUserFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>>;\n getUserFollowers(\n id: number | string,\n mutual?: number,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>>;\n getUserFollowings(\n id: number | string,\n mutual?: number,\n params?: BaseGetParams,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserType>>;\n followUser(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n checkUserFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowedStatusType>;\n checkUserFollower(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowerStatusType>;\n getUserConnections(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>>;\n checkUserConnections(id: number | string, config?: AxiosRequestConfig): Promise<SCUserConnectionStatusType>;\n getUserConnectionRequests(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;\n getUserRequestConnectionsSent(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>>;\n userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userCancelRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userCancelRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n userMarkSeenConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n showHideUser(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n checkUserHidden(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenStatusType>;\n checkUserHiddenBy(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenByStatusType>;\n getUserLoyaltyPoints(id: number | string, config?: AxiosRequestConfig): Promise<SCUserLoyaltyPointsType>;\n getUserConnectionStatuses(users: number[], config?: AxiosRequestConfig): Promise<any>;\n userTagToAddressContribution(config?: AxiosRequestConfig): Promise<SCTagType>;\n checkUserEmailToken(id: number | string, email_token: string, config?: AxiosRequestConfig): Promise<SCUserEmailTokenType>;\n addUserAvatar(data: FormData, config?: AxiosRequestConfig): Promise<SCAvatarType>;\n getUserAvatars(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCAvatarType>>;\n removeUserAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any>;\n setUserPrimaryAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any>;\n getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]>;\n createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType>;\n deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any>;\n}\n\n/**\n * Contains all the endpoints needed to manage users.\n */\nexport class UserApiClient {\n /**\n * This endpoint retrieves the list of all users\n * @param params\n * @param config\n */\n static getAllUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.UserList.url({})}?${p.toString()}`, method: Endpoints.UserList.method});\n }\n\n /**\n * This endpoint retrieves the list of all users hidden by the authenticated user\n * @param params\n * @param config\n */\n static getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.ListHiddenUsers.url({})}?${p.toString()}`, method: Endpoints.ListHiddenUsers.method});\n }\n\n /**\n * This endpoint retrieves the list of all users that meet the search criteria. The user object returned will contain only the following attributes: id, username, real_name, ext_id and avatar.\n * This endpoint is recommended for implementing an autocomplete input field.\n * @param params\n * @param config\n */\n static userAutocomplete(params: UserAutocompleteParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserAutocompleteType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.UserAutocomplete.url({})}?${p.toString()}`, method: Endpoints.UserAutocomplete.method});\n }\n\n /**\n * This endpoint performs users search.\n * @param params\n * @param config\n */\n static userSearch(params: UserSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams(params);\n return apiRequest({...config, url: `${Endpoints.UserSearch.url({})}?${p.toString()}`, method: Endpoints.UserSearch.method});\n }\n\n /**\n * This endpoint retrieves a specific user's profile identified by ID.\n * @param id\n * @param config\n */\n static getSpecificUser(id: number | string, config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, url: Endpoints.User.url({id}), method: Endpoints.User.method});\n }\n\n /**\n * This endpoint retrieves the counters of a specific user identified by ID.\n * @param id\n * @param config\n */\n static getUserCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUserCounterType> {\n return apiRequest({...config, url: Endpoints.UserCounters.url({id}), method: Endpoints.UserCounters.method});\n }\n\n /**\n * This endpoint updates the profile of a user identified by ID. A user can only update their personal data.\n * If the request is willing to update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data', otherwise it can be 'application/x-www-form-urlencoded'.\n * @param id\n * @param data\n * @param config\n */\n static userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, url: Endpoints.UserUpdate.url({id}), method: Endpoints.UserUpdate.method, data: data});\n }\n\n /**\n * This endpoint patches a specific user identified by {id}\n * @param id\n * @param data\n * @param config\n */\n static userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, url: Endpoints.UserPatch.url({id}), method: Endpoints.UserPatch.method, data: data});\n }\n\n /**\n * This endpoint deletes a specific user identified by {id}\n * @param id\n * @param hard\n * @param config\n */\n static userDelete(id: number | string, hard?: number, config?: AxiosRequestConfig): Promise<any> {\n const p = urlParams({...(hard && {hard: hard})});\n return apiRequest({...config, url: `${Endpoints.UserDelete.url({id})}?${p.toString()}`, method: Endpoints.UserDelete.method});\n }\n\n /**\n * This endpoint changes the email of the authenticated user.\n * @param id\n * @param new_email\n * @param confirm\n * @param config\n */\n static changeUserMail(\n id: number | string,\n new_email: string,\n confirm?: boolean,\n config?: AxiosRequestConfig\n ): Promise<any | SCUserChangeEmailType> {\n return apiRequest({\n ...config,\n url: Endpoints.ChangeUserMail.url({id}),\n method: Endpoints.ChangeUserMail.method,\n data: {\n new_email: new_email,\n confirm: confirm\n }\n });\n }\n\n /**\n * This endpoint confirms email change.\n * @param id\n * @param new_email\n * @param validation_code\n * @param config\n */\n static confirmChangeUserMail(id: number | string, new_email: string, validation_code?: string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.ConfirmUserChangeMail.url({id}),\n method: Endpoints.ConfirmUserChangeMail.method,\n data: {\n new_email: new_email,\n validation_code: validation_code\n }\n });\n }\n\n /**\n * This endpoint changes the password of the authenticated user.\n * @param id\n * @param password\n * @param new_password\n * @param config\n */\n static changeUserPassword(id: number | string, password: string, new_password: string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.ChangeUserPassword.url({id}),\n method: Endpoints.ChangeUserPassword.method,\n data: {\n password: password,\n new_password: new_password\n }\n });\n }\n\n /**\n * This endpoint retrieves all current user's settings for the authenticated user.\n * @param id\n * @param config\n */\n static userSettings(id: number | string, config?: AxiosRequestConfig): Promise<SCUserSettingsType> {\n return apiRequest({...config, url: Endpoints.UserSettings.url({id}), method: Endpoints.UserSettings.method});\n }\n\n /**\n * This endpoint changes the user settings for the authenticated user.\n * @param id\n * @param data\n * @param config\n */\n static userSettingsPatch(id: number | string, data?: SCUserSettingsType, config?: AxiosRequestConfig): Promise<SCUserSettingsType> {\n return apiRequest({...config, url: Endpoints.UserSettingsPatch.url({id}), method: Endpoints.UserSettingsPatch.method, data: data ?? null});\n }\n\n /**\n * This endpoint returns the user identified by the authentication token.\n * @param config\n */\n static getCurrentUser(config?: AxiosRequestConfig): Promise<SCUserType> {\n return apiRequest({...config, url: Endpoints.Me.url(), method: Endpoints.Me.method});\n }\n\n /**\n * This endpoint returns the url to the user's current avatar.\n * @param config\n */\n static getCurrentUserAvatar(config?: AxiosRequestConfig): Promise<SCUserAvatarType> {\n return apiRequest({...config, url: Endpoints.MyAvatar.url({}), method: Endpoints.MyAvatar.method});\n }\n\n /**\n * This endpoint returns a list of permissions for the user identified by the authentication token. Some permissions in the list depend on global community settings.\n * @param config\n */\n static getCurrentUserPermission(config?: AxiosRequestConfig): Promise<SCUserPermissionType> {\n return apiRequest({...config, url: Endpoints.Permission.url({}), method: Endpoints.Permission.method});\n }\n\n /**\n * This endpoint retrieves the platform url starting from the Authorization user token. Using this url, the logged user (must be a staff member) can access the platform to manage the community.\n * @param next\n * @param config\n */\n static getCurrentUserPlatform(next?: string, config?: AxiosRequestConfig): Promise<SCPlatformType> {\n const p = urlParams({...(next && {next: next})});\n return apiRequest({...config, url: `${Endpoints.Platform.url({})}?${p.toString()}`, method: Endpoints.Platform.method});\n }\n\n /**\n * This endpoint gets the list of categories followed by the user.\n * @param id\n * @param mutual\n * @param config\n */\n static getUserFollowedCategories(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCCategoryType[]> {\n const p = urlParams({...(mutual && {mutual: mutual})});\n return apiRequest({...config, url: `${Endpoints.FollowedCategories.url({id})}?${p.toString()}`, method: Endpoints.FollowedCategories.method});\n }\n\n /**\n * This endpoint retrieves the list of posts of the user identified by {id}\n * @param id\n * @param config\n */\n static getUserFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return apiRequest({...config, url: Endpoints.UserFeed.url({id}), method: Endpoints.UserFeed.method, params});\n }\n\n /**\n * This endpoint retrieves the list of followers of a specific user identified by {id}\n * @param id\n * @param mutual\n * @param config\n */\n static getUserFollowers(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({...config, url: Endpoints.UserFollowers.url({id}), method: Endpoints.UserFollowers.method, params});\n }\n\n /**\n * This endpoint retrieves the list of following of a specific user identified by {id}.\n * @param id\n * @param mutual\n * @param config\n */\n static getUserFollowings(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return apiRequest({...config, url: Endpoints.UserFollowings.url({id}), method: Endpoints.UserFollowings.method, params});\n }\n\n /**\n * This endpoint allows a user to follow another user identified by {id}\n * @param id\n * @param config\n */\n static followUser(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.FollowUser.url({id}), method: Endpoints.FollowUser.method});\n }\n\n /**\n * This endpoint returns is_followed = true if the user (identified in path) is followed by me.\n * @param id\n * @param config\n */\n static checkUserFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowedStatusType> {\n return apiRequest({...config, url: Endpoints.CheckUserFollowed.url({id}), method: Endpoints.CheckUserFollowed.method});\n }\n\n /**\n * This endpoint returns is_follower = true if the user (identified in path) follow me\n * @param id\n * @param config\n */\n static checkUserFollower(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowerStatusType> {\n return apiRequest({...config, url: Endpoints.CheckUserFollower.url({id}), method: Endpoints.CheckUserFollower.method});\n }\n\n /**\n * This endpoint retrieves the list of connections of a specific user identified by ID.\n * @param id\n * @param mutual\n * @param config\n */\n static getUserConnections(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n const p = urlParams({...(mutual && {mutual: mutual})});\n return apiRequest({...config, url: `${Endpoints.UserConnections.url({id})}?${p.toString()}`, method: Endpoints.UserConnections.method});\n }\n\n /**\n * This endpoint returns is_connection = true if the user (identified in path) is connected with me.\n * @param id\n * @param config\n */\n static checkUserConnections(id: number | string, config?: AxiosRequestConfig): Promise<SCUserConnectionStatusType> {\n return apiRequest({...config, url: Endpoints.UserCheckConnection.url({id}), method: Endpoints.UserCheckConnection.method});\n }\n\n /**\n * This endpoint retrieves the list of connection requests received by a specific user identified by ID.\n * @param id\n * @param config\n */\n static getUserConnectionRequests(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>> {\n return apiRequest({...config, url: Endpoints.UserConnectionRequests.url({id}), method: Endpoints.UserConnectionRequests.method});\n }\n\n /**\n * This endpoint retrieves a specific user's list of connection requests sent by user.\n * @param id\n * @param config\n */\n static getUserRequestConnectionsSent(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserConnectionRequestType>> {\n return apiRequest({...config, url: Endpoints.UserRequestConnectionsSent.url({id}), method: Endpoints.UserRequestConnectionsSent.method});\n }\n\n /**\n * This endpoint accepts a request connection of the user identified by {id}\n * @param id\n * @param config\n */\n static userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserAcceptRequestConnection.url({id}), method: Endpoints.UserAcceptRequestConnection.method});\n }\n\n /**\n * This endpoint requests a connection to the user identified by {id}\n * @param id\n * @param config\n */\n static userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserRequestConnection.url({id}), method: Endpoints.UserRequestConnection.method});\n }\n\n /**\n * This endpoint removes connection with the user identified by {id}\n * @param id\n * @param config\n */\n static userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserRemoveConnection.url({id}), method: Endpoints.UserRemoveConnection.method});\n }\n\n /**\n * This endpoint cancels reject connection to a user identified by {id}\n * @param id\n * @param config\n */\n static userCancelRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.UserCancelRejectConnectionRequest.url({id}),\n method: Endpoints.UserCancelRejectConnectionRequest.method\n });\n }\n\n /**\n * This endpoint cancels a request connection for a user.\n * @param id\n * @param config\n */\n static userCancelRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserCancelRequestConnection.url({id}), method: Endpoints.UserCancelRequestConnection.method});\n }\n\n /**\n * This endpoint rejects a connection request sent from user identified by {id}\n * @param id\n * @param config\n */\n static userRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserRejectConnectionRequest.url({id}), method: Endpoints.UserRejectConnectionRequest.method});\n }\n\n /**\n * This endpoint marks seen a connection request of user identified by {id} for the authenticated user.\n * @param id\n * @param config\n */\n static userMarkSeenConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserMarkSeenConnectionRequest.url({id}), method: Endpoints.UserMarkSeenConnectionRequest.method});\n }\n\n /**\n * This endpoint shows/hides a user (and its posts) identified by {id} for the authenticated user.\n * @param id\n * @param config\n */\n static showHideUser(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.UserShowHide.url({id}), method: Endpoints.UserShowHide.method});\n }\n\n /**\n * This endpoint returns true if the user (identified in path) is hidden by the authenticated user.\n * @param id\n * @param config\n */\n static checkUserHidden(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenStatusType> {\n return apiRequest({...config, url: Endpoints.CheckUserHidden.url({id}), method: Endpoints.CheckUserHidden.method});\n }\n\n /**\n * This endpoint returns true if the user (identified in path) has hidden by the authenticated user.\n * @param id\n * @param config\n */\n static checkUserHiddenBy(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenByStatusType> {\n return apiRequest({...config, url: Endpoints.CheckUserHiddenBy.url({id}), method: Endpoints.CheckUserHiddenBy.method});\n }\n\n /**\n * This endpoint returns user's loyalty points.\n * @param id\n * @param config\n */\n static getUserLoyaltyPoints(id: number | string, config?: AxiosRequestConfig): Promise<SCUserLoyaltyPointsType> {\n return apiRequest({...config, url: Endpoints.GetUserLoyaltyPoints.url({id}), method: Endpoints.GetUserLoyaltyPoints.method});\n }\n\n /**\n * This endpoint lists the connection/follow statuses of the logged user starting from a users array.\n * @param users\n * @param config\n */\n static getUserConnectionStatuses(users: number[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.UserConnectionStatuses.url({}),\n method: Endpoints.UserConnectionStatuses.method,\n data: {users: users}\n });\n }\n\n /**\n * This endpoint returns user's tags to address a contribution.\n * @param config\n */\n static userTagToAddressContribution(config?: AxiosRequestConfig): Promise<SCTagType> {\n return apiRequest({...config, url: Endpoints.UserTagToAddressContribution.url({}), method: Endpoints.UserTagToAddressContribution.method});\n }\n\n /**\n * This endpoint checks an email token.\n * @param id\n * @param email_token\n * @param config\n */\n static checkUserEmailToken(id, email_token, config?: AxiosRequestConfig): Promise<SCUserEmailTokenType> {\n const p = urlParams({email_token: email_token});\n return apiRequest({...config, url: `${Endpoints.CheckEmailToken.url({id})}?${p.toString()}`, method: Endpoints.CheckEmailToken.method});\n }\n\n /**\n * This endpoint adds an avatar to my avatars.\n * @param data\n * @param config\n */\n static addUserAvatar(data: FormData, config?: AxiosRequestConfig): Promise<SCAvatarType> {\n return apiRequest({url: Endpoints.AddAvatar.url({}), method: Endpoints.AddAvatar.method, data, ...config});\n }\n\n /**\n * This endpoint retrieves all user avatars.\n * @param config\n */\n static getUserAvatars(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCAvatarType>> {\n return apiRequest({url: Endpoints.GetAvatars.url({}), method: Endpoints.GetAvatars.method, ...config});\n }\n\n /**\n * This endpoint removes/deletes an avatar from the authenticated user avatars.\n * @param avatar_id\n * @param config\n */\n static removeUserAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({url: Endpoints.RemoveAvatar.url({}), method: Endpoints.RemoveAvatar.method, data: {avatar_id: avatar_id}, ...config});\n }\n\n /**\n * This endpoint sets the primary avatar for the authenticated user.\n * @param avatar_id\n * @param config\n */\n static setUserPrimaryAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({url: Endpoints.SetPrimaryAvatar.url({}), method: Endpoints.SetPrimaryAvatar.method, data: {avatar_id: avatar_id}, ...config});\n }\n\n /**\n * This endpoint retrieve all provider associations owned by a user\n *\n * @param userId\n * @param config\n */\n static getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]> {\n return apiRequest({\n ...config,\n url: Endpoints.ProviderAssociations.url({id: userId}),\n method: Endpoints.ProviderAssociations.method\n });\n }\n /**\n * This endpoint creates a provider association for a given account.\n *\n * @param data\n * @param config\n */\n static createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType> {\n return apiRequest({\n ...config,\n data,\n url: Endpoints.CreateProviderAssociation.url({id: data.user_id}),\n method: Endpoints.CreateProviderAssociation.method\n });\n }\n /**\n * This endpoint deletes a provider association for a given account.\n *\n * It requires an administration token.\n *\n * @param data\n * @param config\n */\n static deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n data,\n url: Endpoints.DeleteProviderAssociation.url({id: data.user_id}),\n method: Endpoints.DeleteProviderAssociation.method\n });\n }\n}\n\n/**\n *\n :::tipUser service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {UserService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllUsers` will return the paginated list of users.\n\n async getAllUsers() {\n return await UserService.getAllUsers();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getSpecificUser(userId) {\n return await UserService.getSpecificUser(userId);\n }\n ```\n\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n Ex: If the async function `userUpdate` is willing to update the avatar or the cover the 'Content-Type' request header must be set as 'multipart/form-data'.\n\n async getSpecificUser(userId, data, config) {\n const headers = {headers: {'Content-Type': 'multipart/form-data'}}\n return await UserService.getSpecificUser(userId, {avatar: avatar}, headers);\n }\n ```\n :::\n */\nexport default class UserService {\n static async getAllUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.getAllUsers(params, config);\n }\n static async getHiddenUsers(params?: any, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.getHiddenUsers(params, config);\n }\n static async userAutocomplete(params: UserAutocompleteParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserAutocompleteType>> {\n return UserApiClient.userAutocomplete(params, config);\n }\n static async userSearch(params: UserSearchParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.userSearch(params, config);\n }\n static async getSpecificUser(id: number | string, config?: AxiosRequestConfig): Promise<SCUserType> {\n return UserApiClient.getSpecificUser(id, config);\n }\n static async getUserCounters(id: number | string, config?: AxiosRequestConfig): Promise<SCUserCounterType> {\n return UserApiClient.getUserCounters(id, config);\n }\n static async userUpdate(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType> {\n return UserApiClient.userUpdate(id, data, config);\n }\n static async userPatch(id: number | string, data?: SCUserType, config?: AxiosRequestConfig): Promise<SCUserType> {\n return UserApiClient.userPatch(id, data, config);\n }\n static async userDelete(id: number | string, hard?: number, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userDelete(id, hard, config);\n }\n static async changeUserMail(\n id: number | string,\n new_email: string,\n confirm?: boolean,\n config?: AxiosRequestConfig\n ): Promise<any | SCUserChangeEmailType> {\n return UserApiClient.changeUserMail(id, new_email, confirm, config);\n }\n static async confirmChangeUserMail(id: number | string, new_email: string, validation_code?: string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.confirmChangeUserMail(id, new_email, validation_code, config);\n }\n static async changeUserPassword(id: number | string, password: string, new_password: string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.changeUserPassword(id, password, new_password, config);\n }\n static async userSettings(id: number | string, config?: AxiosRequestConfig): Promise<SCUserSettingsType> {\n return UserApiClient.userSettings(id, config);\n }\n static async userSettingsPatch(id: number | string, data?: SCUserSettingsType, config?: AxiosRequestConfig): Promise<SCUserSettingsType> {\n return UserApiClient.userSettingsPatch(id, data, config);\n }\n static async getCurrentUser(config?: AxiosRequestConfig): Promise<SCUserType> {\n return UserApiClient.getCurrentUser(config);\n }\n static async getCurrentUserAvatar(config?: AxiosRequestConfig): Promise<SCUserAvatarType> {\n return UserApiClient.getCurrentUserAvatar(config);\n }\n static async getCurrentUserPermission(config?: AxiosRequestConfig): Promise<SCUserPermissionType> {\n return UserApiClient.getCurrentUserPermission(config);\n }\n static async getCurrentUserPlatform(next?: string, config?: AxiosRequestConfig): Promise<SCPlatformType> {\n return UserApiClient.getCurrentUserPlatform(next, config);\n }\n static async getUserFollowedCategories(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCCategoryType[]> {\n return UserApiClient.getUserFollowedCategories(id, mutual, config);\n }\n static async getUserFeed(id: number | string, params?: BaseGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCFeedUnitType>> {\n return UserApiClient.getUserFeed(id, params, config);\n }\n static async getUserFollowers(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.getUserFollowers(id, params, config);\n }\n static async getUserFollowings(id: number | string, params?: UserGetParams, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.getUserFollowings(id, params, config);\n }\n static async followUser(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.followUser(id, config);\n }\n static async checkUserFollowed(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowedStatusType> {\n return UserApiClient.checkUserFollowed(id, config);\n }\n static async checkUserFollower(id: number | string, config?: AxiosRequestConfig): Promise<SCUserFollowerStatusType> {\n return UserApiClient.checkUserFollower(id, config);\n }\n static async getUserConnections(id: number | string, mutual?: number, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCUserType>> {\n return UserApiClient.getUserConnections(id, mutual, config);\n }\n static async checkUserConnections(id: number | string, config?: AxiosRequestConfig): Promise<SCUserConnectionStatusType> {\n return UserApiClient.checkUserConnections(id, config);\n }\n static async getUserConnectionRequests(\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserConnectionRequestType>> {\n return UserApiClient.getUserConnectionRequests(id, config);\n }\n static async getUserRequestConnectionsSent(\n id: number | string,\n config?: AxiosRequestConfig\n ): Promise<SCPaginatedResponse<SCUserConnectionRequestType>> {\n return UserApiClient.getUserRequestConnectionsSent(id, config);\n }\n static async userAcceptRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userAcceptRequestConnection(id, config);\n }\n static async userRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userRequestConnection(id, config);\n }\n static async userRemoveConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userRemoveConnection(id, config);\n }\n static async userCancelRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userCancelRejectConnectionRequest(id, config);\n }\n static async userCancelRequestConnection(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userCancelRequestConnection(id, config);\n }\n static async userRejectConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userRejectConnectionRequest(id, config);\n }\n static async userMarkSeenConnectionRequest(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.userMarkSeenConnectionRequest(id, config);\n }\n static async showHideUser(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.showHideUser(id, config);\n }\n static async checkUserHidden(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenStatusType> {\n return UserApiClient.checkUserHidden(id, config);\n }\n static async checkUserHiddenBy(id: number | string, config?: AxiosRequestConfig): Promise<SCUserHiddenByStatusType> {\n return UserApiClient.checkUserHiddenBy(id, config);\n }\n static async getUserLoyaltyPoints(id: number | string, config?: AxiosRequestConfig): Promise<SCUserLoyaltyPointsType> {\n return UserApiClient.getUserLoyaltyPoints(id, config);\n }\n static async getUserConnectionStatuses(users: number[], config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.getUserConnectionStatuses(users, config);\n }\n static async userTagToAddressContribution(config?: AxiosRequestConfig): Promise<SCTagType> {\n return UserApiClient.userTagToAddressContribution(config);\n }\n static async checkUserEmailToken(id: number | string, email_token, config?: AxiosRequestConfig): Promise<SCUserEmailTokenType> {\n return UserApiClient.checkUserEmailToken(id, email_token, config);\n }\n static async addUserAvatar(data: FormData, config?: AxiosRequestConfig): Promise<SCAvatarType> {\n return UserApiClient.addUserAvatar(data, config);\n }\n static async getUserAvatars(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCAvatarType>> {\n return UserApiClient.getUserAvatars(config);\n }\n static async removeUserAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.removeUserAvatar(avatar_id, config);\n }\n static async setUserPrimaryAvatar(avatar_id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.setUserPrimaryAvatar(avatar_id, config);\n }\n static async getProviderAssociations(userId: string | number, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType[]> {\n return UserApiClient.getProviderAssociations(userId, config);\n }\n static async createProviderAssociation(data: SCUserProviderAssociationType, config?: AxiosRequestConfig): Promise<SCUserProviderAssociationType> {\n return UserApiClient.createProviderAssociation(data, config);\n }\n static async deleteProviderAssociation(data: DeleteProviderAssociation, config?: AxiosRequestConfig): Promise<any> {\n return UserApiClient.deleteProviderAssociation(data, config);\n }\n}\n","import Endpoints from '../../constants/Endpoints';\nimport {SCWebhookEndpointType, SCWebhookEndpointAttemptType, SCWebhookEndpointSecretType} from '@selfcommunity/types';\nimport {WebhookParamType} from '../../types';\nimport {SCPaginatedResponse} from '../../types';\nimport {apiRequest} from '../../utils/apiRequest';\nimport {AxiosRequestConfig} from 'axios';\n\nexport interface WebhookApiClientInterface {\n getAllWebhookEndpoints(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointType>>;\n getAllWebhookEvents(config?: AxiosRequestConfig): Promise<string[]>;\n createWebhookEndpoint(params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType>;\n getASpecificWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType>;\n updateASpecificWebhookEndpoint(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType>;\n updateASingleWebhookEndpointField(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType>;\n deleteWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<any>;\n getAllWebhookEndpointAttempts(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>>;\n expireWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType>;\n revealWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointSecretType>;\n resendWebhookEndpointEvent(id: number | string, event: number, config?: AxiosRequestConfig): Promise<any>;\n resendMultipleWebhookEndpointEvent(id: number | string, event: number[], config?: AxiosRequestConfig): Promise<any>;\n}\n\n/**\n * Contains all the endpoints needed to manage webhooks.\n */\nexport class WebhookApiClient {\n /**\n * This endpoint retrieves all webhook endpoints\n * @param config\n */\n static getAllWebhookEndpoints(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointType>> {\n return apiRequest({...config, url: Endpoints.WebhookEndpointsList.url({}), method: Endpoints.WebhookEndpointsList.method});\n }\n\n /**\n * This endpoint retrieves webhook events that can be enabled in the endpoint.\n * @param config\n */\n static getAllWebhookEvents(config?: AxiosRequestConfig): Promise<string[]> {\n return apiRequest({...config, url: Endpoints.WebhookEventsList.url({}), method: Endpoints.WebhookEventsList.method});\n }\n\n /**\n * This endpoint creates a webhook endpoint and connects it to the given webhook events.\n * @param data\n * @param config\n */\n static createWebhookEndpoint(data: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return apiRequest({...config, url: Endpoints.WebhookCreate.url({}), method: Endpoints.WebhookCreate.method, data: data});\n }\n\n /**\n * This endpoint retrieves a specific webhook endpoint using ID.\n * @param id\n * @param config\n */\n static getASpecificWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return apiRequest({...config, url: Endpoints.GetSpecificWebhook.url({id}), method: Endpoints.GetSpecificWebhook.method});\n }\n\n /**\n * This endpoint updates a specific webhook endpoint.\n * @param id\n * @param params\n * @param config\n */\n static updateASpecificWebhookEndpoint(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return apiRequest({...config, url: Endpoints.WebhookUpdate.url({id}), method: Endpoints.WebhookUpdate.method, data: params});\n }\n\n /**\n * This endpoint updates a specific field for a specific webhook endpoint.\n * @param id\n * @param params\n * @param config\n */\n static updateASingleWebhookEndpointField(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return apiRequest({...config, url: Endpoints.WebhookPatch.url({id}), method: Endpoints.WebhookPatch.method, data: params});\n }\n\n /**\n * This endpoint deletes a Webhook Endpoint.\n * @param id\n * @param config\n */\n static deleteWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({...config, url: Endpoints.WebhookDelete.url({id}), method: Endpoints.WebhookDelete.method});\n }\n\n /**\n * This endpoint retrieves the attempts related to this endpoint.\n * @param id\n * @param config\n */\n static getAllWebhookEndpointAttempts(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>> {\n return apiRequest({...config, url: Endpoints.WebhookEndpointAttempts.url({id}), method: Endpoints.WebhookEndpointAttempts.method});\n }\n\n /**\n * This endpoint expires the secret associated with this endpoint.\n * @param id\n * @param config\n */\n static expireWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return apiRequest({...config, url: Endpoints.WebhookExpireSigningSecret.url({id}), method: Endpoints.WebhookExpireSigningSecret.method});\n }\n\n /**\n * This endpoint reveals the secret associated with this endpoint.\n * @param id\n * @param config\n */\n static revealWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointSecretType> {\n return apiRequest({...config, url: Endpoints.WebhookRevealSigningSecret.url({id}), method: Endpoints.WebhookRevealSigningSecret.method});\n }\n\n /**\n * This endpoint resends the event specified as parameter to the endpoint specified by the id parameter.\n * @param id\n * @param event\n * @param config\n */\n static resendWebhookEndpointEvent(id: number | string, event: number, config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.WebhookResendEndpointEvent.url({id}),\n method: Endpoints.WebhookResendEndpointEvent.method,\n data: {event: event}\n });\n }\n\n /**\n * This endpoint resends the events specified as parameters to the endpoint specified by the id parameter.\n * @param id\n * @param event\n * @param config\n */\n static resendMultipleWebhookEndpointEvent(id: number | string, event: number[], config?: AxiosRequestConfig): Promise<any> {\n return apiRequest({\n ...config,\n url: Endpoints.WebhookResendMultipleEndpointEvent.url({id}),\n method: Endpoints.WebhookResendMultipleEndpointEvent.method,\n data: {event: event}\n });\n }\n}\n\n/**\n *\n :::tipWebhook service can be used in the following way:\n\n ```jsx\n 1. Import the service from our library:\n\n import {WebhookService} from \"@selfcommunity/api-services\";\n ```\n ```jsx\n 2. Create a function and put the service inside it!\n The async function `getAllWebhookEndpoints` will return the paginated list of webhook endpoints.\n\n async getAllWebhookEndpoints() {\n return await WebhookService.getAllWebhookEndpoints();\n }\n ```\n ```jsx\n In case of required `params`, just add them inside the brackets.\n\n async getASpecificWebhookEndpoint(webhookId) {\n return await WebhookService.getASpecificWebhookEndpoint(webhookId);\n }\n ```\n ```jsx\n If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).\n\n 1. Declare it(or declare them, it is possible to add multiple params)\n\n const headers = headers: {Authorization: `Bearer ${yourToken}`}\n\n 2. Add it inside the brackets and pass it to the function, as shown in the previous example!\n ```\n :::\n */\nexport default class WebhookService {\n static async getAllWebhookEndpoints(config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointType>> {\n return WebhookApiClient.getAllWebhookEndpoints(config);\n }\n static async getAllWebhookEvents(config?: AxiosRequestConfig): Promise<any> {\n return WebhookApiClient.getAllWebhookEvents(config);\n }\n static async createWebhookEndpoint(params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return WebhookApiClient.createWebhookEndpoint(params, config);\n }\n static async getASpecificWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return WebhookApiClient.getASpecificWebhookEndpoint(id, config);\n }\n static async updateASpecificWebhookEndpoint(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return WebhookApiClient.updateASpecificWebhookEndpoint(id, params, config);\n }\n static async updateASingleWebhookEndpointField(id: number | string, params: WebhookParamType, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return WebhookApiClient.updateASingleWebhookEndpointField(id, params, config);\n }\n static async deleteWebhookEndpoint(id: number | string, config?: AxiosRequestConfig): Promise<any> {\n return WebhookApiClient.deleteWebhookEndpoint(id, config);\n }\n static async getAllWebhookEndpointAttempts(id: number | string, config?: AxiosRequestConfig): Promise<SCPaginatedResponse<SCWebhookEndpointAttemptType>> {\n return WebhookApiClient.getAllWebhookEndpointAttempts(id, config);\n }\n static async expireWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointType> {\n return WebhookApiClient.expireWebhookSigningSecret(id, config);\n }\n static async revealWebhookSigningSecret(id: number | string, config?: AxiosRequestConfig): Promise<SCWebhookEndpointSecretType> {\n return WebhookApiClient.revealWebhookSigningSecret(id, config);\n }\n static async resendWebhookEndpointEvent(id: number | string, event: number, config?: AxiosRequestConfig): Promise<any> {\n return WebhookApiClient.resendWebhookEndpointEvent(id, event, config);\n }\n static async resendMultipleWebhookEndpointEvent(id: number | string, event: number[], config?: AxiosRequestConfig): Promise<any> {\n return WebhookApiClient.resendMultipleWebhookEndpointEvent(id, event, config);\n }\n}\n","import {AccountCreateParams, AccountVerifyParams, AccountRecoverParams, AccountResetParams, AccountSearchParams} from './account';\nimport {SCPaginatedResponse} from './paginatedResponse';\nimport {WebhookParamType, WebhookEventsType} from './webhook';\nimport {SSOSignUpParams} from './sso';\nimport {CommentListParams, CommentCreateParams} from './comment';\nimport {IncubatorCreateParams, IncubatorSearchParams} from './incubator';\nimport {LoyaltyPrizeParams} from './prize';\nimport {ModerationParams, ModerateContributionParams, FlaggedContributionParams} from './moderation';\nimport {CustomNotificationParams} from './notification';\nimport {UserGetParams, UserAutocompleteParams, UserScoreParams, UserSearchParams} from './user';\nimport {TagParams, TagGetParams} from './tag';\nimport {MediaCreateParams, MediaTypes, ChunkUploadParams, ChunkUploadCompleteParams} from './media';\nimport {\n ThreadParams,\n MessageCreateParams,\n MessageMediaUploadParams,\n MessageThumbnailUploadParams,\n MessageChunkUploadDoneParams,\n MessageMediaChunksParams,\n ThreadDeleteParams\n} from './privateMessage';\nimport {CategoryParams} from './category';\nimport {CustomAdvParams} from './customAdv';\nimport {CustomPageParams, CustomPageSearchParams} from './customPage';\nimport {EmbedUpdateParams, EmbedSearchParams} from './embed';\nimport {BaseGetParams, BaseSearchParams} from './baseParams';\nimport {FeedObjGetParams, FeedObjCreateParams, FeedObjectPollVotesSearch} from './feedObject';\nimport {FeedParams} from './feed';\nimport {LegalPageFilterParams} from './legalPage';\nimport {FeatureParams} from './feature';\nimport {ScoreParams} from './score';\nimport {InsightCommonParams, InsightEmbedParams, InsightUserParams, InsightContributionParams} from './insight';\nimport {ReactionParams} from './reaction';\n\nexport {\n AccountCreateParams,\n AccountVerifyParams,\n AccountRecoverParams,\n AccountResetParams,\n AccountSearchParams,\n SCPaginatedResponse,\n WebhookParamType,\n WebhookEventsType,\n SSOSignUpParams,\n CommentListParams,\n CommentCreateParams,\n IncubatorCreateParams,\n IncubatorSearchParams,\n LoyaltyPrizeParams,\n ModerationParams,\n ModerateContributionParams,\n FlaggedContributionParams,\n CustomNotificationParams,\n UserGetParams,\n UserAutocompleteParams,\n UserScoreParams,\n UserSearchParams,\n TagParams,\n TagGetParams,\n MediaCreateParams,\n MediaTypes,\n ChunkUploadCompleteParams,\n ChunkUploadParams,\n ThreadParams,\n ThreadDeleteParams,\n MessageCreateParams,\n MessageMediaUploadParams,\n MessageThumbnailUploadParams,\n MessageChunkUploadDoneParams,\n MessageMediaChunksParams,\n CategoryParams,\n CustomAdvParams,\n CustomPageParams,\n CustomPageSearchParams,\n EmbedUpdateParams,\n EmbedSearchParams,\n BaseGetParams,\n BaseSearchParams,\n FeedObjGetParams,\n FeedObjCreateParams,\n FeedObjectPollVotesSearch,\n FeedParams,\n LegalPageFilterParams,\n FeatureParams,\n ScoreParams,\n InsightContributionParams,\n InsightUserParams,\n InsightEmbedParams,\n InsightCommonParams,\n ReactionParams\n};\n","import {SCEmbedType} from '@selfcommunity/types';\n/**\n * Interface MediaCreateParams\n */\nexport interface MediaCreateParams {\n /**\n * The media type.\n */\n type: MediaTypes;\n /**\n * Required if media type is url\n */\n url?: string;\n /**\n * Required if media type is share\n */\n share_object?: number;\n /**\n * Required if media type is embed\n */\n embed?: SCEmbedType;\n}\n\nexport enum MediaTypes {\n URL = 'url',\n SHARE = 'share',\n EMBED = 'embed'\n}\n\n/**\n * Interface ChunkUploadParams\n */\n\nexport interface ChunkUploadParams {\n /**\n * String returned by the first call and required from the second\n */\n upload_id: string;\n /**\n * The expiration time.\n */\n expires?: string;\n /**\n * The image chunk to be uploaded\n */\n image?: Blob;\n /**\n * The document chunk to be uploaded\n */\n document?: Blob;\n}\n\n/**\n * Interface ChunkUploadCompleteParams\n */\n\nexport interface ChunkUploadCompleteParams {\n /**\n * Default to image or document based on file extension\n * It can be: image, doc, eimage.\n */\n type?: string;\n /**\n * Id of the chunk uploaded file.\n */\n upload_id: string;\n /**\n * MD5 hash of the original file for checksum proposal\n */\n md5: string;\n}\n","import client from '../client';\nimport {AxiosRequestConfig} from 'axios';\nimport {SCOPE_API_SERVICES} from '../constants/Errors';\nimport {Logger} from '@selfcommunity/utils';\n\nexport function apiRequest(config: AxiosRequestConfig) {\n return client\n .request(config)\n .then((res: any) => {\n if (!res) {\n Logger.info(SCOPE_API_SERVICES, `Request ${config.method} ${config.url} aborted.`);\n return Promise.reject(`Request ${config.method} ${config.url} aborted.`);\n }\n if (res.status >= 300) {\n Logger.info(SCOPE_API_SERVICES, `Unable to ${config.method} ${config.url} (Response code: ${res.status}).`);\n return Promise.reject(res);\n }\n return Promise.resolve(res.data);\n })\n .catch((error) => {\n Logger.warn(SCOPE_API_SERVICES, `Unable to ${config.method} ${config.url} ${error}`);\n return Promise.reject(error);\n });\n}\n","import {camelCase} from '@selfcommunity/utils';\nimport axios, { CancelTokenSource } from \"axios\";\n\nexport function defaultError(error: {request?: any; message?: any}): void {\n if (error.request) {\n // The request was made but no response was received\n // `error.request` is an instance of XMLHttpRequest in the browser and an instance of\n // http.ClientRequest in node.js\n console.log(error.request);\n } else {\n // Something happened in setting up the request that triggered an Error\n console.log('Error', error.message);\n }\n}\n\nconst formatError = (error) => {\n const errors: any = {};\n if (Array.isArray(error)) {\n for (let i = 0; i < error.length; i++) {\n const err = error[i];\n if (err.field) {\n errors[`${camelCase(err.field)}Error`] = Array.isArray(err.messages) ? formatError(err.messages) : err.messages;\n } else {\n errors.error = err.message;\n }\n }\n } else {\n errors.error = error.errors;\n }\n return errors;\n};\n\nexport function formatHttpError(error) {\n let errors: any = {};\n if (error.response && error.response.data && typeof error.response.data === 'object' && error.response.data.errors) {\n errors = {...formatError(error.response.data.errors)};\n } else {\n defaultError(error);\n }\n return errors;\n}\n\nexport function getCancelTokenSourceRequest() {\n return axios.CancelToken.source();\n}\n","import * as jose from 'jose';\n\n/**\n * Generate a JWT\n :::tipContext can be consumed as following:\n ```jsx\n 1. const token = await generateJWTToken(userId, secretKey, expirationTime);\n ```\n ```jsx\n 2. generateJWTToken(userId, secretKey, expirationTime).then(token => {...});\n ```\n :::\n * @param userId\n * @param secretKey\n * @param expirationTime\n */\nexport async function generateJWTToken(userId, secretKey, expirationTime = '2h') {\n let data = {\n token_type: 'access',\n user_id: userId,\n jti: new Date().getTime().toString()\n };\n const privateKey = new TextEncoder().encode(secretKey);\n return await new jose.SignJWT(data)\n .setProtectedHeader({alg: 'HS256', typ: 'JWT'})\n .setIssuedAt()\n .setExpirationTime(expirationTime ? expirationTime : '2h')\n .sign(privateKey);\n}\n\n/**\n * Extract from a jwt token payload\n * @param token\n */\nexport function parseJwt(token) {\n let base64Url = token.split('.')[1];\n let base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');\n let jsonPayload = decodeURIComponent(\n atob(base64)\n .split('')\n .map(function (c) {\n return '%' + ('00' + c.charCodeAt(0).toString(16)).slice(-2);\n })\n .join('')\n );\n return JSON.parse(jsonPayload);\n}\n","export const urlParams = (init: Record<string, any>) => new URLSearchParams(init as Record<string, string>);",null,null,null,null,null,null,null,null,null,null,null,"export default crypto;\nexport const isCryptoKey = (key) => key instanceof CryptoKey;\n","import crypto from './webcrypto.js';\nconst digest = async (algorithm, data) => {\n const subtleDigest = `SHA-${algorithm.slice(-3)}`;\n return new Uint8Array(await crypto.subtle.digest(subtleDigest, data));\n};\nexport default digest;\n","import digest from '../runtime/digest.js';\nexport const encoder = new TextEncoder();\nexport const decoder = new TextDecoder();\nconst MAX_INT32 = 2 ** 32;\nexport function concat(...buffers) {\n const size = buffers.reduce((acc, { length }) => acc + length, 0);\n const buf = new Uint8Array(size);\n let i = 0;\n buffers.forEach((buffer) => {\n buf.set(buffer, i);\n i += buffer.length;\n });\n return buf;\n}\nexport function p2s(alg, p2sInput) {\n return concat(encoder.encode(alg), new Uint8Array([0]), p2sInput);\n}\nfunction writeUInt32BE(buf, value, offset) {\n if (value < 0 || value >= MAX_INT32) {\n throw new RangeError(`value must be >= 0 and <= ${MAX_INT32 - 1}. Received ${value}`);\n }\n buf.set([value >>> 24, value >>> 16, value >>> 8, value & 0xff], offset);\n}\nexport function uint64be(value) {\n const high = Math.floor(value / MAX_INT32);\n const low = value % MAX_INT32;\n const buf = new Uint8Array(8);\n writeUInt32BE(buf, high, 0);\n writeUInt32BE(buf, low, 4);\n return buf;\n}\nexport function uint32be(value) {\n const buf = new Uint8Array(4);\n writeUInt32BE(buf, value);\n return buf;\n}\nexport function lengthAndInput(input) {\n return concat(uint32be(input.length), input);\n}\nexport async function concatKdf(secret, bits, value) {\n const iterations = Math.ceil((bits >> 3) / 32);\n const res = new Uint8Array(iterations * 32);\n for (let iter = 0; iter < iterations; iter++) {\n const buf = new Uint8Array(4 + secret.length + value.length);\n buf.set(uint32be(iter + 1));\n buf.set(secret, 4);\n buf.set(value, 4 + secret.length);\n res.set(await digest('sha256', buf), iter * 32);\n }\n return res.slice(0, bits >> 3);\n}\n","import { encoder, decoder } from '../lib/buffer_utils.js';\nexport const encodeBase64 = (input) => {\n let unencoded = input;\n if (typeof unencoded === 'string') {\n unencoded = encoder.encode(unencoded);\n }\n const CHUNK_SIZE = 0x8000;\n const arr = [];\n for (let i = 0; i < unencoded.length; i += CHUNK_SIZE) {\n arr.push(String.fromCharCode.apply(null, unencoded.subarray(i, i + CHUNK_SIZE)));\n }\n return btoa(arr.join(''));\n};\nexport const encode = (input) => {\n return encodeBase64(input).replace(/=/g, '').replace(/\\+/g, '-').replace(/\\//g, '_');\n};\nexport const decodeBase64 = (encoded) => {\n const binary = atob(encoded);\n const bytes = new Uint8Array(binary.length);\n for (let i = 0; i < binary.length; i++) {\n bytes[i] = binary.charCodeAt(i);\n }\n return bytes;\n};\nexport const decode = (input) => {\n let encoded = input;\n if (encoded instanceof Uint8Array) {\n encoded = decoder.decode(encoded);\n }\n encoded = encoded.replace(/-/g, '+').replace(/_/g, '/').replace(/\\s/g, '');\n try {\n return decodeBase64(encoded);\n }\n catch (_a) {\n throw new TypeError('The input to be decoded is not correctly encoded.');\n }\n};\n","export class JOSEError extends Error {\n constructor(message) {\n var _a;\n super(message);\n this.code = 'ERR_JOSE_GENERIC';\n this.name = this.constructor.name;\n (_a = Error.captureStackTrace) === null || _a === void 0 ? void 0 : _a.call(Error, this, this.constructor);\n }\n static get code() {\n return 'ERR_JOSE_GENERIC';\n }\n}\nexport class JWTClaimValidationFailed extends JOSEError {\n constructor(message, claim = 'unspecified', reason = 'unspecified') {\n super(message);\n this.code = 'ERR_JWT_CLAIM_VALIDATION_FAILED';\n this.claim = claim;\n this.reason = reason;\n }\n static get code() {\n return 'ERR_JWT_CLAIM_VALIDATION_FAILED';\n }\n}\nexport class JWTExpired extends JOSEError {\n constructor(message, claim = 'unspecified', reason = 'unspecified') {\n super(message);\n this.code = 'ERR_JWT_EXPIRED';\n this.claim = claim;\n this.reason = reason;\n }\n static get code() {\n return 'ERR_JWT_EXPIRED';\n }\n}\nexport class JOSEAlgNotAllowed extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JOSE_ALG_NOT_ALLOWED';\n }\n static get code() {\n return 'ERR_JOSE_ALG_NOT_ALLOWED';\n }\n}\nexport class JOSENotSupported extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JOSE_NOT_SUPPORTED';\n }\n static get code() {\n return 'ERR_JOSE_NOT_SUPPORTED';\n }\n}\nexport class JWEDecryptionFailed extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWE_DECRYPTION_FAILED';\n this.message = 'decryption operation failed';\n }\n static get code() {\n return 'ERR_JWE_DECRYPTION_FAILED';\n }\n}\nexport class JWEInvalid extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWE_INVALID';\n }\n static get code() {\n return 'ERR_JWE_INVALID';\n }\n}\nexport class JWSInvalid extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWS_INVALID';\n }\n static get code() {\n return 'ERR_JWS_INVALID';\n }\n}\nexport class JWTInvalid extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWT_INVALID';\n }\n static get code() {\n return 'ERR_JWT_INVALID';\n }\n}\nexport class JWKInvalid extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWK_INVALID';\n }\n static get code() {\n return 'ERR_JWK_INVALID';\n }\n}\nexport class JWKSInvalid extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWKS_INVALID';\n }\n static get code() {\n return 'ERR_JWKS_INVALID';\n }\n}\nexport class JWKSNoMatchingKey extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWKS_NO_MATCHING_KEY';\n this.message = 'no applicable key found in the JSON Web Key Set';\n }\n static get code() {\n return 'ERR_JWKS_NO_MATCHING_KEY';\n }\n}\nexport class JWKSMultipleMatchingKeys extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';\n this.message = 'multiple matching keys found in the JSON Web Key Set';\n }\n static get code() {\n return 'ERR_JWKS_MULTIPLE_MATCHING_KEYS';\n }\n}\nexport class JWKSTimeout extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWKS_TIMEOUT';\n this.message = 'request timed out';\n }\n static get code() {\n return 'ERR_JWKS_TIMEOUT';\n }\n}\nexport class JWSSignatureVerificationFailed extends JOSEError {\n constructor() {\n super(...arguments);\n this.code = 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';\n this.message = 'signature verification failed';\n }\n static get code() {\n return 'ERR_JWS_SIGNATURE_VERIFICATION_FAILED';\n }\n}\n","import crypto from './webcrypto.js';\nexport default crypto.getRandomValues.bind(crypto);\n","import { JOSENotSupported } from '../util/errors.js';\nimport random from '../runtime/random.js';\nexport function bitLength(alg) {\n switch (alg) {\n case 'A128GCM':\n case 'A128GCMKW':\n case 'A192GCM':\n case 'A192GCMKW':\n case 'A256GCM':\n case 'A256GCMKW':\n return 96;\n case 'A128CBC-HS256':\n case 'A192CBC-HS384':\n case 'A256CBC-HS512':\n return 128;\n default:\n throw new JOSENotSupported(`Unsupported JWE Algorithm: ${alg}`);\n }\n}\nexport default (alg) => random(new Uint8Array(bitLength(alg) >> 3));\n","import { JWEInvalid } from '../util/errors.js';\nimport { bitLength } from './iv.js';\nconst checkIvLength = (enc, iv) => {\n if (iv.length << 3 !== bitLength(enc)) {\n throw new JWEInvalid('Invalid Initialization Vector length');\n }\n};\nexport default checkIvLength;\n","import { JWEInvalid } from '../util/errors.js';\nconst checkCekLength = (cek, expected) => {\n const actual = cek.byteLength << 3;\n if (actual !== expected) {\n throw new JWEInvalid(`Invalid Content Encryption Key length. Expected ${expected} bits, got ${actual} bits`);\n }\n};\nexport default checkCekLength;\n","export function isCloudflareWorkers() {\n return (typeof WebSocketPair !== 'undefined' ||\n (typeof navigator !== 'undefined' && navigator.userAgent === 'Cloudflare-Workers') ||\n (typeof EdgeRuntime !== 'undefined' && EdgeRuntime === 'vercel'));\n}\n","import { isCloudflareWorkers } from '../runtime/env.js';\nfunction unusable(name, prop = 'algorithm.name') {\n return new TypeError(`CryptoKey does not support this operation, its ${prop} must be ${name}`);\n}\nfunction isAlgorithm(algorithm, name) {\n return algorithm.name === name;\n}\nfunction getHashLength(hash) {\n return parseInt(hash.name.slice(4), 10);\n}\nfunction getNamedCurve(alg) {\n switch (alg) {\n case 'ES256':\n return 'P-256';\n case 'ES384':\n return 'P-384';\n case 'ES512':\n return 'P-521';\n default:\n throw new Error('unreachable');\n }\n}\nfunction checkUsage(key, usages) {\n if (usages.length && !usages.some((expected) => key.usages.includes(expected))) {\n let msg = 'CryptoKey does not support this operation, its usages must include ';\n if (usages.length > 2) {\n const last = usages.pop();\n msg += `one of ${usages.join(', ')}, or ${last}.`;\n }\n else if (usages.length === 2) {\n msg += `one of ${usages[0]} or ${usages[1]}.`;\n }\n else {\n msg += `${usages[0]}.`;\n }\n throw new TypeError(msg);\n }\n}\nexport function checkSigCryptoKey(key, alg, ...usages) {\n switch (alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512': {\n if (!isAlgorithm(key.algorithm, 'HMAC'))\n throw unusable('HMAC');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case 'RS256':\n case 'RS384':\n case 'RS512': {\n if (!isAlgorithm(key.algorithm, 'RSASSA-PKCS1-v1_5'))\n throw unusable('RSASSA-PKCS1-v1_5');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case 'PS256':\n case 'PS384':\n case 'PS512': {\n if (!isAlgorithm(key.algorithm, 'RSA-PSS'))\n throw unusable('RSA-PSS');\n const expected = parseInt(alg.slice(2), 10);\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n case isCloudflareWorkers() && 'EdDSA': {\n if (!isAlgorithm(key.algorithm, 'NODE-ED25519'))\n throw unusable('NODE-ED25519');\n break;\n }\n case 'EdDSA': {\n if (key.algorithm.name !== 'Ed25519' && key.algorithm.name !== 'Ed448') {\n throw unusable('Ed25519 or Ed448');\n }\n break;\n }\n case 'ES256':\n case 'ES384':\n case 'ES512': {\n if (!isAlgorithm(key.algorithm, 'ECDSA'))\n throw unusable('ECDSA');\n const expected = getNamedCurve(alg);\n const actual = key.algorithm.namedCurve;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.namedCurve');\n break;\n }\n default:\n throw new TypeError('CryptoKey does not support this operation');\n }\n checkUsage(key, usages);\n}\nexport function checkEncCryptoKey(key, alg, ...usages) {\n switch (alg) {\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM': {\n if (!isAlgorithm(key.algorithm, 'AES-GCM'))\n throw unusable('AES-GCM');\n const expected = parseInt(alg.slice(1, 4), 10);\n const actual = key.algorithm.length;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.length');\n break;\n }\n case 'A128KW':\n case 'A192KW':\n case 'A256KW': {\n if (!isAlgorithm(key.algorithm, 'AES-KW'))\n throw unusable('AES-KW');\n const expected = parseInt(alg.slice(1, 4), 10);\n const actual = key.algorithm.length;\n if (actual !== expected)\n throw unusable(expected, 'algorithm.length');\n break;\n }\n case 'ECDH': {\n switch (key.algorithm.name) {\n case 'ECDH':\n case 'X25519':\n case 'X448':\n break;\n default:\n throw unusable('ECDH, X25519, or X448');\n }\n break;\n }\n case 'PBES2-HS256+A128KW':\n case 'PBES2-HS384+A192KW':\n case 'PBES2-HS512+A256KW':\n if (!isAlgorithm(key.algorithm, 'PBKDF2'))\n throw unusable('PBKDF2');\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512': {\n if (!isAlgorithm(key.algorithm, 'RSA-OAEP'))\n throw unusable('RSA-OAEP');\n const expected = parseInt(alg.slice(9), 10) || 1;\n const actual = getHashLength(key.algorithm.hash);\n if (actual !== expected)\n throw unusable(`SHA-${expected}`, 'algorithm.hash');\n break;\n }\n default:\n throw new TypeError('CryptoKey does not support this operation');\n }\n checkUsage(key, usages);\n}\n","function message(msg, actual, ...types) {\n if (types.length > 2) {\n const last = types.pop();\n msg += `one of type ${types.join(', ')}, or ${last}.`;\n }\n else if (types.length === 2) {\n msg += `one of type ${types[0]} or ${types[1]}.`;\n }\n else {\n msg += `of type ${types[0]}.`;\n }\n if (actual == null) {\n msg += ` Received ${actual}`;\n }\n else if (typeof actual === 'function' && actual.name) {\n msg += ` Received function ${actual.name}`;\n }\n else if (typeof actual === 'object' && actual != null) {\n if (actual.constructor && actual.constructor.name) {\n msg += ` Received an instance of ${actual.constructor.name}`;\n }\n }\n return msg;\n}\nexport default (actual, ...types) => {\n return message('Key must be ', actual, ...types);\n};\nexport function withAlg(alg, actual, ...types) {\n return message(`Key for the ${alg} algorithm must be `, actual, ...types);\n}\n","import { isCryptoKey } from './webcrypto.js';\nexport default (key) => {\n return isCryptoKey(key);\n};\nexport const types = ['CryptoKey'];\n","import { concat, uint64be } from '../lib/buffer_utils.js';\nimport checkIvLength from '../lib/check_iv_length.js';\nimport checkCekLength from './check_cek_length.js';\nimport timingSafeEqual from './timing_safe_equal.js';\nimport { JOSENotSupported, JWEDecryptionFailed } from '../util/errors.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nasync function cbcDecrypt(enc, cek, ciphertext, iv, tag, aad) {\n if (!(cek instanceof Uint8Array)) {\n throw new TypeError(invalidKeyInput(cek, 'Uint8Array'));\n }\n const keySize = parseInt(enc.slice(1, 4), 10);\n const encKey = await crypto.subtle.importKey('raw', cek.subarray(keySize >> 3), 'AES-CBC', false, ['decrypt']);\n const macKey = await crypto.subtle.importKey('raw', cek.subarray(0, keySize >> 3), {\n hash: `SHA-${keySize << 1}`,\n name: 'HMAC',\n }, false, ['sign']);\n const macData = concat(aad, iv, ciphertext, uint64be(aad.length << 3));\n const expectedTag = new Uint8Array((await crypto.subtle.sign('HMAC', macKey, macData)).slice(0, keySize >> 3));\n let macCheckPassed;\n try {\n macCheckPassed = timingSafeEqual(tag, expectedTag);\n }\n catch (_a) {\n }\n if (!macCheckPassed) {\n throw new JWEDecryptionFailed();\n }\n let plaintext;\n try {\n plaintext = new Uint8Array(await crypto.subtle.decrypt({ iv, name: 'AES-CBC' }, encKey, ciphertext));\n }\n catch (_b) {\n }\n if (!plaintext) {\n throw new JWEDecryptionFailed();\n }\n return plaintext;\n}\nasync function gcmDecrypt(enc, cek, ciphertext, iv, tag, aad) {\n let encKey;\n if (cek instanceof Uint8Array) {\n encKey = await crypto.subtle.importKey('raw', cek, 'AES-GCM', false, ['decrypt']);\n }\n else {\n checkEncCryptoKey(cek, enc, 'decrypt');\n encKey = cek;\n }\n try {\n return new Uint8Array(await crypto.subtle.decrypt({\n additionalData: aad,\n iv,\n name: 'AES-GCM',\n tagLength: 128,\n }, encKey, concat(ciphertext, tag)));\n }\n catch (_a) {\n throw new JWEDecryptionFailed();\n }\n}\nconst decrypt = async (enc, cek, ciphertext, iv, tag, aad) => {\n if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {\n throw new TypeError(invalidKeyInput(cek, ...types, 'Uint8Array'));\n }\n checkIvLength(enc, iv);\n switch (enc) {\n case 'A128CBC-HS256':\n case 'A192CBC-HS384':\n case 'A256CBC-HS512':\n if (cek instanceof Uint8Array)\n checkCekLength(cek, parseInt(enc.slice(-3), 10));\n return cbcDecrypt(enc, cek, ciphertext, iv, tag, aad);\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM':\n if (cek instanceof Uint8Array)\n checkCekLength(cek, parseInt(enc.slice(1, 4), 10));\n return gcmDecrypt(enc, cek, ciphertext, iv, tag, aad);\n default:\n throw new JOSENotSupported('Unsupported JWE Content Encryption Algorithm');\n }\n};\nexport default decrypt;\n","const timingSafeEqual = (a, b) => {\n if (!(a instanceof Uint8Array)) {\n throw new TypeError('First argument must be a buffer');\n }\n if (!(b instanceof Uint8Array)) {\n throw new TypeError('Second argument must be a buffer');\n }\n if (a.length !== b.length) {\n throw new TypeError('Input buffers must have the same length');\n }\n const len = a.length;\n let out = 0;\n let i = -1;\n while (++i < len) {\n out |= a[i] ^ b[i];\n }\n return out === 0;\n};\nexport default timingSafeEqual;\n","import { JOSENotSupported } from '../util/errors.js';\nexport const inflate = async () => {\n throw new JOSENotSupported('JWE \"zip\" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `inflateRaw` decrypt option to provide Inflate Raw implementation.');\n};\nexport const deflate = async () => {\n throw new JOSENotSupported('JWE \"zip\" (Compression Algorithm) Header Parameter is not supported by your javascript runtime. You need to use the `deflateRaw` encrypt option to provide Deflate Raw implementation.');\n};\n","const isDisjoint = (...headers) => {\n const sources = headers.filter(Boolean);\n if (sources.length === 0 || sources.length === 1) {\n return true;\n }\n let acc;\n for (const header of sources) {\n const parameters = Object.keys(header);\n if (!acc || acc.size === 0) {\n acc = new Set(parameters);\n continue;\n }\n for (const parameter of parameters) {\n if (acc.has(parameter)) {\n return false;\n }\n acc.add(parameter);\n }\n }\n return true;\n};\nexport default isDisjoint;\n","function isObjectLike(value) {\n return typeof value === 'object' && value !== null;\n}\nexport default function isObject(input) {\n if (!isObjectLike(input) || Object.prototype.toString.call(input) !== '[object Object]') {\n return false;\n }\n if (Object.getPrototypeOf(input) === null) {\n return true;\n }\n let proto = input;\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n return Object.getPrototypeOf(input) === proto;\n}\n","const bogusWebCrypto = [\n { hash: 'SHA-256', name: 'HMAC' },\n true,\n ['sign'],\n];\nexport default bogusWebCrypto;\n","import bogusWebCrypto from './bogus.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nfunction checkKeySize(key, alg) {\n if (key.algorithm.length !== parseInt(alg.slice(1, 4), 10)) {\n throw new TypeError(`Invalid key size for alg: ${alg}`);\n }\n}\nfunction getCryptoKey(key, alg, usage) {\n if (isCryptoKey(key)) {\n checkEncCryptoKey(key, alg, usage);\n return key;\n }\n if (key instanceof Uint8Array) {\n return crypto.subtle.importKey('raw', key, 'AES-KW', true, [usage]);\n }\n throw new TypeError(invalidKeyInput(key, ...types, 'Uint8Array'));\n}\nexport const wrap = async (alg, key, cek) => {\n const cryptoKey = await getCryptoKey(key, alg, 'wrapKey');\n checkKeySize(cryptoKey, alg);\n const cryptoKeyCek = await crypto.subtle.importKey('raw', cek, ...bogusWebCrypto);\n return new Uint8Array(await crypto.subtle.wrapKey('raw', cryptoKeyCek, cryptoKey, 'AES-KW'));\n};\nexport const unwrap = async (alg, key, encryptedKey) => {\n const cryptoKey = await getCryptoKey(key, alg, 'unwrapKey');\n checkKeySize(cryptoKey, alg);\n const cryptoKeyCek = await crypto.subtle.unwrapKey('raw', encryptedKey, cryptoKey, 'AES-KW', ...bogusWebCrypto);\n return new Uint8Array(await crypto.subtle.exportKey('raw', cryptoKeyCek));\n};\n","import { encoder, concat, uint32be, lengthAndInput, concatKdf } from '../lib/buffer_utils.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nexport async function deriveKey(publicKey, privateKey, algorithm, keyLength, apu = new Uint8Array(0), apv = new Uint8Array(0)) {\n if (!isCryptoKey(publicKey)) {\n throw new TypeError(invalidKeyInput(publicKey, ...types));\n }\n checkEncCryptoKey(publicKey, 'ECDH');\n if (!isCryptoKey(privateKey)) {\n throw new TypeError(invalidKeyInput(privateKey, ...types));\n }\n checkEncCryptoKey(privateKey, 'ECDH', 'deriveBits');\n const value = concat(lengthAndInput(encoder.encode(algorithm)), lengthAndInput(apu), lengthAndInput(apv), uint32be(keyLength));\n let length;\n if (publicKey.algorithm.name === 'X25519') {\n length = 256;\n }\n else if (publicKey.algorithm.name === 'X448') {\n length = 448;\n }\n else {\n length =\n Math.ceil(parseInt(publicKey.algorithm.namedCurve.substr(-3), 10) / 8) << 3;\n }\n const sharedSecret = new Uint8Array(await crypto.subtle.deriveBits({\n name: publicKey.algorithm.name,\n public: publicKey,\n }, privateKey, length));\n return concatKdf(sharedSecret, keyLength, value);\n}\nexport async function generateEpk(key) {\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n return crypto.subtle.generateKey(key.algorithm, true, ['deriveBits']);\n}\nexport function ecdhAllowed(key) {\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n return (['P-256', 'P-384', 'P-521'].includes(key.algorithm.namedCurve) ||\n key.algorithm.name === 'X25519' ||\n key.algorithm.name === 'X448');\n}\n","import random from './random.js';\nimport { p2s as concatSalt } from '../lib/buffer_utils.js';\nimport { encode as base64url } from './base64url.js';\nimport { wrap, unwrap } from './aeskw.js';\nimport checkP2s from '../lib/check_p2s.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nfunction getCryptoKey(key, alg) {\n if (key instanceof Uint8Array) {\n return crypto.subtle.importKey('raw', key, 'PBKDF2', false, ['deriveBits']);\n }\n if (isCryptoKey(key)) {\n checkEncCryptoKey(key, alg, 'deriveBits', 'deriveKey');\n return key;\n }\n throw new TypeError(invalidKeyInput(key, ...types, 'Uint8Array'));\n}\nasync function deriveKey(p2s, alg, p2c, key) {\n checkP2s(p2s);\n const salt = concatSalt(alg, p2s);\n const keylen = parseInt(alg.slice(13, 16), 10);\n const subtleAlg = {\n hash: `SHA-${alg.slice(8, 11)}`,\n iterations: p2c,\n name: 'PBKDF2',\n salt,\n };\n const wrapAlg = {\n length: keylen,\n name: 'AES-KW',\n };\n const cryptoKey = await getCryptoKey(key, alg);\n if (cryptoKey.usages.includes('deriveBits')) {\n return new Uint8Array(await crypto.subtle.deriveBits(subtleAlg, cryptoKey, keylen));\n }\n if (cryptoKey.usages.includes('deriveKey')) {\n return crypto.subtle.deriveKey(subtleAlg, cryptoKey, wrapAlg, false, ['wrapKey', 'unwrapKey']);\n }\n throw new TypeError('PBKDF2 key \"usages\" must include \"deriveBits\" or \"deriveKey\"');\n}\nexport const encrypt = async (alg, key, cek, p2c = 2048, p2s = random(new Uint8Array(16))) => {\n const derived = await deriveKey(p2s, alg, p2c, key);\n const encryptedKey = await wrap(alg.slice(-6), derived, cek);\n return { encryptedKey, p2c, p2s: base64url(p2s) };\n};\nexport const decrypt = async (alg, key, encryptedKey, p2c, p2s) => {\n const derived = await deriveKey(p2s, alg, p2c, key);\n return unwrap(alg.slice(-6), derived, encryptedKey);\n};\n","import { JWEInvalid } from '../util/errors.js';\nexport default function checkP2s(p2s) {\n if (!(p2s instanceof Uint8Array) || p2s.length < 8) {\n throw new JWEInvalid('PBES2 Salt Input must be 8 or more octets');\n }\n}\n","import { JOSENotSupported } from '../util/errors.js';\nexport default function subtleRsaEs(alg) {\n switch (alg) {\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n return 'RSA-OAEP';\n default:\n throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);\n }\n}\n","export default (alg, key) => {\n if (alg.startsWith('RS') || alg.startsWith('PS')) {\n const { modulusLength } = key.algorithm;\n if (typeof modulusLength !== 'number' || modulusLength < 2048) {\n throw new TypeError(`${alg} requires key modulusLength to be 2048 bits or larger`);\n }\n }\n};\n","import { JOSENotSupported } from '../util/errors.js';\nimport random from '../runtime/random.js';\nexport function bitLength(alg) {\n switch (alg) {\n case 'A128GCM':\n return 128;\n case 'A192GCM':\n return 192;\n case 'A256GCM':\n case 'A128CBC-HS256':\n return 256;\n case 'A192CBC-HS384':\n return 384;\n case 'A256CBC-HS512':\n return 512;\n default:\n throw new JOSENotSupported(`Unsupported JWE Algorithm: ${alg}`);\n }\n}\nexport default (alg) => random(new Uint8Array(bitLength(alg) >> 3));\n","export default (b64, descriptor) => {\n const newlined = (b64.match(/.{1,64}/g) || []).join('\\n');\n return `-----BEGIN ${descriptor}-----\\n${newlined}\\n-----END ${descriptor}-----`;\n};\n","import { isCloudflareWorkers } from './env.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { encodeBase64 } from './base64url.js';\nimport formatPEM from '../lib/format_pem.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport { types } from './is_key_like.js';\nconst genericExport = async (keyType, keyFormat, key) => {\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n if (!key.extractable) {\n throw new TypeError('CryptoKey is not extractable');\n }\n if (key.type !== keyType) {\n throw new TypeError(`key is not a ${keyType} key`);\n }\n return formatPEM(encodeBase64(new Uint8Array(await crypto.subtle.exportKey(keyFormat, key))), `${keyType.toUpperCase()} KEY`);\n};\nexport const toSPKI = (key) => {\n return genericExport('public', 'spki', key);\n};\nexport const toPKCS8 = (key) => {\n return genericExport('private', 'pkcs8', key);\n};\nconst findOid = (keyData, oid, from = 0) => {\n if (from === 0) {\n oid.unshift(oid.length);\n oid.unshift(0x06);\n }\n let i = keyData.indexOf(oid[0], from);\n if (i === -1)\n return false;\n const sub = keyData.subarray(i, i + oid.length);\n if (sub.length !== oid.length)\n return false;\n return sub.every((value, index) => value === oid[index]) || findOid(keyData, oid, i + 1);\n};\nconst getNamedCurve = (keyData) => {\n switch (true) {\n case findOid(keyData, [0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07]):\n return 'P-256';\n case findOid(keyData, [0x2b, 0x81, 0x04, 0x00, 0x22]):\n return 'P-384';\n case findOid(keyData, [0x2b, 0x81, 0x04, 0x00, 0x23]):\n return 'P-521';\n case findOid(keyData, [0x2b, 0x65, 0x6e]):\n return 'X25519';\n case findOid(keyData, [0x2b, 0x65, 0x6f]):\n return 'X448';\n case findOid(keyData, [0x2b, 0x65, 0x70]):\n return 'Ed25519';\n case findOid(keyData, [0x2b, 0x65, 0x71]):\n return 'Ed448';\n default:\n throw new JOSENotSupported('Invalid or unsupported EC Key Curve or OKP Key Sub Type');\n }\n};\nconst genericImport = async (replace, keyFormat, pem, alg, options) => {\n var _a;\n let algorithm;\n let keyUsages;\n const keyData = new Uint8Array(atob(pem.replace(replace, ''))\n .split('')\n .map((c) => c.charCodeAt(0)));\n const isPublic = keyFormat === 'spki';\n switch (alg) {\n case 'PS256':\n case 'PS384':\n case 'PS512':\n algorithm = { name: 'RSA-PSS', hash: `SHA-${alg.slice(-3)}` };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n case 'RS256':\n case 'RS384':\n case 'RS512':\n algorithm = { name: 'RSASSA-PKCS1-v1_5', hash: `SHA-${alg.slice(-3)}` };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n algorithm = {\n name: 'RSA-OAEP',\n hash: `SHA-${parseInt(alg.slice(-3), 10) || 1}`,\n };\n keyUsages = isPublic ? ['encrypt', 'wrapKey'] : ['decrypt', 'unwrapKey'];\n break;\n case 'ES256':\n algorithm = { name: 'ECDSA', namedCurve: 'P-256' };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n case 'ES384':\n algorithm = { name: 'ECDSA', namedCurve: 'P-384' };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n case 'ES512':\n algorithm = { name: 'ECDSA', namedCurve: 'P-521' };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW': {\n const namedCurve = getNamedCurve(keyData);\n algorithm = namedCurve.startsWith('P-') ? { name: 'ECDH', namedCurve } : { name: namedCurve };\n keyUsages = isPublic ? [] : ['deriveBits'];\n break;\n }\n case isCloudflareWorkers() && 'EdDSA': {\n const namedCurve = getNamedCurve(keyData).toUpperCase();\n algorithm = { name: `NODE-${namedCurve}`, namedCurve: `NODE-${namedCurve}` };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n }\n case 'EdDSA':\n algorithm = { name: getNamedCurve(keyData) };\n keyUsages = isPublic ? ['verify'] : ['sign'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported \"alg\" (Algorithm) value');\n }\n return crypto.subtle.importKey(keyFormat, keyData, algorithm, (_a = options === null || options === void 0 ? void 0 : options.extractable) !== null && _a !== void 0 ? _a : false, keyUsages);\n};\nexport const fromPKCS8 = (pem, alg, options) => {\n return genericImport(/(?:-----(?:BEGIN|END) PRIVATE KEY-----|\\s)/g, 'pkcs8', pem, alg, options);\n};\nexport const fromSPKI = (pem, alg, options) => {\n return genericImport(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\\s)/g, 'spki', pem, alg, options);\n};\n","import { isCloudflareWorkers } from './env.js';\nimport crypto from './webcrypto.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport { decode as base64url } from './base64url.js';\nfunction subtleMapping(jwk) {\n let algorithm;\n let keyUsages;\n switch (jwk.kty) {\n case 'oct': {\n switch (jwk.alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512':\n algorithm = { name: 'HMAC', hash: `SHA-${jwk.alg.slice(-3)}` };\n keyUsages = ['sign', 'verify'];\n break;\n case 'A128CBC-HS256':\n case 'A192CBC-HS384':\n case 'A256CBC-HS512':\n throw new JOSENotSupported(`${jwk.alg} keys cannot be imported as CryptoKey instances`);\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM':\n case 'A128GCMKW':\n case 'A192GCMKW':\n case 'A256GCMKW':\n algorithm = { name: 'AES-GCM' };\n keyUsages = ['encrypt', 'decrypt'];\n break;\n case 'A128KW':\n case 'A192KW':\n case 'A256KW':\n algorithm = { name: 'AES-KW' };\n keyUsages = ['wrapKey', 'unwrapKey'];\n break;\n case 'PBES2-HS256+A128KW':\n case 'PBES2-HS384+A192KW':\n case 'PBES2-HS512+A256KW':\n algorithm = { name: 'PBKDF2' };\n keyUsages = ['deriveBits'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case 'RSA': {\n switch (jwk.alg) {\n case 'PS256':\n case 'PS384':\n case 'PS512':\n algorithm = { name: 'RSA-PSS', hash: `SHA-${jwk.alg.slice(-3)}` };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'RS256':\n case 'RS384':\n case 'RS512':\n algorithm = { name: 'RSASSA-PKCS1-v1_5', hash: `SHA-${jwk.alg.slice(-3)}` };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n algorithm = {\n name: 'RSA-OAEP',\n hash: `SHA-${parseInt(jwk.alg.slice(-3), 10) || 1}`,\n };\n keyUsages = jwk.d ? ['decrypt', 'unwrapKey'] : ['encrypt', 'wrapKey'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case 'EC': {\n switch (jwk.alg) {\n case 'ES256':\n algorithm = { name: 'ECDSA', namedCurve: 'P-256' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ES384':\n algorithm = { name: 'ECDSA', namedCurve: 'P-384' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ES512':\n algorithm = { name: 'ECDSA', namedCurve: 'P-521' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW':\n algorithm = { name: 'ECDH', namedCurve: jwk.crv };\n keyUsages = jwk.d ? ['deriveBits'] : [];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n case isCloudflareWorkers() && 'OKP':\n if (jwk.alg !== 'EdDSA') {\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n switch (jwk.crv) {\n case 'Ed25519':\n algorithm = { name: 'NODE-ED25519', namedCurve: 'NODE-ED25519' };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n case 'OKP': {\n switch (jwk.alg) {\n case 'EdDSA':\n algorithm = { name: jwk.crv };\n keyUsages = jwk.d ? ['sign'] : ['verify'];\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW':\n algorithm = { name: jwk.crv };\n keyUsages = jwk.d ? ['deriveBits'] : [];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n break;\n }\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"kty\" (Key Type) Parameter value');\n }\n return { algorithm, keyUsages };\n}\nconst parse = async (jwk) => {\n var _a, _b;\n const { algorithm, keyUsages } = subtleMapping(jwk);\n const rest = [\n algorithm,\n (_a = jwk.ext) !== null && _a !== void 0 ? _a : false,\n (_b = jwk.key_ops) !== null && _b !== void 0 ? _b : keyUsages,\n ];\n if (algorithm.name === 'PBKDF2') {\n return crypto.subtle.importKey('raw', base64url(jwk.k), ...rest);\n }\n const keyData = { ...jwk };\n delete keyData.alg;\n return crypto.subtle.importKey('jwk', keyData, ...rest);\n};\nexport default parse;\n","import { decode as decodeBase64URL, encodeBase64, decodeBase64 } from '../runtime/base64url.js';\nimport { fromSPKI as importPublic } from '../runtime/asn1.js';\nimport { fromPKCS8 as importPrivate } from '../runtime/asn1.js';\nimport asKeyObject from '../runtime/jwk_to_key.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport formatPEM from '../lib/format_pem.js';\nimport isObject from '../lib/is_object.js';\nfunction getElement(seq) {\n let result = [];\n let next = 0;\n while (next < seq.length) {\n let nextPart = parseElement(seq.subarray(next));\n result.push(nextPart);\n next += nextPart.byteLength;\n }\n return result;\n}\nfunction parseElement(bytes) {\n let position = 0;\n let tag = bytes[0] & 0x1f;\n position++;\n if (tag === 0x1f) {\n tag = 0;\n while (bytes[position] >= 0x80) {\n tag = tag * 128 + bytes[position] - 0x80;\n position++;\n }\n tag = tag * 128 + bytes[position] - 0x80;\n position++;\n }\n let length = 0;\n if (bytes[position] < 0x80) {\n length = bytes[position];\n position++;\n }\n else if (length === 0x80) {\n length = 0;\n while (bytes[position + length] !== 0 || bytes[position + length + 1] !== 0) {\n if (length > bytes.byteLength) {\n throw new TypeError('invalid indefinite form length');\n }\n length++;\n }\n const byteLength = position + length + 2;\n return {\n byteLength,\n contents: bytes.subarray(position, position + length),\n raw: bytes.subarray(0, byteLength),\n };\n }\n else {\n let numberOfDigits = bytes[position] & 0x7f;\n position++;\n length = 0;\n for (let i = 0; i < numberOfDigits; i++) {\n length = length * 256 + bytes[position];\n position++;\n }\n }\n const byteLength = position + length;\n return {\n byteLength,\n contents: bytes.subarray(position, byteLength),\n raw: bytes.subarray(0, byteLength),\n };\n}\nfunction spkiFromX509(buf) {\n const tbsCertificate = getElement(getElement(parseElement(buf).contents)[0].contents);\n return encodeBase64(tbsCertificate[tbsCertificate[0].raw[0] === 0xa0 ? 6 : 5].raw);\n}\nfunction getSPKI(x509) {\n const pem = x509.replace(/(?:-----(?:BEGIN|END) CERTIFICATE-----|\\s)/g, '');\n const raw = decodeBase64(pem);\n return formatPEM(spkiFromX509(raw), 'PUBLIC KEY');\n}\nexport async function importSPKI(spki, alg, options) {\n if (typeof spki !== 'string' || spki.indexOf('-----BEGIN PUBLIC KEY-----') !== 0) {\n throw new TypeError('\"spki\" must be SPKI formatted string');\n }\n return importPublic(spki, alg, options);\n}\nexport async function importX509(x509, alg, options) {\n if (typeof x509 !== 'string' || x509.indexOf('-----BEGIN CERTIFICATE-----') !== 0) {\n throw new TypeError('\"x509\" must be X.509 formatted string');\n }\n let spki;\n try {\n spki = getSPKI(x509);\n }\n catch (cause) {\n throw new TypeError('failed to parse the X.509 certificate', { cause });\n }\n return importPublic(spki, alg, options);\n}\nexport async function importPKCS8(pkcs8, alg, options) {\n if (typeof pkcs8 !== 'string' || pkcs8.indexOf('-----BEGIN PRIVATE KEY-----') !== 0) {\n throw new TypeError('\"pkcs8\" must be PCKS8 formatted string');\n }\n return importPrivate(pkcs8, alg, options);\n}\nexport async function importJWK(jwk, alg, octAsKeyObject) {\n if (!isObject(jwk)) {\n throw new TypeError('JWK must be an object');\n }\n alg || (alg = jwk.alg);\n if (typeof alg !== 'string' || !alg) {\n throw new TypeError('\"alg\" argument is required when \"jwk.alg\" is not present');\n }\n switch (jwk.kty) {\n case 'oct':\n if (typeof jwk.k !== 'string' || !jwk.k) {\n throw new TypeError('missing \"k\" (Key Value) Parameter value');\n }\n octAsKeyObject !== null && octAsKeyObject !== void 0 ? octAsKeyObject : (octAsKeyObject = jwk.ext !== true);\n if (octAsKeyObject) {\n return asKeyObject({ ...jwk, alg, ext: false });\n }\n return decodeBase64URL(jwk.k);\n case 'RSA':\n if (jwk.oth !== undefined) {\n throw new JOSENotSupported('RSA JWK \"oth\" (Other Primes Info) Parameter value is not supported');\n }\n case 'EC':\n case 'OKP':\n return asKeyObject({ ...jwk, alg });\n default:\n throw new JOSENotSupported('Unsupported \"kty\" (Key Type) Parameter value');\n }\n}\n","import { withAlg as invalidKeyInput } from './invalid_key_input.js';\nimport isKeyLike, { types } from '../runtime/is_key_like.js';\nconst symmetricTypeCheck = (alg, key) => {\n if (key instanceof Uint8Array)\n return;\n if (!isKeyLike(key)) {\n throw new TypeError(invalidKeyInput(alg, key, ...types, 'Uint8Array'));\n }\n if (key.type !== 'secret') {\n throw new TypeError(`${types.join(' or ')} instances for symmetric algorithms must be of type \"secret\"`);\n }\n};\nconst asymmetricTypeCheck = (alg, key, usage) => {\n if (!isKeyLike(key)) {\n throw new TypeError(invalidKeyInput(alg, key, ...types));\n }\n if (key.type === 'secret') {\n throw new TypeError(`${types.join(' or ')} instances for asymmetric algorithms must not be of type \"secret\"`);\n }\n if (usage === 'sign' && key.type === 'public') {\n throw new TypeError(`${types.join(' or ')} instances for asymmetric algorithm signing must be of type \"private\"`);\n }\n if (usage === 'decrypt' && key.type === 'public') {\n throw new TypeError(`${types.join(' or ')} instances for asymmetric algorithm decryption must be of type \"private\"`);\n }\n if (key.algorithm && usage === 'verify' && key.type === 'private') {\n throw new TypeError(`${types.join(' or ')} instances for asymmetric algorithm verifying must be of type \"public\"`);\n }\n if (key.algorithm && usage === 'encrypt' && key.type === 'private') {\n throw new TypeError(`${types.join(' or ')} instances for asymmetric algorithm encryption must be of type \"public\"`);\n }\n};\nconst checkKeyType = (alg, key, usage) => {\n const symmetric = alg.startsWith('HS') ||\n alg === 'dir' ||\n alg.startsWith('PBES2') ||\n /^A\\d{3}(?:GCM)?KW$/.test(alg);\n if (symmetric) {\n symmetricTypeCheck(alg, key);\n }\n else {\n asymmetricTypeCheck(alg, key, usage);\n }\n};\nexport default checkKeyType;\n","import { concat, uint64be } from '../lib/buffer_utils.js';\nimport checkIvLength from '../lib/check_iv_length.js';\nimport checkCekLength from './check_cek_length.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport { types } from './is_key_like.js';\nasync function cbcEncrypt(enc, plaintext, cek, iv, aad) {\n if (!(cek instanceof Uint8Array)) {\n throw new TypeError(invalidKeyInput(cek, 'Uint8Array'));\n }\n const keySize = parseInt(enc.slice(1, 4), 10);\n const encKey = await crypto.subtle.importKey('raw', cek.subarray(keySize >> 3), 'AES-CBC', false, ['encrypt']);\n const macKey = await crypto.subtle.importKey('raw', cek.subarray(0, keySize >> 3), {\n hash: `SHA-${keySize << 1}`,\n name: 'HMAC',\n }, false, ['sign']);\n const ciphertext = new Uint8Array(await crypto.subtle.encrypt({\n iv,\n name: 'AES-CBC',\n }, encKey, plaintext));\n const macData = concat(aad, iv, ciphertext, uint64be(aad.length << 3));\n const tag = new Uint8Array((await crypto.subtle.sign('HMAC', macKey, macData)).slice(0, keySize >> 3));\n return { ciphertext, tag };\n}\nasync function gcmEncrypt(enc, plaintext, cek, iv, aad) {\n let encKey;\n if (cek instanceof Uint8Array) {\n encKey = await crypto.subtle.importKey('raw', cek, 'AES-GCM', false, ['encrypt']);\n }\n else {\n checkEncCryptoKey(cek, enc, 'encrypt');\n encKey = cek;\n }\n const encrypted = new Uint8Array(await crypto.subtle.encrypt({\n additionalData: aad,\n iv,\n name: 'AES-GCM',\n tagLength: 128,\n }, encKey, plaintext));\n const tag = encrypted.slice(-16);\n const ciphertext = encrypted.slice(0, -16);\n return { ciphertext, tag };\n}\nconst encrypt = async (enc, plaintext, cek, iv, aad) => {\n if (!isCryptoKey(cek) && !(cek instanceof Uint8Array)) {\n throw new TypeError(invalidKeyInput(cek, ...types, 'Uint8Array'));\n }\n checkIvLength(enc, iv);\n switch (enc) {\n case 'A128CBC-HS256':\n case 'A192CBC-HS384':\n case 'A256CBC-HS512':\n if (cek instanceof Uint8Array)\n checkCekLength(cek, parseInt(enc.slice(-3), 10));\n return cbcEncrypt(enc, plaintext, cek, iv, aad);\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM':\n if (cek instanceof Uint8Array)\n checkCekLength(cek, parseInt(enc.slice(1, 4), 10));\n return gcmEncrypt(enc, plaintext, cek, iv, aad);\n default:\n throw new JOSENotSupported('Unsupported JWE Content Encryption Algorithm');\n }\n};\nexport default encrypt;\n","import { JOSENotSupported } from '../util/errors.js';\nfunction validateCrit(Err, recognizedDefault, recognizedOption, protectedHeader, joseHeader) {\n if (joseHeader.crit !== undefined && protectedHeader.crit === undefined) {\n throw new Err('\"crit\" (Critical) Header Parameter MUST be integrity protected');\n }\n if (!protectedHeader || protectedHeader.crit === undefined) {\n return new Set();\n }\n if (!Array.isArray(protectedHeader.crit) ||\n protectedHeader.crit.length === 0 ||\n protectedHeader.crit.some((input) => typeof input !== 'string' || input.length === 0)) {\n throw new Err('\"crit\" (Critical) Header Parameter MUST be an array of non-empty strings when present');\n }\n let recognized;\n if (recognizedOption !== undefined) {\n recognized = new Map([...Object.entries(recognizedOption), ...recognizedDefault.entries()]);\n }\n else {\n recognized = recognizedDefault;\n }\n for (const parameter of protectedHeader.crit) {\n if (!recognized.has(parameter)) {\n throw new JOSENotSupported(`Extension Header Parameter \"${parameter}\" is not recognized`);\n }\n if (joseHeader[parameter] === undefined) {\n throw new Err(`Extension Header Parameter \"${parameter}\" is missing`);\n }\n else if (recognized.get(parameter) && protectedHeader[parameter] === undefined) {\n throw new Err(`Extension Header Parameter \"${parameter}\" MUST be integrity protected`);\n }\n }\n return new Set(protectedHeader.crit);\n}\nexport default validateCrit;\n","const validateAlgorithms = (option, algorithms) => {\n if (algorithms !== undefined &&\n (!Array.isArray(algorithms) || algorithms.some((s) => typeof s !== 'string'))) {\n throw new TypeError(`\"${option}\" option must be an array of strings`);\n }\n if (!algorithms) {\n return undefined;\n }\n return new Set(algorithms);\n};\nexport default validateAlgorithms;\n","import { decode as base64url } from '../../runtime/base64url.js';\nimport decrypt from '../../runtime/decrypt.js';\nimport { inflate } from '../../runtime/zlib.js';\nimport { JOSEAlgNotAllowed, JOSENotSupported, JWEInvalid } from '../../util/errors.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport isObject from '../../lib/is_object.js';\nimport decryptKeyManagement from '../../lib/decrypt_key_management.js';\nimport { encoder, decoder, concat } from '../../lib/buffer_utils.js';\nimport generateCek from '../../lib/cek.js';\nimport validateCrit from '../../lib/validate_crit.js';\nimport validateAlgorithms from '../../lib/validate_algorithms.js';\nexport async function flattenedDecrypt(jwe, key, options) {\n var _a;\n if (!isObject(jwe)) {\n throw new JWEInvalid('Flattened JWE must be an object');\n }\n if (jwe.protected === undefined && jwe.header === undefined && jwe.unprotected === undefined) {\n throw new JWEInvalid('JOSE Header missing');\n }\n if (typeof jwe.iv !== 'string') {\n throw new JWEInvalid('JWE Initialization Vector missing or incorrect type');\n }\n if (typeof jwe.ciphertext !== 'string') {\n throw new JWEInvalid('JWE Ciphertext missing or incorrect type');\n }\n if (typeof jwe.tag !== 'string') {\n throw new JWEInvalid('JWE Authentication Tag missing or incorrect type');\n }\n if (jwe.protected !== undefined && typeof jwe.protected !== 'string') {\n throw new JWEInvalid('JWE Protected Header incorrect type');\n }\n if (jwe.encrypted_key !== undefined && typeof jwe.encrypted_key !== 'string') {\n throw new JWEInvalid('JWE Encrypted Key incorrect type');\n }\n if (jwe.aad !== undefined && typeof jwe.aad !== 'string') {\n throw new JWEInvalid('JWE AAD incorrect type');\n }\n if (jwe.header !== undefined && !isObject(jwe.header)) {\n throw new JWEInvalid('JWE Shared Unprotected Header incorrect type');\n }\n if (jwe.unprotected !== undefined && !isObject(jwe.unprotected)) {\n throw new JWEInvalid('JWE Per-Recipient Unprotected Header incorrect type');\n }\n let parsedProt;\n if (jwe.protected) {\n try {\n const protectedHeader = base64url(jwe.protected);\n parsedProt = JSON.parse(decoder.decode(protectedHeader));\n }\n catch (_b) {\n throw new JWEInvalid('JWE Protected Header is invalid');\n }\n }\n if (!isDisjoint(parsedProt, jwe.header, jwe.unprotected)) {\n throw new JWEInvalid('JWE Protected, JWE Unprotected Header, and JWE Per-Recipient Unprotected Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...parsedProt,\n ...jwe.header,\n ...jwe.unprotected,\n };\n validateCrit(JWEInvalid, new Map(), options === null || options === void 0 ? void 0 : options.crit, parsedProt, joseHeader);\n if (joseHeader.zip !== undefined) {\n if (!parsedProt || !parsedProt.zip) {\n throw new JWEInvalid('JWE \"zip\" (Compression Algorithm) Header MUST be integrity protected');\n }\n if (joseHeader.zip !== 'DEF') {\n throw new JOSENotSupported('Unsupported JWE \"zip\" (Compression Algorithm) Header Parameter value');\n }\n }\n const { alg, enc } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWEInvalid('missing JWE Algorithm (alg) in JWE Header');\n }\n if (typeof enc !== 'string' || !enc) {\n throw new JWEInvalid('missing JWE Encryption Algorithm (enc) in JWE Header');\n }\n const keyManagementAlgorithms = options && validateAlgorithms('keyManagementAlgorithms', options.keyManagementAlgorithms);\n const contentEncryptionAlgorithms = options &&\n validateAlgorithms('contentEncryptionAlgorithms', options.contentEncryptionAlgorithms);\n if (keyManagementAlgorithms && !keyManagementAlgorithms.has(alg)) {\n throw new JOSEAlgNotAllowed('\"alg\" (Algorithm) Header Parameter not allowed');\n }\n if (contentEncryptionAlgorithms && !contentEncryptionAlgorithms.has(enc)) {\n throw new JOSEAlgNotAllowed('\"enc\" (Encryption Algorithm) Header Parameter not allowed');\n }\n let encryptedKey;\n if (jwe.encrypted_key !== undefined) {\n encryptedKey = base64url(jwe.encrypted_key);\n }\n let resolvedKey = false;\n if (typeof key === 'function') {\n key = await key(parsedProt, jwe);\n resolvedKey = true;\n }\n let cek;\n try {\n cek = await decryptKeyManagement(alg, key, encryptedKey, joseHeader, options);\n }\n catch (err) {\n if (err instanceof TypeError || err instanceof JWEInvalid || err instanceof JOSENotSupported) {\n throw err;\n }\n cek = generateCek(enc);\n }\n const iv = base64url(jwe.iv);\n const tag = base64url(jwe.tag);\n const protectedHeader = encoder.encode((_a = jwe.protected) !== null && _a !== void 0 ? _a : '');\n let additionalData;\n if (jwe.aad !== undefined) {\n additionalData = concat(protectedHeader, encoder.encode('.'), encoder.encode(jwe.aad));\n }\n else {\n additionalData = protectedHeader;\n }\n let plaintext = await decrypt(enc, cek, base64url(jwe.ciphertext), iv, tag, additionalData);\n if (joseHeader.zip === 'DEF') {\n plaintext = await ((options === null || options === void 0 ? void 0 : options.inflateRaw) || inflate)(plaintext);\n }\n const result = { plaintext };\n if (jwe.protected !== undefined) {\n result.protectedHeader = parsedProt;\n }\n if (jwe.aad !== undefined) {\n result.additionalAuthenticatedData = base64url(jwe.aad);\n }\n if (jwe.unprotected !== undefined) {\n result.sharedUnprotectedHeader = jwe.unprotected;\n }\n if (jwe.header !== undefined) {\n result.unprotectedHeader = jwe.header;\n }\n if (resolvedKey) {\n return { ...result, key };\n }\n return result;\n}\n","import { unwrap as aesKw } from '../runtime/aeskw.js';\nimport * as ECDH from '../runtime/ecdhes.js';\nimport { decrypt as pbes2Kw } from '../runtime/pbes2kw.js';\nimport { decrypt as rsaEs } from '../runtime/rsaes.js';\nimport { decode as base64url } from '../runtime/base64url.js';\nimport { JOSENotSupported, JWEInvalid } from '../util/errors.js';\nimport { bitLength as cekLength } from '../lib/cek.js';\nimport { importJWK } from '../key/import.js';\nimport checkKeyType from './check_key_type.js';\nimport isObject from './is_object.js';\nimport { unwrap as aesGcmKw } from './aesgcmkw.js';\nasync function decryptKeyManagement(alg, key, encryptedKey, joseHeader, options) {\n checkKeyType(alg, key, 'decrypt');\n switch (alg) {\n case 'dir': {\n if (encryptedKey !== undefined)\n throw new JWEInvalid('Encountered unexpected JWE Encrypted Key');\n return key;\n }\n case 'ECDH-ES':\n if (encryptedKey !== undefined)\n throw new JWEInvalid('Encountered unexpected JWE Encrypted Key');\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW': {\n if (!isObject(joseHeader.epk))\n throw new JWEInvalid(`JOSE Header \"epk\" (Ephemeral Public Key) missing or invalid`);\n if (!ECDH.ecdhAllowed(key))\n throw new JOSENotSupported('ECDH with the provided key is not allowed or not supported by your javascript runtime');\n const epk = await importJWK(joseHeader.epk, alg);\n let partyUInfo;\n let partyVInfo;\n if (joseHeader.apu !== undefined) {\n if (typeof joseHeader.apu !== 'string')\n throw new JWEInvalid(`JOSE Header \"apu\" (Agreement PartyUInfo) invalid`);\n partyUInfo = base64url(joseHeader.apu);\n }\n if (joseHeader.apv !== undefined) {\n if (typeof joseHeader.apv !== 'string')\n throw new JWEInvalid(`JOSE Header \"apv\" (Agreement PartyVInfo) invalid`);\n partyVInfo = base64url(joseHeader.apv);\n }\n const sharedSecret = await ECDH.deriveKey(epk, key, alg === 'ECDH-ES' ? joseHeader.enc : alg, alg === 'ECDH-ES' ? cekLength(joseHeader.enc) : parseInt(alg.slice(-5, -2), 10), partyUInfo, partyVInfo);\n if (alg === 'ECDH-ES')\n return sharedSecret;\n if (encryptedKey === undefined)\n throw new JWEInvalid('JWE Encrypted Key missing');\n return aesKw(alg.slice(-6), sharedSecret, encryptedKey);\n }\n case 'RSA1_5':\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512': {\n if (encryptedKey === undefined)\n throw new JWEInvalid('JWE Encrypted Key missing');\n return rsaEs(alg, key, encryptedKey);\n }\n case 'PBES2-HS256+A128KW':\n case 'PBES2-HS384+A192KW':\n case 'PBES2-HS512+A256KW': {\n if (encryptedKey === undefined)\n throw new JWEInvalid('JWE Encrypted Key missing');\n if (typeof joseHeader.p2c !== 'number')\n throw new JWEInvalid(`JOSE Header \"p2c\" (PBES2 Count) missing or invalid`);\n const p2cLimit = (options === null || options === void 0 ? void 0 : options.maxPBES2Count) || 10000;\n if (joseHeader.p2c > p2cLimit)\n throw new JWEInvalid(`JOSE Header \"p2c\" (PBES2 Count) out is of acceptable bounds`);\n if (typeof joseHeader.p2s !== 'string')\n throw new JWEInvalid(`JOSE Header \"p2s\" (PBES2 Salt) missing or invalid`);\n return pbes2Kw(alg, key, encryptedKey, joseHeader.p2c, base64url(joseHeader.p2s));\n }\n case 'A128KW':\n case 'A192KW':\n case 'A256KW': {\n if (encryptedKey === undefined)\n throw new JWEInvalid('JWE Encrypted Key missing');\n return aesKw(alg, key, encryptedKey);\n }\n case 'A128GCMKW':\n case 'A192GCMKW':\n case 'A256GCMKW': {\n if (encryptedKey === undefined)\n throw new JWEInvalid('JWE Encrypted Key missing');\n if (typeof joseHeader.iv !== 'string')\n throw new JWEInvalid(`JOSE Header \"iv\" (Initialization Vector) missing or invalid`);\n if (typeof joseHeader.tag !== 'string')\n throw new JWEInvalid(`JOSE Header \"tag\" (Authentication Tag) missing or invalid`);\n const iv = base64url(joseHeader.iv);\n const tag = base64url(joseHeader.tag);\n return aesGcmKw(alg, key, encryptedKey, iv, tag);\n }\n default: {\n throw new JOSENotSupported('Invalid or unsupported \"alg\" (JWE Algorithm) header value');\n }\n }\n}\nexport default decryptKeyManagement;\n","import subtleAlgorithm from './subtle_rsaes.js';\nimport bogusWebCrypto from './bogus.js';\nimport crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkEncCryptoKey } from '../lib/crypto_key.js';\nimport checkKeyLength from './check_key_length.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nexport const encrypt = async (alg, key, cek) => {\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n checkEncCryptoKey(key, alg, 'encrypt', 'wrapKey');\n checkKeyLength(alg, key);\n if (key.usages.includes('encrypt')) {\n return new Uint8Array(await crypto.subtle.encrypt(subtleAlgorithm(alg), key, cek));\n }\n if (key.usages.includes('wrapKey')) {\n const cryptoKeyCek = await crypto.subtle.importKey('raw', cek, ...bogusWebCrypto);\n return new Uint8Array(await crypto.subtle.wrapKey('raw', cryptoKeyCek, key, subtleAlgorithm(alg)));\n }\n throw new TypeError('RSA-OAEP key \"usages\" must include \"encrypt\" or \"wrapKey\" for this operation');\n};\nexport const decrypt = async (alg, key, encryptedKey) => {\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n checkEncCryptoKey(key, alg, 'decrypt', 'unwrapKey');\n checkKeyLength(alg, key);\n if (key.usages.includes('decrypt')) {\n return new Uint8Array(await crypto.subtle.decrypt(subtleAlgorithm(alg), key, encryptedKey));\n }\n if (key.usages.includes('unwrapKey')) {\n const cryptoKeyCek = await crypto.subtle.unwrapKey('raw', encryptedKey, key, subtleAlgorithm(alg), ...bogusWebCrypto);\n return new Uint8Array(await crypto.subtle.exportKey('raw', cryptoKeyCek));\n }\n throw new TypeError('RSA-OAEP key \"usages\" must include \"decrypt\" or \"unwrapKey\" for this operation');\n};\n","import encrypt from '../runtime/encrypt.js';\nimport decrypt from '../runtime/decrypt.js';\nimport generateIv from './iv.js';\nimport { encode as base64url } from '../runtime/base64url.js';\nexport async function wrap(alg, key, cek, iv) {\n const jweAlgorithm = alg.slice(0, 7);\n iv || (iv = generateIv(jweAlgorithm));\n const { ciphertext: encryptedKey, tag } = await encrypt(jweAlgorithm, cek, key, iv, new Uint8Array(0));\n return { encryptedKey, iv: base64url(iv), tag: base64url(tag) };\n}\nexport async function unwrap(alg, key, encryptedKey, iv, tag) {\n const jweAlgorithm = alg.slice(0, 7);\n return decrypt(jweAlgorithm, key, encryptedKey, iv, tag, new Uint8Array(0));\n}\n","import { flattenedDecrypt } from '../flattened/decrypt.js';\nimport { JWEInvalid } from '../../util/errors.js';\nimport { decoder } from '../../lib/buffer_utils.js';\nexport async function compactDecrypt(jwe, key, options) {\n if (jwe instanceof Uint8Array) {\n jwe = decoder.decode(jwe);\n }\n if (typeof jwe !== 'string') {\n throw new JWEInvalid('Compact JWE must be a string or Uint8Array');\n }\n const { 0: protectedHeader, 1: encryptedKey, 2: iv, 3: ciphertext, 4: tag, length, } = jwe.split('.');\n if (length !== 5) {\n throw new JWEInvalid('Invalid Compact JWE');\n }\n const decrypted = await flattenedDecrypt({\n ciphertext,\n iv: (iv || undefined),\n protected: protectedHeader || undefined,\n tag: (tag || undefined),\n encrypted_key: encryptedKey || undefined,\n }, key, options);\n const result = { plaintext: decrypted.plaintext, protectedHeader: decrypted.protectedHeader };\n if (typeof key === 'function') {\n return { ...result, key: decrypted.key };\n }\n return result;\n}\n","import { flattenedDecrypt } from '../flattened/decrypt.js';\nimport { JWEDecryptionFailed, JWEInvalid } from '../../util/errors.js';\nimport isObject from '../../lib/is_object.js';\nexport async function generalDecrypt(jwe, key, options) {\n if (!isObject(jwe)) {\n throw new JWEInvalid('General JWE must be an object');\n }\n if (!Array.isArray(jwe.recipients) || !jwe.recipients.every(isObject)) {\n throw new JWEInvalid('JWE Recipients missing or incorrect type');\n }\n if (!jwe.recipients.length) {\n throw new JWEInvalid('JWE Recipients has no members');\n }\n for (const recipient of jwe.recipients) {\n try {\n return await flattenedDecrypt({\n aad: jwe.aad,\n ciphertext: jwe.ciphertext,\n encrypted_key: recipient.encrypted_key,\n header: recipient.header,\n iv: jwe.iv,\n protected: jwe.protected,\n tag: jwe.tag,\n unprotected: jwe.unprotected,\n }, key, options);\n }\n catch (_a) {\n }\n }\n throw new JWEDecryptionFailed();\n}\n","import { toSPKI as exportPublic } from '../runtime/asn1.js';\nimport { toPKCS8 as exportPrivate } from '../runtime/asn1.js';\nimport keyToJWK from '../runtime/key_to_jwk.js';\nexport async function exportSPKI(key) {\n return exportPublic(key);\n}\nexport async function exportPKCS8(key) {\n return exportPrivate(key);\n}\nexport async function exportJWK(key) {\n return keyToJWK(key);\n}\n","import crypto, { isCryptoKey } from './webcrypto.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { encode as base64url } from './base64url.js';\nimport { types } from './is_key_like.js';\nconst keyToJWK = async (key) => {\n if (key instanceof Uint8Array) {\n return {\n kty: 'oct',\n k: base64url(key),\n };\n }\n if (!isCryptoKey(key)) {\n throw new TypeError(invalidKeyInput(key, ...types, 'Uint8Array'));\n }\n if (!key.extractable) {\n throw new TypeError('non-extractable CryptoKey cannot be exported as a JWK');\n }\n const { ext, key_ops, alg, use, ...jwk } = await crypto.subtle.exportKey('jwk', key);\n return jwk;\n};\nexport default keyToJWK;\n","import { wrap as aesKw } from '../runtime/aeskw.js';\nimport * as ECDH from '../runtime/ecdhes.js';\nimport { encrypt as pbes2Kw } from '../runtime/pbes2kw.js';\nimport { encrypt as rsaEs } from '../runtime/rsaes.js';\nimport { encode as base64url } from '../runtime/base64url.js';\nimport generateCek, { bitLength as cekLength } from '../lib/cek.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport { exportJWK } from '../key/export.js';\nimport checkKeyType from './check_key_type.js';\nimport { wrap as aesGcmKw } from './aesgcmkw.js';\nasync function encryptKeyManagement(alg, enc, key, providedCek, providedParameters = {}) {\n let encryptedKey;\n let parameters;\n let cek;\n checkKeyType(alg, key, 'encrypt');\n switch (alg) {\n case 'dir': {\n cek = key;\n break;\n }\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW': {\n if (!ECDH.ecdhAllowed(key)) {\n throw new JOSENotSupported('ECDH with the provided key is not allowed or not supported by your javascript runtime');\n }\n const { apu, apv } = providedParameters;\n let { epk: ephemeralKey } = providedParameters;\n ephemeralKey || (ephemeralKey = (await ECDH.generateEpk(key)).privateKey);\n const { x, y, crv, kty } = await exportJWK(ephemeralKey);\n const sharedSecret = await ECDH.deriveKey(key, ephemeralKey, alg === 'ECDH-ES' ? enc : alg, alg === 'ECDH-ES' ? cekLength(enc) : parseInt(alg.slice(-5, -2), 10), apu, apv);\n parameters = { epk: { x, crv, kty } };\n if (kty === 'EC')\n parameters.epk.y = y;\n if (apu)\n parameters.apu = base64url(apu);\n if (apv)\n parameters.apv = base64url(apv);\n if (alg === 'ECDH-ES') {\n cek = sharedSecret;\n break;\n }\n cek = providedCek || generateCek(enc);\n const kwAlg = alg.slice(-6);\n encryptedKey = await aesKw(kwAlg, sharedSecret, cek);\n break;\n }\n case 'RSA1_5':\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512': {\n cek = providedCek || generateCek(enc);\n encryptedKey = await rsaEs(alg, key, cek);\n break;\n }\n case 'PBES2-HS256+A128KW':\n case 'PBES2-HS384+A192KW':\n case 'PBES2-HS512+A256KW': {\n cek = providedCek || generateCek(enc);\n const { p2c, p2s } = providedParameters;\n ({ encryptedKey, ...parameters } = await pbes2Kw(alg, key, cek, p2c, p2s));\n break;\n }\n case 'A128KW':\n case 'A192KW':\n case 'A256KW': {\n cek = providedCek || generateCek(enc);\n encryptedKey = await aesKw(alg, key, cek);\n break;\n }\n case 'A128GCMKW':\n case 'A192GCMKW':\n case 'A256GCMKW': {\n cek = providedCek || generateCek(enc);\n const { iv } = providedParameters;\n ({ encryptedKey, ...parameters } = await aesGcmKw(alg, key, cek, iv));\n break;\n }\n default: {\n throw new JOSENotSupported('Invalid or unsupported \"alg\" (JWE Algorithm) header value');\n }\n }\n return { cek, encryptedKey, parameters };\n}\nexport default encryptKeyManagement;\n","import { encode as base64url } from '../../runtime/base64url.js';\nimport encrypt from '../../runtime/encrypt.js';\nimport { deflate } from '../../runtime/zlib.js';\nimport generateIv from '../../lib/iv.js';\nimport encryptKeyManagement from '../../lib/encrypt_key_management.js';\nimport { JOSENotSupported, JWEInvalid } from '../../util/errors.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport { encoder, decoder, concat } from '../../lib/buffer_utils.js';\nimport validateCrit from '../../lib/validate_crit.js';\nexport const unprotected = Symbol();\nexport class FlattenedEncrypt {\n constructor(plaintext) {\n if (!(plaintext instanceof Uint8Array)) {\n throw new TypeError('plaintext must be an instance of Uint8Array');\n }\n this._plaintext = plaintext;\n }\n setKeyManagementParameters(parameters) {\n if (this._keyManagementParameters) {\n throw new TypeError('setKeyManagementParameters can only be called once');\n }\n this._keyManagementParameters = parameters;\n return this;\n }\n setProtectedHeader(protectedHeader) {\n if (this._protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this._protectedHeader = protectedHeader;\n return this;\n }\n setSharedUnprotectedHeader(sharedUnprotectedHeader) {\n if (this._sharedUnprotectedHeader) {\n throw new TypeError('setSharedUnprotectedHeader can only be called once');\n }\n this._sharedUnprotectedHeader = sharedUnprotectedHeader;\n return this;\n }\n setUnprotectedHeader(unprotectedHeader) {\n if (this._unprotectedHeader) {\n throw new TypeError('setUnprotectedHeader can only be called once');\n }\n this._unprotectedHeader = unprotectedHeader;\n return this;\n }\n setAdditionalAuthenticatedData(aad) {\n this._aad = aad;\n return this;\n }\n setContentEncryptionKey(cek) {\n if (this._cek) {\n throw new TypeError('setContentEncryptionKey can only be called once');\n }\n this._cek = cek;\n return this;\n }\n setInitializationVector(iv) {\n if (this._iv) {\n throw new TypeError('setInitializationVector can only be called once');\n }\n this._iv = iv;\n return this;\n }\n async encrypt(key, options) {\n if (!this._protectedHeader && !this._unprotectedHeader && !this._sharedUnprotectedHeader) {\n throw new JWEInvalid('either setProtectedHeader, setUnprotectedHeader, or sharedUnprotectedHeader must be called before #encrypt()');\n }\n if (!isDisjoint(this._protectedHeader, this._unprotectedHeader, this._sharedUnprotectedHeader)) {\n throw new JWEInvalid('JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...this._protectedHeader,\n ...this._unprotectedHeader,\n ...this._sharedUnprotectedHeader,\n };\n validateCrit(JWEInvalid, new Map(), options === null || options === void 0 ? void 0 : options.crit, this._protectedHeader, joseHeader);\n if (joseHeader.zip !== undefined) {\n if (!this._protectedHeader || !this._protectedHeader.zip) {\n throw new JWEInvalid('JWE \"zip\" (Compression Algorithm) Header MUST be integrity protected');\n }\n if (joseHeader.zip !== 'DEF') {\n throw new JOSENotSupported('Unsupported JWE \"zip\" (Compression Algorithm) Header Parameter value');\n }\n }\n const { alg, enc } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWEInvalid('JWE \"alg\" (Algorithm) Header Parameter missing or invalid');\n }\n if (typeof enc !== 'string' || !enc) {\n throw new JWEInvalid('JWE \"enc\" (Encryption Algorithm) Header Parameter missing or invalid');\n }\n let encryptedKey;\n if (alg === 'dir') {\n if (this._cek) {\n throw new TypeError('setContentEncryptionKey cannot be called when using Direct Encryption');\n }\n }\n else if (alg === 'ECDH-ES') {\n if (this._cek) {\n throw new TypeError('setContentEncryptionKey cannot be called when using Direct Key Agreement');\n }\n }\n let cek;\n {\n let parameters;\n ({ cek, encryptedKey, parameters } = await encryptKeyManagement(alg, enc, key, this._cek, this._keyManagementParameters));\n if (parameters) {\n if (options && unprotected in options) {\n if (!this._unprotectedHeader) {\n this.setUnprotectedHeader(parameters);\n }\n else {\n this._unprotectedHeader = { ...this._unprotectedHeader, ...parameters };\n }\n }\n else {\n if (!this._protectedHeader) {\n this.setProtectedHeader(parameters);\n }\n else {\n this._protectedHeader = { ...this._protectedHeader, ...parameters };\n }\n }\n }\n }\n this._iv || (this._iv = generateIv(enc));\n let additionalData;\n let protectedHeader;\n let aadMember;\n if (this._protectedHeader) {\n protectedHeader = encoder.encode(base64url(JSON.stringify(this._protectedHeader)));\n }\n else {\n protectedHeader = encoder.encode('');\n }\n if (this._aad) {\n aadMember = base64url(this._aad);\n additionalData = concat(protectedHeader, encoder.encode('.'), encoder.encode(aadMember));\n }\n else {\n additionalData = protectedHeader;\n }\n let ciphertext;\n let tag;\n if (joseHeader.zip === 'DEF') {\n const deflated = await ((options === null || options === void 0 ? void 0 : options.deflateRaw) || deflate)(this._plaintext);\n ({ ciphertext, tag } = await encrypt(enc, deflated, cek, this._iv, additionalData));\n }\n else {\n ;\n ({ ciphertext, tag } = await encrypt(enc, this._plaintext, cek, this._iv, additionalData));\n }\n const jwe = {\n ciphertext: base64url(ciphertext),\n iv: base64url(this._iv),\n tag: base64url(tag),\n };\n if (encryptedKey) {\n jwe.encrypted_key = base64url(encryptedKey);\n }\n if (aadMember) {\n jwe.aad = aadMember;\n }\n if (this._protectedHeader) {\n jwe.protected = decoder.decode(protectedHeader);\n }\n if (this._sharedUnprotectedHeader) {\n jwe.unprotected = this._sharedUnprotectedHeader;\n }\n if (this._unprotectedHeader) {\n jwe.header = this._unprotectedHeader;\n }\n return jwe;\n }\n}\n","import { FlattenedEncrypt, unprotected } from '../flattened/encrypt.js';\nimport { JWEInvalid } from '../../util/errors.js';\nimport generateCek from '../../lib/cek.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport encryptKeyManagement from '../../lib/encrypt_key_management.js';\nimport { encode as base64url } from '../../runtime/base64url.js';\nimport validateCrit from '../../lib/validate_crit.js';\nclass IndividualRecipient {\n constructor(enc, key, options) {\n this.parent = enc;\n this.key = key;\n this.options = options;\n }\n setUnprotectedHeader(unprotectedHeader) {\n if (this.unprotectedHeader) {\n throw new TypeError('setUnprotectedHeader can only be called once');\n }\n this.unprotectedHeader = unprotectedHeader;\n return this;\n }\n addRecipient(...args) {\n return this.parent.addRecipient(...args);\n }\n encrypt(...args) {\n return this.parent.encrypt(...args);\n }\n done() {\n return this.parent;\n }\n}\nexport class GeneralEncrypt {\n constructor(plaintext) {\n this._recipients = [];\n this._plaintext = plaintext;\n }\n addRecipient(key, options) {\n const recipient = new IndividualRecipient(this, key, { crit: options === null || options === void 0 ? void 0 : options.crit });\n this._recipients.push(recipient);\n return recipient;\n }\n setProtectedHeader(protectedHeader) {\n if (this._protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this._protectedHeader = protectedHeader;\n return this;\n }\n setSharedUnprotectedHeader(sharedUnprotectedHeader) {\n if (this._unprotectedHeader) {\n throw new TypeError('setSharedUnprotectedHeader can only be called once');\n }\n this._unprotectedHeader = sharedUnprotectedHeader;\n return this;\n }\n setAdditionalAuthenticatedData(aad) {\n this._aad = aad;\n return this;\n }\n async encrypt(options) {\n var _a, _b, _c;\n if (!this._recipients.length) {\n throw new JWEInvalid('at least one recipient must be added');\n }\n options = { deflateRaw: options === null || options === void 0 ? void 0 : options.deflateRaw };\n if (this._recipients.length === 1) {\n const [recipient] = this._recipients;\n const flattened = await new FlattenedEncrypt(this._plaintext)\n .setAdditionalAuthenticatedData(this._aad)\n .setProtectedHeader(this._protectedHeader)\n .setSharedUnprotectedHeader(this._unprotectedHeader)\n .setUnprotectedHeader(recipient.unprotectedHeader)\n .encrypt(recipient.key, { ...recipient.options, ...options });\n let jwe = {\n ciphertext: flattened.ciphertext,\n iv: flattened.iv,\n recipients: [{}],\n tag: flattened.tag,\n };\n if (flattened.aad)\n jwe.aad = flattened.aad;\n if (flattened.protected)\n jwe.protected = flattened.protected;\n if (flattened.unprotected)\n jwe.unprotected = flattened.unprotected;\n if (flattened.encrypted_key)\n jwe.recipients[0].encrypted_key = flattened.encrypted_key;\n if (flattened.header)\n jwe.recipients[0].header = flattened.header;\n return jwe;\n }\n let enc;\n for (let i = 0; i < this._recipients.length; i++) {\n const recipient = this._recipients[i];\n if (!isDisjoint(this._protectedHeader, this._unprotectedHeader, recipient.unprotectedHeader)) {\n throw new JWEInvalid('JWE Protected, JWE Shared Unprotected and JWE Per-Recipient Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...this._protectedHeader,\n ...this._unprotectedHeader,\n ...recipient.unprotectedHeader,\n };\n const { alg } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWEInvalid('JWE \"alg\" (Algorithm) Header Parameter missing or invalid');\n }\n if (alg === 'dir' || alg === 'ECDH-ES') {\n throw new JWEInvalid('\"dir\" and \"ECDH-ES\" alg may only be used with a single recipient');\n }\n if (typeof joseHeader.enc !== 'string' || !joseHeader.enc) {\n throw new JWEInvalid('JWE \"enc\" (Encryption Algorithm) Header Parameter missing or invalid');\n }\n if (!enc) {\n enc = joseHeader.enc;\n }\n else if (enc !== joseHeader.enc) {\n throw new JWEInvalid('JWE \"enc\" (Encryption Algorithm) Header Parameter must be the same for all recipients');\n }\n validateCrit(JWEInvalid, new Map(), recipient.options.crit, this._protectedHeader, joseHeader);\n if (joseHeader.zip !== undefined) {\n if (!this._protectedHeader || !this._protectedHeader.zip) {\n throw new JWEInvalid('JWE \"zip\" (Compression Algorithm) Header MUST be integrity protected');\n }\n }\n }\n const cek = generateCek(enc);\n let jwe = {\n ciphertext: '',\n iv: '',\n recipients: [],\n tag: '',\n };\n for (let i = 0; i < this._recipients.length; i++) {\n const recipient = this._recipients[i];\n const target = {};\n jwe.recipients.push(target);\n const joseHeader = {\n ...this._protectedHeader,\n ...this._unprotectedHeader,\n ...recipient.unprotectedHeader,\n };\n const p2c = joseHeader.alg.startsWith('PBES2') ? 2048 + i : undefined;\n if (i === 0) {\n const flattened = await new FlattenedEncrypt(this._plaintext)\n .setAdditionalAuthenticatedData(this._aad)\n .setContentEncryptionKey(cek)\n .setProtectedHeader(this._protectedHeader)\n .setSharedUnprotectedHeader(this._unprotectedHeader)\n .setUnprotectedHeader(recipient.unprotectedHeader)\n .setKeyManagementParameters({ p2c })\n .encrypt(recipient.key, {\n ...recipient.options,\n ...options,\n [unprotected]: true,\n });\n jwe.ciphertext = flattened.ciphertext;\n jwe.iv = flattened.iv;\n jwe.tag = flattened.tag;\n if (flattened.aad)\n jwe.aad = flattened.aad;\n if (flattened.protected)\n jwe.protected = flattened.protected;\n if (flattened.unprotected)\n jwe.unprotected = flattened.unprotected;\n target.encrypted_key = flattened.encrypted_key;\n if (flattened.header)\n target.header = flattened.header;\n continue;\n }\n const { encryptedKey, parameters } = await encryptKeyManagement(((_a = recipient.unprotectedHeader) === null || _a === void 0 ? void 0 : _a.alg) ||\n ((_b = this._protectedHeader) === null || _b === void 0 ? void 0 : _b.alg) ||\n ((_c = this._unprotectedHeader) === null || _c === void 0 ? void 0 : _c.alg), enc, recipient.key, cek, { p2c });\n target.encrypted_key = base64url(encryptedKey);\n if (recipient.unprotectedHeader || parameters)\n target.header = { ...recipient.unprotectedHeader, ...parameters };\n }\n return jwe;\n }\n}\n","import { isCloudflareWorkers } from './env.js';\nimport { JOSENotSupported } from '../util/errors.js';\nexport default function subtleDsa(alg, algorithm) {\n const hash = `SHA-${alg.slice(-3)}`;\n switch (alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512':\n return { hash, name: 'HMAC' };\n case 'PS256':\n case 'PS384':\n case 'PS512':\n return { hash, name: 'RSA-PSS', saltLength: alg.slice(-3) >> 3 };\n case 'RS256':\n case 'RS384':\n case 'RS512':\n return { hash, name: 'RSASSA-PKCS1-v1_5' };\n case 'ES256':\n case 'ES384':\n case 'ES512':\n return { hash, name: 'ECDSA', namedCurve: algorithm.namedCurve };\n case isCloudflareWorkers() && 'EdDSA':\n const { namedCurve } = algorithm;\n return { name: namedCurve, namedCurve };\n case 'EdDSA':\n return { name: algorithm.name };\n default:\n throw new JOSENotSupported(`alg ${alg} is not supported either by JOSE or your javascript runtime`);\n }\n}\n","import crypto, { isCryptoKey } from './webcrypto.js';\nimport { checkSigCryptoKey } from '../lib/crypto_key.js';\nimport invalidKeyInput from '../lib/invalid_key_input.js';\nimport { types } from './is_key_like.js';\nexport default function getCryptoKey(alg, key, usage) {\n if (isCryptoKey(key)) {\n checkSigCryptoKey(key, alg, usage);\n return key;\n }\n if (key instanceof Uint8Array) {\n if (!alg.startsWith('HS')) {\n throw new TypeError(invalidKeyInput(key, ...types));\n }\n return crypto.subtle.importKey('raw', key, { hash: `SHA-${alg.slice(-3)}`, name: 'HMAC' }, false, [usage]);\n }\n throw new TypeError(invalidKeyInput(key, ...types, 'Uint8Array'));\n}\n","import { decode as base64url } from '../../runtime/base64url.js';\nimport verify from '../../runtime/verify.js';\nimport { JOSEAlgNotAllowed, JWSInvalid, JWSSignatureVerificationFailed } from '../../util/errors.js';\nimport { concat, encoder, decoder } from '../../lib/buffer_utils.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport isObject from '../../lib/is_object.js';\nimport checkKeyType from '../../lib/check_key_type.js';\nimport validateCrit from '../../lib/validate_crit.js';\nimport validateAlgorithms from '../../lib/validate_algorithms.js';\nexport async function flattenedVerify(jws, key, options) {\n var _a;\n if (!isObject(jws)) {\n throw new JWSInvalid('Flattened JWS must be an object');\n }\n if (jws.protected === undefined && jws.header === undefined) {\n throw new JWSInvalid('Flattened JWS must have either of the \"protected\" or \"header\" members');\n }\n if (jws.protected !== undefined && typeof jws.protected !== 'string') {\n throw new JWSInvalid('JWS Protected Header incorrect type');\n }\n if (jws.payload === undefined) {\n throw new JWSInvalid('JWS Payload missing');\n }\n if (typeof jws.signature !== 'string') {\n throw new JWSInvalid('JWS Signature missing or incorrect type');\n }\n if (jws.header !== undefined && !isObject(jws.header)) {\n throw new JWSInvalid('JWS Unprotected Header incorrect type');\n }\n let parsedProt = {};\n if (jws.protected) {\n try {\n const protectedHeader = base64url(jws.protected);\n parsedProt = JSON.parse(decoder.decode(protectedHeader));\n }\n catch (_b) {\n throw new JWSInvalid('JWS Protected Header is invalid');\n }\n }\n if (!isDisjoint(parsedProt, jws.header)) {\n throw new JWSInvalid('JWS Protected and JWS Unprotected Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...parsedProt,\n ...jws.header,\n };\n const extensions = validateCrit(JWSInvalid, new Map([['b64', true]]), options === null || options === void 0 ? void 0 : options.crit, parsedProt, joseHeader);\n let b64 = true;\n if (extensions.has('b64')) {\n b64 = parsedProt.b64;\n if (typeof b64 !== 'boolean') {\n throw new JWSInvalid('The \"b64\" (base64url-encode payload) Header Parameter must be a boolean');\n }\n }\n const { alg } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWSInvalid('JWS \"alg\" (Algorithm) Header Parameter missing or invalid');\n }\n const algorithms = options && validateAlgorithms('algorithms', options.algorithms);\n if (algorithms && !algorithms.has(alg)) {\n throw new JOSEAlgNotAllowed('\"alg\" (Algorithm) Header Parameter not allowed');\n }\n if (b64) {\n if (typeof jws.payload !== 'string') {\n throw new JWSInvalid('JWS Payload must be a string');\n }\n }\n else if (typeof jws.payload !== 'string' && !(jws.payload instanceof Uint8Array)) {\n throw new JWSInvalid('JWS Payload must be a string or an Uint8Array instance');\n }\n let resolvedKey = false;\n if (typeof key === 'function') {\n key = await key(parsedProt, jws);\n resolvedKey = true;\n }\n checkKeyType(alg, key, 'verify');\n const data = concat(encoder.encode((_a = jws.protected) !== null && _a !== void 0 ? _a : ''), encoder.encode('.'), typeof jws.payload === 'string' ? encoder.encode(jws.payload) : jws.payload);\n const signature = base64url(jws.signature);\n const verified = await verify(alg, key, signature, data);\n if (!verified) {\n throw new JWSSignatureVerificationFailed();\n }\n let payload;\n if (b64) {\n payload = base64url(jws.payload);\n }\n else if (typeof jws.payload === 'string') {\n payload = encoder.encode(jws.payload);\n }\n else {\n payload = jws.payload;\n }\n const result = { payload };\n if (jws.protected !== undefined) {\n result.protectedHeader = parsedProt;\n }\n if (jws.header !== undefined) {\n result.unprotectedHeader = jws.header;\n }\n if (resolvedKey) {\n return { ...result, key };\n }\n return result;\n}\n","import subtleAlgorithm from './subtle_dsa.js';\nimport crypto from './webcrypto.js';\nimport checkKeyLength from './check_key_length.js';\nimport getVerifyKey from './get_sign_verify_key.js';\nconst verify = async (alg, key, signature, data) => {\n const cryptoKey = await getVerifyKey(alg, key, 'verify');\n checkKeyLength(alg, cryptoKey);\n const algorithm = subtleAlgorithm(alg, cryptoKey.algorithm);\n try {\n return await crypto.subtle.verify(algorithm, cryptoKey, signature, data);\n }\n catch (_a) {\n return false;\n }\n};\nexport default verify;\n","import { flattenedVerify } from '../flattened/verify.js';\nimport { JWSInvalid } from '../../util/errors.js';\nimport { decoder } from '../../lib/buffer_utils.js';\nexport async function compactVerify(jws, key, options) {\n if (jws instanceof Uint8Array) {\n jws = decoder.decode(jws);\n }\n if (typeof jws !== 'string') {\n throw new JWSInvalid('Compact JWS must be a string or Uint8Array');\n }\n const { 0: protectedHeader, 1: payload, 2: signature, length } = jws.split('.');\n if (length !== 3) {\n throw new JWSInvalid('Invalid Compact JWS');\n }\n const verified = await flattenedVerify({ payload, protected: protectedHeader, signature }, key, options);\n const result = { payload: verified.payload, protectedHeader: verified.protectedHeader };\n if (typeof key === 'function') {\n return { ...result, key: verified.key };\n }\n return result;\n}\n","import { flattenedVerify } from '../flattened/verify.js';\nimport { JWSInvalid, JWSSignatureVerificationFailed } from '../../util/errors.js';\nimport isObject from '../../lib/is_object.js';\nexport async function generalVerify(jws, key, options) {\n if (!isObject(jws)) {\n throw new JWSInvalid('General JWS must be an object');\n }\n if (!Array.isArray(jws.signatures) || !jws.signatures.every(isObject)) {\n throw new JWSInvalid('JWS Signatures missing or incorrect type');\n }\n for (const signature of jws.signatures) {\n try {\n return await flattenedVerify({\n header: signature.header,\n payload: jws.payload,\n protected: signature.protected,\n signature: signature.signature,\n }, key, options);\n }\n catch (_a) {\n }\n }\n throw new JWSSignatureVerificationFailed();\n}\n","export default (date) => Math.floor(date.getTime() / 1000);\n","const minute = 60;\nconst hour = minute * 60;\nconst day = hour * 24;\nconst week = day * 7;\nconst year = day * 365.25;\nconst REGEX = /^(\\d+|\\d+\\.\\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)$/i;\nexport default (str) => {\n const matched = REGEX.exec(str);\n if (!matched) {\n throw new TypeError('Invalid time period format');\n }\n const value = parseFloat(matched[1]);\n const unit = matched[2].toLowerCase();\n switch (unit) {\n case 'sec':\n case 'secs':\n case 'second':\n case 'seconds':\n case 's':\n return Math.round(value);\n case 'minute':\n case 'minutes':\n case 'min':\n case 'mins':\n case 'm':\n return Math.round(value * minute);\n case 'hour':\n case 'hours':\n case 'hr':\n case 'hrs':\n case 'h':\n return Math.round(value * hour);\n case 'day':\n case 'days':\n case 'd':\n return Math.round(value * day);\n case 'week':\n case 'weeks':\n case 'w':\n return Math.round(value * week);\n default:\n return Math.round(value * year);\n }\n};\n","import { JWTClaimValidationFailed, JWTExpired, JWTInvalid } from '../util/errors.js';\nimport { decoder } from './buffer_utils.js';\nimport epoch from './epoch.js';\nimport secs from './secs.js';\nimport isObject from './is_object.js';\nconst normalizeTyp = (value) => value.toLowerCase().replace(/^application\\//, '');\nconst checkAudiencePresence = (audPayload, audOption) => {\n if (typeof audPayload === 'string') {\n return audOption.includes(audPayload);\n }\n if (Array.isArray(audPayload)) {\n return audOption.some(Set.prototype.has.bind(new Set(audPayload)));\n }\n return false;\n};\nexport default (protectedHeader, encodedPayload, options = {}) => {\n const { typ } = options;\n if (typ &&\n (typeof protectedHeader.typ !== 'string' ||\n normalizeTyp(protectedHeader.typ) !== normalizeTyp(typ))) {\n throw new JWTClaimValidationFailed('unexpected \"typ\" JWT header value', 'typ', 'check_failed');\n }\n let payload;\n try {\n payload = JSON.parse(decoder.decode(encodedPayload));\n }\n catch (_a) {\n }\n if (!isObject(payload)) {\n throw new JWTInvalid('JWT Claims Set must be a top-level JSON object');\n }\n const { issuer } = options;\n if (issuer && !(Array.isArray(issuer) ? issuer : [issuer]).includes(payload.iss)) {\n throw new JWTClaimValidationFailed('unexpected \"iss\" claim value', 'iss', 'check_failed');\n }\n const { subject } = options;\n if (subject && payload.sub !== subject) {\n throw new JWTClaimValidationFailed('unexpected \"sub\" claim value', 'sub', 'check_failed');\n }\n const { audience } = options;\n if (audience &&\n !checkAudiencePresence(payload.aud, typeof audience === 'string' ? [audience] : audience)) {\n throw new JWTClaimValidationFailed('unexpected \"aud\" claim value', 'aud', 'check_failed');\n }\n let tolerance;\n switch (typeof options.clockTolerance) {\n case 'string':\n tolerance = secs(options.clockTolerance);\n break;\n case 'number':\n tolerance = options.clockTolerance;\n break;\n case 'undefined':\n tolerance = 0;\n break;\n default:\n throw new TypeError('Invalid clockTolerance option type');\n }\n const { currentDate } = options;\n const now = epoch(currentDate || new Date());\n if ((payload.iat !== undefined || options.maxTokenAge) && typeof payload.iat !== 'number') {\n throw new JWTClaimValidationFailed('\"iat\" claim must be a number', 'iat', 'invalid');\n }\n if (payload.nbf !== undefined) {\n if (typeof payload.nbf !== 'number') {\n throw new JWTClaimValidationFailed('\"nbf\" claim must be a number', 'nbf', 'invalid');\n }\n if (payload.nbf > now + tolerance) {\n throw new JWTClaimValidationFailed('\"nbf\" claim timestamp check failed', 'nbf', 'check_failed');\n }\n }\n if (payload.exp !== undefined) {\n if (typeof payload.exp !== 'number') {\n throw new JWTClaimValidationFailed('\"exp\" claim must be a number', 'exp', 'invalid');\n }\n if (payload.exp <= now - tolerance) {\n throw new JWTExpired('\"exp\" claim timestamp check failed', 'exp', 'check_failed');\n }\n }\n if (options.maxTokenAge) {\n const age = now - payload.iat;\n const max = typeof options.maxTokenAge === 'number' ? options.maxTokenAge : secs(options.maxTokenAge);\n if (age - tolerance > max) {\n throw new JWTExpired('\"iat\" claim timestamp check failed (too far in the past)', 'iat', 'check_failed');\n }\n if (age < 0 - tolerance) {\n throw new JWTClaimValidationFailed('\"iat\" claim timestamp check failed (it should be in the past)', 'iat', 'check_failed');\n }\n }\n return payload;\n};\n","import { compactVerify } from '../jws/compact/verify.js';\nimport jwtPayload from '../lib/jwt_claims_set.js';\nimport { JWTInvalid } from '../util/errors.js';\nexport async function jwtVerify(jwt, key, options) {\n var _a;\n const verified = await compactVerify(jwt, key, options);\n if (((_a = verified.protectedHeader.crit) === null || _a === void 0 ? void 0 : _a.includes('b64')) && verified.protectedHeader.b64 === false) {\n throw new JWTInvalid('JWTs MUST NOT use unencoded payload');\n }\n const payload = jwtPayload(verified.protectedHeader, verified.payload, options);\n const result = { payload, protectedHeader: verified.protectedHeader };\n if (typeof key === 'function') {\n return { ...result, key: verified.key };\n }\n return result;\n}\n","import { compactDecrypt } from '../jwe/compact/decrypt.js';\nimport jwtPayload from '../lib/jwt_claims_set.js';\nimport { JWTClaimValidationFailed } from '../util/errors.js';\nexport async function jwtDecrypt(jwt, key, options) {\n const decrypted = await compactDecrypt(jwt, key, options);\n const payload = jwtPayload(decrypted.protectedHeader, decrypted.plaintext, options);\n const { protectedHeader } = decrypted;\n if (protectedHeader.iss !== undefined && protectedHeader.iss !== payload.iss) {\n throw new JWTClaimValidationFailed('replicated \"iss\" claim header parameter mismatch', 'iss', 'mismatch');\n }\n if (protectedHeader.sub !== undefined && protectedHeader.sub !== payload.sub) {\n throw new JWTClaimValidationFailed('replicated \"sub\" claim header parameter mismatch', 'sub', 'mismatch');\n }\n if (protectedHeader.aud !== undefined &&\n JSON.stringify(protectedHeader.aud) !== JSON.stringify(payload.aud)) {\n throw new JWTClaimValidationFailed('replicated \"aud\" claim header parameter mismatch', 'aud', 'mismatch');\n }\n const result = { payload, protectedHeader };\n if (typeof key === 'function') {\n return { ...result, key: decrypted.key };\n }\n return result;\n}\n","import { FlattenedEncrypt } from '../flattened/encrypt.js';\nexport class CompactEncrypt {\n constructor(plaintext) {\n this._flattened = new FlattenedEncrypt(plaintext);\n }\n setContentEncryptionKey(cek) {\n this._flattened.setContentEncryptionKey(cek);\n return this;\n }\n setInitializationVector(iv) {\n this._flattened.setInitializationVector(iv);\n return this;\n }\n setProtectedHeader(protectedHeader) {\n this._flattened.setProtectedHeader(protectedHeader);\n return this;\n }\n setKeyManagementParameters(parameters) {\n this._flattened.setKeyManagementParameters(parameters);\n return this;\n }\n async encrypt(key, options) {\n const jwe = await this._flattened.encrypt(key, options);\n return [jwe.protected, jwe.encrypted_key, jwe.iv, jwe.ciphertext, jwe.tag].join('.');\n }\n}\n","import { encode as base64url } from '../../runtime/base64url.js';\nimport sign from '../../runtime/sign.js';\nimport isDisjoint from '../../lib/is_disjoint.js';\nimport { JWSInvalid } from '../../util/errors.js';\nimport { encoder, decoder, concat } from '../../lib/buffer_utils.js';\nimport checkKeyType from '../../lib/check_key_type.js';\nimport validateCrit from '../../lib/validate_crit.js';\nexport class FlattenedSign {\n constructor(payload) {\n if (!(payload instanceof Uint8Array)) {\n throw new TypeError('payload must be an instance of Uint8Array');\n }\n this._payload = payload;\n }\n setProtectedHeader(protectedHeader) {\n if (this._protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this._protectedHeader = protectedHeader;\n return this;\n }\n setUnprotectedHeader(unprotectedHeader) {\n if (this._unprotectedHeader) {\n throw new TypeError('setUnprotectedHeader can only be called once');\n }\n this._unprotectedHeader = unprotectedHeader;\n return this;\n }\n async sign(key, options) {\n if (!this._protectedHeader && !this._unprotectedHeader) {\n throw new JWSInvalid('either setProtectedHeader or setUnprotectedHeader must be called before #sign()');\n }\n if (!isDisjoint(this._protectedHeader, this._unprotectedHeader)) {\n throw new JWSInvalid('JWS Protected and JWS Unprotected Header Parameter names must be disjoint');\n }\n const joseHeader = {\n ...this._protectedHeader,\n ...this._unprotectedHeader,\n };\n const extensions = validateCrit(JWSInvalid, new Map([['b64', true]]), options === null || options === void 0 ? void 0 : options.crit, this._protectedHeader, joseHeader);\n let b64 = true;\n if (extensions.has('b64')) {\n b64 = this._protectedHeader.b64;\n if (typeof b64 !== 'boolean') {\n throw new JWSInvalid('The \"b64\" (base64url-encode payload) Header Parameter must be a boolean');\n }\n }\n const { alg } = joseHeader;\n if (typeof alg !== 'string' || !alg) {\n throw new JWSInvalid('JWS \"alg\" (Algorithm) Header Parameter missing or invalid');\n }\n checkKeyType(alg, key, 'sign');\n let payload = this._payload;\n if (b64) {\n payload = encoder.encode(base64url(payload));\n }\n let protectedHeader;\n if (this._protectedHeader) {\n protectedHeader = encoder.encode(base64url(JSON.stringify(this._protectedHeader)));\n }\n else {\n protectedHeader = encoder.encode('');\n }\n const data = concat(protectedHeader, encoder.encode('.'), payload);\n const signature = await sign(alg, key, data);\n const jws = {\n signature: base64url(signature),\n payload: '',\n };\n if (b64) {\n jws.payload = decoder.decode(payload);\n }\n if (this._unprotectedHeader) {\n jws.header = this._unprotectedHeader;\n }\n if (this._protectedHeader) {\n jws.protected = decoder.decode(protectedHeader);\n }\n return jws;\n }\n}\n","import subtleAlgorithm from './subtle_dsa.js';\nimport crypto from './webcrypto.js';\nimport checkKeyLength from './check_key_length.js';\nimport getSignKey from './get_sign_verify_key.js';\nconst sign = async (alg, key, data) => {\n const cryptoKey = await getSignKey(alg, key, 'sign');\n checkKeyLength(alg, cryptoKey);\n const signature = await crypto.subtle.sign(subtleAlgorithm(alg, cryptoKey.algorithm), cryptoKey, data);\n return new Uint8Array(signature);\n};\nexport default sign;\n","import { FlattenedSign } from '../flattened/sign.js';\nexport class CompactSign {\n constructor(payload) {\n this._flattened = new FlattenedSign(payload);\n }\n setProtectedHeader(protectedHeader) {\n this._flattened.setProtectedHeader(protectedHeader);\n return this;\n }\n async sign(key, options) {\n const jws = await this._flattened.sign(key, options);\n if (jws.payload === undefined) {\n throw new TypeError('use the flattened module for creating JWS with b64: false');\n }\n return `${jws.protected}.${jws.payload}.${jws.signature}`;\n }\n}\n","import { FlattenedSign } from '../flattened/sign.js';\nimport { JWSInvalid } from '../../util/errors.js';\nclass IndividualSignature {\n constructor(sig, key, options) {\n this.parent = sig;\n this.key = key;\n this.options = options;\n }\n setProtectedHeader(protectedHeader) {\n if (this.protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this.protectedHeader = protectedHeader;\n return this;\n }\n setUnprotectedHeader(unprotectedHeader) {\n if (this.unprotectedHeader) {\n throw new TypeError('setUnprotectedHeader can only be called once');\n }\n this.unprotectedHeader = unprotectedHeader;\n return this;\n }\n addSignature(...args) {\n return this.parent.addSignature(...args);\n }\n sign(...args) {\n return this.parent.sign(...args);\n }\n done() {\n return this.parent;\n }\n}\nexport class GeneralSign {\n constructor(payload) {\n this._signatures = [];\n this._payload = payload;\n }\n addSignature(key, options) {\n const signature = new IndividualSignature(this, key, options);\n this._signatures.push(signature);\n return signature;\n }\n async sign() {\n if (!this._signatures.length) {\n throw new JWSInvalid('at least one signature must be added');\n }\n const jws = {\n signatures: [],\n payload: '',\n };\n for (let i = 0; i < this._signatures.length; i++) {\n const signature = this._signatures[i];\n const flattened = new FlattenedSign(this._payload);\n flattened.setProtectedHeader(signature.protectedHeader);\n flattened.setUnprotectedHeader(signature.unprotectedHeader);\n const { payload, ...rest } = await flattened.sign(signature.key, signature.options);\n if (i === 0) {\n jws.payload = payload;\n }\n else if (jws.payload !== payload) {\n throw new JWSInvalid('inconsistent use of JWS Unencoded Payload Option (RFC7797)');\n }\n jws.signatures.push(rest);\n }\n return jws;\n }\n}\n","import epoch from '../lib/epoch.js';\nimport isObject from '../lib/is_object.js';\nimport secs from '../lib/secs.js';\nexport class ProduceJWT {\n constructor(payload) {\n if (!isObject(payload)) {\n throw new TypeError('JWT Claims Set MUST be an object');\n }\n this._payload = payload;\n }\n setIssuer(issuer) {\n this._payload = { ...this._payload, iss: issuer };\n return this;\n }\n setSubject(subject) {\n this._payload = { ...this._payload, sub: subject };\n return this;\n }\n setAudience(audience) {\n this._payload = { ...this._payload, aud: audience };\n return this;\n }\n setJti(jwtId) {\n this._payload = { ...this._payload, jti: jwtId };\n return this;\n }\n setNotBefore(input) {\n if (typeof input === 'number') {\n this._payload = { ...this._payload, nbf: input };\n }\n else {\n this._payload = { ...this._payload, nbf: epoch(new Date()) + secs(input) };\n }\n return this;\n }\n setExpirationTime(input) {\n if (typeof input === 'number') {\n this._payload = { ...this._payload, exp: input };\n }\n else {\n this._payload = { ...this._payload, exp: epoch(new Date()) + secs(input) };\n }\n return this;\n }\n setIssuedAt(input) {\n if (typeof input === 'undefined') {\n this._payload = { ...this._payload, iat: epoch(new Date()) };\n }\n else {\n this._payload = { ...this._payload, iat: input };\n }\n return this;\n }\n}\n","import { CompactSign } from '../jws/compact/sign.js';\nimport { JWTInvalid } from '../util/errors.js';\nimport { encoder } from '../lib/buffer_utils.js';\nimport { ProduceJWT } from './produce.js';\nexport class SignJWT extends ProduceJWT {\n setProtectedHeader(protectedHeader) {\n this._protectedHeader = protectedHeader;\n return this;\n }\n async sign(key, options) {\n var _a;\n const sig = new CompactSign(encoder.encode(JSON.stringify(this._payload)));\n sig.setProtectedHeader(this._protectedHeader);\n if (Array.isArray((_a = this._protectedHeader) === null || _a === void 0 ? void 0 : _a.crit) &&\n this._protectedHeader.crit.includes('b64') &&\n this._protectedHeader.b64 === false) {\n throw new JWTInvalid('JWTs MUST NOT use unencoded payload');\n }\n return sig.sign(key, options);\n }\n}\n","import { CompactEncrypt } from '../jwe/compact/encrypt.js';\nimport { encoder } from '../lib/buffer_utils.js';\nimport { ProduceJWT } from './produce.js';\nexport class EncryptJWT extends ProduceJWT {\n setProtectedHeader(protectedHeader) {\n if (this._protectedHeader) {\n throw new TypeError('setProtectedHeader can only be called once');\n }\n this._protectedHeader = protectedHeader;\n return this;\n }\n setKeyManagementParameters(parameters) {\n if (this._keyManagementParameters) {\n throw new TypeError('setKeyManagementParameters can only be called once');\n }\n this._keyManagementParameters = parameters;\n return this;\n }\n setContentEncryptionKey(cek) {\n if (this._cek) {\n throw new TypeError('setContentEncryptionKey can only be called once');\n }\n this._cek = cek;\n return this;\n }\n setInitializationVector(iv) {\n if (this._iv) {\n throw new TypeError('setInitializationVector can only be called once');\n }\n this._iv = iv;\n return this;\n }\n replicateIssuerAsHeader() {\n this._replicateIssuerAsHeader = true;\n return this;\n }\n replicateSubjectAsHeader() {\n this._replicateSubjectAsHeader = true;\n return this;\n }\n replicateAudienceAsHeader() {\n this._replicateAudienceAsHeader = true;\n return this;\n }\n async encrypt(key, options) {\n const enc = new CompactEncrypt(encoder.encode(JSON.stringify(this._payload)));\n if (this._replicateIssuerAsHeader) {\n this._protectedHeader = { ...this._protectedHeader, iss: this._payload.iss };\n }\n if (this._replicateSubjectAsHeader) {\n this._protectedHeader = { ...this._protectedHeader, sub: this._payload.sub };\n }\n if (this._replicateAudienceAsHeader) {\n this._protectedHeader = { ...this._protectedHeader, aud: this._payload.aud };\n }\n enc.setProtectedHeader(this._protectedHeader);\n if (this._iv) {\n enc.setInitializationVector(this._iv);\n }\n if (this._cek) {\n enc.setContentEncryptionKey(this._cek);\n }\n if (this._keyManagementParameters) {\n enc.setKeyManagementParameters(this._keyManagementParameters);\n }\n return enc.encrypt(key, options);\n }\n}\n","import digest from '../runtime/digest.js';\nimport { encode as base64url } from '../runtime/base64url.js';\nimport { JOSENotSupported, JWKInvalid } from '../util/errors.js';\nimport { encoder } from '../lib/buffer_utils.js';\nimport isObject from '../lib/is_object.js';\nconst check = (value, description) => {\n if (typeof value !== 'string' || !value) {\n throw new JWKInvalid(`${description} missing or invalid`);\n }\n};\nexport async function calculateJwkThumbprint(jwk, digestAlgorithm) {\n if (!isObject(jwk)) {\n throw new TypeError('JWK must be an object');\n }\n digestAlgorithm !== null && digestAlgorithm !== void 0 ? digestAlgorithm : (digestAlgorithm = 'sha256');\n if (digestAlgorithm !== 'sha256' &&\n digestAlgorithm !== 'sha384' &&\n digestAlgorithm !== 'sha512') {\n throw new TypeError('digestAlgorithm must one of \"sha256\", \"sha384\", or \"sha512\"');\n }\n let components;\n switch (jwk.kty) {\n case 'EC':\n check(jwk.crv, '\"crv\" (Curve) Parameter');\n check(jwk.x, '\"x\" (X Coordinate) Parameter');\n check(jwk.y, '\"y\" (Y Coordinate) Parameter');\n components = { crv: jwk.crv, kty: jwk.kty, x: jwk.x, y: jwk.y };\n break;\n case 'OKP':\n check(jwk.crv, '\"crv\" (Subtype of Key Pair) Parameter');\n check(jwk.x, '\"x\" (Public Key) Parameter');\n components = { crv: jwk.crv, kty: jwk.kty, x: jwk.x };\n break;\n case 'RSA':\n check(jwk.e, '\"e\" (Exponent) Parameter');\n check(jwk.n, '\"n\" (Modulus) Parameter');\n components = { e: jwk.e, kty: jwk.kty, n: jwk.n };\n break;\n case 'oct':\n check(jwk.k, '\"k\" (Key Value) Parameter');\n components = { k: jwk.k, kty: jwk.kty };\n break;\n default:\n throw new JOSENotSupported('\"kty\" (Key Type) Parameter missing or unsupported');\n }\n const data = encoder.encode(JSON.stringify(components));\n return base64url(await digest(digestAlgorithm, data));\n}\nexport async function calculateJwkThumbprintUri(jwk, digestAlgorithm) {\n digestAlgorithm !== null && digestAlgorithm !== void 0 ? digestAlgorithm : (digestAlgorithm = 'sha256');\n const thumbprint = await calculateJwkThumbprint(jwk, digestAlgorithm);\n return `urn:ietf:params:oauth:jwk-thumbprint:sha-${digestAlgorithm.slice(-3)}:${thumbprint}`;\n}\n","import { importJWK } from '../key/import.js';\nimport isObject from '../lib/is_object.js';\nimport { JWSInvalid } from '../util/errors.js';\nexport async function EmbeddedJWK(protectedHeader, token) {\n const joseHeader = {\n ...protectedHeader,\n ...token.header,\n };\n if (!isObject(joseHeader.jwk)) {\n throw new JWSInvalid('\"jwk\" (JSON Web Key) Header Parameter must be a JSON object');\n }\n const key = await importJWK({ ...joseHeader.jwk, ext: true }, joseHeader.alg, true);\n if (key instanceof Uint8Array || key.type !== 'public') {\n throw new JWSInvalid('\"jwk\" (JSON Web Key) Header Parameter must be a public key');\n }\n return key;\n}\n","import { importJWK } from '../key/import.js';\nimport { JWKSInvalid, JOSENotSupported, JWKSNoMatchingKey, JWKSMultipleMatchingKeys, } from '../util/errors.js';\nimport isObject from '../lib/is_object.js';\nfunction getKtyFromAlg(alg) {\n switch (typeof alg === 'string' && alg.slice(0, 2)) {\n case 'RS':\n case 'PS':\n return 'RSA';\n case 'ES':\n return 'EC';\n case 'Ed':\n return 'OKP';\n default:\n throw new JOSENotSupported('Unsupported \"alg\" value for a JSON Web Key Set');\n }\n}\nexport function isJWKSLike(jwks) {\n return (jwks &&\n typeof jwks === 'object' &&\n Array.isArray(jwks.keys) &&\n jwks.keys.every(isJWKLike));\n}\nfunction isJWKLike(key) {\n return isObject(key);\n}\nfunction clone(obj) {\n if (typeof structuredClone === 'function') {\n return structuredClone(obj);\n }\n return JSON.parse(JSON.stringify(obj));\n}\nexport class LocalJWKSet {\n constructor(jwks) {\n this._cached = new WeakMap();\n if (!isJWKSLike(jwks)) {\n throw new JWKSInvalid('JSON Web Key Set malformed');\n }\n this._jwks = clone(jwks);\n }\n async getKey(protectedHeader, token) {\n const { alg, kid } = { ...protectedHeader, ...token.header };\n const kty = getKtyFromAlg(alg);\n const candidates = this._jwks.keys.filter((jwk) => {\n let candidate = kty === jwk.kty;\n if (candidate && typeof kid === 'string') {\n candidate = kid === jwk.kid;\n }\n if (candidate && typeof jwk.alg === 'string') {\n candidate = alg === jwk.alg;\n }\n if (candidate && typeof jwk.use === 'string') {\n candidate = jwk.use === 'sig';\n }\n if (candidate && Array.isArray(jwk.key_ops)) {\n candidate = jwk.key_ops.includes('verify');\n }\n if (candidate && alg === 'EdDSA') {\n candidate = jwk.crv === 'Ed25519' || jwk.crv === 'Ed448';\n }\n if (candidate) {\n switch (alg) {\n case 'ES256':\n candidate = jwk.crv === 'P-256';\n break;\n case 'ES256K':\n candidate = jwk.crv === 'secp256k1';\n break;\n case 'ES384':\n candidate = jwk.crv === 'P-384';\n break;\n case 'ES512':\n candidate = jwk.crv === 'P-521';\n break;\n }\n }\n return candidate;\n });\n const { 0: jwk, length } = candidates;\n if (length === 0) {\n throw new JWKSNoMatchingKey();\n }\n else if (length !== 1) {\n throw new JWKSMultipleMatchingKeys();\n }\n const cached = this._cached.get(jwk) || this._cached.set(jwk, {}).get(jwk);\n if (cached[alg] === undefined) {\n const keyObject = await importJWK({ ...jwk, ext: true }, alg);\n if (keyObject instanceof Uint8Array || keyObject.type !== 'public') {\n throw new JWKSInvalid('JSON Web Key Set members must be public keys');\n }\n cached[alg] = keyObject;\n }\n return cached[alg];\n }\n}\nexport function createLocalJWKSet(jwks) {\n return LocalJWKSet.prototype.getKey.bind(new LocalJWKSet(jwks));\n}\n","import fetchJwks from '../runtime/fetch_jwks.js';\nimport { isCloudflareWorkers } from '../runtime/env.js';\nimport { JWKSInvalid, JWKSNoMatchingKey } from '../util/errors.js';\nimport { isJWKSLike, LocalJWKSet } from './local.js';\nclass RemoteJWKSet extends LocalJWKSet {\n constructor(url, options) {\n super({ keys: [] });\n this._jwks = undefined;\n if (!(url instanceof URL)) {\n throw new TypeError('url must be an instance of URL');\n }\n this._url = new URL(url.href);\n this._options = { agent: options === null || options === void 0 ? void 0 : options.agent, headers: options === null || options === void 0 ? void 0 : options.headers };\n this._timeoutDuration =\n typeof (options === null || options === void 0 ? void 0 : options.timeoutDuration) === 'number' ? options === null || options === void 0 ? void 0 : options.timeoutDuration : 5000;\n this._cooldownDuration =\n typeof (options === null || options === void 0 ? void 0 : options.cooldownDuration) === 'number' ? options === null || options === void 0 ? void 0 : options.cooldownDuration : 30000;\n this._cacheMaxAge = typeof (options === null || options === void 0 ? void 0 : options.cacheMaxAge) === 'number' ? options === null || options === void 0 ? void 0 : options.cacheMaxAge : 600000;\n }\n coolingDown() {\n return typeof this._jwksTimestamp === 'number'\n ? Date.now() < this._jwksTimestamp + this._cooldownDuration\n : false;\n }\n fresh() {\n return typeof this._jwksTimestamp === 'number'\n ? Date.now() < this._jwksTimestamp + this._cacheMaxAge\n : false;\n }\n async getKey(protectedHeader, token) {\n if (!this._jwks || !this.fresh()) {\n await this.reload();\n }\n try {\n return await super.getKey(protectedHeader, token);\n }\n catch (err) {\n if (err instanceof JWKSNoMatchingKey) {\n if (this.coolingDown() === false) {\n await this.reload();\n return super.getKey(protectedHeader, token);\n }\n }\n throw err;\n }\n }\n async reload() {\n if (this._pendingFetch && isCloudflareWorkers()) {\n return new Promise((resolve) => {\n const isDone = () => {\n if (this._pendingFetch === undefined) {\n resolve();\n }\n else {\n setTimeout(isDone, 5);\n }\n };\n isDone();\n });\n }\n if (!this._pendingFetch) {\n this._pendingFetch = fetchJwks(this._url, this._timeoutDuration, this._options)\n .then((json) => {\n if (!isJWKSLike(json)) {\n throw new JWKSInvalid('JSON Web Key Set malformed');\n }\n this._jwks = { keys: json.keys };\n this._jwksTimestamp = Date.now();\n this._pendingFetch = undefined;\n })\n .catch((err) => {\n this._pendingFetch = undefined;\n throw err;\n });\n }\n await this._pendingFetch;\n }\n}\nexport function createRemoteJWKSet(url, options) {\n return RemoteJWKSet.prototype.getKey.bind(new RemoteJWKSet(url, options));\n}\n","import { JOSEError, JWKSTimeout } from '../util/errors.js';\nconst fetchJwks = async (url, timeout, options) => {\n let controller;\n let id;\n let timedOut = false;\n if (typeof AbortController === 'function') {\n controller = new AbortController();\n id = setTimeout(() => {\n timedOut = true;\n controller.abort();\n }, timeout);\n }\n const response = await fetch(url.href, {\n signal: controller ? controller.signal : undefined,\n redirect: 'manual',\n headers: options.headers,\n }).catch((err) => {\n if (timedOut)\n throw new JWKSTimeout();\n throw err;\n });\n if (id !== undefined)\n clearTimeout(id);\n if (response.status !== 200) {\n throw new JOSEError('Expected 200 OK from the JSON Web Key Set HTTP response');\n }\n try {\n return await response.json();\n }\n catch (_a) {\n throw new JOSEError('Failed to parse the JSON Web Key Set HTTP response as JSON');\n }\n};\nexport default fetchJwks;\n","import * as base64url from '../runtime/base64url.js';\nimport { decoder } from '../lib/buffer_utils.js';\nimport { JWTInvalid } from '../util/errors.js';\nimport jwtPayload from '../lib/jwt_claims_set.js';\nimport { ProduceJWT } from './produce.js';\nexport class UnsecuredJWT extends ProduceJWT {\n encode() {\n const header = base64url.encode(JSON.stringify({ alg: 'none' }));\n const payload = base64url.encode(JSON.stringify(this._payload));\n return `${header}.${payload}.`;\n }\n static decode(jwt, options) {\n if (typeof jwt !== 'string') {\n throw new JWTInvalid('Unsecured JWT must be a string');\n }\n const { 0: encodedHeader, 1: encodedPayload, 2: signature, length } = jwt.split('.');\n if (length !== 3 || signature !== '') {\n throw new JWTInvalid('Invalid Unsecured JWT');\n }\n let header;\n try {\n header = JSON.parse(decoder.decode(base64url.decode(encodedHeader)));\n if (header.alg !== 'none')\n throw new Error();\n }\n catch (_a) {\n throw new JWTInvalid('Invalid Unsecured JWT');\n }\n const payload = jwtPayload(header, base64url.decode(encodedPayload), options);\n return { payload, header };\n }\n}\n","import * as base64url from '../runtime/base64url.js';\nexport const encode = base64url.encode;\nexport const decode = base64url.decode;\n","import { decode as base64url } from './base64url.js';\nimport { decoder } from '../lib/buffer_utils.js';\nimport isObject from '../lib/is_object.js';\nexport function decodeProtectedHeader(token) {\n let protectedB64u;\n if (typeof token === 'string') {\n const parts = token.split('.');\n if (parts.length === 3 || parts.length === 5) {\n ;\n [protectedB64u] = parts;\n }\n }\n else if (typeof token === 'object' && token) {\n if ('protected' in token) {\n protectedB64u = token.protected;\n }\n else {\n throw new TypeError('Token does not contain a Protected Header');\n }\n }\n try {\n if (typeof protectedB64u !== 'string' || !protectedB64u) {\n throw new Error();\n }\n const result = JSON.parse(decoder.decode(base64url(protectedB64u)));\n if (!isObject(result)) {\n throw new Error();\n }\n return result;\n }\n catch (_a) {\n throw new TypeError('Invalid Token or Protected Header formatting');\n }\n}\n","import { decode as base64url } from './base64url.js';\nimport { decoder } from '../lib/buffer_utils.js';\nimport isObject from '../lib/is_object.js';\nimport { JWTInvalid } from './errors.js';\nexport function decodeJwt(jwt) {\n if (typeof jwt !== 'string')\n throw new JWTInvalid('JWTs must use Compact JWS serialization, JWT must be a string');\n const { 1: payload, length } = jwt.split('.');\n if (length === 5)\n throw new JWTInvalid('Only JWTs using Compact JWS serialization can be decoded');\n if (length !== 3)\n throw new JWTInvalid('Invalid JWT');\n if (!payload)\n throw new JWTInvalid('JWTs must contain a payload');\n let decoded;\n try {\n decoded = base64url(payload);\n }\n catch (_a) {\n throw new JWTInvalid('Failed to parse the base64url encoded payload');\n }\n let result;\n try {\n result = JSON.parse(decoder.decode(decoded));\n }\n catch (_b) {\n throw new JWTInvalid('Failed to parse the decoded payload as JSON');\n }\n if (!isObject(result))\n throw new JWTInvalid('Invalid JWT Claims Set');\n return result;\n}\n","import { isCloudflareWorkers } from './env.js';\nimport crypto from './webcrypto.js';\nimport { JOSENotSupported } from '../util/errors.js';\nimport random from './random.js';\nexport async function generateSecret(alg, options) {\n var _a;\n let length;\n let algorithm;\n let keyUsages;\n switch (alg) {\n case 'HS256':\n case 'HS384':\n case 'HS512':\n length = parseInt(alg.slice(-3), 10);\n algorithm = { name: 'HMAC', hash: `SHA-${length}`, length };\n keyUsages = ['sign', 'verify'];\n break;\n case 'A128CBC-HS256':\n case 'A192CBC-HS384':\n case 'A256CBC-HS512':\n length = parseInt(alg.slice(-3), 10);\n return random(new Uint8Array(length >> 3));\n case 'A128KW':\n case 'A192KW':\n case 'A256KW':\n length = parseInt(alg.slice(1, 4), 10);\n algorithm = { name: 'AES-KW', length };\n keyUsages = ['wrapKey', 'unwrapKey'];\n break;\n case 'A128GCMKW':\n case 'A192GCMKW':\n case 'A256GCMKW':\n case 'A128GCM':\n case 'A192GCM':\n case 'A256GCM':\n length = parseInt(alg.slice(1, 4), 10);\n algorithm = { name: 'AES-GCM', length };\n keyUsages = ['encrypt', 'decrypt'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n return crypto.subtle.generateKey(algorithm, (_a = options === null || options === void 0 ? void 0 : options.extractable) !== null && _a !== void 0 ? _a : false, keyUsages);\n}\nfunction getModulusLengthOption(options) {\n var _a;\n const modulusLength = (_a = options === null || options === void 0 ? void 0 : options.modulusLength) !== null && _a !== void 0 ? _a : 2048;\n if (typeof modulusLength !== 'number' || modulusLength < 2048) {\n throw new JOSENotSupported('Invalid or unsupported modulusLength option provided, 2048 bits or larger keys must be used');\n }\n return modulusLength;\n}\nexport async function generateKeyPair(alg, options) {\n var _a, _b, _c;\n let algorithm;\n let keyUsages;\n switch (alg) {\n case 'PS256':\n case 'PS384':\n case 'PS512':\n algorithm = {\n name: 'RSA-PSS',\n hash: `SHA-${alg.slice(-3)}`,\n publicExponent: new Uint8Array([0x01, 0x00, 0x01]),\n modulusLength: getModulusLengthOption(options),\n };\n keyUsages = ['sign', 'verify'];\n break;\n case 'RS256':\n case 'RS384':\n case 'RS512':\n algorithm = {\n name: 'RSASSA-PKCS1-v1_5',\n hash: `SHA-${alg.slice(-3)}`,\n publicExponent: new Uint8Array([0x01, 0x00, 0x01]),\n modulusLength: getModulusLengthOption(options),\n };\n keyUsages = ['sign', 'verify'];\n break;\n case 'RSA-OAEP':\n case 'RSA-OAEP-256':\n case 'RSA-OAEP-384':\n case 'RSA-OAEP-512':\n algorithm = {\n name: 'RSA-OAEP',\n hash: `SHA-${parseInt(alg.slice(-3), 10) || 1}`,\n publicExponent: new Uint8Array([0x01, 0x00, 0x01]),\n modulusLength: getModulusLengthOption(options),\n };\n keyUsages = ['decrypt', 'unwrapKey', 'encrypt', 'wrapKey'];\n break;\n case 'ES256':\n algorithm = { name: 'ECDSA', namedCurve: 'P-256' };\n keyUsages = ['sign', 'verify'];\n break;\n case 'ES384':\n algorithm = { name: 'ECDSA', namedCurve: 'P-384' };\n keyUsages = ['sign', 'verify'];\n break;\n case 'ES512':\n algorithm = { name: 'ECDSA', namedCurve: 'P-521' };\n keyUsages = ['sign', 'verify'];\n break;\n case isCloudflareWorkers() && 'EdDSA':\n switch (options === null || options === void 0 ? void 0 : options.crv) {\n case undefined:\n case 'Ed25519':\n algorithm = { name: 'NODE-ED25519', namedCurve: 'NODE-ED25519' };\n keyUsages = ['sign', 'verify'];\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported crv option provided');\n }\n break;\n case 'EdDSA':\n keyUsages = ['sign', 'verify'];\n const crv = (_a = options === null || options === void 0 ? void 0 : options.crv) !== null && _a !== void 0 ? _a : 'Ed25519';\n switch (crv) {\n case 'Ed25519':\n case 'Ed448':\n algorithm = { name: crv };\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported crv option provided');\n }\n break;\n case 'ECDH-ES':\n case 'ECDH-ES+A128KW':\n case 'ECDH-ES+A192KW':\n case 'ECDH-ES+A256KW': {\n keyUsages = ['deriveKey', 'deriveBits'];\n const crv = (_b = options === null || options === void 0 ? void 0 : options.crv) !== null && _b !== void 0 ? _b : 'P-256';\n switch (crv) {\n case 'P-256':\n case 'P-384':\n case 'P-521': {\n algorithm = { name: 'ECDH', namedCurve: crv };\n break;\n }\n case 'X25519':\n case 'X448':\n algorithm = { name: crv };\n break;\n default:\n throw new JOSENotSupported('Invalid or unsupported crv option provided, supported values are P-256, P-384, P-521, X25519, and X448');\n }\n break;\n }\n default:\n throw new JOSENotSupported('Invalid or unsupported JWK \"alg\" (Algorithm) Parameter value');\n }\n return (crypto.subtle.generateKey(algorithm, (_c = options === null || options === void 0 ? void 0 : options.extractable) !== null && _c !== void 0 ? _c : false, keyUsages));\n}\n","import { generateKeyPair as generate } from '../runtime/generate.js';\nexport async function generateKeyPair(alg, options) {\n return generate(alg, options);\n}\n","import { generateSecret as generate } from '../runtime/generate.js';\nexport async function generateSecret(alg, options) {\n return generate(alg, options);\n}\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","/**\n * Axios client wrapper\n */\nimport http, {HttpResponse, HttpMethod} from './client';\n\n/**\n * Endpoint component\n */\nimport Endpoints, {EndpointType} from './constants/Endpoints';\n\n/**\n * Utils\n */\nimport {formatHttpError, getCancelTokenSourceRequest} from './utils/http';\nimport {generateJWTToken, parseJwt} from './utils/token';\nimport {apiRequest} from './utils/apiRequest';\nimport {urlParams} from './utils/url';\n\n/**\n * Services\n */\nimport AccountService, {AccountApiClient, AccountApiClientInterface} from './services/account';\nimport CategoryService, {CategoryApiClient, CategoryApiClientInterface} from './services/category';\nimport CommentService, {CommentApiClient, CommentApiClientInterface} from './services/comment';\nimport CustomAdvService, {CustomAdvApiClient, CustomAdvApiClientInterface} from './services/custom_adv';\nimport CustomMenuService, {CustomMenuApiClient, CustomMenuApiClientInterface} from './services/custom_menu';\nimport CustomPageService, {CustomPageApiClient, CustomPageApiClientInterface} from './services/custom_page';\nimport DataPortabilityService, {DataPortabilityApiClient, DataPortabilityApiClientInterface} from './services/data_portability';\nimport EmbedService, {EmbedApiClient, EmbedApiClientInterface} from './services/embed';\nimport FeatureService, {FeatureApiClient, FeatureApiClientInterface} from './services/feature';\nimport FeedService, {FeedApiClient, FeedApiClientInterface} from './services/feed';\nimport FeedObjectService, {FeedObjectApiClient, FeedObjectApiClientInterface} from './services/feed_object';\nimport IncubatorService, {IncubatorApiClient, IncubatorApiClientInterface} from './services/incubator';\nimport InsightService, {InsightApiClient, InsightApiClientInterface} from './services/insight';\nimport InviteService, {InviteApiClient, InviteApiClientInterface} from './services/invite';\nimport LegalPageService, {LegalPageApiClient, LegalPageApiClientInterface} from './services/legal_page';\nimport LocalityService, {LocalityApiClient, LocalityApiClientInterface} from './services/locality';\nimport LoyaltyService, {LoyaltyApiClient, LoyaltyApiClientInterface} from './services/loyalty';\nimport MediaService, {MediaApiClient, MediaApiClientInterface} from './services/media';\nimport ModerationService, {ModerationApiClient, ModerationApiClientInterface} from './services/moderation';\nimport NotificationService, {NotificationApiClient, NotificationApiClientInterface} from './services/notification';\nimport PreferenceService, {PreferenceApiClient, PreferenceApiClientInterface} from './services/preference';\nimport PrivateMessageService, {PrivateMessageApiClient, PrivateMessageApiClientInterface} from './services/private_message';\nimport PromoService, {PromoApiClient, PromoApiClientInterface} from './services/promo';\nimport ScoreService, {ScoreApiClient, ScoreApiClientInterface} from './services/score';\nimport SSOService, {SSOApiClient, SSOApiClientInterface} from './services/sso';\nimport SuggestionService, {SuggestionApiClient, SuggestionApiClientInterface} from './services/suggestion';\nimport TagService, {TagApiClient, TagApiClientInterface} from './services/tag';\nimport UserService, {UserApiClient, UserApiClientInterface} from './services/user';\nimport WebhookService, {WebhookApiClient, WebhookApiClientInterface} from './services/webhook';\nimport ReactionService, {ReactionApiClient, ReactionApiClientInterface} from './services/reactions';\n\n/**\n * Types\n */\nimport {\n AccountCreateParams,\n AccountVerifyParams,\n AccountResetParams,\n AccountRecoverParams,\n SCPaginatedResponse,\n WebhookParamType,\n WebhookEventsType,\n SSOSignUpParams,\n CommentListParams,\n CommentCreateParams,\n IncubatorCreateParams,\n IncubatorSearchParams,\n LoyaltyPrizeParams,\n ModerationParams,\n ModerateContributionParams,\n FlaggedContributionParams,\n CustomNotificationParams,\n UserAutocompleteParams,\n UserScoreParams,\n UserSearchParams,\n TagParams,\n TagGetParams,\n MediaCreateParams,\n MediaTypes,\n ChunkUploadParams,\n ChunkUploadCompleteParams,\n ThreadParams,\n MessageCreateParams,\n MessageMediaUploadParams,\n MessageThumbnailUploadParams,\n MessageChunkUploadDoneParams,\n MessageMediaChunksParams,\n CategoryParams,\n CustomAdvParams,\n CustomPageParams,\n CustomPageSearchParams,\n EmbedUpdateParams,\n EmbedSearchParams,\n BaseGetParams,\n BaseSearchParams,\n FeedObjGetParams,\n FeedObjCreateParams,\n FeedObjectPollVotesSearch,\n FeedParams,\n LegalPageFilterParams,\n FeatureParams,\n ScoreParams,\n InsightContributionParams,\n InsightUserParams,\n InsightEmbedParams,\n InsightCommonParams,\n ReactionParams\n} from './types';\n\n/**\n * Export all\n */\nexport {\n http,\n HttpResponse,\n HttpMethod,\n apiRequest,\n formatHttpError,\n getCancelTokenSourceRequest,\n generateJWTToken,\n parseJwt,\n urlParams,\n Endpoints,\n EndpointType,\n AccountService,\n AccountApiClient,\n AccountApiClientInterface,\n PreferenceService,\n PreferenceApiClient,\n PreferenceApiClientInterface,\n UserService,\n UserApiClient,\n UserApiClientInterface,\n FeatureService,\n FeatureApiClient,\n FeatureApiClientInterface,\n CategoryService,\n CategoryApiClient,\n CategoryApiClientInterface,\n CommentService,\n CommentApiClient,\n CommentApiClientInterface,\n CustomAdvService,\n CustomAdvApiClient,\n CustomAdvApiClientInterface,\n CustomMenuService,\n CustomMenuApiClient,\n CustomMenuApiClientInterface,\n CustomPageService,\n CustomPageApiClient,\n CustomPageApiClientInterface,\n DataPortabilityService,\n DataPortabilityApiClient,\n DataPortabilityApiClientInterface,\n EmbedService,\n EmbedApiClient,\n EmbedApiClientInterface,\n FeedService,\n FeedApiClient,\n FeedApiClientInterface,\n FeedObjectService,\n FeedObjectApiClient,\n FeedObjectApiClientInterface,\n IncubatorService,\n IncubatorApiClient,\n IncubatorApiClientInterface,\n InsightService,\n InsightApiClient,\n InsightApiClientInterface,\n InviteService,\n InviteApiClient,\n InviteApiClientInterface,\n LegalPageService,\n LegalPageApiClient,\n LegalPageApiClientInterface,\n LocalityService,\n LocalityApiClient,\n LocalityApiClientInterface,\n LoyaltyService,\n LoyaltyApiClient,\n LoyaltyApiClientInterface,\n MediaService,\n MediaApiClient,\n MediaApiClientInterface,\n ModerationService,\n ModerationApiClient,\n ModerationApiClientInterface,\n NotificationService,\n NotificationApiClient,\n NotificationApiClientInterface,\n PrivateMessageService,\n PrivateMessageApiClient,\n PrivateMessageApiClientInterface,\n PromoService,\n PromoApiClient,\n PromoApiClientInterface,\n ScoreService,\n ScoreApiClient,\n ScoreApiClientInterface,\n SSOService,\n SSOApiClient,\n SSOApiClientInterface,\n SuggestionService,\n SuggestionApiClient,\n SuggestionApiClientInterface,\n TagService,\n TagApiClient,\n TagApiClientInterface,\n WebhookService,\n WebhookApiClient,\n WebhookApiClientInterface,\n SCPaginatedResponse,\n WebhookParamType,\n WebhookEventsType,\n AccountCreateParams,\n AccountVerifyParams,\n AccountResetParams,\n AccountRecoverParams,\n CommentCreateParams,\n IncubatorCreateParams,\n IncubatorSearchParams,\n SSOSignUpParams,\n CommentListParams,\n LoyaltyPrizeParams,\n ModerationParams,\n FlaggedContributionParams,\n ModerateContributionParams,\n CustomNotificationParams,\n UserAutocompleteParams,\n UserScoreParams,\n UserSearchParams,\n TagParams,\n TagGetParams,\n MediaCreateParams,\n MediaTypes,\n ChunkUploadParams,\n ChunkUploadCompleteParams,\n ThreadParams,\n MessageCreateParams,\n MessageMediaUploadParams,\n MessageThumbnailUploadParams,\n MessageChunkUploadDoneParams,\n MessageMediaChunksParams,\n CategoryParams,\n CustomAdvParams,\n CustomPageParams,\n CustomPageSearchParams,\n EmbedUpdateParams,\n EmbedSearchParams,\n BaseGetParams,\n BaseSearchParams,\n FeedObjGetParams,\n FeedObjCreateParams,\n FeedObjectPollVotesSearch,\n FeedParams,\n LegalPageFilterParams,\n FeatureParams,\n ScoreParams,\n InsightContributionParams,\n InsightUserParams,\n InsightEmbedParams,\n InsightCommonParams,\n ReactionParams,\n ReactionService,\n ReactionApiClient,\n ReactionApiClientInterface\n};\n"],"names":["root","factory","exports","module","define","amd","self","utils","settle","cookies","buildURL","buildFullPath","parseHeaders","isURLSameOrigin","createError","defaults","Cancel","config","Promise","resolve","reject","onCanceled","requestData","data","requestHeaders","headers","responseType","done","cancelToken","unsubscribe","signal","removeEventListener","isFormData","request","XMLHttpRequest","auth","username","password","unescape","encodeURIComponent","Authorization","btoa","fullPath","baseURL","url","onloadend","responseHeaders","getAllResponseHeaders","response","responseText","status","statusText","value","err","open","method","toUpperCase","params","paramsSerializer","timeout","onreadystatechange","readyState","responseURL","indexOf","setTimeout","onabort","onerror","ontimeout","timeoutErrorMessage","transitional","clarifyTimeoutError","isStandardBrowserEnv","xsrfValue","withCredentials","xsrfCookieName","read","undefined","xsrfHeaderName","forEach","val","key","toLowerCase","setRequestHeader","isUndefined","onDownloadProgress","addEventListener","onUploadProgress","upload","cancel","type","abort","subscribe","aborted","send","bind","Axios","mergeConfig","axios","createInstance","defaultConfig","context","instance","prototype","extend","create","instanceConfig","CancelToken","isCancel","VERSION","all","promises","spread","isAxiosError","message","this","toString","__CANCEL__","executor","TypeError","resolvePromise","promise","token","then","_listeners","i","l","length","onfulfilled","_resolve","reason","throwIfRequested","listener","push","index","splice","source","c","InterceptorManager","dispatchRequest","validator","validators","interceptors","arguments","assertOptions","silentJSONParsing","boolean","forcedJSONParsing","requestInterceptorChain","synchronousRequestInterceptors","interceptor","runWhen","synchronous","unshift","fulfilled","rejected","responseInterceptorChain","chain","Array","apply","concat","shift","newConfig","onFulfilled","onRejected","error","getUri","replace","handlers","use","options","eject","id","fn","h","isAbsoluteURL","combineURLs","requestedURL","enhanceError","code","Error","transformData","throwIfCancellationRequested","call","transformRequest","merge","common","adapter","transformResponse","toJSON","name","description","number","fileName","lineNumber","columnNumber","stack","config1","config2","getMergedValue","target","isPlainObject","isArray","slice","mergeDeepProperties","prop","valueFromConfig2","defaultToConfig2","mergeDirectKeys","mergeMap","Object","keys","configValue","validateStatus","fns","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","process","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","isObject","rawValue","parser","encoder","isString","JSON","parse","trim","e","stringify","stringifySafely","strictJSONParsing","maxContentLength","maxBodyLength","thisArg","args","encode","serializedParams","parts","v","isDate","toISOString","join","hashmarkIndex","relativeURL","write","expires","path","domain","secure","cookie","isNumber","Date","toGMTString","document","match","RegExp","decodeURIComponent","remove","now","test","payload","originURL","msie","navigator","userAgent","urlParsingNode","createElement","resolveURL","href","setAttribute","protocol","host","search","hash","hostname","port","pathname","charAt","window","location","requestURL","parsed","normalizedName","ignoreDuplicateOf","split","line","substr","callback","arr","thing","deprecatedWarnings","version","formatMessage","opt","desc","opts","console","warn","schema","allowUnknown","result","getPrototypeOf","isFunction","obj","hasOwnProperty","constructor","FormData","ArrayBuffer","isView","pipe","URLSearchParams","product","assignValue","a","b","str","stripBOM","content","charCodeAt","ApiClient","createClient","accessToken","DEFAULT_TIMEOUT","setDefaultHeader","methods","client","deleteDefaultHeader","getClientInstance","setSupportWithCredentials","enable","setBasePortal","baseUrl","setAuthorizeToken","get","post","patch","put","AccountCreate","urlReplacer","AccountVerify","AccountRecover","AccountReset","AccountSearch","InviteCode","PromoCode","OAuthToken","Preferences","GetPreference","SignIn","SignUp","Feature","FeedObjectList","FeedObjectsUncommented","SearchFeedObject","CreateFeedObject","FeedObject","UpdateFeedObject","DeleteFeedObject","FeedObjectContributorsList","FeedObjectSharesList","FeedObjectUserSharesList","RestoreFeedObject","RelatedFeedObjects","HideFeedObject","FeedObjectHideStatus","CheckIfFollowingFeedObject","FeedObjectFollowingList","FeedObjectFlagList","Comment","NewComment","UpdateComment","DeleteComment","RestoreComment","Comments","CommentVote","CommentVotesList","CommentRestore","CommentFlagList","FlagComment","CommentFlagStatus","FlagStatus","Flag","CategoryList","SearchCategory","CreateCategory","UpdateCategory","PatchCategory","DeleteCategory","CategoryAudience","Category","CategoriesFollowed","CategoryFollowers","CategoryTrendingFeed","CategoryTrendingPeople","FollowCategory","CheckCategoryIsFollowed","PopularCategories","TagsList","CreateTag","SearchTag","Tag","UpdateTag","PatchTag","AssignTag","UserList","ListHiddenUsers","UserAutocomplete","UserSearch","User","UserCounters","UserUpdate","UserPatch","UserDelete","ChangeUserMail","ConfirmUserChangeMail","ChangeUserPassword","UserSettings","UserSettingsPatch","Me","MyAvatar","Permission","Platform","FollowedCategories","UserFollowers","UserFollowings","FollowUser","CheckUserFollowed","CheckUserFollower","UserConnections","UserCheckConnection","UserConnectionRequests","UserRequestConnectionsSent","UserAcceptRequestConnection","UserRequestConnection","UserRemoveConnection","UserCancelRejectConnectionRequest","UserCancelRequestConnection","UserRejectConnectionRequest","UserMarkSeenConnectionRequest","UserShowHide","CheckUserHidden","CheckUserHiddenBy","GetUserLoyaltyPoints","UserConnectionStatuses","UserTagToAddressContribution","CheckEmailToken","AddAvatar","GetAvatars","RemoveAvatar","SetPrimaryAvatar","ProviderAssociations","CreateProviderAssociation","DeleteProviderAssociation","BroadcastMessagesList","BroadcastMessagesMarkRead","BroadcastMessagesDispose","BroadcastMessagesUnseenCount","BroadcastMessagesUndisposedCount","UserNotificationList","UserMarkReadNotification","UserUnseenNotificationCount","CreateCustomNotification","UserSuspendContributionNotification","UserCheckContributionNotificationSuspended","UserListContributionNotificationSuspended","CategoriesSuggestion","GetIncubatorSuggestion","PollSuggestion","UserSuggestion","SearchSuggestion","FollowContribution","Vote","VotesList","ShareUsersList","PollVote","PollVotesList","Contributors","GetPrizes","CreatePrize","GetSpecificPrize","UpdatePrize","PatchPrize","GetPrizeRequests","CreatePrizeRequest","GetSpecificPrizeRequest","PatchPrizeRequest","Composer","ComposerEdit","ComposerChunkUploadMedia","ComposerChunkUploadMediaComplete","ComposerMediaCreate","ComposerCategoryList","ComposerAddressingTagList","ComposerLocalitySearch","GetMedia","UpdateMedia","DeleteMedia","MediaClickTracker","GetLocalities","CustomAdvList","CustomAdv","CustomAdvSearch","MainFeed","MainFeedUnseenCount","FeedObjectMarkRead","ExploreFeed","FeedLikeThese","CategoryFeed","UserFeed","EmbedFeed","EmbedList","EmbedCreate","EmbedSearch","Embed","UpdateEmbed","PatchEmbed","SpecificEmbedFeed","GetSnippets","GetASingleMessage","SendMessage","GetAThread","PrivateMessageUploadMedia","PrivateMessageUploadThumbnail","PrivateMessageUploadMediaInChunks","PrivateMessageChunkUploadDone","DeleteASingleMessage","DeleteAThread","PrivateMessageSearchUser","Device","NewDevice","DeleteDevice","UsersForModeration","ModerateUser","FlaggedContributions","FlagsForSpecificContribution","ModerateContribution","ModerateContributionStatus","InsightBestContribution","InsightBestEmbed","InsightBestUser","InsightContributionCounter","InsightEmbedCounter","InsightUserCounter","GetAllIncubators","SearchIncubators","GetASpecificIncubator","CheckIncubatorSubscription","SubscribeToIncubator","CreateAnIncubator","GetIncubatorSubscribers","GetCustomMenus","CustomMenu","CustomMenuSearch","GetCustomPages","CustomPage","CustomPageSearch","LegalPage","GetLegalPages","SearchLegalPages","LegalPagesLastRevision","LegalPageLastRevision","LegalPageRevisions","AckLegalPage","SpecificUserAck","UserAckList","WebhookEndpointsList","WebhookEventsList","WebhookCreate","GetSpecificWebhook","WebhookUpdate","WebhookPatch","WebhookDelete","WebhookEndpointAttempts","WebhookExpireSigningSecret","WebhookRevealSigningSecret","WebhookResendEndpointEvent","WebhookResendMultipleEndpointEvent","GenerateDataPortability","DataPortabilityStatus","DataPortabilityDownload","ScoresList","SearchScore","AddScore","GetReactions","GetSpecificReaction","AccountApiClient","static","apiRequest","Endpoints","verify","recover","reset","CategoryApiClient","p","urlParams","getAllCategories","searchCategory","createCategory","getSpecificCategory","updateASpecificCategory","patchASpecificCategory","deleteASpecificCategory","getCategoryAudience","getCategoryFollowers","getCategoryFeed","getCategoryTrendingFeed","getCategoryTrendingFollowers","followCategory","checkCategoryIsFollowed","getFollowedCategories","getPopularCategories","CommentApiClient","text","flagType","getAllComments","createComment","getASpecificComment","updateComment","deleteComment","restoreComment","getSpecificCommentVotesList","upvoteComment","getSpecificCommentFlags","flagComment","getSpecificCommentFlagStatus","CustomAdvApiClient","getASpecificCustomAdv","getAllCustomAdv","searchCustomAdv","CustomMenuApiClient","getASpecificCustomMenu","getAllCustomMenus","getBaseCustomMenu","searchCustomMenus","CustomPageApiClient","getASpecificCustomPage","getAllCustomPages","searchCustomPages","DataPortabilityApiClient","generateDataPortability","downloadDataPortability","dataPortabilityStatus","EmbedApiClient","embed_type","embed_id","getAllEmbeds","searchEmbed","createEmbed","getSpecificEmbed","updateASpecificEmbed","patchASpecificEmbed","getEmbedFeed","getSpecificEmbedFeed","FeatureApiClient","getAllFeatures","FeedApiClient","object","getMainFeed","getExploreFeed","getMainFeedUnseenCount","markReadASpecificFeedObj","likeFeedObjs","FeedObjectApiClient","reaction","choice","flag_type","getAllFeedObjects","getUncommentedFeedObjects","searchFeedObject","createFeedObject","getSpecificFeedObject","updateFeedObject","deleteFeedObject","feedObjectContributorsList","feedObjectSharesList","feedObjectUserSharesList","restoreFeedObject","relatedFeedObjects","voteFeedObject","feedObjectVotes","feedObjectPollVote","feedObjectPollVotesList","followFeedObject","feedObjectFollowingList","checkIfFollowingFeedObject","suspendFeedObject","checkIfSuspendedFeedObject","feedObjectSuspendedList","flagFeedObject","feedObjectFlagList","feedObjectFlagStatus","hideFeedObject","feedObjectHideStatus","IncubatorApiClient","getAllIncubators","searchIncubators","getSpecificIncubator","createIncubator","getIncubatorSubscribers","subscribeToIncubator","checkIncubatorSubscription","InsightApiClient","getBestContributionInsight","getBestEmbedInsight","getBestUsersInsight","getContributionsInsightCounters","getEmbedsInsightCounters","getUsersInsightCounters","InviteApiClient","getSpecificInvite","LegalPageApiClient","policy","accept","getLegalPages","getSpecificLegalPage","getAllRevisionsOfLegalPage","getAllLastRevisionsOfLegalPages","getLastRevisionOfLegalPage","searchLegalPages","ackLegalPage","getSpecificUserAck","userAckList","LocalityApiClient","getLocalities","searchLocalities","LoyaltyApiClient","prize","getPrizes","createPrize","getSpecificPrize","updatePrize","patchPrize","getAllPrizeRequests","createPrizeRequest","getSpecificPrizeRequest","patchPrizeRequest","MediaApiClient","bytesStart","bytesEnd","bytesTotal","ip","image","chunkUploadMedia","chunkUploadMediaComplete","createMedia","clickMedia","getSpecificMedia","updateMedia","deleteMedia","ModerationApiClient","days_blocked","hard","contribution_type","getUsersForModeration","moderateASpecificUser","getAllFlaggedContributions","getAllFlagsForSpecificContribution","moderateAContribution","getContributionModerationStatus","NotificationApiClient","sids","banner_ids","listUserNotification","markReadNotification","getUnseenNotification","createCustomNotification","listBroadcastMessages","listBroadcastMessagesUnseenCount","listBroadcastMessagesUndisposedCount","disposeBroadcastMessages","markReadBroadcastMessages","PreferenceApiClient","section","ordering","getAllPreferences","searchPreferences","getSpecificPreference","PrivateMessageApiClient","getAllSnippets","getAThread","getASingleMessage","sendAMessage","deleteAMessage","deleteAThread","uploadMedia","uploadThumbnail","uploadMediaInChunks","chunkUploadDone","searchUser","PromoApiClient","getSpecificPromo","ReactionApiClient","getAllReactions","getSpecificReaction","ScoreApiClient","getAllScores","searchScore","addScore","SSOApiClient","SuggestionApiClient","getCategorySuggestion","getIncubatorSuggestion","getPollSuggestion","getUserSuggestion","getSearchSuggestion","TagApiClient","user","category","getAllTags","createTag","searchTag","getSpecificTag","updateTag","patchTag","assignATag","UserApiClient","new_email","confirm","validation_code","new_password","next","mutual","users","email_token","avatar_id","userId","user_id","getAllUsers","getHiddenUsers","userAutocomplete","userSearch","getSpecificUser","getUserCounters","userUpdate","userPatch","userDelete","changeUserMail","confirmChangeUserMail","changeUserPassword","userSettings","userSettingsPatch","getCurrentUser","getCurrentUserAvatar","getCurrentUserPermission","getCurrentUserPlatform","getUserFollowedCategories","getUserFeed","getUserFollowers","getUserFollowings","followUser","checkUserFollowed","checkUserFollower","getUserConnections","checkUserConnections","getUserConnectionRequests","getUserRequestConnectionsSent","userAcceptRequestConnection","userRequestConnection","userRemoveConnection","userCancelRejectConnectionRequest","userCancelRequestConnection","userRejectConnectionRequest","userMarkSeenConnectionRequest","showHideUser","checkUserHidden","checkUserHiddenBy","getUserLoyaltyPoints","getUserConnectionStatuses","userTagToAddressContribution","checkUserEmailToken","addUserAvatar","getUserAvatars","removeUserAvatar","setUserPrimaryAvatar","getProviderAssociations","createProviderAssociation","deleteProviderAssociation","WebhookApiClient","event","getAllWebhookEndpoints","getAllWebhookEvents","createWebhookEndpoint","getASpecificWebhookEndpoint","updateASpecificWebhookEndpoint","updateASingleWebhookEndpointField","deleteWebhookEndpoint","getAllWebhookEndpointAttempts","expireWebhookSigningSecret","revealWebhookSigningSecret","resendWebhookEndpointEvent","resendMultipleWebhookEndpointEvent","MediaTypes","res","Logger","info","SCOPE_API_SERVICES","catch","errors","formatError","defaultError","log","field","camelCase","messages","async","secretKey","expirationTime","token_type","jti","getTime","privateKey","TextEncoder","jose","SignJWT","setProtectedHeader","alg","typ","setIssuedAt","setExpirationTime","sign","base64","jsonPayload","atob","map","init","uaData","browsername","browserversion","chromeVersion","brand","tem","ua","M","exec","appName","appVersion","LruCache","maxEntries","Map","values","entry","has","delete","set","size","keyToDelete","hasKey","deleteKeys","k","deleteKeysWithPrefix","prefix","startsWith","clean","evaluate","CacheStrategies","file","reader","FileReader","onload","Image","imageEvent","canvas","max_size","width","height","getContext","drawImage","dataURI","byteString","mimeString","ia","Uint8Array","Blob","dataURItoBlob","toDataURL","src","readAsDataURL","scope","debug","mergeDeep","output","assign","fallbackCopyTextToClipboard","textArea","style","top","left","position","body","appendChild","focus","select","execCommand","removeChild","$1","strVal","strArr","chr","substring","clipboard","writeText","String","Math","random","queryParams","_url","tpl","re","lastIndex","replacer","matches","isValidUrl","delimiter","every","base64String","repeat","rawData","outputArray","uri","URL","searchParams","separator","WSClient","cfg","isValidOptions","_cfg","heartbeatMsg","mustReconnect","connect","_instance","_ws","isConnecting","isConnected","connecting","WebSocket","protocols","onopen","onOpen","onmessage","onMessage","onError","onclose","onClose","_timer","tryToReconnect","_error","connected","receiveMessage","disconnected","interval","generateInterval","_attempts","reconnect","sendHeartbeat","_missedHeartbeats","clearInterval","_heartbeatInterval","isClosing","isClosed","close","setInterval","evt","maxInterval","pow","sendMessage","getState","getHighestSafeWindowContext","global","parent","isCrossOriginFrame","innerHeight","innerWidth","isCryptoKey","CryptoKey","algorithm","subtleDigest","decoder","TextDecoder","MAX_INT32","buffers","reduce","acc","buf","writeUInt32BE","offset","RangeError","uint64be","high","floor","low","uint32be","lengthAndInput","input","encodeBase64","unencoded","fromCharCode","subarray","decodeBase64","encoded","binary","bytes","decode","_a","JOSEError","super","captureStackTrace","JWTClaimValidationFailed","claim","JWTExpired","JOSEAlgNotAllowed","JOSENotSupported","JWEDecryptionFailed","JWEInvalid","JWSInvalid","JWTInvalid","JWKInvalid","JWKSInvalid","JWKSNoMatchingKey","JWKSMultipleMatchingKeys","JWKSTimeout","JWSSignatureVerificationFailed","bitLength","enc","iv","cek","expected","actual","byteLength","isCloudflareWorkers","WebSocketPair","EdgeRuntime","unusable","isAlgorithm","getHashLength","parseInt","checkUsage","usages","some","includes","msg","last","pop","checkEncCryptoKey","types","withAlg","ciphertext","tag","aad","keySize","encKey","macKey","macData","expectedTag","macCheckPassed","plaintext","len","out","_b","cbcDecrypt","additionalData","tagLength","gcmDecrypt","inflate","deflate","sources","filter","Boolean","header","parameters","parameter","add","Set","proto","checkKeySize","getCryptoKey","usage","wrap","cryptoKey","cryptoKeyCek","bogus","unwrap","encryptedKey","deriveKey","publicKey","keyLength","apu","apv","ceil","namedCurve","secret","bits","iterations","iter","concatKdf","public","ecdhAllowed","p2s","p2c","checkP2s","salt","p2sInput","keylen","subtleAlg","wrapAlg","subtleRsaEs","modulusLength","b64","descriptor","genericExport","keyType","keyFormat","extractable","findOid","keyData","oid","from","sub","genericImport","pem","keyUsages","isPublic","fromSPKI","jwk","kty","d","crv","subtleMapping","rest","ext","key_ops","getElement","seq","nextPart","parseElement","contents","raw","numberOfDigits","importSPKI","spki","importX509","x509","tbsCertificate","spkiFromX509","getSPKI","cause","importPKCS8","pkcs8","importJWK","octAsKeyObject","oth","symmetricTypeCheck","asymmetricTypeCheck","cbcEncrypt","encrypted","gcmEncrypt","Err","recognizedDefault","recognizedOption","protectedHeader","joseHeader","crit","recognized","entries","option","algorithms","s","flattenedDecrypt","jwe","protected","unprotected","encrypted_key","parsedProt","zip","keyManagementAlgorithms","contentEncryptionAlgorithms","resolvedKey","epk","partyUInfo","partyVInfo","sharedSecret","p2cLimit","maxPBES2Count","derived","jweAlgorithm","inflateRaw","additionalAuthenticatedData","sharedUnprotectedHeader","unprotectedHeader","compactDecrypt","decrypted","generalDecrypt","recipients","recipient","exportSPKI","exportPKCS8","exportJWK","providedCek","providedParameters","ephemeralKey","x","y","kwAlg","Symbol","FlattenedEncrypt","_plaintext","setKeyManagementParameters","_keyManagementParameters","_protectedHeader","setSharedUnprotectedHeader","_sharedUnprotectedHeader","setUnprotectedHeader","_unprotectedHeader","setAdditionalAuthenticatedData","_aad","setContentEncryptionKey","_cek","setInitializationVector","_iv","aadMember","deflated","deflateRaw","IndividualRecipient","addRecipient","encrypt","GeneralEncrypt","_recipients","_c","flattened","subtleDsa","saltLength","getNamedCurve","checkSigCryptoKey","flattenedVerify","jws","signature","compactVerify","verified","generalVerify","signatures","date","REGEX","matched","parseFloat","round","minute","hour","day","normalizeTyp","encodedPayload","issuer","iss","subject","audience","audOption","audPayload","aud","tolerance","clockTolerance","secs","currentDate","epoch","iat","maxTokenAge","nbf","exp","age","jwtVerify","jwt","jwtDecrypt","CompactEncrypt","_flattened","FlattenedSign","_payload","CompactSign","IndividualSignature","sig","addSignature","GeneralSign","_signatures","ProduceJWT","setIssuer","setSubject","setAudience","setJti","jwtId","setNotBefore","EncryptJWT","replicateIssuerAsHeader","_replicateIssuerAsHeader","replicateSubjectAsHeader","_replicateSubjectAsHeader","replicateAudienceAsHeader","_replicateAudienceAsHeader","check","calculateJwkThumbprint","digestAlgorithm","components","n","calculateJwkThumbprintUri","thumbprint","EmbeddedJWK","isJWKSLike","jwks","isJWKLike","LocalJWKSet","_cached","WeakMap","_jwks","structuredClone","kid","getKtyFromAlg","candidates","candidate","cached","keyObject","createLocalJWKSet","getKey","RemoteJWKSet","_options","agent","_timeoutDuration","timeoutDuration","_cooldownDuration","cooldownDuration","_cacheMaxAge","cacheMaxAge","coolingDown","_jwksTimestamp","fresh","reload","_pendingFetch","isDone","controller","timedOut","AbortController","fetch","redirect","clearTimeout","json","createRemoteJWKSet","UnsecuredJWT","encodedHeader","decodeProtectedHeader","protectedB64u","decodeJwt","decoded","getModulusLengthOption","publicExponent","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","definition","o","defineProperty","enumerable","g","globalThis","Function","r","toStringTag"],"sourceRoot":""}