@foru-ms/sdk 2.1.0 → 2.1.1

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 (272) 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 +1 -1
  9. package/dist/cjs/api/resources/integrations/client/Client.js +6 -9
  10. package/dist/cjs/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.ts +2 -0
  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/UpdateReportsRequest.d.ts +16 -0
  34. package/dist/cjs/api/resources/reports/client/requests/UpdateReportsRequest.js +3 -0
  35. package/dist/cjs/api/resources/reports/client/requests/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/reports/index.d.ts +1 -0
  37. package/dist/cjs/api/resources/reports/index.js +1 -0
  38. package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.d.ts +28 -0
  39. package/dist/cjs/api/resources/reports/types/UpdateReportsResponse.js +3 -0
  40. package/dist/cjs/api/resources/reports/types/index.d.ts +1 -0
  41. package/dist/cjs/api/resources/reports/types/index.js +17 -0
  42. package/dist/cjs/api/resources/roles/client/Client.d.ts +1 -1
  43. package/dist/cjs/api/resources/roles/client/Client.js +8 -9
  44. package/dist/cjs/api/resources/roles/client/requests/ListRolesRequest.d.ts +7 -2
  45. package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.d.ts +6 -0
  46. package/dist/cjs/api/resources/roles/types/ListRolesRequestSort.js +9 -0
  47. package/dist/cjs/api/resources/roles/types/index.d.ts +1 -0
  48. package/dist/cjs/api/resources/roles/types/index.js +1 -0
  49. package/dist/cjs/api/resources/search/client/Client.d.ts +29 -0
  50. package/dist/cjs/api/resources/search/client/Client.js +115 -0
  51. package/dist/cjs/api/resources/search/client/index.d.ts +1 -0
  52. package/dist/cjs/api/resources/search/client/index.js +2 -0
  53. package/dist/cjs/api/resources/search/index.d.ts +2 -0
  54. package/dist/cjs/api/resources/search/index.js +18 -0
  55. package/dist/cjs/api/resources/search/types/SearchSearchResponse.d.ts +33 -0
  56. package/dist/cjs/api/resources/search/types/SearchSearchResponse.js +22 -0
  57. package/dist/cjs/api/resources/search/types/index.d.ts +1 -0
  58. package/dist/cjs/api/resources/search/types/index.js +17 -0
  59. package/dist/cjs/api/resources/ssOs/client/Client.d.ts +1 -1
  60. package/dist/cjs/api/resources/ssOs/client/Client.js +6 -9
  61. package/dist/cjs/api/resources/ssOs/client/requests/CreateSsOsRequest.d.ts +2 -0
  62. package/dist/cjs/api/resources/ssOs/client/requests/ListSsOsRequest.d.ts +2 -2
  63. package/dist/cjs/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.ts +2 -0
  64. package/dist/cjs/api/resources/ssOs/types/UpdateSsOsResponse.d.ts +2 -0
  65. package/dist/cjs/api/resources/tags/client/Client.d.ts +1 -1
  66. package/dist/cjs/api/resources/tags/client/Client.js +10 -18
  67. package/dist/cjs/api/resources/threads/client/Client.d.ts +1 -1
  68. package/dist/cjs/api/resources/threads/client/Client.js +26 -56
  69. package/dist/cjs/api/resources/threads/client/requests/CreateThreadsRequest.d.ts +6 -0
  70. package/dist/cjs/api/resources/threads/client/requests/index.d.ts +1 -1
  71. package/dist/cjs/api/resources/threads/client/requests/index.js +3 -0
  72. package/dist/cjs/api/resources/threads/types/UpdateThreadsResponse.d.ts +5 -5
  73. package/dist/cjs/api/resources/users/client/Client.d.ts +20 -1
  74. package/dist/cjs/api/resources/users/client/Client.js +80 -28
  75. package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.d.ts +26 -0
  76. package/dist/cjs/api/resources/users/client/requests/CreateUsersRequest.js +3 -0
  77. package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
  78. package/dist/cjs/api/resources/webhooks/client/Client.d.ts +23 -1
  79. package/dist/cjs/api/resources/webhooks/client/Client.js +91 -15
  80. package/dist/cjs/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.ts +4 -0
  81. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.ts +22 -0
  82. package/dist/cjs/api/resources/webhooks/client/requests/UpdateWebhooksRequest.js +3 -0
  83. package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -0
  84. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.d.ts +26 -0
  85. package/dist/cjs/api/resources/webhooks/types/UpdateWebhooksResponse.js +3 -0
  86. package/dist/cjs/api/resources/webhooks/types/index.d.ts +1 -0
  87. package/dist/cjs/api/resources/webhooks/types/index.js +1 -0
  88. package/dist/cjs/api/types/Integration.d.ts +2 -0
  89. package/dist/cjs/api/types/IntegrationCreate.d.ts +2 -0
  90. package/dist/cjs/api/types/IntegrationList.d.ts +6 -0
  91. package/dist/cjs/api/types/IntegrationList.js +3 -0
  92. package/dist/cjs/api/types/IntegrationListResponse.d.ts +2 -0
  93. package/dist/cjs/api/types/IntegrationResponse.d.ts +2 -0
  94. package/dist/cjs/api/types/IntegrationUpdate.d.ts +2 -0
  95. package/dist/cjs/api/types/MeResponse.d.ts +22 -0
  96. package/dist/cjs/api/types/PrivateMessageUpdate.d.ts +8 -0
  97. package/dist/cjs/api/types/PrivateMessageUpdate.js +3 -0
  98. package/dist/cjs/api/types/ReportUpdate.d.ts +8 -0
  99. package/dist/cjs/api/types/ReportUpdate.js +3 -0
  100. package/dist/cjs/api/types/RoleList.d.ts +19 -0
  101. package/dist/cjs/api/types/RoleList.js +13 -0
  102. package/dist/cjs/api/types/Search.d.ts +1 -0
  103. package/dist/cjs/api/types/Search.js +3 -0
  104. package/dist/cjs/api/types/SearchListResponse.d.ts +18 -0
  105. package/dist/cjs/api/types/SearchListResponse.js +3 -0
  106. package/dist/cjs/api/types/SearchResponse.d.ts +6 -0
  107. package/dist/cjs/api/types/SearchResponse.js +3 -0
  108. package/dist/cjs/api/types/Sso.d.ts +2 -0
  109. package/dist/cjs/api/types/SsoCreate.d.ts +2 -0
  110. package/dist/cjs/api/types/SsoList.d.ts +6 -0
  111. package/dist/cjs/api/types/SsoList.js +3 -0
  112. package/dist/cjs/api/types/SsoListResponse.d.ts +2 -0
  113. package/dist/cjs/api/types/SsoResponse.d.ts +2 -0
  114. package/dist/cjs/api/types/SsoUpdate.d.ts +2 -0
  115. package/dist/cjs/api/types/Thread.d.ts +5 -5
  116. package/dist/cjs/api/types/ThreadCreate.d.ts +6 -0
  117. package/dist/cjs/api/types/ThreadListResponse.d.ts +5 -5
  118. package/dist/cjs/api/types/ThreadResponse.d.ts +5 -5
  119. package/dist/cjs/api/types/UserCreate.d.ts +20 -0
  120. package/dist/cjs/api/types/UserCreate.js +3 -0
  121. package/dist/cjs/api/types/Webhook.d.ts +2 -0
  122. package/dist/cjs/api/types/WebhookCreate.d.ts +4 -0
  123. package/dist/cjs/api/types/WebhookListResponse.d.ts +2 -0
  124. package/dist/cjs/api/types/WebhookResponse.d.ts +2 -0
  125. package/dist/cjs/api/types/WebhookUpdate.d.ts +14 -0
  126. package/dist/cjs/api/types/WebhookUpdate.js +3 -0
  127. package/dist/cjs/api/types/index.d.ts +10 -0
  128. package/dist/cjs/api/types/index.js +10 -0
  129. package/dist/cjs/auth/HeaderAuthProvider.d.ts +14 -10
  130. package/dist/cjs/auth/HeaderAuthProvider.js +18 -9
  131. package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
  132. package/dist/cjs/core/fetcher/Fetcher.d.ts +1 -2
  133. package/dist/cjs/core/headers.d.ts +2 -2
  134. package/dist/cjs/version.d.ts +1 -1
  135. package/dist/cjs/version.js +1 -1
  136. package/dist/esm/BaseClient.mjs +2 -2
  137. package/dist/esm/Client.d.mts +4 -1
  138. package/dist/esm/Client.mjs +6 -1
  139. package/dist/esm/api/resources/auth/client/Client.d.mts +1 -1
  140. package/dist/esm/api/resources/auth/client/Client.mjs +1 -1
  141. package/dist/esm/api/resources/index.d.mts +3 -0
  142. package/dist/esm/api/resources/index.mjs +3 -0
  143. package/dist/esm/api/resources/integrations/client/Client.d.mts +1 -1
  144. package/dist/esm/api/resources/integrations/client/Client.mjs +6 -9
  145. package/dist/esm/api/resources/integrations/client/requests/CreateIntegrationsRequest.d.mts +2 -0
  146. package/dist/esm/api/resources/integrations/client/requests/ListIntegrationsRequest.d.mts +2 -2
  147. package/dist/esm/api/resources/integrations/client/requests/UpdateIntegrationsRequest.d.mts +2 -0
  148. package/dist/esm/api/resources/integrations/types/UpdateIntegrationsResponse.d.mts +2 -0
  149. package/dist/esm/api/resources/notifications/client/Client.d.mts +1 -1
  150. package/dist/esm/api/resources/notifications/client/Client.mjs +7 -14
  151. package/dist/esm/api/resources/notifications/client/requests/index.d.mts +2 -2
  152. package/dist/esm/api/resources/notifications/client/requests/index.mjs +2 -1
  153. package/dist/esm/api/resources/posts/client/Client.d.mts +1 -1
  154. package/dist/esm/api/resources/posts/client/Client.mjs +22 -49
  155. package/dist/esm/api/resources/posts/client/requests/index.d.mts +1 -1
  156. package/dist/esm/api/resources/posts/client/requests/index.mjs +1 -1
  157. package/dist/esm/api/resources/privateMessages/client/Client.d.mts +21 -1
  158. package/dist/esm/api/resources/privateMessages/client/Client.mjs +79 -18
  159. package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.d.mts +16 -0
  160. package/dist/esm/api/resources/privateMessages/client/requests/UpdatePrivateMessagesRequest.mjs +2 -0
  161. package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +1 -0
  162. package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.d.mts +26 -0
  163. package/dist/esm/api/resources/privateMessages/types/UpdatePrivateMessagesResponse.mjs +2 -0
  164. package/dist/esm/api/resources/privateMessages/types/index.d.mts +1 -0
  165. package/dist/esm/api/resources/privateMessages/types/index.mjs +1 -0
  166. package/dist/esm/api/resources/reports/client/Client.d.mts +21 -1
  167. package/dist/esm/api/resources/reports/client/Client.mjs +88 -17
  168. package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.d.mts +16 -0
  169. package/dist/esm/api/resources/reports/client/requests/UpdateReportsRequest.mjs +2 -0
  170. package/dist/esm/api/resources/reports/client/requests/index.d.mts +1 -0
  171. package/dist/esm/api/resources/reports/index.d.mts +1 -0
  172. package/dist/esm/api/resources/reports/index.mjs +1 -0
  173. package/dist/esm/api/resources/reports/types/UpdateReportsResponse.d.mts +28 -0
  174. package/dist/esm/api/resources/reports/types/UpdateReportsResponse.mjs +2 -0
  175. package/dist/esm/api/resources/reports/types/index.d.mts +1 -0
  176. package/dist/esm/api/resources/reports/types/index.mjs +1 -0
  177. package/dist/esm/api/resources/roles/client/Client.d.mts +1 -1
  178. package/dist/esm/api/resources/roles/client/Client.mjs +8 -9
  179. package/dist/esm/api/resources/roles/client/requests/ListRolesRequest.d.mts +7 -2
  180. package/dist/esm/api/resources/roles/types/ListRolesRequestSort.d.mts +6 -0
  181. package/dist/esm/api/resources/roles/types/ListRolesRequestSort.mjs +6 -0
  182. package/dist/esm/api/resources/roles/types/index.d.mts +1 -0
  183. package/dist/esm/api/resources/roles/types/index.mjs +1 -0
  184. package/dist/esm/api/resources/search/client/Client.d.mts +29 -0
  185. package/dist/esm/api/resources/search/client/Client.mjs +78 -0
  186. package/dist/esm/api/resources/search/client/index.d.mts +1 -0
  187. package/dist/esm/api/resources/search/client/index.mjs +1 -0
  188. package/dist/esm/api/resources/search/index.d.mts +2 -0
  189. package/dist/esm/api/resources/search/index.mjs +2 -0
  190. package/dist/esm/api/resources/search/types/SearchSearchResponse.d.mts +33 -0
  191. package/dist/esm/api/resources/search/types/SearchSearchResponse.mjs +19 -0
  192. package/dist/esm/api/resources/search/types/index.d.mts +1 -0
  193. package/dist/esm/api/resources/search/types/index.mjs +1 -0
  194. package/dist/esm/api/resources/ssOs/client/Client.d.mts +1 -1
  195. package/dist/esm/api/resources/ssOs/client/Client.mjs +6 -9
  196. package/dist/esm/api/resources/ssOs/client/requests/CreateSsOsRequest.d.mts +2 -0
  197. package/dist/esm/api/resources/ssOs/client/requests/ListSsOsRequest.d.mts +2 -2
  198. package/dist/esm/api/resources/ssOs/client/requests/UpdateSsOsRequest.d.mts +2 -0
  199. package/dist/esm/api/resources/ssOs/types/UpdateSsOsResponse.d.mts +2 -0
  200. package/dist/esm/api/resources/tags/client/Client.d.mts +1 -1
  201. package/dist/esm/api/resources/tags/client/Client.mjs +10 -18
  202. package/dist/esm/api/resources/threads/client/Client.d.mts +1 -1
  203. package/dist/esm/api/resources/threads/client/Client.mjs +26 -56
  204. package/dist/esm/api/resources/threads/client/requests/CreateThreadsRequest.d.mts +6 -0
  205. package/dist/esm/api/resources/threads/client/requests/index.d.mts +1 -1
  206. package/dist/esm/api/resources/threads/client/requests/index.mjs +1 -1
  207. package/dist/esm/api/resources/threads/types/UpdateThreadsResponse.d.mts +5 -5
  208. package/dist/esm/api/resources/users/client/Client.d.mts +20 -1
  209. package/dist/esm/api/resources/users/client/Client.mjs +80 -28
  210. package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.d.mts +26 -0
  211. package/dist/esm/api/resources/users/client/requests/CreateUsersRequest.mjs +2 -0
  212. package/dist/esm/api/resources/users/client/requests/index.d.mts +1 -0
  213. package/dist/esm/api/resources/webhooks/client/Client.d.mts +23 -1
  214. package/dist/esm/api/resources/webhooks/client/Client.mjs +91 -15
  215. package/dist/esm/api/resources/webhooks/client/requests/CreateWebhooksRequest.d.mts +4 -0
  216. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.d.mts +22 -0
  217. package/dist/esm/api/resources/webhooks/client/requests/UpdateWebhooksRequest.mjs +2 -0
  218. package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -0
  219. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.d.mts +26 -0
  220. package/dist/esm/api/resources/webhooks/types/UpdateWebhooksResponse.mjs +2 -0
  221. package/dist/esm/api/resources/webhooks/types/index.d.mts +1 -0
  222. package/dist/esm/api/resources/webhooks/types/index.mjs +1 -0
  223. package/dist/esm/api/types/Integration.d.mts +2 -0
  224. package/dist/esm/api/types/IntegrationCreate.d.mts +2 -0
  225. package/dist/esm/api/types/IntegrationList.d.mts +6 -0
  226. package/dist/esm/api/types/IntegrationList.mjs +2 -0
  227. package/dist/esm/api/types/IntegrationListResponse.d.mts +2 -0
  228. package/dist/esm/api/types/IntegrationResponse.d.mts +2 -0
  229. package/dist/esm/api/types/IntegrationUpdate.d.mts +2 -0
  230. package/dist/esm/api/types/MeResponse.d.mts +22 -0
  231. package/dist/esm/api/types/PrivateMessageUpdate.d.mts +8 -0
  232. package/dist/esm/api/types/PrivateMessageUpdate.mjs +2 -0
  233. package/dist/esm/api/types/ReportUpdate.d.mts +8 -0
  234. package/dist/esm/api/types/ReportUpdate.mjs +2 -0
  235. package/dist/esm/api/types/RoleList.d.mts +19 -0
  236. package/dist/esm/api/types/RoleList.mjs +10 -0
  237. package/dist/esm/api/types/Search.d.mts +1 -0
  238. package/dist/esm/api/types/Search.mjs +2 -0
  239. package/dist/esm/api/types/SearchListResponse.d.mts +18 -0
  240. package/dist/esm/api/types/SearchListResponse.mjs +2 -0
  241. package/dist/esm/api/types/SearchResponse.d.mts +6 -0
  242. package/dist/esm/api/types/SearchResponse.mjs +2 -0
  243. package/dist/esm/api/types/Sso.d.mts +2 -0
  244. package/dist/esm/api/types/SsoCreate.d.mts +2 -0
  245. package/dist/esm/api/types/SsoList.d.mts +6 -0
  246. package/dist/esm/api/types/SsoList.mjs +2 -0
  247. package/dist/esm/api/types/SsoListResponse.d.mts +2 -0
  248. package/dist/esm/api/types/SsoResponse.d.mts +2 -0
  249. package/dist/esm/api/types/SsoUpdate.d.mts +2 -0
  250. package/dist/esm/api/types/Thread.d.mts +5 -5
  251. package/dist/esm/api/types/ThreadCreate.d.mts +6 -0
  252. package/dist/esm/api/types/ThreadListResponse.d.mts +5 -5
  253. package/dist/esm/api/types/ThreadResponse.d.mts +5 -5
  254. package/dist/esm/api/types/UserCreate.d.mts +20 -0
  255. package/dist/esm/api/types/UserCreate.mjs +2 -0
  256. package/dist/esm/api/types/Webhook.d.mts +2 -0
  257. package/dist/esm/api/types/WebhookCreate.d.mts +4 -0
  258. package/dist/esm/api/types/WebhookListResponse.d.mts +2 -0
  259. package/dist/esm/api/types/WebhookResponse.d.mts +2 -0
  260. package/dist/esm/api/types/WebhookUpdate.d.mts +14 -0
  261. package/dist/esm/api/types/WebhookUpdate.mjs +2 -0
  262. package/dist/esm/api/types/index.d.mts +10 -0
  263. package/dist/esm/api/types/index.mjs +10 -0
  264. package/dist/esm/auth/HeaderAuthProvider.d.mts +14 -10
  265. package/dist/esm/auth/HeaderAuthProvider.mjs +18 -9
  266. package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
  267. package/dist/esm/core/fetcher/Fetcher.d.mts +1 -2
  268. package/dist/esm/core/headers.d.mts +2 -2
  269. package/dist/esm/version.d.mts +1 -1
  270. package/dist/esm/version.mjs +1 -1
  271. package/package.json +2 -2
  272. package/reference.md +304 -0
