@foru-ms/sdk 1.3.2 → 2.0.2

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 (1133) hide show
  1. package/README.md +268 -618
  2. package/dist/cjs/BaseClient.d.ts +39 -0
  3. package/dist/cjs/BaseClient.js +62 -0
  4. package/dist/cjs/Client.d.ts +47 -0
  5. package/dist/cjs/Client.js +71 -0
  6. package/dist/cjs/api/errors/BadRequestError.d.ts +6 -0
  7. package/dist/cjs/api/errors/BadRequestError.js +54 -0
  8. package/dist/cjs/api/errors/InternalServerError.d.ts +6 -0
  9. package/dist/cjs/api/errors/InternalServerError.js +54 -0
  10. package/dist/cjs/api/errors/NotFoundError.d.ts +6 -0
  11. package/dist/cjs/api/errors/NotFoundError.js +54 -0
  12. package/dist/cjs/api/errors/PaymentRequiredError.d.ts +6 -0
  13. package/dist/cjs/api/errors/PaymentRequiredError.js +54 -0
  14. package/dist/cjs/api/errors/TooManyRequestsError.d.ts +6 -0
  15. package/dist/cjs/api/errors/TooManyRequestsError.js +54 -0
  16. package/dist/cjs/api/errors/UnauthorizedError.d.ts +6 -0
  17. package/dist/cjs/api/errors/UnauthorizedError.js +54 -0
  18. package/dist/cjs/api/errors/index.d.ts +6 -0
  19. package/dist/cjs/api/errors/index.js +22 -0
  20. package/dist/cjs/api/index.d.ts +3 -0
  21. package/dist/cjs/api/index.js +19 -0
  22. package/dist/cjs/api/resources/auth/client/Client.d.ts +93 -0
  23. package/dist/cjs/api/resources/auth/client/Client.js +352 -0
  24. package/dist/cjs/api/resources/auth/client/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/auth/client/index.js +17 -0
  26. package/dist/cjs/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.d.ts +10 -0
  27. package/dist/cjs/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.js +3 -0
  28. package/dist/cjs/api/resources/auth/client/requests/PostAuthLoginRequest.d.ts +13 -0
  29. package/dist/cjs/api/resources/auth/client/requests/PostAuthLoginRequest.js +3 -0
  30. package/dist/cjs/api/resources/auth/client/requests/PostAuthRegisterRequest.d.ts +24 -0
  31. package/dist/cjs/api/resources/auth/client/requests/PostAuthRegisterRequest.js +3 -0
  32. package/dist/cjs/api/resources/auth/client/requests/PostAuthResetPasswordRequest.d.ts +16 -0
  33. package/dist/cjs/api/resources/auth/client/requests/PostAuthResetPasswordRequest.js +3 -0
  34. package/dist/cjs/api/resources/auth/client/requests/index.d.ts +4 -0
  35. package/dist/{response-types.js → cjs/api/resources/auth/client/requests/index.js} +2 -2
  36. package/dist/cjs/api/resources/auth/index.d.ts +2 -0
  37. package/dist/cjs/api/resources/auth/index.js +18 -0
  38. package/dist/cjs/api/resources/auth/types/GetAuthMeResponse.d.ts +4 -0
  39. package/dist/cjs/api/resources/auth/types/GetAuthMeResponse.js +3 -0
  40. package/dist/cjs/api/resources/auth/types/PostAuthForgotPasswordResponse.d.ts +4 -0
  41. package/dist/cjs/api/resources/auth/types/PostAuthForgotPasswordResponse.js +3 -0
  42. package/dist/cjs/api/resources/auth/types/PostAuthLoginResponse.d.ts +3 -0
  43. package/dist/cjs/api/resources/auth/types/PostAuthLoginResponse.js +3 -0
  44. package/dist/cjs/api/resources/auth/types/PostAuthRegisterResponse.d.ts +3 -0
  45. package/dist/cjs/api/resources/auth/types/PostAuthRegisterResponse.js +3 -0
  46. package/dist/cjs/api/resources/auth/types/PostAuthResetPasswordResponse.d.ts +3 -0
  47. package/dist/cjs/api/resources/auth/types/PostAuthResetPasswordResponse.js +3 -0
  48. package/dist/cjs/api/resources/auth/types/index.d.ts +5 -0
  49. package/dist/cjs/api/resources/auth/types/index.js +21 -0
  50. package/dist/cjs/api/resources/index.d.ts +36 -0
  51. package/dist/cjs/api/resources/index.js +75 -0
  52. package/dist/cjs/api/resources/integrations/client/Client.d.ts +99 -0
  53. package/dist/cjs/api/resources/integrations/client/Client.js +391 -0
  54. package/dist/cjs/api/resources/integrations/client/index.d.ts +1 -0
  55. package/dist/cjs/api/resources/integrations/client/index.js +17 -0
  56. package/dist/cjs/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.d.ts +9 -0
  57. package/dist/cjs/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.js +3 -0
  58. package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsIdRequest.d.ts +9 -0
  59. package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsIdRequest.js +3 -0
  60. package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsRequest.d.ts +9 -0
  61. package/dist/cjs/api/resources/integrations/client/requests/GetIntegrationsRequest.js +3 -0
  62. package/dist/cjs/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.d.ts +15 -0
  63. package/dist/cjs/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.js +3 -0
  64. package/dist/cjs/api/resources/integrations/client/requests/PostIntegrationsRequest.d.ts +16 -0
  65. package/dist/cjs/api/resources/integrations/client/requests/PostIntegrationsRequest.js +3 -0
  66. package/dist/cjs/api/resources/integrations/client/requests/index.d.ts +5 -0
  67. package/dist/{types.js → cjs/api/resources/integrations/client/requests/index.js} +2 -2
  68. package/dist/cjs/api/resources/integrations/index.d.ts +2 -0
  69. package/dist/cjs/api/resources/integrations/index.js +18 -0
  70. package/dist/cjs/api/resources/integrations/types/DeleteIntegrationsIdResponse.d.ts +3 -0
  71. package/dist/cjs/api/resources/integrations/types/DeleteIntegrationsIdResponse.js +3 -0
  72. package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.d.ts +6 -0
  73. package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.js +3 -0
  74. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.d.ts +15 -0
  75. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.js +3 -0
  76. package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.d.ts +6 -0
  77. package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.js +3 -0
  78. package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.d.ts +6 -0
  79. package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.js +3 -0
  80. package/dist/cjs/api/resources/integrations/types/index.d.ts +5 -0
  81. package/dist/cjs/api/resources/integrations/types/index.js +21 -0
  82. package/dist/cjs/api/resources/notifications/client/Client.d.ts +97 -0
  83. package/dist/cjs/api/resources/notifications/client/Client.js +389 -0
  84. package/dist/cjs/api/resources/notifications/client/index.d.ts +1 -0
  85. package/dist/cjs/api/resources/notifications/client/index.js +17 -0
  86. package/dist/cjs/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.d.ts +9 -0
  87. package/dist/cjs/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.js +3 -0
  88. package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsIdRequest.d.ts +9 -0
  89. package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsIdRequest.js +3 -0
  90. package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsRequest.d.ts +9 -0
  91. package/dist/cjs/api/resources/notifications/client/requests/GetNotificationsRequest.js +3 -0
  92. package/dist/cjs/api/resources/notifications/client/requests/PatchNotificationsIdRequest.d.ts +23 -0
  93. package/dist/cjs/api/resources/notifications/client/requests/PatchNotificationsIdRequest.js +14 -0
  94. package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.d.ts +21 -0
  95. package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.js +3 -0
  96. package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +5 -0
  97. package/dist/cjs/api/resources/notifications/client/requests/index.js +2 -0
  98. package/dist/cjs/api/resources/notifications/index.d.ts +2 -0
  99. package/dist/cjs/api/resources/notifications/index.js +18 -0
  100. package/dist/cjs/api/resources/notifications/types/DeleteNotificationsIdResponse.d.ts +3 -0
  101. package/dist/cjs/api/resources/notifications/types/DeleteNotificationsIdResponse.js +3 -0
  102. package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.d.ts +6 -0
  103. package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.js +3 -0
  104. package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.d.ts +15 -0
  105. package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.js +3 -0
  106. package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.d.ts +6 -0
  107. package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.js +3 -0
  108. package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.d.ts +6 -0
  109. package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.js +3 -0
  110. package/dist/cjs/api/resources/notifications/types/index.d.ts +5 -0
  111. package/dist/cjs/api/resources/notifications/types/index.js +21 -0
  112. package/dist/cjs/api/resources/posts/client/Client.d.ts +97 -0
  113. package/dist/cjs/api/resources/posts/client/Client.js +389 -0
  114. package/dist/cjs/api/resources/posts/client/index.d.ts +1 -0
  115. package/dist/cjs/api/resources/posts/client/index.js +17 -0
  116. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdRequest.d.ts +9 -0
  117. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdRequest.js +3 -0
  118. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdRequest.d.ts +9 -0
  119. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdRequest.js +3 -0
  120. package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.d.ts +9 -0
  121. package/dist/cjs/api/resources/posts/client/requests/GetPostsRequest.js +3 -0
  122. package/dist/cjs/api/resources/posts/client/requests/PatchPostsIdRequest.d.ts +17 -0
  123. package/dist/cjs/api/resources/posts/client/requests/PatchPostsIdRequest.js +3 -0
  124. package/dist/cjs/api/resources/posts/client/requests/PostPostsRequest.d.ts +18 -0
  125. package/dist/cjs/api/resources/posts/client/requests/PostPostsRequest.js +3 -0
  126. package/dist/cjs/api/resources/posts/client/requests/index.d.ts +5 -0
  127. package/dist/cjs/api/resources/posts/client/requests/index.js +2 -0
  128. package/dist/cjs/api/resources/posts/index.d.ts +2 -0
  129. package/dist/cjs/api/resources/posts/index.js +18 -0
  130. package/dist/cjs/api/resources/posts/types/DeletePostsIdResponse.d.ts +3 -0
  131. package/dist/cjs/api/resources/posts/types/DeletePostsIdResponse.js +3 -0
  132. package/dist/cjs/api/resources/posts/types/GetPostsIdResponse.d.ts +17 -0
  133. package/dist/cjs/api/resources/posts/types/GetPostsIdResponse.js +3 -0
  134. package/dist/cjs/api/resources/posts/types/GetPostsResponse.d.ts +26 -0
  135. package/dist/cjs/api/resources/posts/types/GetPostsResponse.js +3 -0
  136. package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.d.ts +17 -0
  137. package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.js +3 -0
  138. package/dist/cjs/api/resources/posts/types/PostPostsResponse.d.ts +17 -0
  139. package/dist/cjs/api/resources/posts/types/PostPostsResponse.js +3 -0
  140. package/dist/cjs/api/resources/posts/types/index.d.ts +5 -0
  141. package/dist/cjs/api/resources/posts/types/index.js +21 -0
  142. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +79 -0
  143. package/dist/cjs/api/resources/privateMessages/client/Client.js +314 -0
  144. package/dist/cjs/api/resources/privateMessages/client/index.d.ts +1 -0
  145. package/dist/cjs/api/resources/privateMessages/client/index.js +17 -0
  146. package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.d.ts +9 -0
  147. package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.js +3 -0
  148. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.d.ts +9 -0
  149. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.js +3 -0
  150. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.d.ts +9 -0
  151. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.js +3 -0
  152. package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.d.ts +21 -0
  153. package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.js +3 -0
  154. package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +4 -0
  155. package/dist/cjs/api/resources/privateMessages/client/requests/index.js +2 -0
  156. package/dist/cjs/api/resources/privateMessages/index.d.ts +2 -0
  157. package/dist/cjs/api/resources/privateMessages/index.js +18 -0
  158. package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.d.ts +3 -0
  159. package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.js +3 -0
  160. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.ts +6 -0
  161. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.js +3 -0
  162. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.ts +15 -0
  163. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.js +3 -0
  164. package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.ts +6 -0
  165. package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesResponse.js +3 -0
  166. package/dist/cjs/api/resources/privateMessages/types/index.d.ts +4 -0
  167. package/dist/cjs/api/resources/privateMessages/types/index.js +20 -0
  168. package/dist/cjs/api/resources/reports/client/Client.d.ts +78 -0
  169. package/dist/cjs/api/resources/reports/client/Client.js +310 -0
  170. package/dist/cjs/api/resources/reports/client/index.d.ts +1 -0
  171. package/dist/cjs/api/resources/reports/client/index.js +17 -0
  172. package/dist/cjs/api/resources/reports/client/requests/DeleteReportsIdRequest.d.ts +9 -0
  173. package/dist/cjs/api/resources/reports/client/requests/DeleteReportsIdRequest.js +3 -0
  174. package/dist/cjs/api/resources/reports/client/requests/GetReportsIdRequest.d.ts +9 -0
  175. package/dist/cjs/api/resources/reports/client/requests/GetReportsIdRequest.js +3 -0
  176. package/dist/cjs/api/resources/reports/client/requests/GetReportsRequest.d.ts +9 -0
  177. package/dist/cjs/api/resources/reports/client/requests/GetReportsRequest.js +3 -0
  178. package/dist/cjs/api/resources/reports/client/requests/PostReportsRequest.d.ts +22 -0
  179. package/dist/cjs/api/resources/reports/client/requests/PostReportsRequest.js +3 -0
  180. package/dist/cjs/api/resources/reports/client/requests/index.d.ts +4 -0
  181. package/dist/cjs/api/resources/reports/client/requests/index.js +2 -0
  182. package/dist/cjs/api/resources/reports/index.d.ts +2 -0
  183. package/dist/cjs/api/resources/reports/index.js +18 -0
  184. package/dist/cjs/api/resources/reports/types/DeleteReportsIdResponse.d.ts +3 -0
  185. package/dist/cjs/api/resources/reports/types/DeleteReportsIdResponse.js +3 -0
  186. package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.d.ts +22 -0
  187. package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.js +3 -0
  188. package/dist/cjs/api/resources/reports/types/GetReportsResponse.d.ts +31 -0
  189. package/dist/cjs/api/resources/reports/types/GetReportsResponse.js +3 -0
  190. package/dist/cjs/api/resources/reports/types/PostReportsResponse.d.ts +22 -0
  191. package/dist/cjs/api/resources/reports/types/PostReportsResponse.js +3 -0
  192. package/dist/cjs/api/resources/reports/types/index.d.ts +4 -0
  193. package/dist/cjs/api/resources/reports/types/index.js +20 -0
  194. package/dist/cjs/api/resources/roles/client/Client.d.ts +96 -0
  195. package/dist/cjs/api/resources/roles/client/Client.js +388 -0
  196. package/dist/cjs/api/resources/roles/client/index.d.ts +1 -0
  197. package/dist/cjs/api/resources/roles/client/index.js +17 -0
  198. package/dist/cjs/api/resources/roles/client/requests/DeleteRolesIdRequest.d.ts +9 -0
  199. package/dist/cjs/api/resources/roles/client/requests/DeleteRolesIdRequest.js +3 -0
  200. package/dist/cjs/api/resources/roles/client/requests/GetRolesIdRequest.d.ts +9 -0
  201. package/dist/cjs/api/resources/roles/client/requests/GetRolesIdRequest.js +3 -0
  202. package/dist/cjs/api/resources/roles/client/requests/GetRolesRequest.d.ts +9 -0
  203. package/dist/cjs/api/resources/roles/client/requests/GetRolesRequest.js +3 -0
  204. package/dist/cjs/api/resources/roles/client/requests/PatchRolesIdRequest.d.ts +19 -0
  205. package/dist/cjs/api/resources/roles/client/requests/PatchRolesIdRequest.js +3 -0
  206. package/dist/cjs/api/resources/roles/client/requests/PostRolesRequest.d.ts +18 -0
  207. package/dist/cjs/api/resources/roles/client/requests/PostRolesRequest.js +3 -0
  208. package/dist/cjs/api/resources/roles/client/requests/index.d.ts +5 -0
  209. package/dist/cjs/api/resources/roles/client/requests/index.js +2 -0
  210. package/dist/cjs/api/resources/roles/index.d.ts +2 -0
  211. package/dist/cjs/api/resources/roles/index.js +18 -0
  212. package/dist/cjs/api/resources/roles/types/DeleteRolesIdResponse.d.ts +3 -0
  213. package/dist/cjs/api/resources/roles/types/DeleteRolesIdResponse.js +3 -0
  214. package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.d.ts +18 -0
  215. package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.js +3 -0
  216. package/dist/cjs/api/resources/roles/types/GetRolesResponse.d.ts +27 -0
  217. package/dist/cjs/api/resources/roles/types/GetRolesResponse.js +3 -0
  218. package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.d.ts +18 -0
  219. package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.js +3 -0
  220. package/dist/cjs/api/resources/roles/types/PostRolesResponse.d.ts +18 -0
  221. package/dist/cjs/api/resources/roles/types/PostRolesResponse.js +3 -0
  222. package/dist/cjs/api/resources/roles/types/index.d.ts +5 -0
  223. package/dist/cjs/api/resources/roles/types/index.js +21 -0
  224. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +102 -0
  225. package/dist/cjs/api/resources/ssOs/client/Client.js +394 -0
  226. package/dist/cjs/api/resources/ssOs/client/index.d.ts +1 -0
  227. package/dist/cjs/api/resources/ssOs/client/index.js +17 -0
  228. package/dist/cjs/api/resources/ssOs/client/requests/DeleteSsoIdRequest.d.ts +9 -0
  229. package/dist/cjs/api/resources/ssOs/client/requests/DeleteSsoIdRequest.js +3 -0
  230. package/dist/cjs/api/resources/ssOs/client/requests/GetSsoIdRequest.d.ts +9 -0
  231. package/dist/cjs/api/resources/ssOs/client/requests/GetSsoIdRequest.js +3 -0
  232. package/dist/cjs/api/resources/ssOs/client/requests/GetSsoRequest.d.ts +9 -0
  233. package/dist/cjs/api/resources/ssOs/client/requests/GetSsoRequest.js +3 -0
  234. package/dist/cjs/api/resources/ssOs/client/requests/PatchSsoIdRequest.d.ts +21 -0
  235. package/dist/cjs/api/resources/ssOs/client/requests/PatchSsoIdRequest.js +3 -0
  236. package/dist/cjs/api/resources/ssOs/client/requests/PostSsoRequest.d.ts +22 -0
  237. package/dist/cjs/api/resources/ssOs/client/requests/PostSsoRequest.js +3 -0
  238. package/dist/cjs/api/resources/ssOs/client/requests/index.d.ts +5 -0
  239. package/dist/cjs/api/resources/ssOs/client/requests/index.js +2 -0
  240. package/dist/cjs/api/resources/ssOs/index.d.ts +2 -0
  241. package/dist/cjs/api/resources/ssOs/index.js +18 -0
  242. package/dist/cjs/api/resources/ssOs/types/DeleteSsoIdResponse.d.ts +3 -0
  243. package/dist/cjs/api/resources/ssOs/types/DeleteSsoIdResponse.js +3 -0
  244. package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.d.ts +6 -0
  245. package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.js +3 -0
  246. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.d.ts +15 -0
  247. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.js +3 -0
  248. package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.d.ts +6 -0
  249. package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.js +3 -0
  250. package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.d.ts +6 -0
  251. package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.js +3 -0
  252. package/dist/cjs/api/resources/ssOs/types/index.d.ts +5 -0
  253. package/dist/cjs/api/resources/ssOs/types/index.js +21 -0
  254. package/dist/cjs/api/resources/tags/client/Client.d.ts +96 -0
  255. package/dist/cjs/api/resources/tags/client/Client.js +388 -0
  256. package/dist/cjs/api/resources/tags/client/index.d.ts +1 -0
  257. package/dist/cjs/api/resources/tags/client/index.js +17 -0
  258. package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdRequest.d.ts +9 -0
  259. package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdRequest.js +3 -0
  260. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdRequest.d.ts +9 -0
  261. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdRequest.js +3 -0
  262. package/dist/cjs/api/resources/tags/client/requests/GetTagsRequest.d.ts +9 -0
  263. package/dist/cjs/api/resources/tags/client/requests/GetTagsRequest.js +3 -0
  264. package/dist/cjs/api/resources/tags/client/requests/PatchTagsIdRequest.d.ts +19 -0
  265. package/dist/cjs/api/resources/tags/client/requests/PatchTagsIdRequest.js +3 -0
  266. package/dist/cjs/api/resources/tags/client/requests/PostTagsRequest.d.ts +18 -0
  267. package/dist/cjs/api/resources/tags/client/requests/PostTagsRequest.js +3 -0
  268. package/dist/cjs/api/resources/tags/client/requests/index.d.ts +5 -0
  269. package/dist/cjs/api/resources/tags/client/requests/index.js +2 -0
  270. package/dist/cjs/api/resources/tags/index.d.ts +2 -0
  271. package/dist/cjs/api/resources/tags/index.js +18 -0
  272. package/dist/cjs/api/resources/tags/types/DeleteTagsIdResponse.d.ts +3 -0
  273. package/dist/cjs/api/resources/tags/types/DeleteTagsIdResponse.js +3 -0
  274. package/dist/cjs/api/resources/tags/types/GetTagsIdResponse.d.ts +18 -0
  275. package/dist/cjs/api/resources/tags/types/GetTagsIdResponse.js +3 -0
  276. package/dist/cjs/api/resources/tags/types/GetTagsResponse.d.ts +27 -0
  277. package/dist/cjs/api/resources/tags/types/GetTagsResponse.js +3 -0
  278. package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.d.ts +18 -0
  279. package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.js +3 -0
  280. package/dist/cjs/api/resources/tags/types/PostTagsResponse.d.ts +18 -0
  281. package/dist/cjs/api/resources/tags/types/PostTagsResponse.js +3 -0
  282. package/dist/cjs/api/resources/tags/types/index.d.ts +5 -0
  283. package/dist/cjs/api/resources/tags/types/index.js +21 -0
  284. package/dist/cjs/api/resources/threads/client/Client.d.ts +97 -0
  285. package/dist/cjs/api/resources/threads/client/Client.js +389 -0
  286. package/dist/cjs/api/resources/threads/client/index.d.ts +1 -0
  287. package/dist/cjs/api/resources/threads/client/index.js +17 -0
  288. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdRequest.d.ts +9 -0
  289. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdRequest.js +3 -0
  290. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdRequest.d.ts +9 -0
  291. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdRequest.js +3 -0
  292. package/dist/cjs/api/resources/threads/client/requests/GetThreadsRequest.d.ts +9 -0
  293. package/dist/cjs/api/resources/threads/client/requests/GetThreadsRequest.js +3 -0
  294. package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdRequest.d.ts +21 -0
  295. package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdRequest.js +3 -0
  296. package/dist/cjs/api/resources/threads/client/requests/PostThreadsRequest.d.ts +40 -0
  297. package/dist/cjs/api/resources/threads/client/requests/PostThreadsRequest.js +3 -0
  298. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +5 -0
  299. package/dist/cjs/api/resources/threads/client/requests/index.js +2 -0
  300. package/dist/cjs/api/resources/threads/index.d.ts +2 -0
  301. package/dist/cjs/api/resources/threads/index.js +18 -0
  302. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdResponse.d.ts +3 -0
  303. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdResponse.js +3 -0
  304. package/dist/cjs/api/resources/threads/types/GetThreadsIdResponse.d.ts +41 -0
  305. package/dist/cjs/api/resources/threads/types/GetThreadsIdResponse.js +3 -0
  306. package/dist/cjs/api/resources/threads/types/GetThreadsResponse.d.ts +50 -0
  307. package/dist/cjs/api/resources/threads/types/GetThreadsResponse.js +3 -0
  308. package/dist/cjs/api/resources/threads/types/PatchThreadsIdResponse.d.ts +41 -0
  309. package/dist/cjs/api/resources/threads/types/PatchThreadsIdResponse.js +3 -0
  310. package/dist/cjs/api/resources/threads/types/PostThreadsResponse.d.ts +41 -0
  311. package/dist/cjs/api/resources/threads/types/PostThreadsResponse.js +3 -0
  312. package/dist/cjs/api/resources/threads/types/index.d.ts +5 -0
  313. package/dist/cjs/api/resources/threads/types/index.js +21 -0
  314. package/dist/cjs/api/resources/users/client/Client.d.ts +79 -0
  315. package/dist/cjs/api/resources/users/client/Client.js +325 -0
  316. package/dist/cjs/api/resources/users/client/index.d.ts +1 -0
  317. package/dist/cjs/api/resources/users/client/index.js +17 -0
  318. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdRequest.d.ts +9 -0
  319. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdRequest.js +3 -0
  320. package/dist/cjs/api/resources/users/client/requests/GetUsersIdRequest.d.ts +9 -0
  321. package/dist/cjs/api/resources/users/client/requests/GetUsersIdRequest.js +3 -0
  322. package/dist/cjs/api/resources/users/client/requests/GetUsersRequest.d.ts +9 -0
  323. package/dist/cjs/api/resources/users/client/requests/GetUsersRequest.js +3 -0
  324. package/dist/cjs/api/resources/users/client/requests/PatchUsersIdRequest.d.ts +27 -0
  325. package/dist/cjs/api/resources/users/client/requests/PatchUsersIdRequest.js +3 -0
  326. package/dist/cjs/api/resources/users/client/requests/index.d.ts +4 -0
  327. package/dist/cjs/api/resources/users/client/requests/index.js +2 -0
  328. package/dist/cjs/api/resources/users/index.d.ts +2 -0
  329. package/dist/cjs/api/resources/users/index.js +18 -0
  330. package/dist/cjs/api/resources/users/types/DeleteUsersIdResponse.d.ts +3 -0
  331. package/dist/cjs/api/resources/users/types/DeleteUsersIdResponse.js +3 -0
  332. package/dist/cjs/api/resources/users/types/GetUsersIdResponse.d.ts +23 -0
  333. package/dist/cjs/api/resources/users/types/GetUsersIdResponse.js +15 -0
  334. package/dist/cjs/api/resources/users/types/GetUsersResponse.d.ts +32 -0
  335. package/dist/cjs/api/resources/users/types/GetUsersResponse.js +18 -0
  336. package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.d.ts +23 -0
  337. package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.js +15 -0
  338. package/dist/cjs/api/resources/users/types/index.d.ts +4 -0
  339. package/dist/cjs/api/resources/users/types/index.js +20 -0
  340. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +80 -0
  341. package/dist/cjs/api/resources/webhooks/client/Client.js +312 -0
  342. package/dist/cjs/api/resources/webhooks/client/index.d.ts +1 -0
  343. package/dist/cjs/api/resources/webhooks/client/index.js +17 -0
  344. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.d.ts +9 -0
  345. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.js +3 -0
  346. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdRequest.d.ts +9 -0
  347. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdRequest.js +3 -0
  348. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksRequest.d.ts +9 -0
  349. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksRequest.js +3 -0
  350. package/dist/cjs/api/resources/webhooks/client/requests/PostWebhooksRequest.d.ts +18 -0
  351. package/dist/cjs/api/resources/webhooks/client/requests/PostWebhooksRequest.js +3 -0
  352. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +4 -0
  353. package/dist/cjs/api/resources/webhooks/client/requests/index.js +2 -0
  354. package/dist/cjs/api/resources/webhooks/index.d.ts +2 -0
  355. package/dist/cjs/api/resources/webhooks/index.js +18 -0
  356. package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdResponse.d.ts +3 -0
  357. package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdResponse.js +3 -0
  358. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdResponse.d.ts +6 -0
  359. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdResponse.js +3 -0
  360. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.d.ts +15 -0
  361. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.js +3 -0
  362. package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.d.ts +6 -0
  363. package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.js +3 -0
  364. package/dist/cjs/api/resources/webhooks/types/index.d.ts +4 -0
  365. package/dist/cjs/api/resources/webhooks/types/index.js +20 -0
  366. package/dist/cjs/api/types/AuthResponse.d.ts +1 -0
  367. package/dist/cjs/api/types/AuthResponse.js +3 -0
  368. package/dist/cjs/api/types/ErrorResponse.d.ts +10 -0
  369. package/dist/cjs/api/types/ErrorResponse.js +3 -0
  370. package/dist/cjs/api/types/IntegrationCreate.d.ts +7 -0
  371. package/dist/cjs/api/types/IntegrationCreate.js +3 -0
  372. package/dist/cjs/api/types/IntegrationUpdate.d.ts +8 -0
  373. package/dist/cjs/api/types/IntegrationUpdate.js +3 -0
  374. package/dist/cjs/api/types/NotificationCreate.d.ts +14 -0
  375. package/dist/cjs/api/types/NotificationCreate.js +3 -0
  376. package/dist/cjs/api/types/NotificationList.d.ts +18 -0
  377. package/dist/cjs/api/types/NotificationList.js +12 -0
  378. package/dist/cjs/api/types/NotificationUpdate.d.ts +16 -0
  379. package/dist/cjs/api/types/NotificationUpdate.js +14 -0
  380. package/dist/cjs/api/types/PostCreate.d.ts +11 -0
  381. package/dist/cjs/api/types/PostCreate.js +3 -0
  382. package/dist/cjs/api/types/PostList.d.ts +31 -0
  383. package/dist/cjs/api/types/PostList.js +20 -0
  384. package/dist/cjs/api/types/PostResponse.d.ts +12 -0
  385. package/dist/cjs/api/types/PostResponse.js +3 -0
  386. package/dist/cjs/api/types/PostUpdate.d.ts +10 -0
  387. package/dist/cjs/api/types/PostUpdate.js +3 -0
  388. package/dist/cjs/api/types/PrivateMessageCreate.d.ts +14 -0
  389. package/dist/cjs/api/types/PrivateMessageCreate.js +3 -0
  390. package/dist/cjs/api/types/PrivateMessageList.d.ts +8 -0
  391. package/dist/cjs/api/types/PrivateMessageList.js +3 -0
  392. package/dist/cjs/api/types/ReportCreate.d.ts +16 -0
  393. package/dist/cjs/api/types/ReportCreate.js +3 -0
  394. package/dist/cjs/api/types/ReportList.d.ts +12 -0
  395. package/dist/cjs/api/types/ReportList.js +3 -0
  396. package/dist/cjs/api/types/ReportResponse.d.ts +17 -0
  397. package/dist/cjs/api/types/ReportResponse.js +3 -0
  398. package/dist/cjs/api/types/RoleCreate.d.ts +12 -0
  399. package/dist/cjs/api/types/RoleCreate.js +3 -0
  400. package/dist/cjs/api/types/RoleResponse.d.ts +13 -0
  401. package/dist/cjs/api/types/RoleResponse.js +3 -0
  402. package/dist/cjs/api/types/RoleUpdate.d.ts +12 -0
  403. package/dist/cjs/api/types/RoleUpdate.js +3 -0
  404. package/dist/cjs/api/types/SsoCreate.d.ts +13 -0
  405. package/dist/cjs/api/types/SsoCreate.js +3 -0
  406. package/dist/cjs/api/types/SsoUpdate.d.ts +17 -0
  407. package/dist/cjs/api/types/SsoUpdate.js +3 -0
  408. package/dist/cjs/api/types/TagCreate.d.ts +12 -0
  409. package/dist/cjs/api/types/TagCreate.js +3 -0
  410. package/dist/cjs/api/types/TagList.d.ts +8 -0
  411. package/dist/cjs/api/types/TagList.js +3 -0
  412. package/dist/cjs/api/types/TagResponse.d.ts +13 -0
  413. package/dist/cjs/api/types/TagResponse.js +3 -0
  414. package/dist/cjs/api/types/TagUpdate.d.ts +12 -0
  415. package/dist/cjs/api/types/TagUpdate.js +3 -0
  416. package/dist/cjs/api/types/ThreadCreate.d.ts +33 -0
  417. package/dist/cjs/api/types/ThreadCreate.js +3 -0
  418. package/dist/cjs/api/types/ThreadList.d.ts +23 -0
  419. package/dist/cjs/api/types/ThreadList.js +13 -0
  420. package/dist/cjs/api/types/ThreadResponse.d.ts +36 -0
  421. package/dist/cjs/api/types/ThreadResponse.js +3 -0
  422. package/dist/cjs/api/types/ThreadUpdate.d.ts +14 -0
  423. package/dist/cjs/api/types/ThreadUpdate.js +3 -0
  424. package/dist/cjs/api/types/UserList.d.ts +18 -0
  425. package/dist/cjs/api/types/UserList.js +12 -0
  426. package/dist/cjs/api/types/UserResponse.d.ts +18 -0
  427. package/dist/cjs/api/types/UserResponse.js +12 -0
  428. package/dist/cjs/api/types/UserUpdate.d.ts +20 -0
  429. package/dist/cjs/api/types/UserUpdate.js +3 -0
  430. package/dist/cjs/api/types/WebhookCreate.d.ts +10 -0
  431. package/dist/cjs/api/types/WebhookCreate.js +3 -0
  432. package/dist/cjs/api/types/WebhookList.d.ts +6 -0
  433. package/dist/cjs/api/types/WebhookList.js +3 -0
  434. package/dist/cjs/api/types/index.d.ts +34 -0
  435. package/dist/cjs/api/types/index.js +50 -0
  436. package/dist/cjs/auth/HeaderAuthProvider.d.ts +16 -0
  437. package/dist/cjs/auth/HeaderAuthProvider.js +71 -0
  438. package/dist/cjs/auth/index.d.ts +1 -0
  439. package/dist/cjs/auth/index.js +5 -0
  440. package/dist/cjs/core/auth/AuthProvider.d.ts +7 -0
  441. package/dist/cjs/core/auth/AuthProvider.js +2 -0
  442. package/dist/cjs/core/auth/AuthRequest.d.ts +9 -0
  443. package/dist/cjs/core/auth/AuthRequest.js +2 -0
  444. package/dist/cjs/core/auth/BasicAuth.d.ts +8 -0
  445. package/dist/cjs/core/auth/BasicAuth.js +27 -0
  446. package/dist/cjs/core/auth/BearerToken.d.ts +7 -0
  447. package/dist/cjs/core/auth/BearerToken.js +16 -0
  448. package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +5 -0
  449. package/dist/cjs/core/auth/NoOpAuthProvider.js +9 -0
  450. package/dist/cjs/core/auth/index.d.ts +5 -0
  451. package/dist/cjs/core/auth/index.js +9 -0
  452. package/dist/cjs/core/base64.d.ts +2 -0
  453. package/dist/cjs/core/base64.js +26 -0
  454. package/dist/cjs/core/exports.d.ts +1 -0
  455. package/dist/cjs/core/exports.js +17 -0
  456. package/dist/cjs/core/fetcher/APIResponse.d.ts +20 -0
  457. package/dist/cjs/core/fetcher/APIResponse.js +2 -0
  458. package/dist/cjs/core/fetcher/BinaryResponse.d.ts +19 -0
  459. package/dist/cjs/core/fetcher/BinaryResponse.js +17 -0
  460. package/dist/cjs/core/fetcher/EndpointMetadata.d.ts +13 -0
  461. package/dist/cjs/core/fetcher/EndpointMetadata.js +2 -0
  462. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +12 -0
  463. package/dist/cjs/core/fetcher/EndpointSupplier.js +22 -0
  464. package/dist/cjs/core/fetcher/Fetcher.d.ts +49 -0
  465. package/dist/cjs/core/fetcher/Fetcher.js +316 -0
  466. package/dist/cjs/core/fetcher/Headers.d.ts +2 -0
  467. package/dist/cjs/core/fetcher/Headers.js +84 -0
  468. package/dist/cjs/core/fetcher/HttpResponsePromise.d.ts +58 -0
  469. package/dist/cjs/core/fetcher/HttpResponsePromise.js +103 -0
  470. package/dist/cjs/core/fetcher/RawResponse.d.ts +29 -0
  471. package/dist/cjs/core/fetcher/RawResponse.js +44 -0
  472. package/dist/cjs/core/fetcher/Supplier.d.ts +4 -0
  473. package/dist/cjs/core/fetcher/Supplier.js +22 -0
  474. package/dist/cjs/core/fetcher/createRequestUrl.d.ts +1 -0
  475. package/dist/cjs/core/fetcher/createRequestUrl.js +8 -0
  476. package/dist/cjs/core/fetcher/getErrorResponseBody.d.ts +1 -0
  477. package/dist/cjs/core/fetcher/getErrorResponseBody.js +45 -0
  478. package/dist/cjs/core/fetcher/getFetchFn.d.ts +1 -0
  479. package/dist/cjs/core/fetcher/getFetchFn.js +17 -0
  480. package/dist/cjs/core/fetcher/getHeader.d.ts +1 -0
  481. package/dist/cjs/core/fetcher/getHeader.js +11 -0
  482. package/dist/cjs/core/fetcher/getRequestBody.d.ts +7 -0
  483. package/dist/cjs/core/fetcher/getRequestBody.js +27 -0
  484. package/dist/cjs/core/fetcher/getResponseBody.d.ts +1 -0
  485. package/dist/cjs/core/fetcher/getResponseBody.js +69 -0
  486. package/dist/cjs/core/fetcher/index.d.ts +11 -0
  487. package/dist/cjs/core/fetcher/index.js +17 -0
  488. package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -0
  489. package/dist/cjs/core/fetcher/makeRequest.js +40 -0
  490. package/dist/cjs/core/fetcher/requestWithRetries.d.ts +1 -0
  491. package/dist/cjs/core/fetcher/requestWithRetries.js +67 -0
  492. package/dist/cjs/core/fetcher/signals.d.ts +5 -0
  493. package/dist/cjs/core/fetcher/signals.js +24 -0
  494. package/dist/cjs/core/headers.d.ts +2 -0
  495. package/dist/cjs/core/headers.js +31 -0
  496. package/dist/cjs/core/index.d.ts +6 -0
  497. package/dist/cjs/core/index.js +45 -0
  498. package/dist/cjs/core/json.d.ts +15 -0
  499. package/dist/cjs/core/json.js +24 -0
  500. package/dist/cjs/core/logging/exports.d.ts +18 -0
  501. package/dist/cjs/core/logging/exports.js +45 -0
  502. package/dist/cjs/core/logging/index.d.ts +1 -0
  503. package/dist/cjs/core/logging/index.js +17 -0
  504. package/dist/cjs/core/logging/logger.d.ts +126 -0
  505. package/dist/cjs/core/logging/logger.js +144 -0
  506. package/dist/cjs/core/runtime/index.d.ts +1 -0
  507. package/dist/cjs/core/runtime/index.js +5 -0
  508. package/dist/cjs/core/runtime/runtime.d.ts +9 -0
  509. package/dist/cjs/core/runtime/runtime.js +103 -0
  510. package/dist/cjs/core/url/encodePathParam.d.ts +1 -0
  511. package/dist/cjs/core/url/encodePathParam.js +21 -0
  512. package/dist/cjs/core/url/index.d.ts +3 -0
  513. package/dist/cjs/core/url/index.js +9 -0
  514. package/dist/cjs/core/url/join.d.ts +1 -0
  515. package/dist/cjs/core/url/join.js +68 -0
  516. package/dist/cjs/core/url/qs.d.ts +6 -0
  517. package/dist/cjs/core/url/qs.js +64 -0
  518. package/dist/cjs/environments.d.ts +4 -0
  519. package/dist/cjs/environments.js +7 -0
  520. package/dist/cjs/errors/ForumError.d.ts +12 -0
  521. package/dist/cjs/errors/ForumError.js +32 -0
  522. package/dist/cjs/errors/ForumTimeoutError.d.ts +3 -0
  523. package/dist/cjs/errors/ForumTimeoutError.js +15 -0
  524. package/dist/cjs/errors/handleNonStatusCodeError.d.ts +2 -0
  525. package/dist/cjs/errors/handleNonStatusCodeError.js +65 -0
  526. package/dist/cjs/errors/index.d.ts +2 -0
  527. package/dist/cjs/errors/index.js +7 -0
  528. package/dist/cjs/exports.d.ts +1 -0
  529. package/dist/cjs/exports.js +17 -0
  530. package/dist/cjs/index.d.ts +6 -0
  531. package/dist/cjs/index.js +48 -0
  532. package/dist/cjs/version.d.ts +1 -0
  533. package/dist/cjs/version.js +4 -0
  534. package/dist/esm/BaseClient.d.mts +39 -0
  535. package/dist/esm/BaseClient.mjs +25 -0
  536. package/dist/esm/Client.d.mts +47 -0
  537. package/dist/esm/Client.mjs +67 -0
  538. package/dist/esm/api/errors/BadRequestError.d.mts +6 -0
  539. package/dist/esm/api/errors/BadRequestError.mjs +17 -0
  540. package/dist/esm/api/errors/InternalServerError.d.mts +6 -0
  541. package/dist/esm/api/errors/InternalServerError.mjs +17 -0
  542. package/dist/esm/api/errors/NotFoundError.d.mts +6 -0
  543. package/dist/esm/api/errors/NotFoundError.mjs +17 -0
  544. package/dist/esm/api/errors/PaymentRequiredError.d.mts +6 -0
  545. package/dist/esm/api/errors/PaymentRequiredError.mjs +17 -0
  546. package/dist/esm/api/errors/TooManyRequestsError.d.mts +6 -0
  547. package/dist/esm/api/errors/TooManyRequestsError.mjs +17 -0
  548. package/dist/esm/api/errors/UnauthorizedError.d.mts +6 -0
  549. package/dist/esm/api/errors/UnauthorizedError.mjs +17 -0
  550. package/dist/esm/api/errors/index.d.mts +6 -0
  551. package/dist/esm/api/errors/index.mjs +6 -0
  552. package/dist/esm/api/index.d.mts +3 -0
  553. package/dist/esm/api/index.mjs +3 -0
  554. package/dist/esm/api/resources/auth/client/Client.d.mts +93 -0
  555. package/dist/esm/api/resources/auth/client/Client.mjs +315 -0
  556. package/dist/esm/api/resources/auth/client/index.d.mts +1 -0
  557. package/dist/esm/api/resources/auth/client/index.mjs +1 -0
  558. package/dist/esm/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.d.mts +10 -0
  559. package/dist/esm/api/resources/auth/client/requests/PostAuthForgotPasswordRequest.mjs +2 -0
  560. package/dist/esm/api/resources/auth/client/requests/PostAuthLoginRequest.d.mts +13 -0
  561. package/dist/esm/api/resources/auth/client/requests/PostAuthLoginRequest.mjs +2 -0
  562. package/dist/esm/api/resources/auth/client/requests/PostAuthRegisterRequest.d.mts +24 -0
  563. package/dist/esm/api/resources/auth/client/requests/PostAuthRegisterRequest.mjs +2 -0
  564. package/dist/esm/api/resources/auth/client/requests/PostAuthResetPasswordRequest.d.mts +16 -0
  565. package/dist/esm/api/resources/auth/client/requests/PostAuthResetPasswordRequest.mjs +2 -0
  566. package/dist/esm/api/resources/auth/client/requests/index.d.mts +4 -0
  567. package/dist/esm/api/resources/auth/client/requests/index.mjs +1 -0
  568. package/dist/esm/api/resources/auth/index.d.mts +2 -0
  569. package/dist/esm/api/resources/auth/index.mjs +2 -0
  570. package/dist/esm/api/resources/auth/types/GetAuthMeResponse.d.mts +4 -0
  571. package/dist/esm/api/resources/auth/types/GetAuthMeResponse.mjs +2 -0
  572. package/dist/esm/api/resources/auth/types/PostAuthForgotPasswordResponse.d.mts +4 -0
  573. package/dist/esm/api/resources/auth/types/PostAuthForgotPasswordResponse.mjs +2 -0
  574. package/dist/esm/api/resources/auth/types/PostAuthLoginResponse.d.mts +3 -0
  575. package/dist/esm/api/resources/auth/types/PostAuthLoginResponse.mjs +2 -0
  576. package/dist/esm/api/resources/auth/types/PostAuthRegisterResponse.d.mts +3 -0
  577. package/dist/esm/api/resources/auth/types/PostAuthRegisterResponse.mjs +2 -0
  578. package/dist/esm/api/resources/auth/types/PostAuthResetPasswordResponse.d.mts +3 -0
  579. package/dist/esm/api/resources/auth/types/PostAuthResetPasswordResponse.mjs +2 -0
  580. package/dist/esm/api/resources/auth/types/index.d.mts +5 -0
  581. package/dist/esm/api/resources/auth/types/index.mjs +5 -0
  582. package/dist/esm/api/resources/index.d.mts +36 -0
  583. package/dist/esm/api/resources/index.mjs +36 -0
  584. package/dist/esm/api/resources/integrations/client/Client.d.mts +99 -0
  585. package/dist/esm/api/resources/integrations/client/Client.mjs +354 -0
  586. package/dist/esm/api/resources/integrations/client/index.d.mts +1 -0
  587. package/dist/esm/api/resources/integrations/client/index.mjs +1 -0
  588. package/dist/esm/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.d.mts +9 -0
  589. package/dist/esm/api/resources/integrations/client/requests/DeleteIntegrationsIdRequest.mjs +2 -0
  590. package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsIdRequest.d.mts +9 -0
  591. package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsIdRequest.mjs +2 -0
  592. package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsRequest.d.mts +9 -0
  593. package/dist/esm/api/resources/integrations/client/requests/GetIntegrationsRequest.mjs +2 -0
  594. package/dist/esm/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.d.mts +15 -0
  595. package/dist/esm/api/resources/integrations/client/requests/PatchIntegrationsIdRequest.mjs +2 -0
  596. package/dist/esm/api/resources/integrations/client/requests/PostIntegrationsRequest.d.mts +16 -0
  597. package/dist/esm/api/resources/integrations/client/requests/PostIntegrationsRequest.mjs +2 -0
  598. package/dist/esm/api/resources/integrations/client/requests/index.d.mts +5 -0
  599. package/dist/esm/api/resources/integrations/client/requests/index.mjs +1 -0
  600. package/dist/esm/api/resources/integrations/index.d.mts +2 -0
  601. package/dist/esm/api/resources/integrations/index.mjs +2 -0
  602. package/dist/esm/api/resources/integrations/types/DeleteIntegrationsIdResponse.d.mts +3 -0
  603. package/dist/esm/api/resources/integrations/types/DeleteIntegrationsIdResponse.mjs +2 -0
  604. package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.d.mts +6 -0
  605. package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.mjs +2 -0
  606. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.d.mts +15 -0
  607. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.mjs +2 -0
  608. package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.d.mts +6 -0
  609. package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.mjs +2 -0
  610. package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.d.mts +6 -0
  611. package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.mjs +2 -0
  612. package/dist/esm/api/resources/integrations/types/index.d.mts +5 -0
  613. package/dist/esm/api/resources/integrations/types/index.mjs +5 -0
  614. package/dist/esm/api/resources/notifications/client/Client.d.mts +97 -0
  615. package/dist/esm/api/resources/notifications/client/Client.mjs +352 -0
  616. package/dist/esm/api/resources/notifications/client/index.d.mts +1 -0
  617. package/dist/esm/api/resources/notifications/client/index.mjs +1 -0
  618. package/dist/esm/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.d.mts +9 -0
  619. package/dist/esm/api/resources/notifications/client/requests/DeleteNotificationsIdRequest.mjs +2 -0
  620. package/dist/esm/api/resources/notifications/client/requests/GetNotificationsIdRequest.d.mts +9 -0
  621. package/dist/esm/api/resources/notifications/client/requests/GetNotificationsIdRequest.mjs +2 -0
  622. package/dist/esm/api/resources/notifications/client/requests/GetNotificationsRequest.d.mts +9 -0
  623. package/dist/esm/api/resources/notifications/client/requests/GetNotificationsRequest.mjs +2 -0
  624. package/dist/esm/api/resources/notifications/client/requests/PatchNotificationsIdRequest.d.mts +23 -0
  625. package/dist/esm/api/resources/notifications/client/requests/PatchNotificationsIdRequest.mjs +11 -0
  626. package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.d.mts +21 -0
  627. package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.mjs +2 -0
  628. package/dist/esm/api/resources/notifications/client/requests/index.d.mts +5 -0
  629. package/dist/esm/api/resources/notifications/client/requests/index.mjs +1 -0
  630. package/dist/esm/api/resources/notifications/index.d.mts +2 -0
  631. package/dist/esm/api/resources/notifications/index.mjs +2 -0
  632. package/dist/esm/api/resources/notifications/types/DeleteNotificationsIdResponse.d.mts +3 -0
  633. package/dist/esm/api/resources/notifications/types/DeleteNotificationsIdResponse.mjs +2 -0
  634. package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.d.mts +6 -0
  635. package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.mjs +2 -0
  636. package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.d.mts +15 -0
  637. package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.mjs +2 -0
  638. package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.d.mts +6 -0
  639. package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.mjs +2 -0
  640. package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.d.mts +6 -0
  641. package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.mjs +2 -0
  642. package/dist/esm/api/resources/notifications/types/index.d.mts +5 -0
  643. package/dist/esm/api/resources/notifications/types/index.mjs +5 -0
  644. package/dist/esm/api/resources/posts/client/Client.d.mts +97 -0
  645. package/dist/esm/api/resources/posts/client/Client.mjs +352 -0
  646. package/dist/esm/api/resources/posts/client/index.d.mts +1 -0
  647. package/dist/esm/api/resources/posts/client/index.mjs +1 -0
  648. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdRequest.d.mts +9 -0
  649. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdRequest.mjs +2 -0
  650. package/dist/esm/api/resources/posts/client/requests/GetPostsIdRequest.d.mts +9 -0
  651. package/dist/esm/api/resources/posts/client/requests/GetPostsIdRequest.mjs +2 -0
  652. package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.d.mts +9 -0
  653. package/dist/esm/api/resources/posts/client/requests/GetPostsRequest.mjs +2 -0
  654. package/dist/esm/api/resources/posts/client/requests/PatchPostsIdRequest.d.mts +17 -0
  655. package/dist/esm/api/resources/posts/client/requests/PatchPostsIdRequest.mjs +2 -0
  656. package/dist/esm/api/resources/posts/client/requests/PostPostsRequest.d.mts +18 -0
  657. package/dist/esm/api/resources/posts/client/requests/PostPostsRequest.mjs +2 -0
  658. package/dist/esm/api/resources/posts/client/requests/index.d.mts +5 -0
  659. package/dist/esm/api/resources/posts/client/requests/index.mjs +1 -0
  660. package/dist/esm/api/resources/posts/index.d.mts +2 -0
  661. package/dist/esm/api/resources/posts/index.mjs +2 -0
  662. package/dist/esm/api/resources/posts/types/DeletePostsIdResponse.d.mts +3 -0
  663. package/dist/esm/api/resources/posts/types/DeletePostsIdResponse.mjs +2 -0
  664. package/dist/esm/api/resources/posts/types/GetPostsIdResponse.d.mts +17 -0
  665. package/dist/esm/api/resources/posts/types/GetPostsIdResponse.mjs +2 -0
  666. package/dist/esm/api/resources/posts/types/GetPostsResponse.d.mts +26 -0
  667. package/dist/esm/api/resources/posts/types/GetPostsResponse.mjs +2 -0
  668. package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.d.mts +17 -0
  669. package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.mjs +2 -0
  670. package/dist/esm/api/resources/posts/types/PostPostsResponse.d.mts +17 -0
  671. package/dist/esm/api/resources/posts/types/PostPostsResponse.mjs +2 -0
  672. package/dist/esm/api/resources/posts/types/index.d.mts +5 -0
  673. package/dist/esm/api/resources/posts/types/index.mjs +5 -0
  674. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +79 -0
  675. package/dist/esm/api/resources/privateMessages/client/Client.mjs +277 -0
  676. package/dist/esm/api/resources/privateMessages/client/index.d.mts +1 -0
  677. package/dist/esm/api/resources/privateMessages/client/index.mjs +1 -0
  678. package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.d.mts +9 -0
  679. package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRequest.mjs +2 -0
  680. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.d.mts +9 -0
  681. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRequest.mjs +2 -0
  682. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.d.mts +9 -0
  683. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesRequest.mjs +2 -0
  684. package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.d.mts +21 -0
  685. package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesRequest.mjs +2 -0
  686. package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +4 -0
  687. package/dist/esm/api/resources/privateMessages/client/requests/index.mjs +1 -0
  688. package/dist/esm/api/resources/privateMessages/index.d.mts +2 -0
  689. package/dist/esm/api/resources/privateMessages/index.mjs +2 -0
  690. package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.d.mts +3 -0
  691. package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdResponse.mjs +2 -0
  692. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.mts +6 -0
  693. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.mjs +2 -0
  694. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.mts +15 -0
  695. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.mjs +2 -0
  696. package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.mts +6 -0
  697. package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesResponse.mjs +2 -0
  698. package/dist/esm/api/resources/privateMessages/types/index.d.mts +4 -0
  699. package/dist/esm/api/resources/privateMessages/types/index.mjs +4 -0
  700. package/dist/esm/api/resources/reports/client/Client.d.mts +78 -0
  701. package/dist/esm/api/resources/reports/client/Client.mjs +273 -0
  702. package/dist/esm/api/resources/reports/client/index.d.mts +1 -0
  703. package/dist/esm/api/resources/reports/client/index.mjs +1 -0
  704. package/dist/esm/api/resources/reports/client/requests/DeleteReportsIdRequest.d.mts +9 -0
  705. package/dist/esm/api/resources/reports/client/requests/DeleteReportsIdRequest.mjs +2 -0
  706. package/dist/esm/api/resources/reports/client/requests/GetReportsIdRequest.d.mts +9 -0
  707. package/dist/esm/api/resources/reports/client/requests/GetReportsIdRequest.mjs +2 -0
  708. package/dist/esm/api/resources/reports/client/requests/GetReportsRequest.d.mts +9 -0
  709. package/dist/esm/api/resources/reports/client/requests/GetReportsRequest.mjs +2 -0
  710. package/dist/esm/api/resources/reports/client/requests/PostReportsRequest.d.mts +22 -0
  711. package/dist/esm/api/resources/reports/client/requests/PostReportsRequest.mjs +2 -0
  712. package/dist/esm/api/resources/reports/client/requests/index.d.mts +4 -0
  713. package/dist/esm/api/resources/reports/client/requests/index.mjs +1 -0
  714. package/dist/esm/api/resources/reports/index.d.mts +2 -0
  715. package/dist/esm/api/resources/reports/index.mjs +2 -0
  716. package/dist/esm/api/resources/reports/types/DeleteReportsIdResponse.d.mts +3 -0
  717. package/dist/esm/api/resources/reports/types/DeleteReportsIdResponse.mjs +2 -0
  718. package/dist/esm/api/resources/reports/types/GetReportsIdResponse.d.mts +22 -0
  719. package/dist/esm/api/resources/reports/types/GetReportsIdResponse.mjs +2 -0
  720. package/dist/esm/api/resources/reports/types/GetReportsResponse.d.mts +31 -0
  721. package/dist/esm/api/resources/reports/types/GetReportsResponse.mjs +2 -0
  722. package/dist/esm/api/resources/reports/types/PostReportsResponse.d.mts +22 -0
  723. package/dist/esm/api/resources/reports/types/PostReportsResponse.mjs +2 -0
  724. package/dist/esm/api/resources/reports/types/index.d.mts +4 -0
  725. package/dist/esm/api/resources/reports/types/index.mjs +4 -0
  726. package/dist/esm/api/resources/roles/client/Client.d.mts +96 -0
  727. package/dist/esm/api/resources/roles/client/Client.mjs +351 -0
  728. package/dist/esm/api/resources/roles/client/index.d.mts +1 -0
  729. package/dist/esm/api/resources/roles/client/index.mjs +1 -0
  730. package/dist/esm/api/resources/roles/client/requests/DeleteRolesIdRequest.d.mts +9 -0
  731. package/dist/esm/api/resources/roles/client/requests/DeleteRolesIdRequest.mjs +2 -0
  732. package/dist/esm/api/resources/roles/client/requests/GetRolesIdRequest.d.mts +9 -0
  733. package/dist/esm/api/resources/roles/client/requests/GetRolesIdRequest.mjs +2 -0
  734. package/dist/esm/api/resources/roles/client/requests/GetRolesRequest.d.mts +9 -0
  735. package/dist/esm/api/resources/roles/client/requests/GetRolesRequest.mjs +2 -0
  736. package/dist/esm/api/resources/roles/client/requests/PatchRolesIdRequest.d.mts +19 -0
  737. package/dist/esm/api/resources/roles/client/requests/PatchRolesIdRequest.mjs +2 -0
  738. package/dist/esm/api/resources/roles/client/requests/PostRolesRequest.d.mts +18 -0
  739. package/dist/esm/api/resources/roles/client/requests/PostRolesRequest.mjs +2 -0
  740. package/dist/esm/api/resources/roles/client/requests/index.d.mts +5 -0
  741. package/dist/esm/api/resources/roles/client/requests/index.mjs +1 -0
  742. package/dist/esm/api/resources/roles/index.d.mts +2 -0
  743. package/dist/esm/api/resources/roles/index.mjs +2 -0
  744. package/dist/esm/api/resources/roles/types/DeleteRolesIdResponse.d.mts +3 -0
  745. package/dist/esm/api/resources/roles/types/DeleteRolesIdResponse.mjs +2 -0
  746. package/dist/esm/api/resources/roles/types/GetRolesIdResponse.d.mts +18 -0
  747. package/dist/esm/api/resources/roles/types/GetRolesIdResponse.mjs +2 -0
  748. package/dist/esm/api/resources/roles/types/GetRolesResponse.d.mts +27 -0
  749. package/dist/esm/api/resources/roles/types/GetRolesResponse.mjs +2 -0
  750. package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.d.mts +18 -0
  751. package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.mjs +2 -0
  752. package/dist/esm/api/resources/roles/types/PostRolesResponse.d.mts +18 -0
  753. package/dist/esm/api/resources/roles/types/PostRolesResponse.mjs +2 -0
  754. package/dist/esm/api/resources/roles/types/index.d.mts +5 -0
  755. package/dist/esm/api/resources/roles/types/index.mjs +5 -0
  756. package/dist/esm/api/resources/ssOs/client/Client.d.mts +102 -0
  757. package/dist/esm/api/resources/ssOs/client/Client.mjs +357 -0
  758. package/dist/esm/api/resources/ssOs/client/index.d.mts +1 -0
  759. package/dist/esm/api/resources/ssOs/client/index.mjs +1 -0
  760. package/dist/esm/api/resources/ssOs/client/requests/DeleteSsoIdRequest.d.mts +9 -0
  761. package/dist/esm/api/resources/ssOs/client/requests/DeleteSsoIdRequest.mjs +2 -0
  762. package/dist/esm/api/resources/ssOs/client/requests/GetSsoIdRequest.d.mts +9 -0
  763. package/dist/esm/api/resources/ssOs/client/requests/GetSsoIdRequest.mjs +2 -0
  764. package/dist/esm/api/resources/ssOs/client/requests/GetSsoRequest.d.mts +9 -0
  765. package/dist/esm/api/resources/ssOs/client/requests/GetSsoRequest.mjs +2 -0
  766. package/dist/esm/api/resources/ssOs/client/requests/PatchSsoIdRequest.d.mts +21 -0
  767. package/dist/esm/api/resources/ssOs/client/requests/PatchSsoIdRequest.mjs +2 -0
  768. package/dist/esm/api/resources/ssOs/client/requests/PostSsoRequest.d.mts +22 -0
  769. package/dist/esm/api/resources/ssOs/client/requests/PostSsoRequest.mjs +2 -0
  770. package/dist/esm/api/resources/ssOs/client/requests/index.d.mts +5 -0
  771. package/dist/esm/api/resources/ssOs/client/requests/index.mjs +1 -0
  772. package/dist/esm/api/resources/ssOs/index.d.mts +2 -0
  773. package/dist/esm/api/resources/ssOs/index.mjs +2 -0
  774. package/dist/esm/api/resources/ssOs/types/DeleteSsoIdResponse.d.mts +3 -0
  775. package/dist/esm/api/resources/ssOs/types/DeleteSsoIdResponse.mjs +2 -0
  776. package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.d.mts +6 -0
  777. package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.mjs +2 -0
  778. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.d.mts +15 -0
  779. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.mjs +2 -0
  780. package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.d.mts +6 -0
  781. package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.mjs +2 -0
  782. package/dist/esm/api/resources/ssOs/types/PostSsoResponse.d.mts +6 -0
  783. package/dist/esm/api/resources/ssOs/types/PostSsoResponse.mjs +2 -0
  784. package/dist/esm/api/resources/ssOs/types/index.d.mts +5 -0
  785. package/dist/esm/api/resources/ssOs/types/index.mjs +5 -0
  786. package/dist/esm/api/resources/tags/client/Client.d.mts +96 -0
  787. package/dist/esm/api/resources/tags/client/Client.mjs +351 -0
  788. package/dist/esm/api/resources/tags/client/index.d.mts +1 -0
  789. package/dist/esm/api/resources/tags/client/index.mjs +1 -0
  790. package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdRequest.d.mts +9 -0
  791. package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdRequest.mjs +2 -0
  792. package/dist/esm/api/resources/tags/client/requests/GetTagsIdRequest.d.mts +9 -0
  793. package/dist/esm/api/resources/tags/client/requests/GetTagsIdRequest.mjs +2 -0
  794. package/dist/esm/api/resources/tags/client/requests/GetTagsRequest.d.mts +9 -0
  795. package/dist/esm/api/resources/tags/client/requests/GetTagsRequest.mjs +2 -0
  796. package/dist/esm/api/resources/tags/client/requests/PatchTagsIdRequest.d.mts +19 -0
  797. package/dist/esm/api/resources/tags/client/requests/PatchTagsIdRequest.mjs +2 -0
  798. package/dist/esm/api/resources/tags/client/requests/PostTagsRequest.d.mts +18 -0
  799. package/dist/esm/api/resources/tags/client/requests/PostTagsRequest.mjs +2 -0
  800. package/dist/esm/api/resources/tags/client/requests/index.d.mts +5 -0
  801. package/dist/esm/api/resources/tags/client/requests/index.mjs +1 -0
  802. package/dist/esm/api/resources/tags/index.d.mts +2 -0
  803. package/dist/esm/api/resources/tags/index.mjs +2 -0
  804. package/dist/esm/api/resources/tags/types/DeleteTagsIdResponse.d.mts +3 -0
  805. package/dist/esm/api/resources/tags/types/DeleteTagsIdResponse.mjs +2 -0
  806. package/dist/esm/api/resources/tags/types/GetTagsIdResponse.d.mts +18 -0
  807. package/dist/esm/api/resources/tags/types/GetTagsIdResponse.mjs +2 -0
  808. package/dist/esm/api/resources/tags/types/GetTagsResponse.d.mts +27 -0
  809. package/dist/esm/api/resources/tags/types/GetTagsResponse.mjs +2 -0
  810. package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.d.mts +18 -0
  811. package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.mjs +2 -0
  812. package/dist/esm/api/resources/tags/types/PostTagsResponse.d.mts +18 -0
  813. package/dist/esm/api/resources/tags/types/PostTagsResponse.mjs +2 -0
  814. package/dist/esm/api/resources/tags/types/index.d.mts +5 -0
  815. package/dist/esm/api/resources/tags/types/index.mjs +5 -0
  816. package/dist/esm/api/resources/threads/client/Client.d.mts +97 -0
  817. package/dist/esm/api/resources/threads/client/Client.mjs +352 -0
  818. package/dist/esm/api/resources/threads/client/index.d.mts +1 -0
  819. package/dist/esm/api/resources/threads/client/index.mjs +1 -0
  820. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdRequest.d.mts +9 -0
  821. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdRequest.mjs +2 -0
  822. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdRequest.d.mts +9 -0
  823. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdRequest.mjs +2 -0
  824. package/dist/esm/api/resources/threads/client/requests/GetThreadsRequest.d.mts +9 -0
  825. package/dist/esm/api/resources/threads/client/requests/GetThreadsRequest.mjs +2 -0
  826. package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdRequest.d.mts +21 -0
  827. package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdRequest.mjs +2 -0
  828. package/dist/esm/api/resources/threads/client/requests/PostThreadsRequest.d.mts +40 -0
  829. package/dist/esm/api/resources/threads/client/requests/PostThreadsRequest.mjs +2 -0
  830. package/dist/esm/api/resources/threads/client/requests/index.d.mts +5 -0
  831. package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -0
  832. package/dist/esm/api/resources/threads/index.d.mts +2 -0
  833. package/dist/esm/api/resources/threads/index.mjs +2 -0
  834. package/dist/esm/api/resources/threads/types/DeleteThreadsIdResponse.d.mts +3 -0
  835. package/dist/esm/api/resources/threads/types/DeleteThreadsIdResponse.mjs +2 -0
  836. package/dist/esm/api/resources/threads/types/GetThreadsIdResponse.d.mts +41 -0
  837. package/dist/esm/api/resources/threads/types/GetThreadsIdResponse.mjs +2 -0
  838. package/dist/esm/api/resources/threads/types/GetThreadsResponse.d.mts +50 -0
  839. package/dist/esm/api/resources/threads/types/GetThreadsResponse.mjs +2 -0
  840. package/dist/esm/api/resources/threads/types/PatchThreadsIdResponse.d.mts +41 -0
  841. package/dist/esm/api/resources/threads/types/PatchThreadsIdResponse.mjs +2 -0
  842. package/dist/esm/api/resources/threads/types/PostThreadsResponse.d.mts +41 -0
  843. package/dist/esm/api/resources/threads/types/PostThreadsResponse.mjs +2 -0
  844. package/dist/esm/api/resources/threads/types/index.d.mts +5 -0
  845. package/dist/esm/api/resources/threads/types/index.mjs +5 -0
  846. package/dist/esm/api/resources/users/client/Client.d.mts +79 -0
  847. package/dist/esm/api/resources/users/client/Client.mjs +288 -0
  848. package/dist/esm/api/resources/users/client/index.d.mts +1 -0
  849. package/dist/esm/api/resources/users/client/index.mjs +1 -0
  850. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdRequest.d.mts +9 -0
  851. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdRequest.mjs +2 -0
  852. package/dist/esm/api/resources/users/client/requests/GetUsersIdRequest.d.mts +9 -0
  853. package/dist/esm/api/resources/users/client/requests/GetUsersIdRequest.mjs +2 -0
  854. package/dist/esm/api/resources/users/client/requests/GetUsersRequest.d.mts +9 -0
  855. package/dist/esm/api/resources/users/client/requests/GetUsersRequest.mjs +2 -0
  856. package/dist/esm/api/resources/users/client/requests/PatchUsersIdRequest.d.mts +27 -0
  857. package/dist/esm/api/resources/users/client/requests/PatchUsersIdRequest.mjs +2 -0
  858. package/dist/esm/api/resources/users/client/requests/index.d.mts +4 -0
  859. package/dist/esm/api/resources/users/client/requests/index.mjs +1 -0
  860. package/dist/esm/api/resources/users/index.d.mts +2 -0
  861. package/dist/esm/api/resources/users/index.mjs +2 -0
  862. package/dist/esm/api/resources/users/types/DeleteUsersIdResponse.d.mts +3 -0
  863. package/dist/esm/api/resources/users/types/DeleteUsersIdResponse.mjs +2 -0
  864. package/dist/esm/api/resources/users/types/GetUsersIdResponse.d.mts +23 -0
  865. package/dist/esm/api/resources/users/types/GetUsersIdResponse.mjs +12 -0
  866. package/dist/esm/api/resources/users/types/GetUsersResponse.d.mts +32 -0
  867. package/dist/esm/api/resources/users/types/GetUsersResponse.mjs +15 -0
  868. package/dist/esm/api/resources/users/types/PatchUsersIdResponse.d.mts +23 -0
  869. package/dist/esm/api/resources/users/types/PatchUsersIdResponse.mjs +12 -0
  870. package/dist/esm/api/resources/users/types/index.d.mts +4 -0
  871. package/dist/esm/api/resources/users/types/index.mjs +4 -0
  872. package/dist/esm/api/resources/webhooks/client/Client.d.mts +80 -0
  873. package/dist/esm/api/resources/webhooks/client/Client.mjs +275 -0
  874. package/dist/esm/api/resources/webhooks/client/index.d.mts +1 -0
  875. package/dist/esm/api/resources/webhooks/client/index.mjs +1 -0
  876. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.d.mts +9 -0
  877. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdRequest.mjs +2 -0
  878. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdRequest.d.mts +9 -0
  879. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdRequest.mjs +2 -0
  880. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksRequest.d.mts +9 -0
  881. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksRequest.mjs +2 -0
  882. package/dist/esm/api/resources/webhooks/client/requests/PostWebhooksRequest.d.mts +18 -0
  883. package/dist/esm/api/resources/webhooks/client/requests/PostWebhooksRequest.mjs +2 -0
  884. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +4 -0
  885. package/dist/esm/api/resources/webhooks/client/requests/index.mjs +1 -0
  886. package/dist/esm/api/resources/webhooks/index.d.mts +2 -0
  887. package/dist/esm/api/resources/webhooks/index.mjs +2 -0
  888. package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdResponse.d.mts +3 -0
  889. package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdResponse.mjs +2 -0
  890. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdResponse.d.mts +6 -0
  891. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdResponse.mjs +2 -0
  892. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.d.mts +15 -0
  893. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.mjs +2 -0
  894. package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.d.mts +6 -0
  895. package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.mjs +2 -0
  896. package/dist/esm/api/resources/webhooks/types/index.d.mts +4 -0
  897. package/dist/esm/api/resources/webhooks/types/index.mjs +4 -0
  898. package/dist/esm/api/types/AuthResponse.d.mts +1 -0
  899. package/dist/esm/api/types/AuthResponse.mjs +2 -0
  900. package/dist/esm/api/types/ErrorResponse.d.mts +10 -0
  901. package/dist/esm/api/types/ErrorResponse.mjs +2 -0
  902. package/dist/esm/api/types/IntegrationCreate.d.mts +7 -0
  903. package/dist/esm/api/types/IntegrationCreate.mjs +2 -0
  904. package/dist/esm/api/types/IntegrationUpdate.d.mts +8 -0
  905. package/dist/esm/api/types/IntegrationUpdate.mjs +2 -0
  906. package/dist/esm/api/types/NotificationCreate.d.mts +14 -0
  907. package/dist/esm/api/types/NotificationCreate.mjs +2 -0
  908. package/dist/esm/api/types/NotificationList.d.mts +18 -0
  909. package/dist/esm/api/types/NotificationList.mjs +9 -0
  910. package/dist/esm/api/types/NotificationUpdate.d.mts +16 -0
  911. package/dist/esm/api/types/NotificationUpdate.mjs +11 -0
  912. package/dist/esm/api/types/PostCreate.d.mts +11 -0
  913. package/dist/esm/api/types/PostCreate.mjs +2 -0
  914. package/dist/esm/api/types/PostList.d.mts +31 -0
  915. package/dist/esm/api/types/PostList.mjs +17 -0
  916. package/dist/esm/api/types/PostResponse.d.mts +12 -0
  917. package/dist/esm/api/types/PostResponse.mjs +2 -0
  918. package/dist/esm/api/types/PostUpdate.d.mts +10 -0
  919. package/dist/esm/api/types/PostUpdate.mjs +2 -0
  920. package/dist/esm/api/types/PrivateMessageCreate.d.mts +14 -0
  921. package/dist/esm/api/types/PrivateMessageCreate.mjs +2 -0
  922. package/dist/esm/api/types/PrivateMessageList.d.mts +8 -0
  923. package/dist/esm/api/types/PrivateMessageList.mjs +2 -0
  924. package/dist/esm/api/types/ReportCreate.d.mts +16 -0
  925. package/dist/esm/api/types/ReportCreate.mjs +2 -0
  926. package/dist/esm/api/types/ReportList.d.mts +12 -0
  927. package/dist/esm/api/types/ReportList.mjs +2 -0
  928. package/dist/esm/api/types/ReportResponse.d.mts +17 -0
  929. package/dist/esm/api/types/ReportResponse.mjs +2 -0
  930. package/dist/esm/api/types/RoleCreate.d.mts +12 -0
  931. package/dist/esm/api/types/RoleCreate.mjs +2 -0
  932. package/dist/esm/api/types/RoleResponse.d.mts +13 -0
  933. package/dist/esm/api/types/RoleResponse.mjs +2 -0
  934. package/dist/esm/api/types/RoleUpdate.d.mts +12 -0
  935. package/dist/esm/api/types/RoleUpdate.mjs +2 -0
  936. package/dist/esm/api/types/SsoCreate.d.mts +13 -0
  937. package/dist/esm/api/types/SsoCreate.mjs +2 -0
  938. package/dist/esm/api/types/SsoUpdate.d.mts +17 -0
  939. package/dist/esm/api/types/SsoUpdate.mjs +2 -0
  940. package/dist/esm/api/types/TagCreate.d.mts +12 -0
  941. package/dist/esm/api/types/TagCreate.mjs +2 -0
  942. package/dist/esm/api/types/TagList.d.mts +8 -0
  943. package/dist/esm/api/types/TagList.mjs +2 -0
  944. package/dist/esm/api/types/TagResponse.d.mts +13 -0
  945. package/dist/esm/api/types/TagResponse.mjs +2 -0
  946. package/dist/esm/api/types/TagUpdate.d.mts +12 -0
  947. package/dist/esm/api/types/TagUpdate.mjs +2 -0
  948. package/dist/esm/api/types/ThreadCreate.d.mts +33 -0
  949. package/dist/esm/api/types/ThreadCreate.mjs +2 -0
  950. package/dist/esm/api/types/ThreadList.d.mts +23 -0
  951. package/dist/esm/api/types/ThreadList.mjs +10 -0
  952. package/dist/esm/api/types/ThreadResponse.d.mts +36 -0
  953. package/dist/esm/api/types/ThreadResponse.mjs +2 -0
  954. package/dist/esm/api/types/ThreadUpdate.d.mts +14 -0
  955. package/dist/esm/api/types/ThreadUpdate.mjs +2 -0
  956. package/dist/esm/api/types/UserList.d.mts +18 -0
  957. package/dist/esm/api/types/UserList.mjs +9 -0
  958. package/dist/esm/api/types/UserResponse.d.mts +18 -0
  959. package/dist/esm/api/types/UserResponse.mjs +9 -0
  960. package/dist/esm/api/types/UserUpdate.d.mts +20 -0
  961. package/dist/esm/api/types/UserUpdate.mjs +2 -0
  962. package/dist/esm/api/types/WebhookCreate.d.mts +10 -0
  963. package/dist/esm/api/types/WebhookCreate.mjs +2 -0
  964. package/dist/esm/api/types/WebhookList.d.mts +6 -0
  965. package/dist/esm/api/types/WebhookList.mjs +2 -0
  966. package/dist/esm/api/types/index.d.mts +34 -0
  967. package/dist/esm/api/types/index.mjs +34 -0
  968. package/dist/esm/auth/HeaderAuthProvider.d.mts +16 -0
  969. package/dist/esm/auth/HeaderAuthProvider.mjs +34 -0
  970. package/dist/esm/auth/index.d.mts +1 -0
  971. package/dist/esm/auth/index.mjs +1 -0
  972. package/dist/esm/core/auth/AuthProvider.d.mts +7 -0
  973. package/dist/esm/core/auth/AuthProvider.mjs +1 -0
  974. package/dist/esm/core/auth/AuthRequest.d.mts +9 -0
  975. package/dist/esm/core/auth/AuthRequest.mjs +1 -0
  976. package/dist/esm/core/auth/BasicAuth.d.mts +8 -0
  977. package/dist/esm/core/auth/BasicAuth.mjs +24 -0
  978. package/dist/esm/core/auth/BearerToken.d.mts +7 -0
  979. package/dist/esm/core/auth/BearerToken.mjs +13 -0
  980. package/dist/esm/core/auth/NoOpAuthProvider.d.mts +5 -0
  981. package/dist/esm/core/auth/NoOpAuthProvider.mjs +5 -0
  982. package/dist/esm/core/auth/index.d.mts +5 -0
  983. package/dist/esm/core/auth/index.mjs +3 -0
  984. package/dist/esm/core/base64.d.mts +2 -0
  985. package/dist/esm/core/base64.mjs +22 -0
  986. package/dist/esm/core/exports.d.mts +1 -0
  987. package/dist/esm/core/exports.mjs +1 -0
  988. package/dist/esm/core/fetcher/APIResponse.d.mts +20 -0
  989. package/dist/esm/core/fetcher/APIResponse.mjs +1 -0
  990. package/dist/esm/core/fetcher/BinaryResponse.d.mts +19 -0
  991. package/dist/esm/core/fetcher/BinaryResponse.mjs +14 -0
  992. package/dist/esm/core/fetcher/EndpointMetadata.d.mts +13 -0
  993. package/dist/esm/core/fetcher/EndpointMetadata.mjs +1 -0
  994. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +12 -0
  995. package/dist/esm/core/fetcher/EndpointSupplier.mjs +19 -0
  996. package/dist/esm/core/fetcher/Fetcher.d.mts +49 -0
  997. package/dist/esm/core/fetcher/Fetcher.mjs +312 -0
  998. package/dist/esm/core/fetcher/Headers.d.mts +2 -0
  999. package/dist/esm/core/fetcher/Headers.mjs +82 -0
  1000. package/dist/esm/core/fetcher/HttpResponsePromise.d.mts +58 -0
  1001. package/dist/esm/core/fetcher/HttpResponsePromise.mjs +99 -0
  1002. package/dist/esm/core/fetcher/RawResponse.d.mts +29 -0
  1003. package/dist/esm/core/fetcher/RawResponse.mjs +40 -0
  1004. package/dist/esm/core/fetcher/Supplier.d.mts +4 -0
  1005. package/dist/esm/core/fetcher/Supplier.mjs +19 -0
  1006. package/dist/esm/core/fetcher/createRequestUrl.d.mts +1 -0
  1007. package/dist/esm/core/fetcher/createRequestUrl.mjs +5 -0
  1008. package/dist/esm/core/fetcher/getErrorResponseBody.d.mts +1 -0
  1009. package/dist/esm/core/fetcher/getErrorResponseBody.mjs +42 -0
  1010. package/dist/esm/core/fetcher/getFetchFn.d.mts +1 -0
  1011. package/dist/esm/core/fetcher/getFetchFn.mjs +14 -0
  1012. package/dist/esm/core/fetcher/getHeader.d.mts +1 -0
  1013. package/dist/esm/core/fetcher/getHeader.mjs +8 -0
  1014. package/dist/esm/core/fetcher/getRequestBody.d.mts +7 -0
  1015. package/dist/esm/core/fetcher/getRequestBody.mjs +24 -0
  1016. package/dist/esm/core/fetcher/getResponseBody.d.mts +1 -0
  1017. package/dist/esm/core/fetcher/getResponseBody.mjs +66 -0
  1018. package/dist/esm/core/fetcher/index.d.mts +11 -0
  1019. package/dist/esm/core/fetcher/index.mjs +6 -0
  1020. package/dist/esm/core/fetcher/makeRequest.d.mts +1 -0
  1021. package/dist/esm/core/fetcher/makeRequest.mjs +36 -0
  1022. package/dist/esm/core/fetcher/requestWithRetries.d.mts +1 -0
  1023. package/dist/esm/core/fetcher/requestWithRetries.mjs +64 -0
  1024. package/dist/esm/core/fetcher/signals.d.mts +5 -0
  1025. package/dist/esm/core/fetcher/signals.mjs +20 -0
  1026. package/dist/esm/core/headers.d.mts +2 -0
  1027. package/dist/esm/core/headers.mjs +27 -0
  1028. package/dist/esm/core/index.d.mts +6 -0
  1029. package/dist/esm/core/index.mjs +6 -0
  1030. package/dist/esm/core/json.d.mts +15 -0
  1031. package/dist/esm/core/json.mjs +19 -0
  1032. package/dist/esm/core/logging/exports.d.mts +18 -0
  1033. package/dist/esm/core/logging/exports.mjs +9 -0
  1034. package/dist/esm/core/logging/index.d.mts +1 -0
  1035. package/dist/esm/core/logging/index.mjs +1 -0
  1036. package/dist/esm/core/logging/logger.d.mts +126 -0
  1037. package/dist/esm/core/logging/logger.mjs +138 -0
  1038. package/dist/esm/core/runtime/index.d.mts +1 -0
  1039. package/dist/esm/core/runtime/index.mjs +1 -0
  1040. package/dist/esm/core/runtime/runtime.d.mts +9 -0
  1041. package/dist/esm/core/runtime/runtime.mjs +100 -0
  1042. package/dist/esm/core/url/encodePathParam.d.mts +1 -0
  1043. package/dist/esm/core/url/encodePathParam.mjs +18 -0
  1044. package/dist/esm/core/url/index.d.mts +3 -0
  1045. package/dist/esm/core/url/index.mjs +3 -0
  1046. package/dist/esm/core/url/join.d.mts +1 -0
  1047. package/dist/esm/core/url/join.mjs +65 -0
  1048. package/dist/esm/core/url/qs.d.mts +6 -0
  1049. package/dist/esm/core/url/qs.mjs +61 -0
  1050. package/dist/esm/environments.d.mts +4 -0
  1051. package/dist/esm/environments.mjs +4 -0
  1052. package/dist/esm/errors/ForumError.d.mts +12 -0
  1053. package/dist/esm/errors/ForumError.mjs +28 -0
  1054. package/dist/esm/errors/ForumTimeoutError.d.mts +3 -0
  1055. package/dist/esm/errors/ForumTimeoutError.mjs +11 -0
  1056. package/dist/esm/errors/handleNonStatusCodeError.d.mts +2 -0
  1057. package/dist/esm/errors/handleNonStatusCodeError.mjs +29 -0
  1058. package/dist/esm/errors/index.d.mts +2 -0
  1059. package/dist/esm/errors/index.mjs +2 -0
  1060. package/dist/esm/exports.d.mts +1 -0
  1061. package/dist/esm/exports.mjs +1 -0
  1062. package/dist/esm/index.d.mts +6 -0
  1063. package/dist/esm/index.mjs +5 -0
  1064. package/dist/esm/version.d.mts +1 -0
  1065. package/dist/esm/version.mjs +1 -0
  1066. package/package.json +69 -33
  1067. package/reference.md +2854 -0
  1068. package/LICENSE +0 -21
  1069. package/dist/Client.d.ts +0 -98
  1070. package/dist/Client.js +0 -172
  1071. package/dist/errors.d.ts +0 -52
  1072. package/dist/errors.js +0 -95
  1073. package/dist/index.d.ts +0 -19
  1074. package/dist/index.js +0 -35
  1075. package/dist/resources/Auth.d.ts +0 -33
  1076. package/dist/resources/Auth.js +0 -66
  1077. package/dist/resources/Integrations.d.ts +0 -27
  1078. package/dist/resources/Integrations.js +0 -36
  1079. package/dist/resources/Notifications.d.ts +0 -33
  1080. package/dist/resources/Notifications.js +0 -50
  1081. package/dist/resources/Posts.d.ts +0 -52
  1082. package/dist/resources/Posts.js +0 -152
  1083. package/dist/resources/PrivateMessages.d.ts +0 -34
  1084. package/dist/resources/PrivateMessages.js +0 -50
  1085. package/dist/resources/Reports.d.ts +0 -47
  1086. package/dist/resources/Reports.js +0 -56
  1087. package/dist/resources/Roles.d.ts +0 -27
  1088. package/dist/resources/Roles.js +0 -44
  1089. package/dist/resources/SSO.d.ts +0 -27
  1090. package/dist/resources/SSO.js +0 -36
  1091. package/dist/resources/Search.d.ts +0 -12
  1092. package/dist/resources/Search.js +0 -20
  1093. package/dist/resources/Stats.d.ts +0 -13
  1094. package/dist/resources/Stats.js +0 -22
  1095. package/dist/resources/Tags.d.ts +0 -49
  1096. package/dist/resources/Tags.js +0 -96
  1097. package/dist/resources/Threads.d.ts +0 -65
  1098. package/dist/resources/Threads.js +0 -205
  1099. package/dist/resources/Users.d.ts +0 -74
  1100. package/dist/resources/Users.js +0 -108
  1101. package/dist/resources/Webhooks.d.ts +0 -105
  1102. package/dist/resources/Webhooks.js +0 -161
  1103. package/dist/response-types.d.ts +0 -127
  1104. package/dist/types.d.ts +0 -301
  1105. package/dist/utils.d.ts +0 -80
  1106. package/dist/utils.js +0 -138
  1107. package/examples/README.md +0 -38
  1108. package/examples/authentication.ts +0 -91
  1109. package/examples/error-handling.ts +0 -132
  1110. package/examples/managing-threads.ts +0 -133
  1111. package/examples/pagination.ts +0 -80
  1112. package/examples/webhooks.ts +0 -176
  1113. package/src/Client.ts +0 -233
  1114. package/src/errors.ts +0 -95
  1115. package/src/index.ts +0 -19
  1116. package/src/resources/Auth.ts +0 -84
  1117. package/src/resources/Integrations.ts +0 -50
  1118. package/src/resources/Notifications.ts +0 -72
  1119. package/src/resources/Posts.ts +0 -195
  1120. package/src/resources/PrivateMessages.ts +0 -78
  1121. package/src/resources/Reports.ts +0 -94
  1122. package/src/resources/Roles.ts +0 -65
  1123. package/src/resources/SSO.ts +0 -50
  1124. package/src/resources/Search.ts +0 -28
  1125. package/src/resources/Stats.ts +0 -31
  1126. package/src/resources/Tags.ts +0 -135
  1127. package/src/resources/Threads.ts +0 -269
  1128. package/src/resources/Users.ts +0 -168
  1129. package/src/resources/Webhooks.ts +0 -192
  1130. package/src/response-types.ts +0 -137
  1131. package/src/types.ts +0 -337
  1132. package/src/utils.ts +0 -182
  1133. package/tsconfig.json +0 -21
