@foru-ms/sdk 2.1.2 → 2.1.4

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 (289) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/BaseClient.d.ts +4 -0
  3. package/dist/cjs/BaseClient.js +3 -2
  4. package/dist/cjs/Client.d.ts +4 -1
  5. package/dist/cjs/Client.js +22 -17
  6. package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
  7. package/dist/cjs/api/resources/auth/client/Client.js +46 -36
  8. package/dist/cjs/api/resources/index.d.ts +3 -0
  9. package/dist/cjs/api/resources/index.js +4 -1
  10. package/dist/cjs/api/resources/integrations/client/Client.d.ts +1 -1
  11. package/dist/cjs/api/resources/integrations/client/Client.js +46 -36
  12. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  13. package/dist/cjs/api/resources/notifications/client/Client.js +46 -36
  14. package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/posts/client/Client.js +109 -85
  16. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +1 -1
  17. package/dist/cjs/api/resources/privateMessages/client/Client.js +82 -64
  18. package/dist/cjs/api/resources/provisioning/client/Client.d.ts +359 -0
  19. package/dist/cjs/api/resources/provisioning/client/Client.js +1291 -0
  20. package/dist/cjs/api/resources/provisioning/client/index.d.ts +1 -0
  21. package/dist/cjs/api/resources/provisioning/client/index.js +17 -0
  22. package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.ts +13 -0
  23. package/dist/cjs/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.js +3 -0
  24. package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.d.ts +13 -0
  25. package/dist/cjs/api/resources/provisioning/client/requests/CreateInstance.js +3 -0
  26. package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.ts +15 -0
  27. package/dist/cjs/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.js +3 -0
  28. package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.d.ts +10 -0
  29. package/dist/cjs/api/resources/provisioning/client/requests/DeleteInstance.js +3 -0
  30. package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.ts +11 -0
  31. package/dist/cjs/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.js +3 -0
  32. package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.ts +9 -0
  33. package/dist/cjs/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.js +3 -0
  34. package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.ts +10 -0
  35. package/dist/cjs/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.js +3 -0
  36. package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.ts +10 -0
  37. package/dist/cjs/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.js +3 -0
  38. package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.ts +29 -0
  39. package/dist/cjs/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.js +17 -0
  40. package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.ts +10 -0
  41. package/dist/cjs/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.js +3 -0
  42. package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.d.ts +8 -0
  43. package/dist/cjs/api/resources/provisioning/client/requests/ListProvisioningRequest.js +3 -0
  44. package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.ts +10 -0
  45. package/dist/cjs/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.js +3 -0
  46. package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.ts +10 -0
  47. package/dist/cjs/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.js +3 -0
  48. package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.ts +9 -0
  49. package/dist/cjs/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.js +3 -0
  50. package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.ts +11 -0
  51. package/dist/cjs/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.js +3 -0
  52. package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.ts +11 -0
  53. package/dist/cjs/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.js +3 -0
  54. package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.d.ts +14 -0
  55. package/dist/cjs/api/resources/provisioning/client/requests/UpdateInstance.js +3 -0
  56. package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.ts +15 -0
  57. package/dist/cjs/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.js +3 -0
  58. package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.d.ts +26 -0
  59. package/dist/cjs/api/resources/provisioning/client/requests/UpgradeInstance.js +13 -0
  60. package/dist/cjs/api/resources/provisioning/client/requests/index.d.ts +19 -0
  61. package/dist/cjs/api/resources/provisioning/client/requests/index.js +7 -0
  62. package/dist/cjs/api/resources/provisioning/index.d.ts +2 -0
  63. package/dist/cjs/api/resources/provisioning/index.js +18 -0
  64. package/dist/cjs/api/resources/provisioning/types/AddDomainProvisioningResponse.d.ts +4 -0
  65. package/dist/cjs/api/resources/provisioning/types/AddDomainProvisioningResponse.js +3 -0
  66. package/dist/cjs/api/resources/provisioning/types/ChangePlanProvisioningResponse.d.ts +19 -0
  67. package/dist/cjs/api/resources/provisioning/types/ChangePlanProvisioningResponse.js +14 -0
  68. package/dist/cjs/api/resources/provisioning/types/CreateProvisioningResponse.d.ts +4 -0
  69. package/dist/cjs/api/resources/provisioning/types/CreateProvisioningResponse.js +3 -0
  70. package/dist/cjs/api/resources/provisioning/types/CreateWebhookProvisioningResponse.d.ts +4 -0
  71. package/dist/cjs/api/resources/provisioning/types/CreateWebhookProvisioningResponse.js +3 -0
  72. package/dist/cjs/api/resources/provisioning/types/DeleteProvisioningResponse.d.ts +8 -0
  73. package/dist/cjs/api/resources/provisioning/types/DeleteProvisioningResponse.js +3 -0
  74. package/dist/cjs/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.d.ts +8 -0
  75. package/dist/cjs/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.js +3 -0
  76. package/dist/cjs/api/resources/provisioning/types/ExportDataProvisioningResponse.d.ts +17 -0
  77. package/dist/cjs/api/resources/provisioning/types/ExportDataProvisioningResponse.js +3 -0
  78. package/dist/cjs/api/resources/provisioning/types/GetBillingProvisioningResponse.d.ts +4 -0
  79. package/dist/cjs/api/resources/provisioning/types/GetBillingProvisioningResponse.js +3 -0
  80. package/dist/cjs/api/resources/provisioning/types/GetUsageProvisioningResponse.d.ts +4 -0
  81. package/dist/cjs/api/resources/provisioning/types/GetUsageProvisioningResponse.js +3 -0
  82. package/dist/cjs/api/resources/provisioning/types/InviteTeamProvisioningResponse.d.ts +8 -0
  83. package/dist/cjs/api/resources/provisioning/types/InviteTeamProvisioningResponse.js +3 -0
  84. package/dist/cjs/api/resources/provisioning/types/ListDomainsProvisioningResponse.d.ts +10 -0
  85. package/dist/cjs/api/resources/provisioning/types/ListDomainsProvisioningResponse.js +3 -0
  86. package/dist/cjs/api/resources/provisioning/types/ListProvisioningResponse.d.ts +4 -0
  87. package/dist/cjs/api/resources/provisioning/types/ListProvisioningResponse.js +3 -0
  88. package/dist/cjs/api/resources/provisioning/types/ListTeamProvisioningResponse.d.ts +10 -0
  89. package/dist/cjs/api/resources/provisioning/types/ListTeamProvisioningResponse.js +3 -0
  90. package/dist/cjs/api/resources/provisioning/types/ListWebhooksProvisioningResponse.d.ts +10 -0
  91. package/dist/cjs/api/resources/provisioning/types/ListWebhooksProvisioningResponse.js +3 -0
  92. package/dist/cjs/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.d.ts +9 -0
  93. package/dist/cjs/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.js +3 -0
  94. package/dist/cjs/api/resources/provisioning/types/RemoveDomainProvisioningResponse.d.ts +8 -0
  95. package/dist/cjs/api/resources/provisioning/types/RemoveDomainProvisioningResponse.js +3 -0
  96. package/dist/cjs/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.d.ts +8 -0
  97. package/dist/cjs/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.js +3 -0
  98. package/dist/cjs/api/resources/provisioning/types/UpdateProvisioningResponse.d.ts +9 -0
  99. package/dist/cjs/api/resources/provisioning/types/UpdateProvisioningResponse.js +3 -0
  100. package/dist/cjs/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.d.ts +4 -0
  101. package/dist/cjs/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.js +3 -0
  102. package/dist/cjs/api/resources/provisioning/types/index.d.ts +19 -0
  103. package/dist/cjs/api/resources/provisioning/types/index.js +35 -0
  104. package/dist/cjs/api/resources/reports/client/Client.d.ts +1 -1
  105. package/dist/cjs/api/resources/reports/client/Client.js +46 -36
  106. package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
  107. package/dist/cjs/api/resources/roles/client/Client.js +46 -36
  108. package/dist/cjs/api/resources/search/client/Client.d.ts +1 -1
  109. package/dist/cjs/api/resources/search/client/Client.js +10 -8
  110. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
  111. package/dist/cjs/api/resources/ssOs/client/Client.js +46 -36
  112. package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
  113. package/dist/cjs/api/resources/tags/client/Client.js +73 -57
  114. package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
  115. package/dist/cjs/api/resources/threads/client/Client.js +163 -127
  116. package/dist/cjs/api/resources/users/client/Client.d.ts +1 -1
  117. package/dist/cjs/api/resources/users/client/Client.js +100 -78
  118. package/dist/cjs/api/resources/users/types/UpdateUsersResponse.d.ts +3 -1
  119. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +1 -1
  120. package/dist/cjs/api/resources/webhooks/client/Client.js +73 -57
  121. package/dist/cjs/api/types/BillingInfo.d.ts +17 -0
  122. package/dist/cjs/api/types/BillingInfo.js +13 -0
  123. package/dist/cjs/api/types/Instance.d.ts +7 -0
  124. package/dist/cjs/api/types/Instance.js +3 -0
  125. package/dist/cjs/api/types/InstanceDomain.d.ts +6 -0
  126. package/dist/cjs/api/types/InstanceDomain.js +3 -0
  127. package/dist/cjs/api/types/InstanceList.d.ts +14 -0
  128. package/dist/cjs/api/types/InstanceList.js +3 -0
  129. package/dist/cjs/api/types/InstanceWebhook.d.ts +8 -0
  130. package/dist/cjs/api/types/InstanceWebhook.js +3 -0
  131. package/dist/cjs/api/types/LoginResponse.d.ts +35 -1
  132. package/dist/cjs/api/types/MeResponse.d.ts +15 -1
  133. package/dist/cjs/api/types/RegisterResponse.d.ts +35 -1
  134. package/dist/cjs/api/types/TeamMember.d.ts +21 -0
  135. package/dist/cjs/api/types/TeamMember.js +16 -0
  136. package/dist/cjs/api/types/UsageStats.d.ts +10 -0
  137. package/dist/cjs/api/types/UsageStats.js +3 -0
  138. package/dist/cjs/api/types/User.d.ts +2 -0
  139. package/dist/cjs/api/types/UserListResponse.d.ts +2 -0
  140. package/dist/cjs/api/types/UserResponse.d.ts +3 -1
  141. package/dist/cjs/api/types/index.d.ts +7 -0
  142. package/dist/cjs/api/types/index.js +7 -0
  143. package/dist/cjs/version.d.ts +1 -1
  144. package/dist/cjs/version.js +1 -1
  145. package/dist/esm/BaseClient.d.mts +4 -0
  146. package/dist/esm/BaseClient.mjs +3 -2
  147. package/dist/esm/Client.d.mts +4 -1
  148. package/dist/esm/Client.mjs +6 -1
  149. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
  150. package/dist/esm/api/resources/auth/client/Client.mjs +47 -37
  151. package/dist/esm/api/resources/index.d.mts +3 -0
  152. package/dist/esm/api/resources/index.mjs +3 -0
  153. package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
  154. package/dist/esm/api/resources/integrations/client/Client.mjs +47 -37
  155. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  156. package/dist/esm/api/resources/notifications/client/Client.mjs +47 -37
  157. package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
  158. package/dist/esm/api/resources/posts/client/Client.mjs +110 -86
  159. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +1 -1
  160. package/dist/esm/api/resources/privateMessages/client/Client.mjs +83 -65
  161. package/dist/esm/api/resources/provisioning/client/Client.d.mts +359 -0
  162. package/dist/esm/api/resources/provisioning/client/Client.mjs +1254 -0
  163. package/dist/esm/api/resources/provisioning/client/index.d.mts +1 -0
  164. package/dist/esm/api/resources/provisioning/client/index.mjs +1 -0
  165. package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.d.mts +13 -0
  166. package/dist/esm/api/resources/provisioning/client/requests/AddDomainProvisioningRequest.mjs +2 -0
  167. package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.d.mts +13 -0
  168. package/dist/esm/api/resources/provisioning/client/requests/CreateInstance.mjs +2 -0
  169. package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.d.mts +15 -0
  170. package/dist/esm/api/resources/provisioning/client/requests/CreateWebhookProvisioningRequest.mjs +2 -0
  171. package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.d.mts +10 -0
  172. package/dist/esm/api/resources/provisioning/client/requests/DeleteInstance.mjs +2 -0
  173. package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.d.mts +11 -0
  174. package/dist/esm/api/resources/provisioning/client/requests/DeleteWebhookProvisioningRequest.mjs +2 -0
  175. package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.d.mts +9 -0
  176. package/dist/esm/api/resources/provisioning/client/requests/ExportDataProvisioningRequest.mjs +2 -0
  177. package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.d.mts +10 -0
  178. package/dist/esm/api/resources/provisioning/client/requests/GetBillingProvisioningRequest.mjs +2 -0
  179. package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.d.mts +10 -0
  180. package/dist/esm/api/resources/provisioning/client/requests/GetUsageProvisioningRequest.mjs +2 -0
  181. package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.d.mts +29 -0
  182. package/dist/esm/api/resources/provisioning/client/requests/InviteTeamProvisioningRequest.mjs +14 -0
  183. package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.d.mts +10 -0
  184. package/dist/esm/api/resources/provisioning/client/requests/ListDomainsProvisioningRequest.mjs +2 -0
  185. package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.d.mts +8 -0
  186. package/dist/esm/api/resources/provisioning/client/requests/ListProvisioningRequest.mjs +2 -0
  187. package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.d.mts +10 -0
  188. package/dist/esm/api/resources/provisioning/client/requests/ListTeamProvisioningRequest.mjs +2 -0
  189. package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.d.mts +10 -0
  190. package/dist/esm/api/resources/provisioning/client/requests/ListWebhooksProvisioningRequest.mjs +2 -0
  191. package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.d.mts +9 -0
  192. package/dist/esm/api/resources/provisioning/client/requests/RegenerateApiKeyProvisioningRequest.mjs +2 -0
  193. package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.d.mts +11 -0
  194. package/dist/esm/api/resources/provisioning/client/requests/RemoveDomainProvisioningRequest.mjs +2 -0
  195. package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.d.mts +11 -0
  196. package/dist/esm/api/resources/provisioning/client/requests/RemoveTeamMemberProvisioningRequest.mjs +2 -0
  197. package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.d.mts +14 -0
  198. package/dist/esm/api/resources/provisioning/client/requests/UpdateInstance.mjs +2 -0
  199. package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.d.mts +15 -0
  200. package/dist/esm/api/resources/provisioning/client/requests/UpdateWebhookProvisioningRequest.mjs +2 -0
  201. package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.d.mts +26 -0
  202. package/dist/esm/api/resources/provisioning/client/requests/UpgradeInstance.mjs +10 -0
  203. package/dist/esm/api/resources/provisioning/client/requests/index.d.mts +19 -0
  204. package/dist/esm/api/resources/provisioning/client/requests/index.mjs +2 -0
  205. package/dist/esm/api/resources/provisioning/index.d.mts +2 -0
  206. package/dist/esm/api/resources/provisioning/index.mjs +2 -0
  207. package/dist/esm/api/resources/provisioning/types/AddDomainProvisioningResponse.d.mts +4 -0
  208. package/dist/esm/api/resources/provisioning/types/AddDomainProvisioningResponse.mjs +2 -0
  209. package/dist/esm/api/resources/provisioning/types/ChangePlanProvisioningResponse.d.mts +19 -0
  210. package/dist/esm/api/resources/provisioning/types/ChangePlanProvisioningResponse.mjs +11 -0
  211. package/dist/esm/api/resources/provisioning/types/CreateProvisioningResponse.d.mts +4 -0
  212. package/dist/esm/api/resources/provisioning/types/CreateProvisioningResponse.mjs +2 -0
  213. package/dist/esm/api/resources/provisioning/types/CreateWebhookProvisioningResponse.d.mts +4 -0
  214. package/dist/esm/api/resources/provisioning/types/CreateWebhookProvisioningResponse.mjs +2 -0
  215. package/dist/esm/api/resources/provisioning/types/DeleteProvisioningResponse.d.mts +8 -0
  216. package/dist/esm/api/resources/provisioning/types/DeleteProvisioningResponse.mjs +2 -0
  217. package/dist/esm/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.d.mts +8 -0
  218. package/dist/esm/api/resources/provisioning/types/DeleteWebhookProvisioningResponse.mjs +2 -0
  219. package/dist/esm/api/resources/provisioning/types/ExportDataProvisioningResponse.d.mts +17 -0
  220. package/dist/esm/api/resources/provisioning/types/ExportDataProvisioningResponse.mjs +2 -0
  221. package/dist/esm/api/resources/provisioning/types/GetBillingProvisioningResponse.d.mts +4 -0
  222. package/dist/esm/api/resources/provisioning/types/GetBillingProvisioningResponse.mjs +2 -0
  223. package/dist/esm/api/resources/provisioning/types/GetUsageProvisioningResponse.d.mts +4 -0
  224. package/dist/esm/api/resources/provisioning/types/GetUsageProvisioningResponse.mjs +2 -0
  225. package/dist/esm/api/resources/provisioning/types/InviteTeamProvisioningResponse.d.mts +8 -0
  226. package/dist/esm/api/resources/provisioning/types/InviteTeamProvisioningResponse.mjs +2 -0
  227. package/dist/esm/api/resources/provisioning/types/ListDomainsProvisioningResponse.d.mts +10 -0
  228. package/dist/esm/api/resources/provisioning/types/ListDomainsProvisioningResponse.mjs +2 -0
  229. package/dist/esm/api/resources/provisioning/types/ListProvisioningResponse.d.mts +4 -0
  230. package/dist/esm/api/resources/provisioning/types/ListProvisioningResponse.mjs +2 -0
  231. package/dist/esm/api/resources/provisioning/types/ListTeamProvisioningResponse.d.mts +10 -0
  232. package/dist/esm/api/resources/provisioning/types/ListTeamProvisioningResponse.mjs +2 -0
  233. package/dist/esm/api/resources/provisioning/types/ListWebhooksProvisioningResponse.d.mts +10 -0
  234. package/dist/esm/api/resources/provisioning/types/ListWebhooksProvisioningResponse.mjs +2 -0
  235. package/dist/esm/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.d.mts +9 -0
  236. package/dist/esm/api/resources/provisioning/types/RegenerateApiKeyProvisioningResponse.mjs +2 -0
  237. package/dist/esm/api/resources/provisioning/types/RemoveDomainProvisioningResponse.d.mts +8 -0
  238. package/dist/esm/api/resources/provisioning/types/RemoveDomainProvisioningResponse.mjs +2 -0
  239. package/dist/esm/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.d.mts +8 -0
  240. package/dist/esm/api/resources/provisioning/types/RemoveTeamMemberProvisioningResponse.mjs +2 -0
  241. package/dist/esm/api/resources/provisioning/types/UpdateProvisioningResponse.d.mts +9 -0
  242. package/dist/esm/api/resources/provisioning/types/UpdateProvisioningResponse.mjs +2 -0
  243. package/dist/esm/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.d.mts +4 -0
  244. package/dist/esm/api/resources/provisioning/types/UpdateWebhookProvisioningResponse.mjs +2 -0
  245. package/dist/esm/api/resources/provisioning/types/index.d.mts +19 -0
  246. package/dist/esm/api/resources/provisioning/types/index.mjs +19 -0
  247. package/dist/esm/api/resources/reports/client/Client.d.mts +1 -1
  248. package/dist/esm/api/resources/reports/client/Client.mjs +47 -37
  249. package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
  250. package/dist/esm/api/resources/roles/client/Client.mjs +47 -37
  251. package/dist/esm/api/resources/search/client/Client.d.mts +1 -1
  252. package/dist/esm/api/resources/search/client/Client.mjs +11 -9
  253. package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
  254. package/dist/esm/api/resources/ssOs/client/Client.mjs +47 -37
  255. package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
  256. package/dist/esm/api/resources/tags/client/Client.mjs +74 -58
  257. package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
  258. package/dist/esm/api/resources/threads/client/Client.mjs +164 -128
  259. package/dist/esm/api/resources/users/client/Client.d.mts +1 -1
  260. package/dist/esm/api/resources/users/client/Client.mjs +101 -79
  261. package/dist/esm/api/resources/users/types/UpdateUsersResponse.d.mts +3 -1
  262. package/dist/esm/api/resources/webhooks/client/Client.d.mts +1 -1
  263. package/dist/esm/api/resources/webhooks/client/Client.mjs +74 -58
  264. package/dist/esm/api/types/BillingInfo.d.mts +17 -0
  265. package/dist/esm/api/types/BillingInfo.mjs +10 -0
  266. package/dist/esm/api/types/Instance.d.mts +7 -0
  267. package/dist/esm/api/types/Instance.mjs +2 -0
  268. package/dist/esm/api/types/InstanceDomain.d.mts +6 -0
  269. package/dist/esm/api/types/InstanceDomain.mjs +2 -0
  270. package/dist/esm/api/types/InstanceList.d.mts +14 -0
  271. package/dist/esm/api/types/InstanceList.mjs +2 -0
  272. package/dist/esm/api/types/InstanceWebhook.d.mts +8 -0
  273. package/dist/esm/api/types/InstanceWebhook.mjs +2 -0
  274. package/dist/esm/api/types/LoginResponse.d.mts +35 -1
  275. package/dist/esm/api/types/MeResponse.d.mts +15 -1
  276. package/dist/esm/api/types/RegisterResponse.d.mts +35 -1
  277. package/dist/esm/api/types/TeamMember.d.mts +21 -0
  278. package/dist/esm/api/types/TeamMember.mjs +13 -0
  279. package/dist/esm/api/types/UsageStats.d.mts +10 -0
  280. package/dist/esm/api/types/UsageStats.mjs +2 -0
  281. package/dist/esm/api/types/User.d.mts +2 -0
  282. package/dist/esm/api/types/UserListResponse.d.mts +2 -0
  283. package/dist/esm/api/types/UserResponse.d.mts +3 -1
  284. package/dist/esm/api/types/index.d.mts +7 -0
  285. package/dist/esm/api/types/index.mjs +7 -0
  286. package/dist/esm/version.d.mts +1 -1
  287. package/dist/esm/version.mjs +1 -1
  288. package/package.json +1 -1
  289. package/reference.md +1246 -0