@@ -12,7 +12,7 @@ export declare namespace PrivateMessagesClient {
12
12
  */
13
13
  export declare class PrivateMessagesClient {
14
14
  protected readonly _options: NormalizedClientOptionsWithAuth<PrivateMessagesClient.Options>;
15
- constructor(options: PrivateMessagesClient.Options);
15
+ constructor(options?: PrivateMessagesClient.Options);
16
16
  /**
17
17
  * Retrieve a paginated list of private messages. Use cursor for pagination.
18
18
  *
@@ -87,6 +87,26 @@ export declare class PrivateMessagesClient {
87
87
  */
88
88
  delete(request: Forum.DeletePrivateMessagesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
89
89
  private __delete;
90
+ /**
91
+ * Update an existing private message. Only provided fields will be modified.
92
+ *
93
+ * @param {Forum.UpdatePrivateMessagesRequest} request
94
+ * @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
95
+ *
96
+ * @throws {@link Forum.BadRequestError}
97
+ * @throws {@link Forum.UnauthorizedError}
98
+ * @throws {@link Forum.PaymentRequiredError}
99
+ * @throws {@link Forum.NotFoundError}
100
+ * @throws {@link Forum.TooManyRequestsError}
101
+ * @throws {@link Forum.InternalServerError}
102
+ *
103
+ * @example
104
+ * await client.privateMessages.update({
105
+ * id: "id"
106
+ * })
107
+ */
108
+ update(request: Forum.UpdatePrivateMessagesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.UpdatePrivateMessagesResponse>;
109
+ private __update;
90
110
  /**
91
111
  * Retrieve a paginated list of replies for Private Message.
92
112
  *
@@ -30,7 +30,7 @@ import * as Forum from "../../../index.mjs";
30
30
  * Operations for private messages
31
31
  */
32
32
  export class PrivateMessagesClient {
33
- constructor(options) {
33
+ constructor(options = {}) {
34
34
  this._options = normalizeClientOptionsWithAuth(options);
35
35
  }
36
36
  /**
@@ -54,16 +54,11 @@ export class PrivateMessagesClient {
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
56
  const { limit, cursor, query } = request;
57
- const _queryParams = {};
58
- if (limit != null) {
59
- _queryParams.limit = limit.toString();
60
- }
61
- if (cursor != null) {
62
- _queryParams.cursor = cursor;
63
- }
64
- if (query != null) {
65
- _queryParams.query = query;
66
- }
57
+ const _queryParams = {
58
+ limit,
59
+ cursor,
60
+ query,
61
+ };
67
62
  const _authRequest = yield this._options.authProvider.getAuthRequest();
68
63
  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);
69
64
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -293,6 +288,75 @@ export class PrivateMessagesClient {
293
288
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/private-messages/{id}");
294
289
  });
295
290
  }
291
+ /**
292
+ * Update an existing private message. Only provided fields will be modified.
293
+ *
294
+ * @param {Forum.UpdatePrivateMessagesRequest} request
295
+ * @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
296
+ *
297
+ * @throws {@link Forum.BadRequestError}
298
+ * @throws {@link Forum.UnauthorizedError}
299
+ * @throws {@link Forum.PaymentRequiredError}
300
+ * @throws {@link Forum.NotFoundError}
301
+ * @throws {@link Forum.TooManyRequestsError}
302
+ * @throws {@link Forum.InternalServerError}
303
+ *
304
+ * @example
305
+ * await client.privateMessages.update({
306
+ * id: "id"
307
+ * })
308
+ */
309
+ update(request, requestOptions) {
310
+ return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
311
+ }
312
+ __update(request, requestOptions) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
315
+ const { id } = request, _body = __rest(request, ["id"]);
316
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
317
+ 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);
318
+ const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
319
+ 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, `private-messages/${core.url.encodePathParam(id)}`),
320
+ method: "PATCH",
321
+ headers: _headers,
322
+ contentType: "application/json",
323
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
324
+ requestType: "json",
325
+ body: _body,
326
+ 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,
327
+ 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,
328
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
329
+ fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
330
+ logging: this._options.logging,
331
+ });
332
+ if (_response.ok) {
333
+ return { data: _response.body, rawResponse: _response.rawResponse };
334
+ }
335
+ if (_response.error.reason === "status-code") {
336
+ switch (_response.error.statusCode) {
337
+ case 400:
338
+ throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
339
+ case 401:
340
+ throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
341
+ case 402:
342
+ throw new Forum.PaymentRequiredError(_response.error.body, _response.rawResponse);
343
+ case 404:
344
+ throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
345
+ case 429:
346
+ throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
347
+ case 500:
348
+ throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
349
+ default:
350
+ throw new errors.ForumError({
351
+ statusCode: _response.error.statusCode,
352
+ body: _response.error.body,
353
+ rawResponse: _response.rawResponse,
354
+ });
355
+ }
356
+ }
357
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/private-messages/{id}");
358
+ });
359
+ }
296
360
  /**
297
361
  * Retrieve a paginated list of replies for Private Message.
298
362
  *
@@ -316,13 +380,10 @@ export class PrivateMessagesClient {
316
380
  return __awaiter(this, void 0, void 0, function* () {
317
381
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
318
382
  const { id, cursor, limit } = request;
319
- const _queryParams = {};
320
- if (cursor != null) {
321
- _queryParams.cursor = cursor;
322
- }
323
- if (limit != null) {
324
- _queryParams.limit = limit.toString();
325
- }
383
+ const _queryParams = {
384
+ cursor,
385
+ limit,
386
+ };
326
387
  const _authRequest = yield this._options.authProvider.getAuthRequest();
327
388
  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);
328
389
  const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * id: "id"
5
+ * }
6
+ */
7
+ export interface UpdatePrivateMessagesRequest {
8
+ /** Private Message ID */
9
+ id: string;
10
+ /** Message content */
11
+ body?: string;
12
+ /** Message status (read, unread, archived) */
13
+ status?: string;
14
+ /** 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 {};
@@ -6,3 +6,4 @@ export type { ListPrivateMessagesRequest } from "./ListPrivateMessagesRequest.mj
6
6
  export type { ListRepliesPrivateMessagesRequest } from "./ListRepliesPrivateMessagesRequest.mjs";
7
7
  export type { RetrievePrivateMessagesRequest } from "./RetrievePrivateMessagesRequest.mjs";
8
8
  export type { RetrieveReplyPrivateMessagesRequest } from "./RetrieveReplyPrivateMessagesRequest.mjs";
9
+ export type { UpdatePrivateMessagesRequest } from "./UpdatePrivateMessagesRequest.mjs";
@@ -0,0 +1,26 @@
1
+ export interface UpdatePrivateMessagesResponse {
2
+ data?: UpdatePrivateMessagesResponse.Data;
3
+ }
4
+ export declare namespace UpdatePrivateMessagesResponse {
5
+ interface Data {
6
+ /** Recipient User ID */
7
+ recipientId: string;
8
+ /** Sender user ID (required for API key auth, ignored for JWT auth) */
9
+ senderId?: string;
10
+ /** Message title (optional for replies) */
11
+ title?: string;
12
+ /** Message content */
13
+ body: string;
14
+ /** Parent Message ID (for replies) */
15
+ parentId?: string;
16
+ /** Extended data */
17
+ extendedData?: Record<string, unknown>;
18
+ id: string;
19
+ /** Message status (sent, delivered, read, archived) */
20
+ status: string | null;
21
+ /** Message sent timestamp */
22
+ createdAt: string;
23
+ /** Message last update timestamp */
24
+ updatedAt: string;
25
+ }
26
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1 +1,2 @@
1
1
  export * from "./RetrieveReplyPrivateMessagesResponse.mjs";
2
+ export * from "./UpdatePrivateMessagesResponse.mjs";
@@ -1 +1,2 @@
1
1
  export * from "./RetrieveReplyPrivateMessagesResponse.mjs";
2
+ export * from "./UpdatePrivateMessagesResponse.mjs";
@@ -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
  }
@@ -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,28 @@
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
+ /** Reason for reporting */
9
+ description?: string;
10
+ /** Reporter user ID (required for API key auth, ignored for JWT auth) */
11
+ userId?: string;
12
+ /** ID of user being reported */
13
+ reportedId?: string;
14
+ /** ID of thread being reported */
15
+ threadId?: string;
16
+ /** ID of post being reported */
17
+ postId?: string;
18
+ /** ID of private message being reported */
19
+ privateMessageId?: string;
20
+ id: string;
21
+ /** Report status (pending, reviewed, resolved, dismissed) */
22
+ status: string | null;
23
+ /** Report creation timestamp */
24
+ createdAt: string;
25
+ /** Report last update timestamp */
26
+ updatedAt: string;
27
+ }
28
+ }
@@ -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
+ }