@foru-ms/sdk 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (294) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +4 -1
  3. package/dist/cjs/Client.js +16 -11
  4. package/dist/cjs/api/resources/auth/client/Client.d.ts +1 -1
  5. package/dist/cjs/api/resources/auth/client/Client.js +1 -1
  6. package/dist/cjs/api/resources/index.d.ts +3 -0
  7. package/dist/cjs/api/resources/index.js +4 -1
  8. package/dist/cjs/api/resources/integrations/client/Client.d.ts +2 -1
  9. package/dist/cjs/api/resources/integrations/client/Client.js +7 -9
  10. package/dist/cjs/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.ts +8 -2
  11. package/dist/cjs/api/resources/integrations/client/requests/ListIntegrationsRequest.d.ts +2 -2
  12. package/dist/cjs/api/resources/integrations/client/requests/UpdateIntegrationsRequest.d.ts +2 -0
  13. package/dist/cjs/api/resources/integrations/types/UpdateIntegrationsResponse.d.ts +2 -0
  14. package/dist/cjs/api/resources/notifications/client/Client.d.ts +1 -1
  15. package/dist/cjs/api/resources/notifications/client/Client.js +7 -14
  16. package/dist/cjs/api/resources/notifications/client/requests/index.d.ts +2 -2
  17. package/dist/cjs/api/resources/notifications/client/requests/index.js +5 -0
  18. package/dist/cjs/api/resources/posts/client/Client.d.ts +1 -1
  19. package/dist/cjs/api/resources/posts/client/Client.js +22 -49
  20. package/dist/cjs/api/resources/posts/client/requests/index.d.ts +1 -1
  21. package/dist/cjs/api/resources/posts/client/requests/index.js +3 -0
  22. package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +21 -1
  23. package/dist/cjs/api/resources/privateMessages/client/Client.js +79 -18
  24. package/dist/cjs/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.d.ts +16 -0
  25. package/dist/cjs/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.js +3 -0
  26. package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +1 -0
  27. package/dist/cjs/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.d.ts +26 -0
  28. package/dist/cjs/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.js +3 -0
  29. package/dist/cjs/api/resources/privateMessages/types/index.d.ts +1 -0
  30. package/dist/cjs/api/resources/privateMessages/types/index.js +1 -0
  31. package/dist/cjs/api/resources/reports/client/Client.d.ts +21 -1
  32. package/dist/cjs/api/resources/reports/client/Client.js +88 -17
  33. package/dist/cjs/api/resources/reports/client/requests/CreateReportsRequest.d.ts +4 -0
  34. package/dist/cjs/api/resources/reports/client/requests/UpdateReportsRequest.d.ts +16 -0
  35. package/dist/cjs/api/resources/reports/client/requests/UpdateReportsRequest.js +3 -0
  36. package/dist/cjs/api/resources/reports/client/requests/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/reports/index.d.ts +1 -0
  38. package/dist/cjs/api/resources/reports/index.js +1 -0
  39. package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.d.ts +30 -0
  40. package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.js +3 -0
  41. package/dist/cjs/api/resources/reports/types/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/reports/types/index.js +17 -0
  43. package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
  44. package/dist/cjs/api/resources/roles/client/Client.js +8 -9
  45. package/dist/cjs/api/resources/roles/client/requests/ListRolesRequest.d.ts +7 -2
  46. package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.d.ts +6 -0
  47. package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.js +9 -0
  48. package/dist/cjs/api/resources/roles/types/index.d.ts +1 -0
  49. package/dist/cjs/api/resources/roles/types/index.js +1 -0
  50. package/dist/cjs/api/resources/search/client/Client.d.ts +29 -0
  51. package/dist/cjs/api/resources/search/client/Client.js +115 -0
  52. package/dist/cjs/api/resources/search/client/index.d.ts +1 -0
  53. package/dist/cjs/api/resources/search/client/index.js +2 -0
  54. package/dist/cjs/api/resources/search/index.d.ts +2 -0
  55. package/dist/cjs/api/resources/search/index.js +18 -0
  56. package/dist/cjs/api/resources/search/types/SearchSearchResponse.d.ts +33 -0
  57. package/dist/cjs/api/resources/search/types/SearchSearchResponse.js +22 -0
  58. package/dist/cjs/api/resources/search/types/index.d.ts +1 -0
  59. package/dist/cjs/api/resources/search/types/index.js +17 -0
  60. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +6 -8
  61. package/dist/cjs/api/resources/ssOs/client/Client.js +11 -16
  62. package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.d.ts +24 -15
  63. package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.js +10 -0
  64. package/dist/cjs/api/resources/ssOs/client/requests/ListSsOsRequest.d.ts +2 -2
  65. package/dist/cjs/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.ts +15 -8
  66. package/dist/cjs/api/resources/ssOs/client/requests/UpdateSsOsRequest.js +10 -0
  67. package/dist/cjs/api/resources/ssOs/client/requests/index.d.ts +2 -2
  68. package/dist/cjs/api/resources/ssOs/client/requests/index.js +5 -0
  69. package/dist/cjs/api/resources/ssOs/types/UpdateSsOsResponse.d.ts +2 -0
  70. package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
  71. package/dist/cjs/api/resources/tags/client/Client.js +10 -18
  72. package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
  73. package/dist/cjs/api/resources/threads/client/Client.js +26 -56
  74. package/dist/cjs/api/resources/threads/client/requests/CreateThreadsRequest.d.ts +6 -0
  75. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -1
  76. package/dist/cjs/api/resources/threads/client/requests/index.js +3 -0
  77. package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +5 -5
  78. package/dist/cjs/api/resources/users/client/Client.d.ts +20 -1
  79. package/dist/cjs/api/resources/users/client/Client.js +80 -28
  80. package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.d.ts +26 -0
  81. package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.js +3 -0
  82. package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
  83. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +23 -1
  84. package/dist/cjs/api/resources/webhooks/client/Client.js +91 -15
  85. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +4 -0
  86. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +22 -0
  87. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +3 -0
  88. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
  89. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.d.ts +26 -0
  90. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.js +3 -0
  91. package/dist/cjs/api/resources/webhooks/types/index.d.ts +1 -0
  92. package/dist/cjs/api/resources/webhooks/types/index.js +1 -0
  93. package/dist/cjs/api/types/Integration.d.ts +2 -0
  94. package/dist/cjs/api/types/IntegrationCreate.d.ts +7 -2
  95. package/dist/cjs/api/types/IntegrationList.d.ts +6 -0
  96. package/dist/cjs/api/types/IntegrationList.js +3 -0
  97. package/dist/cjs/api/types/IntegrationListResponse.d.ts +2 -0
  98. package/dist/cjs/api/types/IntegrationResponse.d.ts +2 -0
  99. package/dist/cjs/api/types/IntegrationUpdate.d.ts +2 -0
  100. package/dist/cjs/api/types/MeResponse.d.ts +22 -0
  101. package/dist/cjs/api/types/PrivateMessageUpdate.d.ts +8 -0
  102. package/dist/cjs/api/types/PrivateMessageUpdate.js +3 -0
  103. package/dist/cjs/api/types/Report.d.ts +4 -2
  104. package/dist/cjs/api/types/ReportCreate.d.ts +4 -0
  105. package/dist/cjs/api/types/ReportListResponse.d.ts +4 -2
  106. package/dist/cjs/api/types/ReportResponse.d.ts +4 -2
  107. package/dist/cjs/api/types/ReportUpdate.d.ts +8 -0
  108. package/dist/cjs/api/types/ReportUpdate.js +3 -0
  109. package/dist/cjs/api/types/RoleList.d.ts +19 -0
  110. package/dist/cjs/api/types/RoleList.js +13 -0
  111. package/dist/cjs/api/types/Search.d.ts +1 -0
  112. package/dist/cjs/api/types/Search.js +3 -0
  113. package/dist/cjs/api/types/SearchListResponse.d.ts +18 -0
  114. package/dist/cjs/api/types/SearchListResponse.js +3 -0
  115. package/dist/cjs/api/types/SearchResponse.d.ts +6 -0
  116. package/dist/cjs/api/types/SearchResponse.js +3 -0
  117. package/dist/cjs/api/types/Sso.d.ts +2 -0
  118. package/dist/cjs/api/types/SsoCreate.d.ts +19 -11
  119. package/dist/cjs/api/types/SsoCreate.js +10 -0
  120. package/dist/cjs/api/types/SsoList.d.ts +6 -0
  121. package/dist/cjs/api/types/SsoList.js +3 -0
  122. package/dist/cjs/api/types/SsoListResponse.d.ts +2 -0
  123. package/dist/cjs/api/types/SsoResponse.d.ts +2 -0
  124. package/dist/cjs/api/types/SsoUpdate.d.ts +15 -11
  125. package/dist/cjs/api/types/SsoUpdate.js +10 -0
  126. package/dist/cjs/api/types/Thread.d.ts +5 -5
  127. package/dist/cjs/api/types/ThreadCreate.d.ts +6 -0
  128. package/dist/cjs/api/types/ThreadListResponse.d.ts +5 -5
  129. package/dist/cjs/api/types/ThreadResponse.d.ts +5 -5
  130. package/dist/cjs/api/types/UserCreate.d.ts +20 -0
  131. package/dist/cjs/api/types/UserCreate.js +3 -0
  132. package/dist/cjs/api/types/Webhook.d.ts +2 -0
  133. package/dist/cjs/api/types/WebhookCreate.d.ts +4 -0
  134. package/dist/cjs/api/types/WebhookListResponse.d.ts +2 -0
  135. package/dist/cjs/api/types/WebhookResponse.d.ts +2 -0
  136. package/dist/cjs/api/types/WebhookUpdate.d.ts +14 -0
  137. package/dist/cjs/api/types/WebhookUpdate.js +3 -0
  138. package/dist/cjs/api/types/index.d.ts +10 -0
  139. package/dist/cjs/api/types/index.js +10 -0
  140. package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -10
  141. package/dist/cjs/auth/HeaderAuthProvider.js +18 -9
  142. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  143. package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
  144. package/dist/cjs/core/headers.d.ts +2 -2
  145. package/dist/cjs/version.d.ts +1 -1
  146. package/dist/cjs/version.js +1 -1
  147. package/dist/esm/BaseClient.mjs +2 -2
  148. package/dist/esm/Client.d.mts +4 -1
  149. package/dist/esm/Client.mjs +6 -1
  150. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
  151. package/dist/esm/api/resources/auth/client/Client.mjs +1 -1
  152. package/dist/esm/api/resources/index.d.mts +3 -0
  153. package/dist/esm/api/resources/index.mjs +3 -0
  154. package/dist/esm/api/resources/integrations/client/Client.d.mts +2 -1
  155. package/dist/esm/api/resources/integrations/client/Client.mjs +7 -9
  156. package/dist/esm/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.mts +8 -2
  157. package/dist/esm/api/resources/integrations/client/requests/ListIntegrationsRequest.d.mts +2 -2
  158. package/dist/esm/api/resources/integrations/client/requests/UpdateIntegrationsRequest.d.mts +2 -0
  159. package/dist/esm/api/resources/integrations/types/UpdateIntegrationsResponse.d.mts +2 -0
  160. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  161. package/dist/esm/api/resources/notifications/client/Client.mjs +7 -14
  162. package/dist/esm/api/resources/notifications/client/requests/index.d.mts +2 -2
  163. package/dist/esm/api/resources/notifications/client/requests/index.mjs +2 -1
  164. package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
  165. package/dist/esm/api/resources/posts/client/Client.mjs +22 -49
  166. package/dist/esm/api/resources/posts/client/requests/index.d.mts +1 -1
  167. package/dist/esm/api/resources/posts/client/requests/index.mjs +1 -1
  168. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +21 -1
  169. package/dist/esm/api/resources/privateMessages/client/Client.mjs +79 -18
  170. package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.d.mts +16 -0
  171. package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.mjs +2 -0
  172. package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +1 -0
  173. package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.d.mts +26 -0
  174. package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.mjs +2 -0
  175. package/dist/esm/api/resources/privateMessages/types/index.d.mts +1 -0
  176. package/dist/esm/api/resources/privateMessages/types/index.mjs +1 -0
  177. package/dist/esm/api/resources/reports/client/Client.d.mts +21 -1
  178. package/dist/esm/api/resources/reports/client/Client.mjs +88 -17
  179. package/dist/esm/api/resources/reports/client/requests/CreateReportsRequest.d.mts +4 -0
  180. package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.d.mts +16 -0
  181. package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.mjs +2 -0
  182. package/dist/esm/api/resources/reports/client/requests/index.d.mts +1 -0
  183. package/dist/esm/api/resources/reports/index.d.mts +1 -0
  184. package/dist/esm/api/resources/reports/index.mjs +1 -0
  185. package/dist/esm/api/resources/reports/types/UpdateReportsResponse.d.mts +30 -0
  186. package/dist/esm/api/resources/reports/types/UpdateReportsResponse.mjs +2 -0
  187. package/dist/esm/api/resources/reports/types/index.d.mts +1 -0
  188. package/dist/esm/api/resources/reports/types/index.mjs +1 -0
  189. package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
  190. package/dist/esm/api/resources/roles/client/Client.mjs +8 -9
  191. package/dist/esm/api/resources/roles/client/requests/ListRolesRequest.d.mts +7 -2
  192. package/dist/esm/api/resources/roles/types/ListRolesRequestSort.d.mts +6 -0
  193. package/dist/esm/api/resources/roles/types/ListRolesRequestSort.mjs +6 -0
  194. package/dist/esm/api/resources/roles/types/index.d.mts +1 -0
  195. package/dist/esm/api/resources/roles/types/index.mjs +1 -0
  196. package/dist/esm/api/resources/search/client/Client.d.mts +29 -0
  197. package/dist/esm/api/resources/search/client/Client.mjs +78 -0
  198. package/dist/esm/api/resources/search/client/index.d.mts +1 -0
  199. package/dist/esm/api/resources/search/client/index.mjs +1 -0
  200. package/dist/esm/api/resources/search/index.d.mts +2 -0
  201. package/dist/esm/api/resources/search/index.mjs +2 -0
  202. package/dist/esm/api/resources/search/types/SearchSearchResponse.d.mts +33 -0
  203. package/dist/esm/api/resources/search/types/SearchSearchResponse.mjs +19 -0
  204. package/dist/esm/api/resources/search/types/index.d.mts +1 -0
  205. package/dist/esm/api/resources/search/types/index.mjs +1 -0
  206. package/dist/esm/api/resources/ssOs/client/Client.d.mts +6 -8
  207. package/dist/esm/api/resources/ssOs/client/Client.mjs +11 -16
  208. package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.d.mts +24 -15
  209. package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.mjs +9 -1
  210. package/dist/esm/api/resources/ssOs/client/requests/ListSsOsRequest.d.mts +2 -2
  211. package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.mts +15 -8
  212. package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.mjs +9 -1
  213. package/dist/esm/api/resources/ssOs/client/requests/index.d.mts +2 -2
  214. package/dist/esm/api/resources/ssOs/client/requests/index.mjs +2 -1
  215. package/dist/esm/api/resources/ssOs/types/UpdateSsOsResponse.d.mts +2 -0
  216. package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
  217. package/dist/esm/api/resources/tags/client/Client.mjs +10 -18
  218. package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
  219. package/dist/esm/api/resources/threads/client/Client.mjs +26 -56
  220. package/dist/esm/api/resources/threads/client/requests/CreateThreadsRequest.d.mts +6 -0
  221. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -1
  222. package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -1
  223. package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +5 -5
  224. package/dist/esm/api/resources/users/client/Client.d.mts +20 -1
  225. package/dist/esm/api/resources/users/client/Client.mjs +80 -28
  226. package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.d.mts +26 -0
  227. package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.mjs +2 -0
  228. package/dist/esm/api/resources/users/client/requests/index.d.mts +1 -0
  229. package/dist/esm/api/resources/webhooks/client/Client.d.mts +23 -1
  230. package/dist/esm/api/resources/webhooks/client/Client.mjs +91 -15
  231. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +4 -0
  232. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +22 -0
  233. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +2 -0
  234. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  235. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.d.mts +26 -0
  236. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.mjs +2 -0
  237. package/dist/esm/api/resources/webhooks/types/index.d.mts +1 -0
  238. package/dist/esm/api/resources/webhooks/types/index.mjs +1 -0
  239. package/dist/esm/api/types/Integration.d.mts +2 -0
  240. package/dist/esm/api/types/IntegrationCreate.d.mts +7 -2
  241. package/dist/esm/api/types/IntegrationList.d.mts +6 -0
  242. package/dist/esm/api/types/IntegrationList.mjs +2 -0
  243. package/dist/esm/api/types/IntegrationListResponse.d.mts +2 -0
  244. package/dist/esm/api/types/IntegrationResponse.d.mts +2 -0
  245. package/dist/esm/api/types/IntegrationUpdate.d.mts +2 -0
  246. package/dist/esm/api/types/MeResponse.d.mts +22 -0
  247. package/dist/esm/api/types/PrivateMessageUpdate.d.mts +8 -0
  248. package/dist/esm/api/types/PrivateMessageUpdate.mjs +2 -0
  249. package/dist/esm/api/types/Report.d.mts +4 -2
  250. package/dist/esm/api/types/ReportCreate.d.mts +4 -0
  251. package/dist/esm/api/types/ReportListResponse.d.mts +4 -2
  252. package/dist/esm/api/types/ReportResponse.d.mts +4 -2
  253. package/dist/esm/api/types/ReportUpdate.d.mts +8 -0
  254. package/dist/esm/api/types/ReportUpdate.mjs +2 -0
  255. package/dist/esm/api/types/RoleList.d.mts +19 -0
  256. package/dist/esm/api/types/RoleList.mjs +10 -0
  257. package/dist/esm/api/types/Search.d.mts +1 -0
  258. package/dist/esm/api/types/Search.mjs +2 -0
  259. package/dist/esm/api/types/SearchListResponse.d.mts +18 -0
  260. package/dist/esm/api/types/SearchListResponse.mjs +2 -0
  261. package/dist/esm/api/types/SearchResponse.d.mts +6 -0
  262. package/dist/esm/api/types/SearchResponse.mjs +2 -0
  263. package/dist/esm/api/types/Sso.d.mts +2 -0
  264. package/dist/esm/api/types/SsoCreate.d.mts +19 -11
  265. package/dist/esm/api/types/SsoCreate.mjs +9 -1
  266. package/dist/esm/api/types/SsoList.d.mts +6 -0
  267. package/dist/esm/api/types/SsoList.mjs +2 -0
  268. package/dist/esm/api/types/SsoListResponse.d.mts +2 -0
  269. package/dist/esm/api/types/SsoResponse.d.mts +2 -0
  270. package/dist/esm/api/types/SsoUpdate.d.mts +15 -11
  271. package/dist/esm/api/types/SsoUpdate.mjs +9 -1
  272. package/dist/esm/api/types/Thread.d.mts +5 -5
  273. package/dist/esm/api/types/ThreadCreate.d.mts +6 -0
  274. package/dist/esm/api/types/ThreadListResponse.d.mts +5 -5
  275. package/dist/esm/api/types/ThreadResponse.d.mts +5 -5
  276. package/dist/esm/api/types/UserCreate.d.mts +20 -0
  277. package/dist/esm/api/types/UserCreate.mjs +2 -0
  278. package/dist/esm/api/types/Webhook.d.mts +2 -0
  279. package/dist/esm/api/types/WebhookCreate.d.mts +4 -0
  280. package/dist/esm/api/types/WebhookListResponse.d.mts +2 -0
  281. package/dist/esm/api/types/WebhookResponse.d.mts +2 -0
  282. package/dist/esm/api/types/WebhookUpdate.d.mts +14 -0
  283. package/dist/esm/api/types/WebhookUpdate.mjs +2 -0
  284. package/dist/esm/api/types/index.d.mts +10 -0
  285. package/dist/esm/api/types/index.mjs +10 -0
  286. package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -10
  287. package/dist/esm/auth/HeaderAuthProvider.mjs +18 -9
  288. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  289. package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
  290. package/dist/esm/core/headers.d.mts +2 -2
  291. package/dist/esm/version.d.mts +1 -1
  292. package/dist/esm/version.mjs +1 -1
  293. package/package.json +2 -2
  294. package/reference.md +310 -7
