@foru-ms/sdk 2.0.2 → 2.0.3

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 (524) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.d.ts +26 -2
  3. package/dist/cjs/api/resources/integrations/types/GetIntegrationsIdResponse.js +16 -0
  4. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.d.ts +25 -1
  5. package/dist/cjs/api/resources/integrations/types/GetIntegrationsResponse.js +19 -0
  6. package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.d.ts +26 -2
  7. package/dist/cjs/api/resources/integrations/types/PatchIntegrationsIdResponse.js +16 -0
  8. package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.d.ts +26 -2
  9. package/dist/cjs/api/resources/integrations/types/PostIntegrationsResponse.js +16 -0
  10. package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.d.ts +23 -7
  11. package/dist/cjs/api/resources/notifications/client/requests/PostNotificationsRequest.js +11 -0
  12. package/dist/cjs/api/resources/notifications/types/GetNotificationsIdResponse.d.ts +26 -2
  13. package/dist/cjs/api/resources/notifications/types/GetNotificationsResponse.d.ts +25 -1
  14. package/dist/cjs/api/resources/notifications/types/PatchNotificationsIdResponse.d.ts +26 -2
  15. package/dist/cjs/api/resources/notifications/types/PostNotificationsResponse.d.ts +26 -2
  16. package/dist/cjs/api/resources/posts/client/Client.d.ts +136 -0
  17. package/dist/cjs/api/resources/posts/client/Client.js +500 -0
  18. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.d.ts +13 -0
  19. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.js +3 -0
  20. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.d.ts +10 -0
  21. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.js +3 -0
  22. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.d.ts +13 -0
  23. package/dist/cjs/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.js +3 -0
  24. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsRequest.d.ts +14 -0
  25. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsRequest.js +3 -0
  26. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.d.ts +13 -0
  27. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.js +3 -0
  28. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsRequest.d.ts +14 -0
  29. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsRequest.js +3 -0
  30. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.d.ts +13 -0
  31. package/dist/cjs/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.js +3 -0
  32. package/dist/cjs/api/resources/posts/client/requests/PostPostsIdReactionsRequest.d.ts +27 -0
  33. package/dist/cjs/api/resources/posts/client/requests/PostPostsIdReactionsRequest.js +14 -0
  34. package/dist/cjs/api/resources/posts/client/requests/index.d.ts +8 -0
  35. package/dist/cjs/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.d.ts +3 -0
  36. package/dist/cjs/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.js +3 -0
  37. package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsResponse.d.ts +3 -0
  38. package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsResponse.js +3 -0
  39. package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.d.ts +3 -0
  40. package/dist/cjs/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.js +3 -0
  41. package/dist/cjs/api/resources/posts/types/GetPostsIdPostsResponse.d.ts +16 -0
  42. package/dist/cjs/api/resources/posts/types/GetPostsIdPostsResponse.js +3 -0
  43. package/dist/cjs/api/resources/posts/types/GetPostsIdPostsSubIdResponse.d.ts +6 -0
  44. package/dist/cjs/api/resources/posts/types/GetPostsIdPostsSubIdResponse.js +3 -0
  45. package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsResponse.d.ts +16 -0
  46. package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsResponse.js +3 -0
  47. package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.d.ts +6 -0
  48. package/dist/cjs/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.js +3 -0
  49. package/dist/cjs/api/resources/posts/types/GetPostsIdResponse.d.ts +6 -0
  50. package/dist/cjs/api/resources/posts/types/GetPostsResponse.d.ts +6 -0
  51. package/dist/cjs/api/resources/posts/types/PatchPostsIdResponse.d.ts +6 -0
  52. package/dist/cjs/api/resources/posts/types/PostPostsIdReactionsResponse.d.ts +6 -0
  53. package/dist/cjs/api/resources/posts/types/PostPostsIdReactionsResponse.js +3 -0
  54. package/dist/cjs/api/resources/posts/types/PostPostsResponse.d.ts +6 -0
  55. package/dist/cjs/api/resources/posts/types/index.d.ts +8 -0
  56. package/dist/cjs/api/resources/posts/types/index.js +8 -0
  57. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +69 -0
  58. package/dist/cjs/api/resources/privateMessages/client/Client.js +272 -0
  59. package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.d.ts +13 -0
  60. package/dist/cjs/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.js +3 -0
  61. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.d.ts +14 -0
  62. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.js +3 -0
  63. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.d.ts +13 -0
  64. package/dist/cjs/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.js +3 -0
  65. package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.d.ts +24 -0
  66. package/dist/cjs/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.js +3 -0
  67. package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +4 -0
  68. package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.d.ts +3 -0
  69. package/dist/cjs/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.js +3 -0
  70. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.d.ts +16 -0
  71. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.js +3 -0
  72. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.d.ts +6 -0
  73. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.js +3 -0
  74. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.ts +22 -2
  75. package/dist/cjs/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.ts +21 -1
  76. package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.d.ts +6 -0
  77. package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.js +3 -0
  78. package/dist/cjs/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.ts +22 -2
  79. package/dist/cjs/api/resources/privateMessages/types/index.d.ts +4 -0
  80. package/dist/cjs/api/resources/privateMessages/types/index.js +4 -0
  81. package/dist/cjs/api/resources/reports/types/GetReportsIdResponse.d.ts +6 -0
  82. package/dist/cjs/api/resources/reports/types/GetReportsResponse.d.ts +6 -0
  83. package/dist/cjs/api/resources/reports/types/PostReportsResponse.d.ts +6 -0
  84. package/dist/cjs/api/resources/roles/types/GetRolesIdResponse.d.ts +4 -0
  85. package/dist/cjs/api/resources/roles/types/GetRolesResponse.d.ts +4 -0
  86. package/dist/cjs/api/resources/roles/types/PatchRolesIdResponse.d.ts +4 -0
  87. package/dist/cjs/api/resources/roles/types/PostRolesResponse.d.ts +4 -0
  88. package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.d.ts +23 -2
  89. package/dist/cjs/api/resources/ssOs/types/GetSsoIdResponse.js +13 -0
  90. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.d.ts +22 -1
  91. package/dist/cjs/api/resources/ssOs/types/GetSsoResponse.js +16 -0
  92. package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.d.ts +23 -2
  93. package/dist/cjs/api/resources/ssOs/types/PatchSsoIdResponse.js +13 -0
  94. package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.d.ts +23 -2
  95. package/dist/cjs/api/resources/ssOs/types/PostSsoResponse.js +13 -0
  96. package/dist/cjs/api/resources/tags/client/Client.d.ts +50 -0
  97. package/dist/cjs/api/resources/tags/client/Client.js +189 -0
  98. package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.d.ts +13 -0
  99. package/dist/cjs/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.js +3 -0
  100. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.d.ts +14 -0
  101. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.js +3 -0
  102. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.d.ts +13 -0
  103. package/dist/cjs/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.js +3 -0
  104. package/dist/cjs/api/resources/tags/client/requests/index.d.ts +3 -0
  105. package/dist/cjs/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.d.ts +3 -0
  106. package/dist/cjs/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.js +3 -0
  107. package/dist/cjs/api/resources/tags/types/GetTagsIdResponse.d.ts +4 -0
  108. package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersResponse.d.ts +16 -0
  109. package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersResponse.js +3 -0
  110. package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.d.ts +6 -0
  111. package/dist/cjs/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.js +3 -0
  112. package/dist/cjs/api/resources/tags/types/GetTagsResponse.d.ts +4 -0
  113. package/dist/cjs/api/resources/tags/types/PatchTagsIdResponse.d.ts +4 -0
  114. package/dist/cjs/api/resources/tags/types/PostTagsResponse.d.ts +4 -0
  115. package/dist/cjs/api/resources/tags/types/index.d.ts +3 -0
  116. package/dist/cjs/api/resources/tags/types/index.js +3 -0
  117. package/dist/cjs/api/resources/threads/client/Client.d.ts +240 -0
  118. package/dist/cjs/api/resources/threads/client/Client.js +885 -0
  119. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.d.ts +13 -0
  120. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.js +3 -0
  121. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.d.ts +10 -0
  122. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.js +3 -0
  123. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.d.ts +13 -0
  124. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.js +3 -0
  125. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.d.ts +13 -0
  126. package/dist/cjs/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.js +3 -0
  127. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPollRequest.d.ts +10 -0
  128. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPollRequest.js +3 -0
  129. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsRequest.d.ts +14 -0
  130. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsRequest.js +3 -0
  131. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.d.ts +13 -0
  132. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.js +3 -0
  133. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.d.ts +14 -0
  134. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.js +3 -0
  135. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.d.ts +13 -0
  136. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.js +3 -0
  137. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.d.ts +14 -0
  138. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.js +3 -0
  139. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.d.ts +13 -0
  140. package/dist/cjs/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.js +3 -0
  141. package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdPollRequest.d.ts +18 -0
  142. package/dist/cjs/api/resources/threads/client/requests/PatchThreadsIdPollRequest.js +3 -0
  143. package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdPollRequest.d.ts +35 -0
  144. package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdPollRequest.js +3 -0
  145. package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.d.ts +27 -0
  146. package/dist/cjs/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.js +14 -0
  147. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +14 -0
  148. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.d.ts +3 -0
  149. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.js +3 -0
  150. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsResponse.d.ts +3 -0
  151. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsResponse.js +3 -0
  152. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.d.ts +3 -0
  153. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.js +3 -0
  154. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.d.ts +3 -0
  155. package/dist/cjs/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.js +3 -0
  156. package/dist/cjs/api/resources/threads/types/GetThreadsIdPollResponse.d.ts +6 -0
  157. package/dist/cjs/api/resources/threads/types/GetThreadsIdPollResponse.js +3 -0
  158. package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsResponse.d.ts +16 -0
  159. package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsResponse.js +3 -0
  160. package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.d.ts +6 -0
  161. package/dist/cjs/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.js +3 -0
  162. package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsResponse.d.ts +16 -0
  163. package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsResponse.js +3 -0
  164. package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.d.ts +6 -0
  165. package/dist/cjs/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.js +3 -0
  166. package/dist/cjs/api/resources/threads/types/GetThreadsIdResponse.d.ts +14 -0
  167. package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersResponse.d.ts +16 -0
  168. package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersResponse.js +3 -0
  169. package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.d.ts +6 -0
  170. package/dist/cjs/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.js +3 -0
  171. package/dist/cjs/api/resources/threads/types/GetThreadsResponse.d.ts +14 -0
  172. package/dist/cjs/api/resources/threads/types/PatchThreadsIdPollResponse.d.ts +6 -0
  173. package/dist/cjs/api/resources/threads/types/PatchThreadsIdPollResponse.js +3 -0
  174. package/dist/cjs/api/resources/threads/types/PatchThreadsIdResponse.d.ts +14 -0
  175. package/dist/cjs/api/resources/threads/types/PostThreadsIdPollResponse.d.ts +6 -0
  176. package/dist/cjs/api/resources/threads/types/PostThreadsIdPollResponse.js +3 -0
  177. package/dist/cjs/api/resources/threads/types/PostThreadsIdReactionsResponse.d.ts +6 -0
  178. package/dist/cjs/api/resources/threads/types/PostThreadsIdReactionsResponse.js +3 -0
  179. package/dist/cjs/api/resources/threads/types/PostThreadsResponse.d.ts +14 -0
  180. package/dist/cjs/api/resources/threads/types/index.d.ts +14 -0
  181. package/dist/cjs/api/resources/threads/types/index.js +14 -0
  182. package/dist/cjs/api/resources/users/client/Client.d.ts +100 -0
  183. package/dist/cjs/api/resources/users/client/Client.js +378 -0
  184. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.d.ts +13 -0
  185. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.js +3 -0
  186. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.d.ts +13 -0
  187. package/dist/cjs/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.js +3 -0
  188. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersRequest.d.ts +14 -0
  189. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersRequest.js +3 -0
  190. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.d.ts +13 -0
  191. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.js +3 -0
  192. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingRequest.d.ts +14 -0
  193. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingRequest.js +3 -0
  194. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.d.ts +13 -0
  195. package/dist/cjs/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.js +3 -0
  196. package/dist/cjs/api/resources/users/client/requests/index.d.ts +6 -0
  197. package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.d.ts +3 -0
  198. package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.js +3 -0
  199. package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.d.ts +3 -0
  200. package/dist/cjs/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.js +3 -0
  201. package/dist/cjs/api/resources/users/types/GetUsersIdFollowersResponse.d.ts +16 -0
  202. package/dist/cjs/api/resources/users/types/GetUsersIdFollowersResponse.js +3 -0
  203. package/dist/cjs/api/resources/users/types/GetUsersIdFollowersSubIdResponse.d.ts +6 -0
  204. package/dist/cjs/api/resources/users/types/GetUsersIdFollowersSubIdResponse.js +3 -0
  205. package/dist/cjs/api/resources/users/types/GetUsersIdFollowingResponse.d.ts +16 -0
  206. package/dist/cjs/api/resources/users/types/GetUsersIdFollowingResponse.js +3 -0
  207. package/dist/cjs/api/resources/users/types/GetUsersIdFollowingSubIdResponse.d.ts +6 -0
  208. package/dist/cjs/api/resources/users/types/GetUsersIdFollowingSubIdResponse.js +3 -0
  209. package/dist/cjs/api/resources/users/types/GetUsersIdResponse.d.ts +34 -14
  210. package/dist/cjs/api/resources/users/types/GetUsersIdResponse.js +0 -12
  211. package/dist/cjs/api/resources/users/types/GetUsersResponse.d.ts +34 -14
  212. package/dist/cjs/api/resources/users/types/GetUsersResponse.js +0 -15
  213. package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.d.ts +34 -14
  214. package/dist/cjs/api/resources/users/types/PatchUsersIdResponse.js +0 -12
  215. package/dist/cjs/api/resources/users/types/index.d.ts +6 -0
  216. package/dist/cjs/api/resources/users/types/index.js +6 -0
  217. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +50 -0
  218. package/dist/cjs/api/resources/webhooks/client/Client.js +192 -0
  219. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.d.ts +13 -0
  220. package/dist/cjs/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.js +3 -0
  221. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.d.ts +14 -0
  222. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.js +3 -0
  223. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.d.ts +13 -0
  224. package/dist/cjs/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.js +3 -0
  225. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +3 -0
  226. package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.d.ts +3 -0
  227. package/dist/cjs/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.js +3 -0
  228. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.d.ts +16 -0
  229. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.js +3 -0
  230. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.d.ts +6 -0
  231. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.js +3 -0
  232. package/dist/cjs/api/resources/webhooks/types/GetWebhooksIdResponse.d.ts +20 -2
  233. package/dist/cjs/api/resources/webhooks/types/GetWebhooksResponse.d.ts +19 -1
  234. package/dist/cjs/api/resources/webhooks/types/PostWebhooksResponse.d.ts +20 -2
  235. package/dist/cjs/api/resources/webhooks/types/index.d.ts +3 -0
  236. package/dist/cjs/api/resources/webhooks/types/index.js +3 -0
  237. package/dist/cjs/api/types/IntegrationResponse.d.ts +25 -0
  238. package/dist/cjs/api/types/IntegrationResponse.js +16 -0
  239. package/dist/cjs/api/types/NotificationCreate.d.ts +23 -7
  240. package/dist/cjs/api/types/NotificationCreate.js +11 -0
  241. package/dist/cjs/api/types/NotificationList.d.ts +10 -8
  242. package/dist/cjs/api/types/NotificationList.js +6 -4
  243. package/dist/cjs/api/types/NotificationResponse.d.ts +25 -0
  244. package/dist/cjs/api/types/NotificationResponse.js +3 -0
  245. package/dist/cjs/api/types/PostResponse.d.ts +6 -0
  246. package/dist/cjs/api/types/PrivateMessageResponse.d.ts +21 -0
  247. package/dist/cjs/api/types/PrivateMessageResponse.js +3 -0
  248. package/dist/cjs/api/types/ReportResponse.d.ts +6 -0
  249. package/dist/cjs/api/types/RoleResponse.d.ts +4 -0
  250. package/dist/cjs/api/types/SsoResponse.d.ts +22 -0
  251. package/dist/cjs/api/types/SsoResponse.js +13 -0
  252. package/dist/cjs/api/types/TagResponse.d.ts +4 -0
  253. package/dist/cjs/api/types/ThreadResponse.d.ts +14 -0
  254. package/dist/cjs/api/types/UserResponse.d.ts +34 -14
  255. package/dist/cjs/api/types/UserResponse.js +0 -9
  256. package/dist/cjs/api/types/WebhookResponse.d.ts +19 -0
  257. package/dist/cjs/api/types/WebhookResponse.js +3 -0
  258. package/dist/cjs/api/types/index.d.ts +5 -0
  259. package/dist/cjs/api/types/index.js +5 -0
  260. package/dist/cjs/version.d.ts +1 -1
  261. package/dist/cjs/version.js +1 -1
  262. package/dist/esm/BaseClient.mjs +2 -2
  263. package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.d.mts +26 -2
  264. package/dist/esm/api/resources/integrations/types/GetIntegrationsIdResponse.mjs +15 -1
  265. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.d.mts +25 -1
  266. package/dist/esm/api/resources/integrations/types/GetIntegrationsResponse.mjs +18 -1
  267. package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.d.mts +26 -2
  268. package/dist/esm/api/resources/integrations/types/PatchIntegrationsIdResponse.mjs +15 -1
  269. package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.d.mts +26 -2
  270. package/dist/esm/api/resources/integrations/types/PostIntegrationsResponse.mjs +15 -1
  271. package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.d.mts +23 -7
  272. package/dist/esm/api/resources/notifications/client/requests/PostNotificationsRequest.mjs +10 -1
  273. package/dist/esm/api/resources/notifications/types/GetNotificationsIdResponse.d.mts +26 -2
  274. package/dist/esm/api/resources/notifications/types/GetNotificationsResponse.d.mts +25 -1
  275. package/dist/esm/api/resources/notifications/types/PatchNotificationsIdResponse.d.mts +26 -2
  276. package/dist/esm/api/resources/notifications/types/PostNotificationsResponse.d.mts +26 -2
  277. package/dist/esm/api/resources/posts/client/Client.d.mts +136 -0
  278. package/dist/esm/api/resources/posts/client/Client.mjs +500 -0
  279. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.d.mts +13 -0
  280. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdPostsSubIdRequest.mjs +2 -0
  281. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.d.mts +10 -0
  282. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsRequest.mjs +2 -0
  283. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.d.mts +13 -0
  284. package/dist/esm/api/resources/posts/client/requests/DeletePostsIdReactionsSubIdRequest.mjs +2 -0
  285. package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsRequest.d.mts +14 -0
  286. package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsRequest.mjs +2 -0
  287. package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.d.mts +13 -0
  288. package/dist/esm/api/resources/posts/client/requests/GetPostsIdPostsSubIdRequest.mjs +2 -0
  289. package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsRequest.d.mts +14 -0
  290. package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsRequest.mjs +2 -0
  291. package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.d.mts +13 -0
  292. package/dist/esm/api/resources/posts/client/requests/GetPostsIdReactionsSubIdRequest.mjs +2 -0
  293. package/dist/esm/api/resources/posts/client/requests/PostPostsIdReactionsRequest.d.mts +27 -0
  294. package/dist/esm/api/resources/posts/client/requests/PostPostsIdReactionsRequest.mjs +11 -0
  295. package/dist/esm/api/resources/posts/client/requests/index.d.mts +8 -0
  296. package/dist/esm/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.d.mts +3 -0
  297. package/dist/esm/api/resources/posts/types/DeletePostsIdPostsSubIdResponse.mjs +2 -0
  298. package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsResponse.d.mts +3 -0
  299. package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsResponse.mjs +2 -0
  300. package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.d.mts +3 -0
  301. package/dist/esm/api/resources/posts/types/DeletePostsIdReactionsSubIdResponse.mjs +2 -0
  302. package/dist/esm/api/resources/posts/types/GetPostsIdPostsResponse.d.mts +16 -0
  303. package/dist/esm/api/resources/posts/types/GetPostsIdPostsResponse.mjs +2 -0
  304. package/dist/esm/api/resources/posts/types/GetPostsIdPostsSubIdResponse.d.mts +6 -0
  305. package/dist/esm/api/resources/posts/types/GetPostsIdPostsSubIdResponse.mjs +2 -0
  306. package/dist/esm/api/resources/posts/types/GetPostsIdReactionsResponse.d.mts +16 -0
  307. package/dist/esm/api/resources/posts/types/GetPostsIdReactionsResponse.mjs +2 -0
  308. package/dist/esm/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.d.mts +6 -0
  309. package/dist/esm/api/resources/posts/types/GetPostsIdReactionsSubIdResponse.mjs +2 -0
  310. package/dist/esm/api/resources/posts/types/GetPostsIdResponse.d.mts +6 -0
  311. package/dist/esm/api/resources/posts/types/GetPostsResponse.d.mts +6 -0
  312. package/dist/esm/api/resources/posts/types/PatchPostsIdResponse.d.mts +6 -0
  313. package/dist/esm/api/resources/posts/types/PostPostsIdReactionsResponse.d.mts +6 -0
  314. package/dist/esm/api/resources/posts/types/PostPostsIdReactionsResponse.mjs +2 -0
  315. package/dist/esm/api/resources/posts/types/PostPostsResponse.d.mts +6 -0
  316. package/dist/esm/api/resources/posts/types/index.d.mts +8 -0
  317. package/dist/esm/api/resources/posts/types/index.mjs +8 -0
  318. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +69 -0
  319. package/dist/esm/api/resources/privateMessages/client/Client.mjs +272 -0
  320. package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.d.mts +13 -0
  321. package/dist/esm/api/resources/privateMessages/client/requests/DeletePrivateMessagesIdRepliesSubIdRequest.mjs +2 -0
  322. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.d.mts +14 -0
  323. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesRequest.mjs +2 -0
  324. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.d.mts +13 -0
  325. package/dist/esm/api/resources/privateMessages/client/requests/GetPrivateMessagesIdRepliesSubIdRequest.mjs +2 -0
  326. package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.d.mts +24 -0
  327. package/dist/esm/api/resources/privateMessages/client/requests/PostPrivateMessagesIdRepliesRequest.mjs +2 -0
  328. package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +4 -0
  329. package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.d.mts +3 -0
  330. package/dist/esm/api/resources/privateMessages/types/DeletePrivateMessagesIdRepliesSubIdResponse.mjs +2 -0
  331. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.d.mts +16 -0
  332. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesResponse.mjs +2 -0
  333. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.d.mts +6 -0
  334. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdRepliesSubIdResponse.mjs +2 -0
  335. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesIdResponse.d.mts +22 -2
  336. package/dist/esm/api/resources/privateMessages/types/GetPrivateMessagesResponse.d.mts +21 -1
  337. package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.d.mts +6 -0
  338. package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesIdRepliesResponse.mjs +2 -0
  339. package/dist/esm/api/resources/privateMessages/types/PostPrivateMessagesResponse.d.mts +22 -2
  340. package/dist/esm/api/resources/privateMessages/types/index.d.mts +4 -0
  341. package/dist/esm/api/resources/privateMessages/types/index.mjs +4 -0
  342. package/dist/esm/api/resources/reports/types/GetReportsIdResponse.d.mts +6 -0
  343. package/dist/esm/api/resources/reports/types/GetReportsResponse.d.mts +6 -0
  344. package/dist/esm/api/resources/reports/types/PostReportsResponse.d.mts +6 -0
  345. package/dist/esm/api/resources/roles/types/GetRolesIdResponse.d.mts +4 -0
  346. package/dist/esm/api/resources/roles/types/GetRolesResponse.d.mts +4 -0
  347. package/dist/esm/api/resources/roles/types/PatchRolesIdResponse.d.mts +4 -0
  348. package/dist/esm/api/resources/roles/types/PostRolesResponse.d.mts +4 -0
  349. package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.d.mts +23 -2
  350. package/dist/esm/api/resources/ssOs/types/GetSsoIdResponse.mjs +12 -1
  351. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.d.mts +22 -1
  352. package/dist/esm/api/resources/ssOs/types/GetSsoResponse.mjs +15 -1
  353. package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.d.mts +23 -2
  354. package/dist/esm/api/resources/ssOs/types/PatchSsoIdResponse.mjs +12 -1
  355. package/dist/esm/api/resources/ssOs/types/PostSsoResponse.d.mts +23 -2
  356. package/dist/esm/api/resources/ssOs/types/PostSsoResponse.mjs +12 -1
  357. package/dist/esm/api/resources/tags/client/Client.d.mts +50 -0
  358. package/dist/esm/api/resources/tags/client/Client.mjs +189 -0
  359. package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.d.mts +13 -0
  360. package/dist/esm/api/resources/tags/client/requests/DeleteTagsIdSubscribersSubIdRequest.mjs +2 -0
  361. package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.d.mts +14 -0
  362. package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersRequest.mjs +2 -0
  363. package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.d.mts +13 -0
  364. package/dist/esm/api/resources/tags/client/requests/GetTagsIdSubscribersSubIdRequest.mjs +2 -0
  365. package/dist/esm/api/resources/tags/client/requests/index.d.mts +3 -0
  366. package/dist/esm/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.d.mts +3 -0
  367. package/dist/esm/api/resources/tags/types/DeleteTagsIdSubscribersSubIdResponse.mjs +2 -0
  368. package/dist/esm/api/resources/tags/types/GetTagsIdResponse.d.mts +4 -0
  369. package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersResponse.d.mts +16 -0
  370. package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersResponse.mjs +2 -0
  371. package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.d.mts +6 -0
  372. package/dist/esm/api/resources/tags/types/GetTagsIdSubscribersSubIdResponse.mjs +2 -0
  373. package/dist/esm/api/resources/tags/types/GetTagsResponse.d.mts +4 -0
  374. package/dist/esm/api/resources/tags/types/PatchTagsIdResponse.d.mts +4 -0
  375. package/dist/esm/api/resources/tags/types/PostTagsResponse.d.mts +4 -0
  376. package/dist/esm/api/resources/tags/types/index.d.mts +3 -0
  377. package/dist/esm/api/resources/tags/types/index.mjs +3 -0
  378. package/dist/esm/api/resources/threads/client/Client.d.mts +240 -0
  379. package/dist/esm/api/resources/threads/client/Client.mjs +885 -0
  380. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.d.mts +13 -0
  381. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdPostsSubIdRequest.mjs +2 -0
  382. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.d.mts +10 -0
  383. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsRequest.mjs +2 -0
  384. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.d.mts +13 -0
  385. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdReactionsSubIdRequest.mjs +2 -0
  386. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.d.mts +13 -0
  387. package/dist/esm/api/resources/threads/client/requests/DeleteThreadsIdSubscribersSubIdRequest.mjs +2 -0
  388. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPollRequest.d.mts +10 -0
  389. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPollRequest.mjs +2 -0
  390. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsRequest.d.mts +14 -0
  391. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsRequest.mjs +2 -0
  392. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.d.mts +13 -0
  393. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdPostsSubIdRequest.mjs +2 -0
  394. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.d.mts +14 -0
  395. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsRequest.mjs +2 -0
  396. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.d.mts +13 -0
  397. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdReactionsSubIdRequest.mjs +2 -0
  398. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.d.mts +14 -0
  399. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersRequest.mjs +2 -0
  400. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.d.mts +13 -0
  401. package/dist/esm/api/resources/threads/client/requests/GetThreadsIdSubscribersSubIdRequest.mjs +2 -0
  402. package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdPollRequest.d.mts +18 -0
  403. package/dist/esm/api/resources/threads/client/requests/PatchThreadsIdPollRequest.mjs +2 -0
  404. package/dist/esm/api/resources/threads/client/requests/PostThreadsIdPollRequest.d.mts +35 -0
  405. package/dist/esm/api/resources/threads/client/requests/PostThreadsIdPollRequest.mjs +2 -0
  406. package/dist/esm/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.d.mts +27 -0
  407. package/dist/esm/api/resources/threads/client/requests/PostThreadsIdReactionsRequest.mjs +11 -0
  408. package/dist/esm/api/resources/threads/client/requests/index.d.mts +14 -0
  409. package/dist/esm/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.d.mts +3 -0
  410. package/dist/esm/api/resources/threads/types/DeleteThreadsIdPostsSubIdResponse.mjs +2 -0
  411. package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsResponse.d.mts +3 -0
  412. package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsResponse.mjs +2 -0
  413. package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.d.mts +3 -0
  414. package/dist/esm/api/resources/threads/types/DeleteThreadsIdReactionsSubIdResponse.mjs +2 -0
  415. package/dist/esm/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.d.mts +3 -0
  416. package/dist/esm/api/resources/threads/types/DeleteThreadsIdSubscribersSubIdResponse.mjs +2 -0
  417. package/dist/esm/api/resources/threads/types/GetThreadsIdPollResponse.d.mts +6 -0
  418. package/dist/esm/api/resources/threads/types/GetThreadsIdPollResponse.mjs +2 -0
  419. package/dist/esm/api/resources/threads/types/GetThreadsIdPostsResponse.d.mts +16 -0
  420. package/dist/esm/api/resources/threads/types/GetThreadsIdPostsResponse.mjs +2 -0
  421. package/dist/esm/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.d.mts +6 -0
  422. package/dist/esm/api/resources/threads/types/GetThreadsIdPostsSubIdResponse.mjs +2 -0
  423. package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsResponse.d.mts +16 -0
  424. package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsResponse.mjs +2 -0
  425. package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.d.mts +6 -0
  426. package/dist/esm/api/resources/threads/types/GetThreadsIdReactionsSubIdResponse.mjs +2 -0
  427. package/dist/esm/api/resources/threads/types/GetThreadsIdResponse.d.mts +14 -0
  428. package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersResponse.d.mts +16 -0
  429. package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersResponse.mjs +2 -0
  430. package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.d.mts +6 -0
  431. package/dist/esm/api/resources/threads/types/GetThreadsIdSubscribersSubIdResponse.mjs +2 -0
  432. package/dist/esm/api/resources/threads/types/GetThreadsResponse.d.mts +14 -0
  433. package/dist/esm/api/resources/threads/types/PatchThreadsIdPollResponse.d.mts +6 -0
  434. package/dist/esm/api/resources/threads/types/PatchThreadsIdPollResponse.mjs +2 -0
  435. package/dist/esm/api/resources/threads/types/PatchThreadsIdResponse.d.mts +14 -0
  436. package/dist/esm/api/resources/threads/types/PostThreadsIdPollResponse.d.mts +6 -0
  437. package/dist/esm/api/resources/threads/types/PostThreadsIdPollResponse.mjs +2 -0
  438. package/dist/esm/api/resources/threads/types/PostThreadsIdReactionsResponse.d.mts +6 -0
  439. package/dist/esm/api/resources/threads/types/PostThreadsIdReactionsResponse.mjs +2 -0
  440. package/dist/esm/api/resources/threads/types/PostThreadsResponse.d.mts +14 -0
  441. package/dist/esm/api/resources/threads/types/index.d.mts +14 -0
  442. package/dist/esm/api/resources/threads/types/index.mjs +14 -0
  443. package/dist/esm/api/resources/users/client/Client.d.mts +100 -0
  444. package/dist/esm/api/resources/users/client/Client.mjs +378 -0
  445. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.d.mts +13 -0
  446. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowersSubIdRequest.mjs +2 -0
  447. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.d.mts +13 -0
  448. package/dist/esm/api/resources/users/client/requests/DeleteUsersIdFollowingSubIdRequest.mjs +2 -0
  449. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersRequest.d.mts +14 -0
  450. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersRequest.mjs +2 -0
  451. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.d.mts +13 -0
  452. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowersSubIdRequest.mjs +2 -0
  453. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingRequest.d.mts +14 -0
  454. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingRequest.mjs +2 -0
  455. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.d.mts +13 -0
  456. package/dist/esm/api/resources/users/client/requests/GetUsersIdFollowingSubIdRequest.mjs +2 -0
  457. package/dist/esm/api/resources/users/client/requests/index.d.mts +6 -0
  458. package/dist/esm/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.d.mts +3 -0
  459. package/dist/esm/api/resources/users/types/DeleteUsersIdFollowersSubIdResponse.mjs +2 -0
  460. package/dist/esm/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.d.mts +3 -0
  461. package/dist/esm/api/resources/users/types/DeleteUsersIdFollowingSubIdResponse.mjs +2 -0
  462. package/dist/esm/api/resources/users/types/GetUsersIdFollowersResponse.d.mts +16 -0
  463. package/dist/esm/api/resources/users/types/GetUsersIdFollowersResponse.mjs +2 -0
  464. package/dist/esm/api/resources/users/types/GetUsersIdFollowersSubIdResponse.d.mts +6 -0
  465. package/dist/esm/api/resources/users/types/GetUsersIdFollowersSubIdResponse.mjs +2 -0
  466. package/dist/esm/api/resources/users/types/GetUsersIdFollowingResponse.d.mts +16 -0
  467. package/dist/esm/api/resources/users/types/GetUsersIdFollowingResponse.mjs +2 -0
  468. package/dist/esm/api/resources/users/types/GetUsersIdFollowingSubIdResponse.d.mts +6 -0
  469. package/dist/esm/api/resources/users/types/GetUsersIdFollowingSubIdResponse.mjs +2 -0
  470. package/dist/esm/api/resources/users/types/GetUsersIdResponse.d.mts +34 -14
  471. package/dist/esm/api/resources/users/types/GetUsersIdResponse.mjs +1 -11
  472. package/dist/esm/api/resources/users/types/GetUsersResponse.d.mts +34 -14
  473. package/dist/esm/api/resources/users/types/GetUsersResponse.mjs +1 -14
  474. package/dist/esm/api/resources/users/types/PatchUsersIdResponse.d.mts +34 -14
  475. package/dist/esm/api/resources/users/types/PatchUsersIdResponse.mjs +1 -11
  476. package/dist/esm/api/resources/users/types/index.d.mts +6 -0
  477. package/dist/esm/api/resources/users/types/index.mjs +6 -0
  478. package/dist/esm/api/resources/webhooks/client/Client.d.mts +50 -0
  479. package/dist/esm/api/resources/webhooks/client/Client.mjs +192 -0
  480. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.d.mts +13 -0
  481. package/dist/esm/api/resources/webhooks/client/requests/DeleteWebhooksIdDeliveriesSubIdRequest.mjs +2 -0
  482. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.d.mts +14 -0
  483. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesRequest.mjs +2 -0
  484. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.d.mts +13 -0
  485. package/dist/esm/api/resources/webhooks/client/requests/GetWebhooksIdDeliveriesSubIdRequest.mjs +2 -0
  486. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +3 -0
  487. package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.d.mts +3 -0
  488. package/dist/esm/api/resources/webhooks/types/DeleteWebhooksIdDeliveriesSubIdResponse.mjs +2 -0
  489. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.d.mts +16 -0
  490. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesResponse.mjs +2 -0
  491. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.d.mts +6 -0
  492. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdDeliveriesSubIdResponse.mjs +2 -0
  493. package/dist/esm/api/resources/webhooks/types/GetWebhooksIdResponse.d.mts +20 -2
  494. package/dist/esm/api/resources/webhooks/types/GetWebhooksResponse.d.mts +19 -1
  495. package/dist/esm/api/resources/webhooks/types/PostWebhooksResponse.d.mts +20 -2
  496. package/dist/esm/api/resources/webhooks/types/index.d.mts +3 -0
  497. package/dist/esm/api/resources/webhooks/types/index.mjs +3 -0
  498. package/dist/esm/api/types/IntegrationResponse.d.mts +25 -0
  499. package/dist/esm/api/types/IntegrationResponse.mjs +13 -0
  500. package/dist/esm/api/types/NotificationCreate.d.mts +23 -7
  501. package/dist/esm/api/types/NotificationCreate.mjs +10 -1
  502. package/dist/esm/api/types/NotificationList.d.mts +10 -8
  503. package/dist/esm/api/types/NotificationList.mjs +6 -4
  504. package/dist/esm/api/types/NotificationResponse.d.mts +25 -0
  505. package/dist/esm/api/types/NotificationResponse.mjs +2 -0
  506. package/dist/esm/api/types/PostResponse.d.mts +6 -0
  507. package/dist/esm/api/types/PrivateMessageResponse.d.mts +21 -0
  508. package/dist/esm/api/types/PrivateMessageResponse.mjs +2 -0
  509. package/dist/esm/api/types/ReportResponse.d.mts +6 -0
  510. package/dist/esm/api/types/RoleResponse.d.mts +4 -0
  511. package/dist/esm/api/types/SsoResponse.d.mts +22 -0
  512. package/dist/esm/api/types/SsoResponse.mjs +10 -0
  513. package/dist/esm/api/types/TagResponse.d.mts +4 -0
  514. package/dist/esm/api/types/ThreadResponse.d.mts +14 -0
  515. package/dist/esm/api/types/UserResponse.d.mts +34 -14
  516. package/dist/esm/api/types/UserResponse.mjs +1 -8
  517. package/dist/esm/api/types/WebhookResponse.d.mts +19 -0
  518. package/dist/esm/api/types/WebhookResponse.mjs +2 -0
  519. package/dist/esm/api/types/index.d.mts +5 -0
  520. package/dist/esm/api/types/index.mjs +5 -0
  521. package/dist/esm/version.d.mts +1 -1
  522. package/dist/esm/version.mjs +1 -1
  523. package/package.json +1 -1
  524. package/reference.md +2068 -74
