@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
package/README.md CHANGED
@@ -46,7 +46,7 @@ Instantiate and use the client with the following:
46
46
  ```typescript
47
47
  import { ForumClient } from "@foru-ms/sdk";
48
48
 
49
- const client = new ForumClient({ apiKey: "YOUR_API_KEY" });
49
+ const client = new ForumClient({ apiKey: "YOUR_API_KEY", provisioningKey: "YOUR_PROVISIONING_KEY" });
50
50
  await client.auth.register({
51
51
  username: "username",
52
52
  email: "email",
@@ -5,6 +5,8 @@ export type BaseClientOptions = {
5
5
  environment?: core.Supplier<environments.ForumEnvironment | string>;
6
6
  /** Specify a custom URL to connect the client to. */
7
7
  baseUrl?: core.Supplier<string>;
8
+ /** Override the x-provisioning-key header */
9
+ provisioningKey: core.Supplier<string>;
8
10
  /** Additional headers to include in requests. */
9
11
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
12
  /** The default maximum time to wait for a response in seconds. */
@@ -24,6 +26,8 @@ export interface BaseRequestOptions {
24
26
  maxRetries?: number;
25
27
  /** A hook to abort the request. */
26
28
  abortSignal?: AbortSignal;
29
+ /** Override the x-provisioning-key header */
30
+ provisioningKey?: string;
27
31
  /** Additional query string parameters to include in the request. */
28
32
  queryParams?: Record<string, unknown>;
29
33
  /** Additional headers to include in the request. */
@@ -43,10 +43,11 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@foru-ms/sdk",
46
- "X-Fern-SDK-Version": "2.1.2",
47
- "User-Agent": "@foru-ms/sdk/2.1.2",
46
+ "X-Fern-SDK-Version": "2.1.4",
47
+ "User-Agent": "@foru-ms/sdk/2.1.4",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
+ "x-provisioning-key": options === null || options === void 0 ? void 0 : options.provisioningKey,
50
51
  }, options === null || options === void 0 ? void 0 : options.headers);
51
52
  return Object.assign(Object.assign({}, options), { logging: core.logging.createLogger(options === null || options === void 0 ? void 0 : options.logging), headers });
52
53
  }
@@ -3,6 +3,7 @@ import { IntegrationsClient } from "./api/resources/integrations/client/Client.j
3
3
  import { NotificationsClient } from "./api/resources/notifications/client/Client.js";
4
4
  import { PostsClient } from "./api/resources/posts/client/Client.js";
5
5
  import { PrivateMessagesClient } from "./api/resources/privateMessages/client/Client.js";
6
+ import { ProvisioningClient } from "./api/resources/provisioning/client/Client.js";
6
7
  import { ReportsClient } from "./api/resources/reports/client/Client.js";
7
8
  import { RolesClient } from "./api/resources/roles/client/Client.js";
8
9
  import { SearchClient } from "./api/resources/search/client/Client.js";
@@ -33,7 +34,8 @@ export declare class ForumClient {
33
34
  protected _webhooks: WebhooksClient | undefined;
34
35
  protected _integrations: IntegrationsClient | undefined;
35
36
  protected _ssOs: SsOsClient | undefined;
36
- constructor(options?: ForumClient.Options);
37
+ protected _provisioning: ProvisioningClient | undefined;
38
+ constructor(options: ForumClient.Options);
37
39
  get auth(): AuthClient;
38
40
  get search(): SearchClient;
39
41
  get tags(): TagsClient;
@@ -47,4 +49,5 @@ export declare class ForumClient {
47
49
  get webhooks(): WebhooksClient;
48
50
  get integrations(): IntegrationsClient;
49
51
  get ssOs(): SsOsClient;
52
+ get provisioning(): ProvisioningClient;
50
53
  }
@@ -7,17 +7,18 @@ const Client_js_2 = require("./api/resources/integrations/client/Client.js");
7
7
  const Client_js_3 = require("./api/resources/notifications/client/Client.js");
8
8
  const Client_js_4 = require("./api/resources/posts/client/Client.js");
9
9
  const Client_js_5 = require("./api/resources/privateMessages/client/Client.js");
10
- const Client_js_6 = require("./api/resources/reports/client/Client.js");
11
- const Client_js_7 = require("./api/resources/roles/client/Client.js");
12
- const Client_js_8 = require("./api/resources/search/client/Client.js");
13
- const Client_js_9 = require("./api/resources/ssOs/client/Client.js");
14
- const Client_js_10 = require("./api/resources/tags/client/Client.js");
15
- const Client_js_11 = require("./api/resources/threads/client/Client.js");
16
- const Client_js_12 = require("./api/resources/users/client/Client.js");
17
- const Client_js_13 = require("./api/resources/webhooks/client/Client.js");
10
+ const Client_js_6 = require("./api/resources/provisioning/client/Client.js");
11
+ const Client_js_7 = require("./api/resources/reports/client/Client.js");
12
+ const Client_js_8 = require("./api/resources/roles/client/Client.js");
13
+ const Client_js_9 = require("./api/resources/search/client/Client.js");
14
+ const Client_js_10 = require("./api/resources/ssOs/client/Client.js");
15
+ const Client_js_11 = require("./api/resources/tags/client/Client.js");
16
+ const Client_js_12 = require("./api/resources/threads/client/Client.js");
17
+ const Client_js_13 = require("./api/resources/users/client/Client.js");
18
+ const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
18
19
  const BaseClient_js_1 = require("./BaseClient.js");
19
20
  class ForumClient {
20
- constructor(options = {}) {
21
+ constructor(options) {
21
22
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
22
23
  }
23
24
  get auth() {
@@ -26,15 +27,15 @@ class ForumClient {
26
27
  }
27
28
  get search() {
28
29
  var _a;
29
- return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_8.SearchClient(this._options)));
30
+ return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_9.SearchClient(this._options)));
30
31
  }
31
32
  get tags() {
32
33
  var _a;
33
- return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_10.TagsClient(this._options)));
34
+ return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_11.TagsClient(this._options)));
34
35
  }
35
36
  get threads() {
36
37
  var _a;
37
- return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_11.ThreadsClient(this._options)));
38
+ return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_12.ThreadsClient(this._options)));
38
39
  }
39
40
  get posts() {
40
41
  var _a;
@@ -46,15 +47,15 @@ class ForumClient {
46
47
  }
47
48
  get users() {
48
49
  var _a;
49
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_12.UsersClient(this._options)));
50
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_13.UsersClient(this._options)));
50
51
  }
51
52
  get roles() {
52
53
  var _a;
53
- return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_7.RolesClient(this._options)));
54
+ return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_8.RolesClient(this._options)));
54
55
  }
55
56
  get reports() {
56
57
  var _a;
57
- return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new Client_js_6.ReportsClient(this._options)));
58
+ return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new Client_js_7.ReportsClient(this._options)));
58
59
  }
59
60
  get notifications() {
60
61
  var _a;
@@ -62,7 +63,7 @@ class ForumClient {
62
63
  }
63
64
  get webhooks() {
64
65
  var _a;
65
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_13.WebhooksClient(this._options)));
66
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.WebhooksClient(this._options)));
66
67
  }
67
68
  get integrations() {
68
69
  var _a;
@@ -70,7 +71,11 @@ class ForumClient {
70
71
  }
71
72
  get ssOs() {
72
73
  var _a;
73
- return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new Client_js_9.SsOsClient(this._options)));
74
+ return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new Client_js_10.SsOsClient(this._options)));
75
+ }
76
+ get provisioning() {
77
+ var _a;
78
+ return ((_a = this._provisioning) !== null && _a !== void 0 ? _a : (this._provisioning = new Client_js_6.ProvisioningClient(this._options)));
74
79
  }
75
80
  }
76
81
  exports.ForumClient = ForumClient;
@@ -12,7 +12,7 @@ export declare namespace AuthClient {
12
12
  */
13
13
  export declare class AuthClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<AuthClient.Options>;
15
- constructor(options?: AuthClient.Options);
15
+ constructor(options: AuthClient.Options);
16
16
  /**
17
17
  * Register a new user in your forum instance. Requires API key for instance identification. Returns a JWT token for subsequent authenticated requests.
18
18
  *
@@ -55,7 +55,7 @@ const Forum = __importStar(require("../../../index.js"));
55
55
  * Operations for auth
56
56
  */
57
57
  class AuthClient {
58
- constructor(options = {}) {
58
+ constructor(options) {
59
59
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
60
60
  }
61
61
  /**
@@ -82,21 +82,23 @@ class AuthClient {
82
82
  }
83
83
  __register(request, requestOptions) {
84
84
  return __awaiter(this, void 0, void 0, function* () {
85
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
85
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
86
86
  const _authRequest = yield this._options.authProvider.getAuthRequest();
87
- 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);
88
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
89
- 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, "auth/register"),
87
+ 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)({
88
+ "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,
89
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
90
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
91
+ 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, "auth/register"),
90
92
  method: "POST",
91
93
  headers: _headers,
92
94
  contentType: "application/json",
93
95
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
94
96
  requestType: "json",
95
97
  body: request,
96
- 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,
97
- 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,
98
+ 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,
99
+ 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,
98
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
101
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
100
102
  logging: this._options.logging,
101
103
  });
102
104
  if (_response.ok) {
@@ -148,21 +150,23 @@ class AuthClient {
148
150
  }
149
151
  __login(request, requestOptions) {
150
152
  return __awaiter(this, void 0, void 0, function* () {
151
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
153
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
152
154
  const _authRequest = yield this._options.authProvider.getAuthRequest();
153
- 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);
154
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
155
- 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, "auth/login"),
155
+ 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)({
156
+ "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,
157
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
158
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
159
+ 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, "auth/login"),
156
160
  method: "POST",
157
161
  headers: _headers,
158
162
  contentType: "application/json",
159
163
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
160
164
  requestType: "json",
161
165
  body: request,
162
- 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,
163
- 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,
166
+ 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,
167
+ 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,
164
168
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
165
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
169
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
166
170
  logging: this._options.logging,
167
171
  });
168
172
  if (_response.ok) {
@@ -207,18 +211,20 @@ class AuthClient {
207
211
  }
208
212
  __me(requestOptions) {
209
213
  return __awaiter(this, void 0, void 0, function* () {
210
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
214
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
211
215
  const _authRequest = yield this._options.authProvider.getAuthRequest();
212
- 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);
213
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
214
- 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, "auth/me"),
216
+ 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)({
217
+ "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,
218
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
219
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
220
+ 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, "auth/me"),
215
221
  method: "GET",
216
222
  headers: _headers,
217
223
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
218
- 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,
219
- 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,
224
+ 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,
225
+ 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,
220
226
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
221
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
227
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
222
228
  logging: this._options.logging,
223
229
  });
224
230
  if (_response.ok) {
@@ -267,21 +273,23 @@ class AuthClient {
267
273
  }
268
274
  __forgotPassword(request, requestOptions) {
269
275
  return __awaiter(this, void 0, void 0, function* () {
270
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
276
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
271
277
  const _authRequest = yield this._options.authProvider.getAuthRequest();
272
- 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);
273
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
274
- 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, "auth/forgot-password"),
278
+ 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)({
279
+ "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,
280
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
281
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
282
+ 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, "auth/forgot-password"),
275
283
  method: "POST",
276
284
  headers: _headers,
277
285
  contentType: "application/json",
278
286
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
279
287
  requestType: "json",
280
288
  body: request,
281
- 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,
282
- 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,
289
+ 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,
290
+ 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,
283
291
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
284
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
292
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
285
293
  logging: this._options.logging,
286
294
  });
287
295
  if (_response.ok) {
@@ -332,21 +340,23 @@ class AuthClient {
332
340
  }
333
341
  __resetPassword(request, requestOptions) {
334
342
  return __awaiter(this, void 0, void 0, function* () {
335
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
343
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
336
344
  const _authRequest = yield this._options.authProvider.getAuthRequest();
337
- 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);
338
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
339
- 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, "auth/reset-password"),
345
+ 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)({
346
+ "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,
347
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
348
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
349
+ 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, "auth/reset-password"),
340
350
  method: "POST",
341
351
  headers: _headers,
342
352
  contentType: "application/json",
343
353
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
344
354
  requestType: "json",
345
355
  body: request,
346
- 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,
347
- 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,
356
+ 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,
357
+ 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,
348
358
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
349
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
359
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
350
360
  logging: this._options.logging,
351
361
  });
352
362
  if (_response.ok) {
@@ -12,6 +12,9 @@ export * from "./posts/types/index.js";
12
12
  export * from "./privateMessages/client/requests/index.js";
13
13
  export * as privateMessages from "./privateMessages/index.js";
14
14
  export * from "./privateMessages/types/index.js";
15
+ export * from "./provisioning/client/requests/index.js";
16
+ export * as provisioning from "./provisioning/index.js";
17
+ export * from "./provisioning/types/index.js";
15
18
  export * from "./reports/client/requests/index.js";
16
19
  export * as reports from "./reports/index.js";
17
20
  export * from "./reports/types/index.js";
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.privateMessages = exports.posts = exports.notifications = exports.integrations = exports.auth = void 0;
39
+ exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.provisioning = exports.privateMessages = exports.posts = exports.notifications = exports.integrations = exports.auth = void 0;
40
40
  __exportStar(require("./auth/client/requests/index.js"), exports);
41
41
  exports.auth = __importStar(require("./auth/index.js"));
42
42
  __exportStar(require("./integrations/client/requests/index.js"), exports);
@@ -51,6 +51,9 @@ __exportStar(require("./posts/types/index.js"), exports);
51
51
  __exportStar(require("./privateMessages/client/requests/index.js"), exports);
52
52
  exports.privateMessages = __importStar(require("./privateMessages/index.js"));
53
53
  __exportStar(require("./privateMessages/types/index.js"), exports);
54
+ __exportStar(require("./provisioning/client/requests/index.js"), exports);
55
+ exports.provisioning = __importStar(require("./provisioning/index.js"));
56
+ __exportStar(require("./provisioning/types/index.js"), exports);
54
57
  __exportStar(require("./reports/client/requests/index.js"), exports);
55
58
  exports.reports = __importStar(require("./reports/index.js"));
56
59
  __exportStar(require("./reports/types/index.js"), exports);
@@ -12,7 +12,7 @@ export declare namespace IntegrationsClient {
12
12
  */
13
13
  export declare class IntegrationsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<IntegrationsClient.Options>;
15
- constructor(options?: IntegrationsClient.Options);
15
+ constructor(options: IntegrationsClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of integrations. Use cursor for pagination.
18
18
  *
@@ -66,7 +66,7 @@ const Forum = __importStar(require("../../../index.js"));
66
66
  * Operations for integrations
67
67
  */
68
68
  class IntegrationsClient {
69
- constructor(options = {}) {
69
+ constructor(options) {
70
70
  this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
71
71
  }
72
72
  /**
@@ -90,23 +90,25 @@ class IntegrationsClient {
90
90
  }
91
91
  __list() {
92
92
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
93
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
93
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
94
94
  const { limit, cursor } = request;
95
95
  const _queryParams = {
96
96
  limit,
97
97
  cursor,
98
98
  };
99
99
  const _authRequest = yield this._options.authProvider.getAuthRequest();
100
- 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);
101
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
102
- 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, "integrations"),
100
+ 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)({
101
+ "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,
102
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
103
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
104
+ 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, "integrations"),
103
105
  method: "GET",
104
106
  headers: _headers,
105
107
  queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
106
- 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,
107
- 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,
108
+ 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,
109
+ 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,
108
110
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
109
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
111
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
110
112
  logging: this._options.logging,
111
113
  });
112
114
  if (_response.ok) {
@@ -161,21 +163,23 @@ class IntegrationsClient {
161
163
  }
162
164
  __create(request, requestOptions) {
163
165
  return __awaiter(this, void 0, void 0, function* () {
164
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
166
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
165
167
  const _authRequest = yield this._options.authProvider.getAuthRequest();
166
- 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);
167
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
168
- 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, "integrations"),
168
+ 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)({
169
+ "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,
170
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
171
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
172
+ 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, "integrations"),
169
173
  method: "POST",
170
174
  headers: _headers,
171
175
  contentType: "application/json",
172
176
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
173
177
  requestType: "json",
174
178
  body: request,
175
- 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,
176
- 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,
179
+ 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,
180
+ 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,
177
181
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
178
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
182
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
179
183
  logging: this._options.logging,
180
184
  });
181
185
  if (_response.ok) {
@@ -228,19 +232,21 @@ class IntegrationsClient {
228
232
  }
229
233
  __retrieve(request, requestOptions) {
230
234
  return __awaiter(this, void 0, void 0, function* () {
231
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
235
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
232
236
  const { id } = request;
233
237
  const _authRequest = yield this._options.authProvider.getAuthRequest();
234
- 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);
235
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
236
- 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, `integrations/${core.url.encodePathParam(id)}`),
238
+ 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)({
239
+ "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,
240
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
241
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
242
+ 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, `integrations/${core.url.encodePathParam(id)}`),
237
243
  method: "GET",
238
244
  headers: _headers,
239
245
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
240
- 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,
241
- 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,
246
+ 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,
247
+ 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,
242
248
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
243
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
249
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
244
250
  logging: this._options.logging,
245
251
  });
246
252
  if (_response.ok) {
@@ -293,19 +299,21 @@ class IntegrationsClient {
293
299
  }
294
300
  __delete(request, requestOptions) {
295
301
  return __awaiter(this, void 0, void 0, function* () {
296
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
302
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
297
303
  const { id } = request;
298
304
  const _authRequest = yield this._options.authProvider.getAuthRequest();
299
- 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);
300
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
301
- 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, `integrations/${core.url.encodePathParam(id)}`),
305
+ 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)({
306
+ "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,
307
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
308
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
309
+ 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, `integrations/${core.url.encodePathParam(id)}`),
302
310
  method: "DELETE",
303
311
  headers: _headers,
304
312
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
305
- 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,
306
- 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,
313
+ 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,
314
+ 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,
307
315
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
308
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
316
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
309
317
  logging: this._options.logging,
310
318
  });
311
319
  if (_response.ok) {
@@ -359,22 +367,24 @@ class IntegrationsClient {
359
367
  }
360
368
  __update(request, requestOptions) {
361
369
  return __awaiter(this, void 0, void 0, function* () {
362
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
370
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
363
371
  const { id } = request, _body = __rest(request, ["id"]);
364
372
  const _authRequest = yield this._options.authProvider.getAuthRequest();
365
- 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);
366
- const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
367
- 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, `integrations/${core.url.encodePathParam(id)}`),
373
+ 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)({
374
+ "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,
375
+ }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
376
+ const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
377
+ 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, `integrations/${core.url.encodePathParam(id)}`),
368
378
  method: "PATCH",
369
379
  headers: _headers,
370
380
  contentType: "application/json",
371
381
  queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
372
382
  requestType: "json",
373
383
  body: _body,
374
- 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,
375
- 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,
384
+ 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,
385
+ 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,
376
386
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
377
- fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
387
+ fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
378
388
  logging: this._options.logging,
379
389
  });
380
390
  if (_response.ok) {
@@ -12,7 +12,7 @@ export declare namespace NotificationsClient {
12
12
  */
13
13
  export declare class NotificationsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<NotificationsClient.Options>;
15
- constructor(options?: NotificationsClient.Options);
15
+ constructor(options: NotificationsClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of notifications. Use cursor for pagination.
18
18
  *