@@ -12,7 +12,7 @@ export declare namespace ReportsClient {
12
12
  */
13
13
  export declare class ReportsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<ReportsClient.Options>;
15
- constructor(options: ReportsClient.Options);
15
+ constructor(options?: ReportsClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of reports. Use cursor for pagination.
18
18
  *
@@ -86,4 +86,24 @@ export declare class ReportsClient {
86
86
  */
87
87
  delete(request: Forum.DeleteReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
88
88
  private __delete;
89
+ /**
90
+ * Update an existing report. Only provided fields will be modified.
91
+ *
92
+ * @param {Forum.UpdateReportsRequest} request
93
+ * @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
94
+ *
95
+ * @throws {@link Forum.BadRequestError}
96
+ * @throws {@link Forum.UnauthorizedError}
97
+ * @throws {@link Forum.PaymentRequiredError}
98
+ * @throws {@link Forum.NotFoundError}
99
+ * @throws {@link Forum.TooManyRequestsError}
100
+ * @throws {@link Forum.InternalServerError}
101
+ *
102
+ * @example
103
+ * await client.reports.update({
104
+ * id: "id"
105
+ * })
106
+ */
107
+ update(request: Forum.UpdateReportsRequest, requestOptions?: ReportsClient.RequestOptions): core.HttpResponsePromise<Forum.UpdateReportsResponse>;
108
+ private __update;
89
109
  }
@@ -8,6 +8,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
11
22
  import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
12
23
  import { mergeHeaders } from "../../../../core/headers.mjs";
13
24
  import * as core from "../../../../core/index.mjs";
@@ -19,7 +30,7 @@ import * as Forum from "../../../index.mjs";
19
30
  * Operations for reports
20
31
  */
21
32
  export class ReportsClient {
22
- constructor(options) {
33
+ constructor(options = {}) {
23
34
  this._options = normalizeClientOptionsWithAuth(options);
24
35
  }
25
36
  /**
@@ -43,22 +54,13 @@ export class ReportsClient {
43
54
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
44
55
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
45
56
  const { limit, cursor, status, reporterId, reportedId } = request;
46
- const _queryParams = {};
47
- if (limit != null) {
48
- _queryParams.limit = limit.toString();
49
- }
50
- if (cursor != null) {
51
- _queryParams.cursor = cursor;
52
- }
53
- if (status != null) {
54
- _queryParams.status = status;
55
- }
56
- if (reporterId != null) {
57
- _queryParams.reporterId = reporterId;
58
- }
59
- if (reportedId != null) {
60
- _queryParams.reportedId = reportedId;
61
- }
57
+ const _queryParams = {
58
+ limit,
59
+ cursor,
60
+ status,
61
+ reporterId,
62
+ reportedId,
63
+ };
62
64
  const _authRequest = yield this._options.authProvider.getAuthRequest();
63
65
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
64
66
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -287,4 +289,73 @@ export class ReportsClient {
287
289
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/reports/{id}");
288
290
  });
289
291
  }
292
+ /**
293
+ * Update an existing report. Only provided fields will be modified.
294
+ *
295
+ * @param {Forum.UpdateReportsRequest} request
296
+ * @param {ReportsClient.RequestOptions} requestOptions - Request-specific configuration.
297
+ *
298
+ * @throws {@link Forum.BadRequestError}
299
+ * @throws {@link Forum.UnauthorizedError}
300
+ * @throws {@link Forum.PaymentRequiredError}
301
+ * @throws {@link Forum.NotFoundError}
302
+ * @throws {@link Forum.TooManyRequestsError}
303
+ * @throws {@link Forum.InternalServerError}
304
+ *
305
+ * @example
306
+ * await client.reports.update({
307
+ * id: "id"
308
+ * })
309
+ */
310
+ update(request, requestOptions) {
311
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
312
+ }
313
+ __update(request, requestOptions) {
314
+ return __awaiter(this, void 0, void 0, function* () {
315
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
316
+ const { id } = request, _body = __rest(request, ["id"]);
317
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
318
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
319
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
320
+ 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, `reports/${core.url.encodePathParam(id)}`),
321
+ method: "PATCH",
322
+ headers: _headers,
323
+ contentType: "application/json",
324
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
325
+ requestType: "json",
326
+ body: _body,
327
+ 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,
328
+ 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,
329
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
330
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
331
+ logging: this._options.logging,
332
+ });
333
+ if (_response.ok) {
334
+ return { data: _response.body, rawResponse: _response.rawResponse };
335
+ }
336
+ if (_response.error.reason === "status-code") {
337
+ switch (_response.error.statusCode) {
338
+ case 400:
339
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
340
+ case 401:
341
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
342
+ case 402:
343
+ throw new Forum.PaymentRequiredError(_response.error.body, _response.rawResponse);
344
+ case 404:
345
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
346
+ case 429:
347
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
348
+ case 500:
349
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
350
+ default:
351
+ throw new errors.ForumError({
352
+ statusCode: _response.error.statusCode,
353
+ body: _response.error.body,
354
+ rawResponse: _response.rawResponse,
355
+ });
356
+ }
357
+ }
358
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/reports/{id}");
359
+ });
360
+ }
290
361
  }
@@ -7,6 +7,8 @@
7
7
  export interface CreateReportsRequest {
8
8
  /** Report type (e.g. spam, abuse) */
9
9
  type: string;
10
+ /** Report status (default: pending) */
11
+ status?: string;
10
12
  /** Reason for reporting */
11
13
  description?: string;
12
14
  /** Reporter user ID (required for API key auth, ignored for JWT auth) */
@@ -19,4 +21,6 @@ export interface CreateReportsRequest {
19
21
  postId?: string;
20
22
  /** ID of private message being reported */
21
23
  privateMessageId?: string;
24
+ /** Custom extended data */
25
+ extendedData?: Record<string, unknown>;
22
26
  }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface UpdateReportsRequest {
8
+ /** Report ID */
9
+ id: string;
10
+ /** Report status (pending, reviewed, resolved, dismissed) */
11
+ status?: string;
12
+ /** Updated description or admin notes */
13
+ description?: string;
14
+ /** Custom extended data */
15
+ extendedData?: Record<string, unknown>;
16
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -2,3 +2,4 @@ export type { CreateReportsRequest } from "./CreateReportsRequest.mjs";
2
2
  export type { DeleteReportsRequest } from "./DeleteReportsRequest.mjs";
3
3
  export type { ListReportsRequest } from "./ListReportsRequest.mjs";
4
4
  export type { RetrieveReportsRequest } from "./RetrieveReportsRequest.mjs";
5
+ export type { UpdateReportsRequest } from "./UpdateReportsRequest.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,30 @@
1
+ export interface UpdateReportsResponse {
2
+ data?: UpdateReportsResponse.Data;
3
+ }
4
+ export declare namespace UpdateReportsResponse {
5
+ interface Data {
6
+ /** Report type (e.g. spam, abuse) */
7
+ type: string;
8
+ /** Report status (pending, reviewed, resolved, dismissed) */
9
+ status: string | null;
10
+ /** Reason for reporting */
11
+ description?: string;
12
+ /** Reporter user ID (required for API key auth, ignored for JWT auth) */
13
+ userId?: string;
14
+ /** ID of user being reported */
15
+ reportedId?: string;
16
+ /** ID of thread being reported */
17
+ threadId?: string;
18
+ /** ID of post being reported */
19
+ postId?: string;
20
+ /** ID of private message being reported */
21
+ privateMessageId?: string;
22
+ /** Custom extended data */
23
+ extendedData?: Record<string, unknown>;
24
+ id: string;
25
+ /** Report creation timestamp */
26
+ createdAt: string;
27
+ /** Report last update timestamp */
28
+ updatedAt: string;
29
+ }
30
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export * from "./UpdateReportsResponse.mjs";
@@ -0,0 +1 @@
1
+ export * from "./UpdateReportsResponse.mjs";
@@ -12,7 +12,7 @@ export declare namespace RolesClient {
12
12
  */
13
13
  export declare class RolesClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<RolesClient.Options>;
15
- constructor(options: RolesClient.Options);
15
+ constructor(options?: RolesClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of roles. Use cursor for pagination.
18
18
  *
@@ -30,7 +30,7 @@ import * as Forum from "../../../index.mjs";
30
30
  * Operations for roles
31
31
  */
32
32
  export class RolesClient {
33
- constructor(options) {
33
+ constructor(options = {}) {
34
34
  this._options = normalizeClientOptionsWithAuth(options);
35
35
  }
36
36
  /**
@@ -53,14 +53,13 @@ export class RolesClient {
53
53
  __list() {
54
54
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
55
55
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
56
- const { cursor, limit } = request;
57
- const _queryParams = {};
58
- if (cursor != null) {
59
- _queryParams.cursor = cursor;
60
- }
61
- if (limit != null) {
62
- _queryParams.limit = limit.toString();
63
- }
56
+ const { limit, cursor, search, sort } = request;
57
+ const _queryParams = {
58
+ limit,
59
+ cursor,
60
+ search,
61
+ sort: sort != null ? sort : undefined,
62
+ };
64
63
  const _authRequest = yield this._options.authProvider.getAuthRequest();
65
64
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
66
65
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -1,10 +1,15 @@
1
+ import type * as Forum from "../../../../index.mjs";
1
2
  /**
2
3
  * @example
3
4
  * {}
4
5
  */
5
6
  export interface ListRolesRequest {
6
- /** Pagination cursor */
7
- cursor?: string;
8
7
  /** Items per page (max 75) */
9
8
  limit?: number;
9
+ /** Cursor for pagination */
10
+ cursor?: string;
11
+ /** Search by name or slug */
12
+ search?: string;
13
+ /** Sort order */
14
+ sort?: Forum.ListRolesRequestSort;
10
15
  }
@@ -0,0 +1,6 @@
1
+ export declare const ListRolesRequestSort: {
2
+ readonly Newest: "newest";
3
+ readonly Oldest: "oldest";
4
+ readonly Name: "name";
5
+ };
6
+ export type ListRolesRequestSort = (typeof ListRolesRequestSort)[keyof typeof ListRolesRequestSort];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ListRolesRequestSort = {
3
+ Newest: "newest",
4
+ Oldest: "oldest",
5
+ Name: "name",
6
+ };
@@ -1 +1,2 @@
1
+ export * from "./ListRolesRequestSort.mjs";
1
2
  export * from "./UpdateRolesResponse.mjs";
@@ -1 +1,2 @@
1
+ export * from "./ListRolesRequestSort.mjs";
1
2
  export * from "./UpdateRolesResponse.mjs";
@@ -0,0 +1,29 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as Forum from "../../../index.mjs";
5
+ export declare namespace SearchClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ /**
11
+ * Operations for search
12
+ */
13
+ export declare class SearchClient {
14
+ protected readonly _options: NormalizedClientOptions<SearchClient.Options>;
15
+ constructor(options?: SearchClient.Options);
16
+ /**
17
+ * @param {SearchClient.RequestOptions} requestOptions - Request-specific configuration.
18
+ *
19
+ * @throws {@link Forum.BadRequestError}
20
+ * @throws {@link Forum.PaymentRequiredError}
21
+ * @throws {@link Forum.TooManyRequestsError}
22
+ * @throws {@link Forum.InternalServerError}
23
+ *
24
+ * @example
25
+ * await client.search.search()
26
+ */
27
+ search(requestOptions?: SearchClient.RequestOptions): core.HttpResponsePromise<Forum.SearchSearchResponse>;
28
+ private __search;
29
+ }
@@ -0,0 +1,78 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptions } from "../../../../BaseClient.mjs";
12
+ import { mergeHeaders } from "../../../../core/headers.mjs";
13
+ import * as core from "../../../../core/index.mjs";
14
+ import * as environments from "../../../../environments.mjs";
15
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.mjs";
16
+ import * as errors from "../../../../errors/index.mjs";
17
+ import * as Forum from "../../../index.mjs";
18
+ /**
19
+ * Operations for search
20
+ */
21
+ export class SearchClient {
22
+ constructor(options = {}) {
23
+ this._options = normalizeClientOptions(options);
24
+ }
25
+ /**
26
+ * @param {SearchClient.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @throws {@link Forum.BadRequestError}
29
+ * @throws {@link Forum.PaymentRequiredError}
30
+ * @throws {@link Forum.TooManyRequestsError}
31
+ * @throws {@link Forum.InternalServerError}
32
+ *
33
+ * @example
34
+ * await client.search.search()
35
+ */
36
+ search(requestOptions) {
37
+ return core.HttpResponsePromise.fromPromise(this.__search(requestOptions));
38
+ }
39
+ __search(requestOptions) {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
42
+ const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
43
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
44
+ 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, "search/"),
45
+ method: "GET",
46
+ headers: _headers,
47
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
48
+ 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,
49
+ 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,
50
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
51
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
52
+ logging: this._options.logging,
53
+ });
54
+ if (_response.ok) {
55
+ return { data: _response.body, rawResponse: _response.rawResponse };
56
+ }
57
+ if (_response.error.reason === "status-code") {
58
+ switch (_response.error.statusCode) {
59
+ case 400:
60
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
61
+ case 402:
62
+ throw new Forum.PaymentRequiredError(_response.error.body, _response.rawResponse);
63
+ case 429:
64
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
65
+ case 500:
66
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
67
+ default:
68
+ throw new errors.ForumError({
69
+ statusCode: _response.error.statusCode,
70
+ body: _response.error.body,
71
+ rawResponse: _response.rawResponse,
72
+ });
73
+ }
74
+ }
75
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/search/");
76
+ });
77
+ }
78
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,33 @@
1
+ export interface SearchSearchResponse {
2
+ data?: SearchSearchResponse.Data;
3
+ }
4
+ export declare namespace SearchSearchResponse {
5
+ interface Data {
6
+ items: Data.Items.Item[];
7
+ nextCursor: string | null;
8
+ hasMore: boolean;
9
+ }
10
+ namespace Data {
11
+ type Items = Items.Item[];
12
+ namespace Items {
13
+ interface Item {
14
+ type: Item.Type;
15
+ id: string;
16
+ title?: string;
17
+ body?: string;
18
+ username?: string;
19
+ name?: string;
20
+ createdAt?: string;
21
+ }
22
+ namespace Item {
23
+ const Type: {
24
+ readonly Thread: "thread";
25
+ readonly Post: "post";
26
+ readonly User: "user";
27
+ readonly Tag: "tag";
28
+ };
29
+ type Type = (typeof Type)[keyof typeof Type];
30
+ }
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,19 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export var SearchSearchResponse;
3
+ (function (SearchSearchResponse) {
4
+ let Data;
5
+ (function (Data) {
6
+ let Items;
7
+ (function (Items) {
8
+ let Item;
9
+ (function (Item) {
10
+ Item.Type = {
11
+ Thread: "thread",
12
+ Post: "post",
13
+ User: "user",
14
+ Tag: "tag",
15
+ };
16
+ })(Item = Items.Item || (Items.Item = {}));
17
+ })(Items = Data.Items || (Data.Items = {}));
18
+ })(Data = SearchSearchResponse.Data || (SearchSearchResponse.Data = {}));
19
+ })(SearchSearchResponse || (SearchSearchResponse = {}));
@@ -0,0 +1 @@
1
+ export * from "./SearchSearchResponse.mjs";
@@ -0,0 +1 @@
1
+ export * from "./SearchSearchResponse.mjs";
@@ -12,7 +12,7 @@ export declare namespace SsOsClient {
12
12
  */
13
13
  export declare class SsOsClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<SsOsClient.Options>;
15
- constructor(options: SsOsClient.Options);
15
+ constructor(options?: SsOsClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of ssos. Use cursor for pagination.
18
18
  *
@@ -47,13 +47,11 @@ export declare class SsOsClient {
47
47
  *
48
48
  * @example
49
49
  * await client.ssOs.create({
50
- * name: "name",
51
- * clientId: "clientId",
52
- * clientSecret: "clientSecret",
53
- * issuer: "issuer",
54
- * authorizationEndpoint: "authorizationEndpoint",
55
- * tokenEndpoint: "tokenEndpoint",
56
- * userInfoEndpoint: "userInfoEndpoint"
50
+ * provider: "OKTA",
51
+ * domain: "domain",
52
+ * config: {
53
+ * "key": "value"
54
+ * }
57
55
  * })
58
56
  */
59
57
  create(request: Forum.CreateSsOsRequest, requestOptions?: SsOsClient.RequestOptions): core.HttpResponsePromise<Forum.SsoResponse>;
@@ -30,7 +30,7 @@ import * as Forum from "../../../index.mjs";
30
30
  * Operations for sso
31
31
  */
32
32
  export class SsOsClient {
33
- constructor(options) {
33
+ constructor(options = {}) {
34
34
  this._options = normalizeClientOptionsWithAuth(options);
35
35
  }
36
36
  /**
@@ -55,14 +55,11 @@ export class SsOsClient {
55
55
  __list() {
56
56
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
57
57
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
58
- const { cursor, limit } = request;
59
- const _queryParams = {};
60
- if (cursor != null) {
61
- _queryParams.cursor = cursor;
62
- }
63
- if (limit != null) {
64
- _queryParams.limit = limit.toString();
65
- }
58
+ const { limit, cursor } = request;
59
+ const _queryParams = {
60
+ limit,
61
+ cursor,
62
+ };
66
63
  const _authRequest = yield this._options.authProvider.getAuthRequest();
67
64
  const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
68
65
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -116,13 +113,11 @@ export class SsOsClient {
116
113
  *
117
114
  * @example
118
115
  * await client.ssOs.create({
119
- * name: "name",
120
- * clientId: "clientId",
121
- * clientSecret: "clientSecret",
122
- * issuer: "issuer",
123
- * authorizationEndpoint: "authorizationEndpoint",
124
- * tokenEndpoint: "tokenEndpoint",
125
- * userInfoEndpoint: "userInfoEndpoint"
116
+ * provider: "OKTA",
117
+ * domain: "domain",
118
+ * config: {
119
+ * "key": "value"
120
+ * }
126
121
  * })
127
122
  */
128
123
  create(request, requestOptions) {