@@ -66,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
66
66
  * Operations for posts
67
67
  */
68
68
  class PostsClient {
69
- constructor(options = {}) {
69
+ constructor(options) {
70
70
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
71
71
  }
72
72
  /**
@@ -88,7 +88,7 @@ class PostsClient {
88
88
  }
89
89
  __list() {
90
90
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
91
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
91
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
92
92
  const { limit, cursor, userId, sort, search, type: type_ } = request;
93
93
  const _queryParams = {
94
94
  limit,
@@ -99,16 +99,18 @@ class PostsClient {
99
99
  type: type_ != null ? type_ : undefined,
100
100
  };
101
101
  const _authRequest = yield this._options.authProvider.getAuthRequest();
102
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
104
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, "posts"),
102
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
103
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
104
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
105
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
106
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "posts"),
105
107
  method: "GET",
106
108
  headers: _headers,
107
109
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
108
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
109
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
110
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
111
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
110
112
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
111
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
113
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
112
114
  logging: this._options.logging,
113
115
  });
114
116
  if (_response.ok) {
@@ -158,21 +160,23 @@ class PostsClient {
158
160
  }
159
161
  __create(request, requestOptions) {
160
162
  return __awaiter(this, void 0, void 0, function* () {
161
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
163
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
162
164
  const _authRequest = yield this._options.authProvider.getAuthRequest();
163
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
164
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
165
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, "posts"),
165
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
166
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
167
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
168
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
169
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, "posts"),
166
170
  method: "POST",
167
171
  headers: _headers,
168
172
  contentType: "application/json",
169
173
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
170
174
  requestType: "json",
171
175
  body: request,
172
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
173
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
176
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
177
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
174
178
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
175
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
179
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
176
180
  logging: this._options.logging,
177
181
  });
178
182
  if (_response.ok) {
@@ -223,19 +227,21 @@ class PostsClient {
223
227
  }
224
228
  __retrieve(request, requestOptions) {
225
229
  return __awaiter(this, void 0, void 0, function* () {
226
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
230
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
227
231
  const { id } = request;
228
232
  const _authRequest = yield this._options.authProvider.getAuthRequest();
229
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
230
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
231
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
233
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
234
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
235
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
236
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
237
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
232
238
  method: "GET",
233
239
  headers: _headers,
234
240
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
235
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
236
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
241
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
242
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
237
243
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
238
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
244
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
239
245
  logging: this._options.logging,
240
246
  });
241
247
  if (_response.ok) {
@@ -286,19 +292,21 @@ class PostsClient {
286
292
  }
287
293
  __delete(request, requestOptions) {
288
294
  return __awaiter(this, void 0, void 0, function* () {
289
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
295
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
290
296
  const { id } = request;
291
297
  const _authRequest = yield this._options.authProvider.getAuthRequest();
292
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
293
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
294
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
298
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
299
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
300
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
301
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
302
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
295
303
  method: "DELETE",
296
304
  headers: _headers,
297
305
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
298
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
299
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
306
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
307
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
300
308
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
301
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
309
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
302
310
  logging: this._options.logging,
303
311
  });
304
312
  if (_response.ok) {
@@ -350,22 +358,24 @@ class PostsClient {
350
358
  }
351
359
  __update(request, requestOptions) {
352
360
  return __awaiter(this, void 0, void 0, function* () {
353
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
361
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
354
362
  const { id } = request, _body = __rest(request, ["id"]);
355
363
  const _authRequest = yield this._options.authProvider.getAuthRequest();
356
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
357
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
358
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
364
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
365
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
366
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
367
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
368
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}`),
359
369
  method: "PATCH",
360
370
  headers: _headers,
361
371
  contentType: "application/json",
362
372
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
363
373
  requestType: "json",
364
374
  body: _body,
365
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
366
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
375
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
376
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
367
377
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
368
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
378
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
369
379
  logging: this._options.logging,
370
380
  });
371
381
  if (_response.ok) {
@@ -417,7 +427,7 @@ class PostsClient {
417
427
  }
418
428
  __listReactions(request, requestOptions) {
419
429
  return __awaiter(this, void 0, void 0, function* () {
420
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
430
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
421
431
  const { id, limit, cursor, type: type_ } = request;
422
432
  const _queryParams = {
423
433
  limit,
@@ -425,16 +435,18 @@ class PostsClient {
425
435
  type: type_ != null ? type_ : undefined,
426
436
  };
427
437
  const _authRequest = yield this._options.authProvider.getAuthRequest();
428
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
429
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
430
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions`),
438
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
439
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
440
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
441
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
442
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions`),
431
443
  method: "GET",
432
444
  headers: _headers,
433
445
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
434
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
435
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
446
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
447
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
436
448
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
437
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
449
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
438
450
  logging: this._options.logging,
439
451
  });
440
452
  if (_response.ok) {
@@ -484,22 +496,24 @@ class PostsClient {
484
496
  }
485
497
  __createReaction(request, requestOptions) {
486
498
  return __awaiter(this, void 0, void 0, function* () {
487
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
499
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
488
500
  const { id } = request, _body = __rest(request, ["id"]);
489
501
  const _authRequest = yield this._options.authProvider.getAuthRequest();
490
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
491
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
492
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions`),
502
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
503
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
504
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
505
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
506
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions`),
493
507
  method: "POST",
494
508
  headers: _headers,
495
509
  contentType: "application/json",
496
510
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
497
511
  requestType: "json",
498
512
  body: _body,
499
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
500
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
513
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
514
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
501
515
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
502
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
516
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
503
517
  logging: this._options.logging,
504
518
  });
505
519
  if (_response.ok) {
@@ -548,19 +562,21 @@ class PostsClient {
548
562
  }
549
563
  __deleteReaction(request, requestOptions) {
550
564
  return __awaiter(this, void 0, void 0, function* () {
551
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
565
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
552
566
  const { id, subId } = request;
553
567
  const _authRequest = yield this._options.authProvider.getAuthRequest();
554
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
555
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
556
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
568
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
569
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
570
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
571
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
572
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
557
573
  method: "DELETE",
558
574
  headers: _headers,
559
575
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
560
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
561
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
576
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
577
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
562
578
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
563
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
579
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
564
580
  logging: this._options.logging,
565
581
  });
566
582
  if (_response.ok) {
@@ -607,19 +623,21 @@ class PostsClient {
607
623
  }
608
624
  __retrieveReaction(request, requestOptions) {
609
625
  return __awaiter(this, void 0, void 0, function* () {
610
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
626
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
611
627
  const { id, subId } = request;
612
628
  const _authRequest = yield this._options.authProvider.getAuthRequest();
613
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
614
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
615
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
629
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
630
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
631
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
632
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
633
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
616
634
  method: "GET",
617
635
  headers: _headers,
618
636
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
619
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
620
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
637
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
638
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
621
639
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
622
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
640
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
623
641
  logging: this._options.logging,
624
642
  });
625
643
  if (_response.ok) {
@@ -667,7 +685,7 @@ class PostsClient {
667
685
  }
668
686
  __listPosts(request, requestOptions) {
669
687
  return __awaiter(this, void 0, void 0, function* () {
670
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
688
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
671
689
  const { id, limit, cursor, userId, sort, search, type: type_ } = request;
672
690
  const _queryParams = {
673
691
  limit,
@@ -678,16 +696,18 @@ class PostsClient {
678
696
  type: type_ != null ? type_ : undefined,
679
697
  };
680
698
  const _authRequest = yield this._options.authProvider.getAuthRequest();
681
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
682
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
683
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts`),
699
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
700
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
701
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
702
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
703
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts`),
684
704
  method: "GET",
685
705
  headers: _headers,
686
706
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
687
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
688
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
707
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
708
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
689
709
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
690
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
710
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
691
711
  logging: this._options.logging,
692
712
  });
693
713
  if (_response.ok) {
@@ -734,19 +754,21 @@ class PostsClient {
734
754
  }
735
755
  __retrievePost(request, requestOptions) {
736
756
  return __awaiter(this, void 0, void 0, function* () {
737
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
757
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
738
758
  const { id, subId } = request;
739
759
  const _authRequest = yield this._options.authProvider.getAuthRequest();
740
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
741
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
742
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
760
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
761
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
762
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
763
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
764
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
743
765
  method: "GET",
744
766
  headers: _headers,
745
767
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
746
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
747
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
768
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
769
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
748
770
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
749
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
771
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
750
772
  logging: this._options.logging,
751
773
  });
752
774
  if (_response.ok) {
@@ -793,19 +815,21 @@ class PostsClient {
793
815
  }
794
816
  __deletePost(request, requestOptions) {
795
817
  return __awaiter(this, void 0, void 0, function* () {
796
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
818
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
797
819
  const { id, subId } = request;
798
820
  const _authRequest = yield this._options.authProvider.getAuthRequest();
799
- const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
800
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
801
- url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
821
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({
822
+ "x-provisioning-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.provisioningKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.provisioningKey,
823
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
824
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
825
+ url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/posts/${core.url.encodePathParam(subId)}`),
802
826
  method: "DELETE",
803
827
  headers: _headers,
804
828
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
805
- timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
806
- maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
829
+ timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
830
+ maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
807
831
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
808
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
832
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
809
833
  logging: this._options.logging,
810
834
  });
811
835
  if (_response.ok) {
@@ -12,7 +12,7 @@ export declare namespace PrivateMessagesClient {
12
12
  */
13
13
  export declare class PrivateMessagesClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<PrivateMessagesClient.Options>;
15
- constructor(options?: PrivateMessagesClient.Options);
15
+ constructor(options: PrivateMessagesClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of private messages. Use cursor for pagination.
18
18
  *