@@ -349,4 +349,889 @@ export class ThreadsClient {
349
349
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/threads/{id}");
350
350
  });
351
351
  }
352
+ /**
353
+ * @param {Forum.GetThreadsIdPostsRequest} request
354
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
355
+ *
356
+ * @throws {@link Forum.UnauthorizedError}
357
+ * @throws {@link Forum.NotFoundError}
358
+ * @throws {@link Forum.TooManyRequestsError}
359
+ * @throws {@link Forum.InternalServerError}
360
+ *
361
+ * @example
362
+ * await client.threads.listThreadPosts({
363
+ * id: "id"
364
+ * })
365
+ */
366
+ listThreadPosts(request, requestOptions) {
367
+ return core.HttpResponsePromise.fromPromise(this.__listThreadPosts(request, requestOptions));
368
+ }
369
+ __listThreadPosts(request, requestOptions) {
370
+ return __awaiter(this, void 0, void 0, function* () {
371
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
372
+ const { id, cursor, limit } = request;
373
+ const _queryParams = {};
374
+ if (cursor != null) {
375
+ _queryParams.cursor = cursor;
376
+ }
377
+ if (limit != null) {
378
+ _queryParams.limit = limit.toString();
379
+ }
380
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
381
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
382
+ const _response = yield core.fetcher({
383
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts`),
384
+ method: "GET",
385
+ headers: _headers,
386
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
387
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
388
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
389
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
390
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
391
+ logging: this._options.logging,
392
+ });
393
+ if (_response.ok) {
394
+ return { data: _response.body, rawResponse: _response.rawResponse };
395
+ }
396
+ if (_response.error.reason === "status-code") {
397
+ switch (_response.error.statusCode) {
398
+ case 401:
399
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
400
+ case 404:
401
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
402
+ case 429:
403
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
404
+ case 500:
405
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
406
+ default:
407
+ throw new errors.ForumError({
408
+ statusCode: _response.error.statusCode,
409
+ body: _response.error.body,
410
+ rawResponse: _response.rawResponse,
411
+ });
412
+ }
413
+ }
414
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/posts");
415
+ });
416
+ }
417
+ /**
418
+ * @param {Forum.GetThreadsIdPostsSubIdRequest} request
419
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
420
+ *
421
+ * @throws {@link Forum.UnauthorizedError}
422
+ * @throws {@link Forum.NotFoundError}
423
+ * @throws {@link Forum.TooManyRequestsError}
424
+ * @throws {@link Forum.InternalServerError}
425
+ *
426
+ * @example
427
+ * await client.threads.getAPostFromThread({
428
+ * id: "id",
429
+ * subId: "subId"
430
+ * })
431
+ */
432
+ getAPostFromThread(request, requestOptions) {
433
+ return core.HttpResponsePromise.fromPromise(this.__getAPostFromThread(request, requestOptions));
434
+ }
435
+ __getAPostFromThread(request, requestOptions) {
436
+ return __awaiter(this, void 0, void 0, function* () {
437
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
438
+ const { id, subId } = request;
439
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
440
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
441
+ const _response = yield core.fetcher({
442
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
443
+ method: "GET",
444
+ headers: _headers,
445
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
446
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
447
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
448
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
449
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
450
+ logging: this._options.logging,
451
+ });
452
+ if (_response.ok) {
453
+ return { data: _response.body, rawResponse: _response.rawResponse };
454
+ }
455
+ if (_response.error.reason === "status-code") {
456
+ switch (_response.error.statusCode) {
457
+ case 401:
458
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
459
+ case 404:
460
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
461
+ case 429:
462
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
463
+ case 500:
464
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
465
+ default:
466
+ throw new errors.ForumError({
467
+ statusCode: _response.error.statusCode,
468
+ body: _response.error.body,
469
+ rawResponse: _response.rawResponse,
470
+ });
471
+ }
472
+ }
473
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/posts/{subId}");
474
+ });
475
+ }
476
+ /**
477
+ * @param {Forum.DeleteThreadsIdPostsSubIdRequest} request
478
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
479
+ *
480
+ * @throws {@link Forum.UnauthorizedError}
481
+ * @throws {@link Forum.NotFoundError}
482
+ * @throws {@link Forum.TooManyRequestsError}
483
+ * @throws {@link Forum.InternalServerError}
484
+ *
485
+ * @example
486
+ * await client.threads.deleteAPostFromThread({
487
+ * id: "id",
488
+ * subId: "subId"
489
+ * })
490
+ */
491
+ deleteAPostFromThread(request, requestOptions) {
492
+ return core.HttpResponsePromise.fromPromise(this.__deleteAPostFromThread(request, requestOptions));
493
+ }
494
+ __deleteAPostFromThread(request, requestOptions) {
495
+ return __awaiter(this, void 0, void 0, function* () {
496
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
497
+ const { id, subId } = request;
498
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
499
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
500
+ const _response = yield core.fetcher({
501
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
502
+ method: "DELETE",
503
+ headers: _headers,
504
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
505
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
506
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
507
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
508
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
509
+ logging: this._options.logging,
510
+ });
511
+ if (_response.ok) {
512
+ return {
513
+ data: _response.body,
514
+ rawResponse: _response.rawResponse,
515
+ };
516
+ }
517
+ if (_response.error.reason === "status-code") {
518
+ switch (_response.error.statusCode) {
519
+ case 401:
520
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
521
+ case 404:
522
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
523
+ case 429:
524
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
525
+ case 500:
526
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
527
+ default:
528
+ throw new errors.ForumError({
529
+ statusCode: _response.error.statusCode,
530
+ body: _response.error.body,
531
+ rawResponse: _response.rawResponse,
532
+ });
533
+ }
534
+ }
535
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/posts/{subId}");
536
+ });
537
+ }
538
+ /**
539
+ * @param {Forum.GetThreadsIdReactionsRequest} request
540
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
541
+ *
542
+ * @throws {@link Forum.UnauthorizedError}
543
+ * @throws {@link Forum.NotFoundError}
544
+ * @throws {@link Forum.TooManyRequestsError}
545
+ * @throws {@link Forum.InternalServerError}
546
+ *
547
+ * @example
548
+ * await client.threads.listThreadReactions({
549
+ * id: "id"
550
+ * })
551
+ */
552
+ listThreadReactions(request, requestOptions) {
553
+ return core.HttpResponsePromise.fromPromise(this.__listThreadReactions(request, requestOptions));
554
+ }
555
+ __listThreadReactions(request, requestOptions) {
556
+ return __awaiter(this, void 0, void 0, function* () {
557
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
558
+ const { id, cursor, limit } = request;
559
+ const _queryParams = {};
560
+ if (cursor != null) {
561
+ _queryParams.cursor = cursor;
562
+ }
563
+ if (limit != null) {
564
+ _queryParams.limit = limit.toString();
565
+ }
566
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
567
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
568
+ const _response = yield core.fetcher({
569
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
570
+ method: "GET",
571
+ headers: _headers,
572
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
573
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
574
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
575
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
576
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
577
+ logging: this._options.logging,
578
+ });
579
+ if (_response.ok) {
580
+ return { data: _response.body, rawResponse: _response.rawResponse };
581
+ }
582
+ if (_response.error.reason === "status-code") {
583
+ switch (_response.error.statusCode) {
584
+ case 401:
585
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
586
+ case 404:
587
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
588
+ case 429:
589
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
590
+ case 500:
591
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
592
+ default:
593
+ throw new errors.ForumError({
594
+ statusCode: _response.error.statusCode,
595
+ body: _response.error.body,
596
+ rawResponse: _response.rawResponse,
597
+ });
598
+ }
599
+ }
600
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/reactions");
601
+ });
602
+ }
603
+ /**
604
+ * @param {Forum.PostThreadsIdReactionsRequest} request
605
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
606
+ *
607
+ * @throws {@link Forum.BadRequestError}
608
+ * @throws {@link Forum.UnauthorizedError}
609
+ * @throws {@link Forum.NotFoundError}
610
+ * @throws {@link Forum.TooManyRequestsError}
611
+ * @throws {@link Forum.InternalServerError}
612
+ *
613
+ * @example
614
+ * await client.threads.createAReactionInThread({
615
+ * id: "id",
616
+ * type: "LIKE"
617
+ * })
618
+ */
619
+ createAReactionInThread(request, requestOptions) {
620
+ return core.HttpResponsePromise.fromPromise(this.__createAReactionInThread(request, requestOptions));
621
+ }
622
+ __createAReactionInThread(request, requestOptions) {
623
+ return __awaiter(this, void 0, void 0, function* () {
624
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
625
+ const { id } = request, _body = __rest(request, ["id"]);
626
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
627
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
628
+ const _response = yield core.fetcher({
629
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
630
+ method: "POST",
631
+ headers: _headers,
632
+ contentType: "application/json",
633
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
634
+ requestType: "json",
635
+ body: _body,
636
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
637
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
638
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
639
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
640
+ logging: this._options.logging,
641
+ });
642
+ if (_response.ok) {
643
+ return { data: _response.body, rawResponse: _response.rawResponse };
644
+ }
645
+ if (_response.error.reason === "status-code") {
646
+ switch (_response.error.statusCode) {
647
+ case 400:
648
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
649
+ case 401:
650
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
651
+ case 404:
652
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
653
+ case 429:
654
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
655
+ case 500:
656
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
657
+ default:
658
+ throw new errors.ForumError({
659
+ statusCode: _response.error.statusCode,
660
+ body: _response.error.body,
661
+ rawResponse: _response.rawResponse,
662
+ });
663
+ }
664
+ }
665
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/threads/{id}/reactions");
666
+ });
667
+ }
668
+ /**
669
+ * Removes the authenticated user's reaction. No subId needed.
670
+ *
671
+ * @param {Forum.DeleteThreadsIdReactionsRequest} request
672
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
673
+ *
674
+ * @throws {@link Forum.UnauthorizedError}
675
+ * @throws {@link Forum.NotFoundError}
676
+ * @throws {@link Forum.TooManyRequestsError}
677
+ * @throws {@link Forum.InternalServerError}
678
+ *
679
+ * @example
680
+ * await client.threads.removeYourReactionFromThread({
681
+ * id: "id"
682
+ * })
683
+ */
684
+ removeYourReactionFromThread(request, requestOptions) {
685
+ return core.HttpResponsePromise.fromPromise(this.__removeYourReactionFromThread(request, requestOptions));
686
+ }
687
+ __removeYourReactionFromThread(request, requestOptions) {
688
+ return __awaiter(this, void 0, void 0, function* () {
689
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
690
+ const { id } = request;
691
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
692
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
693
+ const _response = yield core.fetcher({
694
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions`),
695
+ method: "DELETE",
696
+ headers: _headers,
697
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
698
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
699
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
700
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
701
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
702
+ logging: this._options.logging,
703
+ });
704
+ if (_response.ok) {
705
+ return {
706
+ data: _response.body,
707
+ rawResponse: _response.rawResponse,
708
+ };
709
+ }
710
+ if (_response.error.reason === "status-code") {
711
+ switch (_response.error.statusCode) {
712
+ case 401:
713
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
714
+ case 404:
715
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
716
+ case 429:
717
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
718
+ case 500:
719
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
720
+ default:
721
+ throw new errors.ForumError({
722
+ statusCode: _response.error.statusCode,
723
+ body: _response.error.body,
724
+ rawResponse: _response.rawResponse,
725
+ });
726
+ }
727
+ }
728
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/reactions");
729
+ });
730
+ }
731
+ /**
732
+ * @param {Forum.GetThreadsIdReactionsSubIdRequest} request
733
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
734
+ *
735
+ * @throws {@link Forum.UnauthorizedError}
736
+ * @throws {@link Forum.NotFoundError}
737
+ * @throws {@link Forum.TooManyRequestsError}
738
+ * @throws {@link Forum.InternalServerError}
739
+ *
740
+ * @example
741
+ * await client.threads.getAReactionFromThread({
742
+ * id: "id",
743
+ * subId: "subId"
744
+ * })
745
+ */
746
+ getAReactionFromThread(request, requestOptions) {
747
+ return core.HttpResponsePromise.fromPromise(this.__getAReactionFromThread(request, requestOptions));
748
+ }
749
+ __getAReactionFromThread(request, requestOptions) {
750
+ return __awaiter(this, void 0, void 0, function* () {
751
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
752
+ const { id, subId } = request;
753
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
754
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
755
+ const _response = yield core.fetcher({
756
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
757
+ method: "GET",
758
+ headers: _headers,
759
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
760
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
761
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
762
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
763
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
764
+ logging: this._options.logging,
765
+ });
766
+ if (_response.ok) {
767
+ return {
768
+ data: _response.body,
769
+ rawResponse: _response.rawResponse,
770
+ };
771
+ }
772
+ if (_response.error.reason === "status-code") {
773
+ switch (_response.error.statusCode) {
774
+ case 401:
775
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
776
+ case 404:
777
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
778
+ case 429:
779
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
780
+ case 500:
781
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
782
+ default:
783
+ throw new errors.ForumError({
784
+ statusCode: _response.error.statusCode,
785
+ body: _response.error.body,
786
+ rawResponse: _response.rawResponse,
787
+ });
788
+ }
789
+ }
790
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/reactions/{subId}");
791
+ });
792
+ }
793
+ /**
794
+ * @param {Forum.DeleteThreadsIdReactionsSubIdRequest} request
795
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
796
+ *
797
+ * @throws {@link Forum.UnauthorizedError}
798
+ * @throws {@link Forum.NotFoundError}
799
+ * @throws {@link Forum.TooManyRequestsError}
800
+ * @throws {@link Forum.InternalServerError}
801
+ *
802
+ * @example
803
+ * await client.threads.deleteAReactionFromThread({
804
+ * id: "id",
805
+ * subId: "subId"
806
+ * })
807
+ */
808
+ deleteAReactionFromThread(request, requestOptions) {
809
+ return core.HttpResponsePromise.fromPromise(this.__deleteAReactionFromThread(request, requestOptions));
810
+ }
811
+ __deleteAReactionFromThread(request, requestOptions) {
812
+ return __awaiter(this, void 0, void 0, function* () {
813
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
814
+ const { id, subId } = request;
815
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
816
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
817
+ const _response = yield core.fetcher({
818
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
819
+ method: "DELETE",
820
+ headers: _headers,
821
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
822
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
823
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
824
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
825
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
826
+ logging: this._options.logging,
827
+ });
828
+ if (_response.ok) {
829
+ return {
830
+ data: _response.body,
831
+ rawResponse: _response.rawResponse,
832
+ };
833
+ }
834
+ if (_response.error.reason === "status-code") {
835
+ switch (_response.error.statusCode) {
836
+ case 401:
837
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
838
+ case 404:
839
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
840
+ case 429:
841
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
842
+ case 500:
843
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
844
+ default:
845
+ throw new errors.ForumError({
846
+ statusCode: _response.error.statusCode,
847
+ body: _response.error.body,
848
+ rawResponse: _response.rawResponse,
849
+ });
850
+ }
851
+ }
852
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/reactions/{subId}");
853
+ });
854
+ }
855
+ /**
856
+ * @param {Forum.GetThreadsIdSubscribersRequest} request
857
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
858
+ *
859
+ * @throws {@link Forum.UnauthorizedError}
860
+ * @throws {@link Forum.NotFoundError}
861
+ * @throws {@link Forum.TooManyRequestsError}
862
+ * @throws {@link Forum.InternalServerError}
863
+ *
864
+ * @example
865
+ * await client.threads.listThreadSubscribers({
866
+ * id: "id"
867
+ * })
868
+ */
869
+ listThreadSubscribers(request, requestOptions) {
870
+ return core.HttpResponsePromise.fromPromise(this.__listThreadSubscribers(request, requestOptions));
871
+ }
872
+ __listThreadSubscribers(request, requestOptions) {
873
+ return __awaiter(this, void 0, void 0, function* () {
874
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
875
+ const { id, cursor, limit } = request;
876
+ const _queryParams = {};
877
+ if (cursor != null) {
878
+ _queryParams.cursor = cursor;
879
+ }
880
+ if (limit != null) {
881
+ _queryParams.limit = limit.toString();
882
+ }
883
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
884
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
885
+ const _response = yield core.fetcher({
886
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers`),
887
+ method: "GET",
888
+ headers: _headers,
889
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
890
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
891
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
892
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
893
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
894
+ logging: this._options.logging,
895
+ });
896
+ if (_response.ok) {
897
+ return {
898
+ data: _response.body,
899
+ rawResponse: _response.rawResponse,
900
+ };
901
+ }
902
+ if (_response.error.reason === "status-code") {
903
+ switch (_response.error.statusCode) {
904
+ case 401:
905
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
906
+ case 404:
907
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
908
+ case 429:
909
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
910
+ case 500:
911
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
912
+ default:
913
+ throw new errors.ForumError({
914
+ statusCode: _response.error.statusCode,
915
+ body: _response.error.body,
916
+ rawResponse: _response.rawResponse,
917
+ });
918
+ }
919
+ }
920
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/subscribers");
921
+ });
922
+ }
923
+ /**
924
+ * @param {Forum.GetThreadsIdSubscribersSubIdRequest} request
925
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
926
+ *
927
+ * @throws {@link Forum.UnauthorizedError}
928
+ * @throws {@link Forum.NotFoundError}
929
+ * @throws {@link Forum.TooManyRequestsError}
930
+ * @throws {@link Forum.InternalServerError}
931
+ *
932
+ * @example
933
+ * await client.threads.getASubscriberFromThread({
934
+ * id: "id",
935
+ * subId: "subId"
936
+ * })
937
+ */
938
+ getASubscriberFromThread(request, requestOptions) {
939
+ return core.HttpResponsePromise.fromPromise(this.__getASubscriberFromThread(request, requestOptions));
940
+ }
941
+ __getASubscriberFromThread(request, requestOptions) {
942
+ return __awaiter(this, void 0, void 0, function* () {
943
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
944
+ const { id, subId } = request;
945
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
946
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
947
+ const _response = yield core.fetcher({
948
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers/${core.url.encodePathParam(subId)}`),
949
+ method: "GET",
950
+ headers: _headers,
951
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
952
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
953
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
954
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
955
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
956
+ logging: this._options.logging,
957
+ });
958
+ if (_response.ok) {
959
+ return {
960
+ data: _response.body,
961
+ rawResponse: _response.rawResponse,
962
+ };
963
+ }
964
+ if (_response.error.reason === "status-code") {
965
+ switch (_response.error.statusCode) {
966
+ case 401:
967
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
968
+ case 404:
969
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
970
+ case 429:
971
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
972
+ case 500:
973
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
974
+ default:
975
+ throw new errors.ForumError({
976
+ statusCode: _response.error.statusCode,
977
+ body: _response.error.body,
978
+ rawResponse: _response.rawResponse,
979
+ });
980
+ }
981
+ }
982
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/subscribers/{subId}");
983
+ });
984
+ }
985
+ /**
986
+ * @param {Forum.DeleteThreadsIdSubscribersSubIdRequest} request
987
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
988
+ *
989
+ * @throws {@link Forum.UnauthorizedError}
990
+ * @throws {@link Forum.NotFoundError}
991
+ * @throws {@link Forum.TooManyRequestsError}
992
+ * @throws {@link Forum.InternalServerError}
993
+ *
994
+ * @example
995
+ * await client.threads.deleteASubscriberFromThread({
996
+ * id: "id",
997
+ * subId: "subId"
998
+ * })
999
+ */
1000
+ deleteASubscriberFromThread(request, requestOptions) {
1001
+ return core.HttpResponsePromise.fromPromise(this.__deleteASubscriberFromThread(request, requestOptions));
1002
+ }
1003
+ __deleteASubscriberFromThread(request, requestOptions) {
1004
+ return __awaiter(this, void 0, void 0, function* () {
1005
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1006
+ const { id, subId } = request;
1007
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1008
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1009
+ const _response = yield core.fetcher({
1010
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/subscribers/${core.url.encodePathParam(subId)}`),
1011
+ method: "DELETE",
1012
+ headers: _headers,
1013
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1014
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1015
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1016
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1017
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1018
+ logging: this._options.logging,
1019
+ });
1020
+ if (_response.ok) {
1021
+ return {
1022
+ data: _response.body,
1023
+ rawResponse: _response.rawResponse,
1024
+ };
1025
+ }
1026
+ if (_response.error.reason === "status-code") {
1027
+ switch (_response.error.statusCode) {
1028
+ case 401:
1029
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
1030
+ case 404:
1031
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
1032
+ case 429:
1033
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
1034
+ case 500:
1035
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
1036
+ default:
1037
+ throw new errors.ForumError({
1038
+ statusCode: _response.error.statusCode,
1039
+ body: _response.error.body,
1040
+ rawResponse: _response.rawResponse,
1041
+ });
1042
+ }
1043
+ }
1044
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/subscribers/{subId}");
1045
+ });
1046
+ }
1047
+ /**
1048
+ * @param {Forum.GetThreadsIdPollRequest} request
1049
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
1050
+ *
1051
+ * @throws {@link Forum.UnauthorizedError}
1052
+ * @throws {@link Forum.NotFoundError}
1053
+ * @throws {@link Forum.TooManyRequestsError}
1054
+ * @throws {@link Forum.InternalServerError}
1055
+ *
1056
+ * @example
1057
+ * await client.threads.getThreadPoll({
1058
+ * id: "id"
1059
+ * })
1060
+ */
1061
+ getThreadPoll(request, requestOptions) {
1062
+ return core.HttpResponsePromise.fromPromise(this.__getThreadPoll(request, requestOptions));
1063
+ }
1064
+ __getThreadPoll(request, requestOptions) {
1065
+ return __awaiter(this, void 0, void 0, function* () {
1066
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1067
+ const { id } = request;
1068
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1069
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1070
+ const _response = yield core.fetcher({
1071
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
1072
+ method: "GET",
1073
+ headers: _headers,
1074
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1075
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1076
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1077
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1078
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1079
+ logging: this._options.logging,
1080
+ });
1081
+ if (_response.ok) {
1082
+ return { data: _response.body, rawResponse: _response.rawResponse };
1083
+ }
1084
+ if (_response.error.reason === "status-code") {
1085
+ switch (_response.error.statusCode) {
1086
+ case 401:
1087
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
1088
+ case 404:
1089
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
1090
+ case 429:
1091
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
1092
+ case 500:
1093
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
1094
+ default:
1095
+ throw new errors.ForumError({
1096
+ statusCode: _response.error.statusCode,
1097
+ body: _response.error.body,
1098
+ rawResponse: _response.rawResponse,
1099
+ });
1100
+ }
1101
+ }
1102
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/threads/{id}/poll");
1103
+ });
1104
+ }
1105
+ /**
1106
+ * @param {Forum.PostThreadsIdPollRequest} request
1107
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
1108
+ *
1109
+ * @throws {@link Forum.BadRequestError}
1110
+ * @throws {@link Forum.UnauthorizedError}
1111
+ * @throws {@link Forum.NotFoundError}
1112
+ * @throws {@link Forum.TooManyRequestsError}
1113
+ * @throws {@link Forum.InternalServerError}
1114
+ *
1115
+ * @example
1116
+ * await client.threads.createThreadPoll({
1117
+ * id: "id",
1118
+ * title: "title",
1119
+ * options: [{
1120
+ * title: "title"
1121
+ * }]
1122
+ * })
1123
+ */
1124
+ createThreadPoll(request, requestOptions) {
1125
+ return core.HttpResponsePromise.fromPromise(this.__createThreadPoll(request, requestOptions));
1126
+ }
1127
+ __createThreadPoll(request, requestOptions) {
1128
+ return __awaiter(this, void 0, void 0, function* () {
1129
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1130
+ const { id } = request, _body = __rest(request, ["id"]);
1131
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1132
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1133
+ const _response = yield core.fetcher({
1134
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
1135
+ method: "POST",
1136
+ headers: _headers,
1137
+ contentType: "application/json",
1138
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1139
+ requestType: "json",
1140
+ body: _body,
1141
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1142
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1143
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1144
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1145
+ logging: this._options.logging,
1146
+ });
1147
+ if (_response.ok) {
1148
+ return { data: _response.body, rawResponse: _response.rawResponse };
1149
+ }
1150
+ if (_response.error.reason === "status-code") {
1151
+ switch (_response.error.statusCode) {
1152
+ case 400:
1153
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
1154
+ case 401:
1155
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
1156
+ case 404:
1157
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
1158
+ case 429:
1159
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
1160
+ case 500:
1161
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
1162
+ default:
1163
+ throw new errors.ForumError({
1164
+ statusCode: _response.error.statusCode,
1165
+ body: _response.error.body,
1166
+ rawResponse: _response.rawResponse,
1167
+ });
1168
+ }
1169
+ }
1170
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/threads/{id}/poll");
1171
+ });
1172
+ }
1173
+ /**
1174
+ * @param {Forum.PatchThreadsIdPollRequest} request
1175
+ * @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
1176
+ *
1177
+ * @throws {@link Forum.BadRequestError}
1178
+ * @throws {@link Forum.UnauthorizedError}
1179
+ * @throws {@link Forum.NotFoundError}
1180
+ * @throws {@link Forum.TooManyRequestsError}
1181
+ * @throws {@link Forum.InternalServerError}
1182
+ *
1183
+ * @example
1184
+ * await client.threads.updateThreadPoll({
1185
+ * id: "id"
1186
+ * })
1187
+ */
1188
+ updateThreadPoll(request, requestOptions) {
1189
+ return core.HttpResponsePromise.fromPromise(this.__updateThreadPoll(request, requestOptions));
1190
+ }
1191
+ __updateThreadPoll(request, requestOptions) {
1192
+ return __awaiter(this, void 0, void 0, function* () {
1193
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1194
+ const { id } = request, _body = __rest(request, ["id"]);
1195
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
1196
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
1197
+ const _response = yield core.fetcher({
1198
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.ForumEnvironment.Production, `threads/${core.url.encodePathParam(id)}/poll`),
1199
+ method: "PATCH",
1200
+ headers: _headers,
1201
+ contentType: "application/json",
1202
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1203
+ requestType: "json",
1204
+ body: _body,
1205
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
1206
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
1207
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1208
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
1209
+ logging: this._options.logging,
1210
+ });
1211
+ if (_response.ok) {
1212
+ return { data: _response.body, rawResponse: _response.rawResponse };
1213
+ }
1214
+ if (_response.error.reason === "status-code") {
1215
+ switch (_response.error.statusCode) {
1216
+ case 400:
1217
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
1218
+ case 401:
1219
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
1220
+ case 404:
1221
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
1222
+ case 429:
1223
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
1224
+ case 500:
1225
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
1226
+ default:
1227
+ throw new errors.ForumError({
1228
+ statusCode: _response.error.statusCode,
1229
+ body: _response.error.body,
1230
+ rawResponse: _response.rawResponse,
1231
+ });
1232
+ }
1233
+ }
1234
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/threads/{id}/poll");
1235
+ });
1236
+ }
352
1237
  }