@@ -0,0 +1,312 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { toJson } from "../json.mjs";
11
+ import { createLogger } from "../logging/logger.mjs";
12
+ import { createRequestUrl } from "./createRequestUrl.mjs";
13
+ import { EndpointSupplier } from "./EndpointSupplier.mjs";
14
+ import { getErrorResponseBody } from "./getErrorResponseBody.mjs";
15
+ import { getFetchFn } from "./getFetchFn.mjs";
16
+ import { getRequestBody } from "./getRequestBody.mjs";
17
+ import { getResponseBody } from "./getResponseBody.mjs";
18
+ import { Headers } from "./Headers.mjs";
19
+ import { makeRequest } from "./makeRequest.mjs";
20
+ import { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse.mjs";
21
+ import { requestWithRetries } from "./requestWithRetries.mjs";
22
+ const SENSITIVE_HEADERS = new Set([
23
+ "authorization",
24
+ "www-authenticate",
25
+ "x-api-key",
26
+ "api-key",
27
+ "apikey",
28
+ "x-api-token",
29
+ "x-auth-token",
30
+ "auth-token",
31
+ "cookie",
32
+ "set-cookie",
33
+ "proxy-authorization",
34
+ "proxy-authenticate",
35
+ "x-csrf-token",
36
+ "x-xsrf-token",
37
+ "x-session-token",
38
+ "x-access-token",
39
+ ]);
40
+ function redactHeaders(headers) {
41
+ const filtered = {};
42
+ for (const [key, value] of headers instanceof Headers ? headers.entries() : Object.entries(headers)) {
43
+ if (SENSITIVE_HEADERS.has(key.toLowerCase())) {
44
+ filtered[key] = "[REDACTED]";
45
+ }
46
+ else {
47
+ filtered[key] = value;
48
+ }
49
+ }
50
+ return filtered;
51
+ }
52
+ const SENSITIVE_QUERY_PARAMS = new Set([
53
+ "api_key",
54
+ "api-key",
55
+ "apikey",
56
+ "token",
57
+ "access_token",
58
+ "access-token",
59
+ "auth_token",
60
+ "auth-token",
61
+ "password",
62
+ "passwd",
63
+ "secret",
64
+ "api_secret",
65
+ "api-secret",
66
+ "apisecret",
67
+ "key",
68
+ "session",
69
+ "session_id",
70
+ "session-id",
71
+ ]);
72
+ function redactQueryParameters(queryParameters) {
73
+ if (queryParameters == null) {
74
+ return queryParameters;
75
+ }
76
+ const redacted = {};
77
+ for (const [key, value] of Object.entries(queryParameters)) {
78
+ if (SENSITIVE_QUERY_PARAMS.has(key.toLowerCase())) {
79
+ redacted[key] = "[REDACTED]";
80
+ }
81
+ else {
82
+ redacted[key] = value;
83
+ }
84
+ }
85
+ return redacted;
86
+ }
87
+ function redactUrl(url) {
88
+ const protocolIndex = url.indexOf("://");
89
+ if (protocolIndex === -1)
90
+ return url;
91
+ const afterProtocol = protocolIndex + 3;
92
+ // Find the first delimiter that marks the end of the authority section
93
+ const pathStart = url.indexOf("/", afterProtocol);
94
+ let queryStart = url.indexOf("?", afterProtocol);
95
+ let fragmentStart = url.indexOf("#", afterProtocol);
96
+ const firstDelimiter = Math.min(pathStart === -1 ? url.length : pathStart, queryStart === -1 ? url.length : queryStart, fragmentStart === -1 ? url.length : fragmentStart);
97
+ // Find the LAST @ before the delimiter (handles multiple @ in credentials)
98
+ let atIndex = -1;
99
+ for (let i = afterProtocol; i < firstDelimiter; i++) {
100
+ if (url[i] === "@") {
101
+ atIndex = i;
102
+ }
103
+ }
104
+ if (atIndex !== -1) {
105
+ url = `${url.slice(0, afterProtocol)}[REDACTED]@${url.slice(atIndex + 1)}`;
106
+ }
107
+ // Recalculate queryStart since url might have changed
108
+ queryStart = url.indexOf("?");
109
+ if (queryStart === -1)
110
+ return url;
111
+ fragmentStart = url.indexOf("#", queryStart);
112
+ const queryEnd = fragmentStart !== -1 ? fragmentStart : url.length;
113
+ const queryString = url.slice(queryStart + 1, queryEnd);
114
+ if (queryString.length === 0)
115
+ return url;
116
+ // FAST PATH: Quick check if any sensitive keywords present
117
+ // Using indexOf is faster than regex for simple substring matching
118
+ const lower = queryString.toLowerCase();
119
+ const hasSensitive = lower.includes("token") ||
120
+ lower.includes("key") ||
121
+ lower.includes("password") ||
122
+ lower.includes("passwd") ||
123
+ lower.includes("secret") ||
124
+ lower.includes("session") ||
125
+ lower.includes("auth");
126
+ if (!hasSensitive) {
127
+ return url;
128
+ }
129
+ // SLOW PATH: Parse and redact
130
+ const redactedParams = [];
131
+ const params = queryString.split("&");
132
+ for (const param of params) {
133
+ const equalIndex = param.indexOf("=");
134
+ if (equalIndex === -1) {
135
+ redactedParams.push(param);
136
+ continue;
137
+ }
138
+ const key = param.slice(0, equalIndex);
139
+ let shouldRedact = SENSITIVE_QUERY_PARAMS.has(key.toLowerCase());
140
+ if (!shouldRedact && key.includes("%")) {
141
+ try {
142
+ const decodedKey = decodeURIComponent(key);
143
+ shouldRedact = SENSITIVE_QUERY_PARAMS.has(decodedKey.toLowerCase());
144
+ }
145
+ catch (_a) { }
146
+ }
147
+ redactedParams.push(shouldRedact ? `${key}=[REDACTED]` : param);
148
+ }
149
+ return url.slice(0, queryStart + 1) + redactedParams.join("&") + url.slice(queryEnd);
150
+ }
151
+ function getHeaders(args) {
152
+ return __awaiter(this, void 0, void 0, function* () {
153
+ var _a;
154
+ const newHeaders = new Headers();
155
+ newHeaders.set("Accept", args.responseType === "json" ? "application/json" : args.responseType === "text" ? "text/plain" : "*/*");
156
+ if (args.body !== undefined && args.contentType != null) {
157
+ newHeaders.set("Content-Type", args.contentType);
158
+ }
159
+ if (args.headers == null) {
160
+ return newHeaders;
161
+ }
162
+ for (const [key, value] of Object.entries(args.headers)) {
163
+ const result = yield EndpointSupplier.get(value, { endpointMetadata: (_a = args.endpointMetadata) !== null && _a !== void 0 ? _a : {} });
164
+ if (typeof result === "string") {
165
+ newHeaders.set(key, result);
166
+ continue;
167
+ }
168
+ if (result == null) {
169
+ continue;
170
+ }
171
+ newHeaders.set(key, `${result}`);
172
+ }
173
+ return newHeaders;
174
+ });
175
+ }
176
+ export function fetcherImpl(args) {
177
+ return __awaiter(this, void 0, void 0, function* () {
178
+ var _a, _b, _c;
179
+ const url = createRequestUrl(args.url, args.queryParameters);
180
+ const requestBody = yield getRequestBody({
181
+ body: args.body,
182
+ type: (_a = args.requestType) !== null && _a !== void 0 ? _a : "other",
183
+ });
184
+ const fetchFn = (_b = args.fetchFn) !== null && _b !== void 0 ? _b : (yield getFetchFn());
185
+ const headers = yield getHeaders(args);
186
+ const logger = createLogger(args.logging);
187
+ if (logger.isDebug()) {
188
+ const metadata = {
189
+ method: args.method,
190
+ url: redactUrl(url),
191
+ headers: redactHeaders(headers),
192
+ queryParameters: redactQueryParameters(args.queryParameters),
193
+ hasBody: requestBody != null,
194
+ };
195
+ logger.debug("Making HTTP request", metadata);
196
+ }
197
+ try {
198
+ const response = yield requestWithRetries(() => __awaiter(this, void 0, void 0, function* () {
199
+ return makeRequest(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
200
+ }), args.maxRetries);
201
+ if (response.status >= 200 && response.status < 400) {
202
+ if (logger.isDebug()) {
203
+ const metadata = {
204
+ method: args.method,
205
+ url: redactUrl(url),
206
+ statusCode: response.status,
207
+ responseHeaders: redactHeaders(response.headers),
208
+ };
209
+ logger.debug("HTTP request succeeded", metadata);
210
+ }
211
+ const body = yield getResponseBody(response, args.responseType);
212
+ return {
213
+ ok: true,
214
+ body: body,
215
+ headers: response.headers,
216
+ rawResponse: toRawResponse(response),
217
+ };
218
+ }
219
+ else {
220
+ if (logger.isError()) {
221
+ const metadata = {
222
+ method: args.method,
223
+ url: redactUrl(url),
224
+ statusCode: response.status,
225
+ responseHeaders: redactHeaders(Object.fromEntries(response.headers.entries())),
226
+ };
227
+ logger.error("HTTP request failed with error status", metadata);
228
+ }
229
+ return {
230
+ ok: false,
231
+ error: {
232
+ reason: "status-code",
233
+ statusCode: response.status,
234
+ body: yield getErrorResponseBody(response),
235
+ },
236
+ rawResponse: toRawResponse(response),
237
+ };
238
+ }
239
+ }
240
+ catch (error) {
241
+ if ((_c = args.abortSignal) === null || _c === void 0 ? void 0 : _c.aborted) {
242
+ if (logger.isError()) {
243
+ const metadata = {
244
+ method: args.method,
245
+ url: redactUrl(url),
246
+ };
247
+ logger.error("HTTP request was aborted", metadata);
248
+ }
249
+ return {
250
+ ok: false,
251
+ error: {
252
+ reason: "unknown",
253
+ errorMessage: "The user aborted a request",
254
+ },
255
+ rawResponse: abortRawResponse,
256
+ };
257
+ }
258
+ else if (error instanceof Error && error.name === "AbortError") {
259
+ if (logger.isError()) {
260
+ const metadata = {
261
+ method: args.method,
262
+ url: redactUrl(url),
263
+ timeoutMs: args.timeoutMs,
264
+ };
265
+ logger.error("HTTP request timed out", metadata);
266
+ }
267
+ return {
268
+ ok: false,
269
+ error: {
270
+ reason: "timeout",
271
+ },
272
+ rawResponse: abortRawResponse,
273
+ };
274
+ }
275
+ else if (error instanceof Error) {
276
+ if (logger.isError()) {
277
+ const metadata = {
278
+ method: args.method,
279
+ url: redactUrl(url),
280
+ errorMessage: error.message,
281
+ };
282
+ logger.error("HTTP request failed with error", metadata);
283
+ }
284
+ return {
285
+ ok: false,
286
+ error: {
287
+ reason: "unknown",
288
+ errorMessage: error.message,
289
+ },
290
+ rawResponse: unknownRawResponse,
291
+ };
292
+ }
293
+ if (logger.isError()) {
294
+ const metadata = {
295
+ method: args.method,
296
+ url: redactUrl(url),
297
+ error: toJson(error),
298
+ };
299
+ logger.error("HTTP request failed with unknown error", metadata);
300
+ }
301
+ return {
302
+ ok: false,
303
+ error: {
304
+ reason: "unknown",
305
+ errorMessage: toJson(error),
306
+ },
307
+ rawResponse: unknownRawResponse,
308
+ };
309
+ }
310
+ });
311
+ }
312
+ export const fetcher = fetcherImpl;
@@ -0,0 +1,2 @@
1
+ declare let Headers: typeof globalThis.Headers;
2
+ export { Headers };
@@ -0,0 +1,82 @@
1
+ let Headers;
2
+ if (typeof globalThis.Headers !== "undefined") {
3
+ Headers = globalThis.Headers;
4
+ }
5
+ else {
6
+ Headers = class Headers {
7
+ constructor(init) {
8
+ this.headers = new Map();
9
+ if (init) {
10
+ if (init instanceof Headers) {
11
+ init.forEach((value, key) => this.append(key, value));
12
+ }
13
+ else if (Array.isArray(init)) {
14
+ for (const [key, value] of init) {
15
+ if (typeof key === "string" && typeof value === "string") {
16
+ this.append(key, value);
17
+ }
18
+ else {
19
+ throw new TypeError("Each header entry must be a [string, string] tuple");
20
+ }
21
+ }
22
+ }
23
+ else {
24
+ for (const [key, value] of Object.entries(init)) {
25
+ if (typeof value === "string") {
26
+ this.append(key, value);
27
+ }
28
+ else {
29
+ throw new TypeError("Header values must be strings");
30
+ }
31
+ }
32
+ }
33
+ }
34
+ }
35
+ append(name, value) {
36
+ const key = name.toLowerCase();
37
+ const existing = this.headers.get(key) || [];
38
+ this.headers.set(key, [...existing, value]);
39
+ }
40
+ delete(name) {
41
+ const key = name.toLowerCase();
42
+ this.headers.delete(key);
43
+ }
44
+ get(name) {
45
+ const key = name.toLowerCase();
46
+ const values = this.headers.get(key);
47
+ return values ? values.join(", ") : null;
48
+ }
49
+ has(name) {
50
+ const key = name.toLowerCase();
51
+ return this.headers.has(key);
52
+ }
53
+ set(name, value) {
54
+ const key = name.toLowerCase();
55
+ this.headers.set(key, [value]);
56
+ }
57
+ forEach(callbackfn, thisArg) {
58
+ const boundCallback = thisArg ? callbackfn.bind(thisArg) : callbackfn;
59
+ this.headers.forEach((values, key) => boundCallback(values.join(", "), key, this));
60
+ }
61
+ getSetCookie() {
62
+ return this.headers.get("set-cookie") || [];
63
+ }
64
+ *entries() {
65
+ for (const [key, values] of this.headers.entries()) {
66
+ yield [key, values.join(", ")];
67
+ }
68
+ }
69
+ *keys() {
70
+ yield* this.headers.keys();
71
+ }
72
+ *values() {
73
+ for (const values of this.headers.values()) {
74
+ yield values.join(", ");
75
+ }
76
+ }
77
+ [Symbol.iterator]() {
78
+ return this.entries();
79
+ }
80
+ };
81
+ }
82
+ export { Headers };
@@ -0,0 +1,58 @@
1
+ import type { WithRawResponse } from "./RawResponse.mjs";
2
+ /**
3
+ * A promise that returns the parsed response and lets you retrieve the raw response too.
4
+ */
5
+ export declare class HttpResponsePromise<T> extends Promise<T> {
6
+ private innerPromise;
7
+ private unwrappedPromise;
8
+ private constructor();
9
+ /**
10
+ * Creates an `HttpResponsePromise` from a function that returns a promise.
11
+ *
12
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
13
+ * @param args - Arguments to pass to the function.
14
+ * @returns An `HttpResponsePromise` instance.
15
+ */
16
+ static fromFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T>(fn: F, ...args: Parameters<F>): HttpResponsePromise<T>;
17
+ /**
18
+ * Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
19
+ *
20
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
21
+ * @returns A function that returns an `HttpResponsePromise` instance.
22
+ */
23
+ static interceptFunction<F extends (...args: never[]) => Promise<WithRawResponse<T>>, T = Awaited<ReturnType<F>>["data"]>(fn: F): (...args: Parameters<F>) => HttpResponsePromise<T>;
24
+ /**
25
+ * Creates an `HttpResponsePromise` from an existing promise.
26
+ *
27
+ * @param promise - A promise resolving to a `WithRawResponse` object.
28
+ * @returns An `HttpResponsePromise` instance.
29
+ */
30
+ static fromPromise<T>(promise: Promise<WithRawResponse<T>>): HttpResponsePromise<T>;
31
+ /**
32
+ * Creates an `HttpResponsePromise` from an executor function.
33
+ *
34
+ * @param executor - A function that takes resolve and reject callbacks to create a promise.
35
+ * @returns An `HttpResponsePromise` instance.
36
+ */
37
+ static fromExecutor<T>(executor: (resolve: (value: WithRawResponse<T>) => void, reject: (reason?: unknown) => void) => void): HttpResponsePromise<T>;
38
+ /**
39
+ * Creates an `HttpResponsePromise` from a resolved result.
40
+ *
41
+ * @param result - A `WithRawResponse` object to resolve immediately.
42
+ * @returns An `HttpResponsePromise` instance.
43
+ */
44
+ static fromResult<T>(result: WithRawResponse<T>): HttpResponsePromise<T>;
45
+ private unwrap;
46
+ /** @inheritdoc */
47
+ then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: unknown) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
48
+ /** @inheritdoc */
49
+ catch<TResult = never>(onrejected?: ((reason: unknown) => TResult | PromiseLike<TResult>) | null): Promise<T | TResult>;
50
+ /** @inheritdoc */
51
+ finally(onfinally?: (() => void) | null): Promise<T>;
52
+ /**
53
+ * Retrieves the data and raw response.
54
+ *
55
+ * @returns A promise resolving to a `WithRawResponse` object.
56
+ */
57
+ withRawResponse(): Promise<WithRawResponse<T>>;
58
+ }
@@ -0,0 +1,99 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ /**
11
+ * A promise that returns the parsed response and lets you retrieve the raw response too.
12
+ */
13
+ export class HttpResponsePromise extends Promise {
14
+ constructor(promise) {
15
+ // Initialize with a no-op to avoid premature parsing
16
+ super((resolve) => {
17
+ resolve(undefined);
18
+ });
19
+ this.innerPromise = promise;
20
+ }
21
+ /**
22
+ * Creates an `HttpResponsePromise` from a function that returns a promise.
23
+ *
24
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
25
+ * @param args - Arguments to pass to the function.
26
+ * @returns An `HttpResponsePromise` instance.
27
+ */
28
+ static fromFunction(fn, ...args) {
29
+ return new HttpResponsePromise(fn(...args));
30
+ }
31
+ /**
32
+ * Creates a function that returns an `HttpResponsePromise` from a function that returns a promise.
33
+ *
34
+ * @param fn - A function that returns a promise resolving to a `WithRawResponse` object.
35
+ * @returns A function that returns an `HttpResponsePromise` instance.
36
+ */
37
+ static interceptFunction(fn) {
38
+ return (...args) => {
39
+ return HttpResponsePromise.fromPromise(fn(...args));
40
+ };
41
+ }
42
+ /**
43
+ * Creates an `HttpResponsePromise` from an existing promise.
44
+ *
45
+ * @param promise - A promise resolving to a `WithRawResponse` object.
46
+ * @returns An `HttpResponsePromise` instance.
47
+ */
48
+ static fromPromise(promise) {
49
+ return new HttpResponsePromise(promise);
50
+ }
51
+ /**
52
+ * Creates an `HttpResponsePromise` from an executor function.
53
+ *
54
+ * @param executor - A function that takes resolve and reject callbacks to create a promise.
55
+ * @returns An `HttpResponsePromise` instance.
56
+ */
57
+ static fromExecutor(executor) {
58
+ const promise = new Promise(executor);
59
+ return new HttpResponsePromise(promise);
60
+ }
61
+ /**
62
+ * Creates an `HttpResponsePromise` from a resolved result.
63
+ *
64
+ * @param result - A `WithRawResponse` object to resolve immediately.
65
+ * @returns An `HttpResponsePromise` instance.
66
+ */
67
+ static fromResult(result) {
68
+ const promise = Promise.resolve(result);
69
+ return new HttpResponsePromise(promise);
70
+ }
71
+ unwrap() {
72
+ if (!this.unwrappedPromise) {
73
+ this.unwrappedPromise = this.innerPromise.then(({ data }) => data);
74
+ }
75
+ return this.unwrappedPromise;
76
+ }
77
+ /** @inheritdoc */
78
+ then(onfulfilled, onrejected) {
79
+ return this.unwrap().then(onfulfilled, onrejected);
80
+ }
81
+ /** @inheritdoc */
82
+ catch(onrejected) {
83
+ return this.unwrap().catch(onrejected);
84
+ }
85
+ /** @inheritdoc */
86
+ finally(onfinally) {
87
+ return this.unwrap().finally(onfinally);
88
+ }
89
+ /**
90
+ * Retrieves the data and raw response.
91
+ *
92
+ * @returns A promise resolving to a `WithRawResponse` object.
93
+ */
94
+ withRawResponse() {
95
+ return __awaiter(this, void 0, void 0, function* () {
96
+ return yield this.innerPromise;
97
+ });
98
+ }
99
+ }
@@ -0,0 +1,29 @@
1
+ /**
2
+ * The raw response from the fetch call excluding the body.
3
+ */
4
+ export type RawResponse = Omit<{
5
+ [K in keyof Response as Response[K] extends Function ? never : K]: Response[K];
6
+ }, "ok" | "body" | "bodyUsed">;
7
+ /**
8
+ * A raw response indicating that the request was aborted.
9
+ */
10
+ export declare const abortRawResponse: RawResponse;
11
+ /**
12
+ * A raw response indicating an unknown error.
13
+ */
14
+ export declare const unknownRawResponse: RawResponse;
15
+ /**
16
+ * Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
17
+ * excluding the `body` and `bodyUsed` fields.
18
+ *
19
+ * @param response - The `RawResponse` object to convert.
20
+ * @returns A `RawResponse` object containing the extracted properties of the input response.
21
+ */
22
+ export declare function toRawResponse(response: Response): RawResponse;
23
+ /**
24
+ * Creates a `RawResponse` from a standard `Response` object.
25
+ */
26
+ export interface WithRawResponse<T> {
27
+ readonly data: T;
28
+ readonly rawResponse: RawResponse;
29
+ }
@@ -0,0 +1,40 @@
1
+ import { Headers } from "./Headers.mjs";
2
+ /**
3
+ * A raw response indicating that the request was aborted.
4
+ */
5
+ export const abortRawResponse = {
6
+ headers: new Headers(),
7
+ redirected: false,
8
+ status: 499,
9
+ statusText: "Client Closed Request",
10
+ type: "error",
11
+ url: "",
12
+ };
13
+ /**
14
+ * A raw response indicating an unknown error.
15
+ */
16
+ export const unknownRawResponse = {
17
+ headers: new Headers(),
18
+ redirected: false,
19
+ status: 0,
20
+ statusText: "Unknown Error",
21
+ type: "error",
22
+ url: "",
23
+ };
24
+ /**
25
+ * Converts a `RawResponse` object into a `RawResponse` by extracting its properties,
26
+ * excluding the `body` and `bodyUsed` fields.
27
+ *
28
+ * @param response - The `RawResponse` object to convert.
29
+ * @returns A `RawResponse` object containing the extracted properties of the input response.
30
+ */
31
+ export function toRawResponse(response) {
32
+ return {
33
+ headers: response.headers,
34
+ redirected: response.redirected,
35
+ status: response.status,
36
+ statusText: response.statusText,
37
+ type: response.type,
38
+ url: response.url,
39
+ };
40
+ }
@@ -0,0 +1,4 @@
1
+ export type Supplier<T> = T | Promise<T> | (() => T | Promise<T>);
2
+ export declare const Supplier: {
3
+ get: <T>(supplier: Supplier<T>) => Promise<T>;
4
+ };
@@ -0,0 +1,19 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export const Supplier = {
11
+ get: (supplier) => __awaiter(void 0, void 0, void 0, function* () {
12
+ if (typeof supplier === "function") {
13
+ return supplier();
14
+ }
15
+ else {
16
+ return supplier;
17
+ }
18
+ }),
19
+ };
@@ -0,0 +1 @@
1
+ export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, unknown>): string;
@@ -0,0 +1,5 @@
1
+ import { toQueryString } from "../url/qs.mjs";
2
+ export function createRequestUrl(baseUrl, queryParameters) {
3
+ const queryString = toQueryString(queryParameters, { arrayFormat: "repeat" });
4
+ return queryString ? `${baseUrl}?${queryString}` : baseUrl;
5
+ }
@@ -0,0 +1 @@
1
+ export declare function getErrorResponseBody(response: Response): Promise<unknown>;