featurebase-node 0.14.3 → 0.15.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 (415) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +11 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/audit-logs.d.mts +3 -3
  12. package/resources/audit-logs.d.mts.map +1 -1
  13. package/resources/audit-logs.d.ts +3 -3
  14. package/resources/audit-logs.d.ts.map +1 -1
  15. package/resources/changelogs/changelogs.d.mts +116 -116
  16. package/resources/changelogs/changelogs.d.mts.map +1 -1
  17. package/resources/changelogs/changelogs.d.ts +116 -116
  18. package/resources/changelogs/changelogs.d.ts.map +1 -1
  19. package/resources/changelogs/changelogs.js +74 -74
  20. package/resources/changelogs/changelogs.js.map +1 -1
  21. package/resources/changelogs/changelogs.mjs +74 -74
  22. package/resources/changelogs/changelogs.mjs.map +1 -1
  23. package/resources/changelogs/index.d.mts +1 -1
  24. package/resources/changelogs/index.d.mts.map +1 -1
  25. package/resources/changelogs/index.d.ts +1 -1
  26. package/resources/changelogs/index.d.ts.map +1 -1
  27. package/resources/changelogs/subscribers.d.mts +3 -3
  28. package/resources/changelogs/subscribers.d.mts.map +1 -1
  29. package/resources/changelogs/subscribers.d.ts +3 -3
  30. package/resources/changelogs/subscribers.d.ts.map +1 -1
  31. package/resources/conversation-attributes.d.mts +22 -17
  32. package/resources/conversation-attributes.d.mts.map +1 -1
  33. package/resources/conversation-attributes.d.ts +22 -17
  34. package/resources/conversation-attributes.d.ts.map +1 -1
  35. package/resources/conversation-attributes.js +19 -19
  36. package/resources/conversation-attributes.js.map +1 -1
  37. package/resources/conversation-attributes.mjs +19 -19
  38. package/resources/conversation-attributes.mjs.map +1 -1
  39. package/resources/feedback/boards.d.mts +19 -19
  40. package/resources/feedback/boards.d.mts.map +1 -1
  41. package/resources/feedback/boards.d.ts +19 -19
  42. package/resources/feedback/boards.d.ts.map +1 -1
  43. package/resources/feedback/boards.js +20 -20
  44. package/resources/feedback/boards.js.map +1 -1
  45. package/resources/feedback/boards.mjs +20 -20
  46. package/resources/feedback/boards.mjs.map +1 -1
  47. package/resources/feedback/comments.d.mts +113 -113
  48. package/resources/feedback/comments.d.mts.map +1 -1
  49. package/resources/feedback/comments.d.ts +113 -113
  50. package/resources/feedback/comments.d.ts.map +1 -1
  51. package/resources/feedback/comments.js +93 -93
  52. package/resources/feedback/comments.js.map +1 -1
  53. package/resources/feedback/comments.mjs +93 -93
  54. package/resources/feedback/comments.mjs.map +1 -1
  55. package/resources/feedback/custom-fields.d.mts +36 -36
  56. package/resources/feedback/custom-fields.d.mts.map +1 -1
  57. package/resources/feedback/custom-fields.d.ts +36 -36
  58. package/resources/feedback/custom-fields.d.ts.map +1 -1
  59. package/resources/feedback/custom-fields.js +36 -36
  60. package/resources/feedback/custom-fields.js.map +1 -1
  61. package/resources/feedback/custom-fields.mjs +36 -36
  62. package/resources/feedback/custom-fields.mjs.map +1 -1
  63. package/resources/feedback/feedback.d.mts +5 -5
  64. package/resources/feedback/feedback.d.mts.map +1 -1
  65. package/resources/feedback/feedback.d.ts +5 -5
  66. package/resources/feedback/feedback.d.ts.map +1 -1
  67. package/resources/feedback/index.d.mts +5 -5
  68. package/resources/feedback/index.d.mts.map +1 -1
  69. package/resources/feedback/index.d.ts +5 -5
  70. package/resources/feedback/index.d.ts.map +1 -1
  71. package/resources/feedback/post-statuses.d.mts +20 -20
  72. package/resources/feedback/post-statuses.d.mts.map +1 -1
  73. package/resources/feedback/post-statuses.d.ts +20 -20
  74. package/resources/feedback/post-statuses.d.ts.map +1 -1
  75. package/resources/feedback/post-statuses.js +23 -23
  76. package/resources/feedback/post-statuses.js.map +1 -1
  77. package/resources/feedback/post-statuses.mjs +23 -23
  78. package/resources/feedback/post-statuses.mjs.map +1 -1
  79. package/resources/feedback/posts/index.d.mts +1 -1
  80. package/resources/feedback/posts/index.d.mts.map +1 -1
  81. package/resources/feedback/posts/index.d.ts +1 -1
  82. package/resources/feedback/posts/index.d.ts.map +1 -1
  83. package/resources/feedback/posts/posts.d.mts +132 -132
  84. package/resources/feedback/posts/posts.d.mts.map +1 -1
  85. package/resources/feedback/posts/posts.d.ts +132 -132
  86. package/resources/feedback/posts/posts.d.ts.map +1 -1
  87. package/resources/feedback/posts/posts.js +107 -107
  88. package/resources/feedback/posts/posts.js.map +1 -1
  89. package/resources/feedback/posts/posts.mjs +107 -107
  90. package/resources/feedback/posts/posts.mjs.map +1 -1
  91. package/resources/feedback/posts/voters.d.mts +3 -3
  92. package/resources/feedback/posts/voters.d.mts.map +1 -1
  93. package/resources/feedback/posts/voters.d.ts +3 -3
  94. package/resources/feedback/posts/voters.d.ts.map +1 -1
  95. package/resources/help-center/articles.d.mts +213 -97
  96. package/resources/help-center/articles.d.mts.map +1 -1
  97. package/resources/help-center/articles.d.ts +213 -97
  98. package/resources/help-center/articles.d.ts.map +1 -1
  99. package/resources/help-center/articles.js +73 -73
  100. package/resources/help-center/articles.js.map +1 -1
  101. package/resources/help-center/articles.mjs +73 -73
  102. package/resources/help-center/articles.mjs.map +1 -1
  103. package/resources/help-center/collections.d.mts +158 -71
  104. package/resources/help-center/collections.d.mts.map +1 -1
  105. package/resources/help-center/collections.d.ts +158 -71
  106. package/resources/help-center/collections.d.ts.map +1 -1
  107. package/resources/help-center/collections.js +65 -65
  108. package/resources/help-center/collections.js.map +1 -1
  109. package/resources/help-center/collections.mjs +65 -65
  110. package/resources/help-center/collections.mjs.map +1 -1
  111. package/resources/help-center/help-center.d.mts +4 -4
  112. package/resources/help-center/help-center.d.mts.map +1 -1
  113. package/resources/help-center/help-center.d.ts +4 -4
  114. package/resources/help-center/help-center.d.ts.map +1 -1
  115. package/resources/help-center/help-centers.d.mts +77 -48
  116. package/resources/help-center/help-centers.d.mts.map +1 -1
  117. package/resources/help-center/help-centers.d.ts +77 -48
  118. package/resources/help-center/help-centers.d.ts.map +1 -1
  119. package/resources/help-center/help-centers.js +43 -43
  120. package/resources/help-center/help-centers.js.map +1 -1
  121. package/resources/help-center/help-centers.mjs +43 -43
  122. package/resources/help-center/help-centers.mjs.map +1 -1
  123. package/resources/help-center/index.d.mts +4 -4
  124. package/resources/help-center/index.d.mts.map +1 -1
  125. package/resources/help-center/index.d.ts +4 -4
  126. package/resources/help-center/index.d.ts.map +1 -1
  127. package/resources/help-center/redirect-rules.d.mts +124 -124
  128. package/resources/help-center/redirect-rules.d.mts.map +1 -1
  129. package/resources/help-center/redirect-rules.d.ts +124 -124
  130. package/resources/help-center/redirect-rules.d.ts.map +1 -1
  131. package/resources/help-center/redirect-rules.js +112 -112
  132. package/resources/help-center/redirect-rules.js.map +1 -1
  133. package/resources/help-center/redirect-rules.mjs +112 -112
  134. package/resources/help-center/redirect-rules.mjs.map +1 -1
  135. package/resources/index.d.mts +6 -5
  136. package/resources/index.d.mts.map +1 -1
  137. package/resources/index.d.ts +6 -5
  138. package/resources/index.d.ts.map +1 -1
  139. package/resources/index.js +3 -1
  140. package/resources/index.js.map +1 -1
  141. package/resources/index.mjs +1 -0
  142. package/resources/index.mjs.map +1 -1
  143. package/resources/organization/admins.d.mts +26 -26
  144. package/resources/organization/admins.d.mts.map +1 -1
  145. package/resources/organization/admins.d.ts +26 -26
  146. package/resources/organization/admins.d.ts.map +1 -1
  147. package/resources/organization/admins.js +25 -25
  148. package/resources/organization/admins.js.map +1 -1
  149. package/resources/organization/admins.mjs +25 -25
  150. package/resources/organization/admins.mjs.map +1 -1
  151. package/resources/organization/brands.d.mts +52 -52
  152. package/resources/organization/brands.d.mts.map +1 -1
  153. package/resources/organization/brands.d.ts +52 -52
  154. package/resources/organization/brands.d.ts.map +1 -1
  155. package/resources/organization/brands.js +54 -54
  156. package/resources/organization/brands.js.map +1 -1
  157. package/resources/organization/brands.mjs +54 -54
  158. package/resources/organization/brands.mjs.map +1 -1
  159. package/resources/organization/index.d.mts +3 -3
  160. package/resources/organization/index.d.mts.map +1 -1
  161. package/resources/organization/index.d.ts +3 -3
  162. package/resources/organization/index.d.ts.map +1 -1
  163. package/resources/organization/organization.d.mts +3 -3
  164. package/resources/organization/organization.d.mts.map +1 -1
  165. package/resources/organization/organization.d.ts +3 -3
  166. package/resources/organization/organization.d.ts.map +1 -1
  167. package/resources/organization/teams.d.mts +47 -47
  168. package/resources/organization/teams.d.mts.map +1 -1
  169. package/resources/organization/teams.d.ts +47 -47
  170. package/resources/organization/teams.d.ts.map +1 -1
  171. package/resources/organization/teams.js +44 -44
  172. package/resources/organization/teams.js.map +1 -1
  173. package/resources/organization/teams.mjs +44 -44
  174. package/resources/organization/teams.mjs.map +1 -1
  175. package/resources/reports.d.mts +339 -223
  176. package/resources/reports.d.mts.map +1 -1
  177. package/resources/reports.d.ts +339 -223
  178. package/resources/reports.d.ts.map +1 -1
  179. package/resources/reports.js +114 -107
  180. package/resources/reports.js.map +1 -1
  181. package/resources/reports.mjs +114 -107
  182. package/resources/reports.mjs.map +1 -1
  183. package/resources/support/conversation-tags.d.mts +43 -43
  184. package/resources/support/conversation-tags.d.mts.map +1 -1
  185. package/resources/support/conversation-tags.d.ts +43 -43
  186. package/resources/support/conversation-tags.d.ts.map +1 -1
  187. package/resources/support/conversation-tags.js +32 -32
  188. package/resources/support/conversation-tags.js.map +1 -1
  189. package/resources/support/conversation-tags.mjs +32 -32
  190. package/resources/support/conversation-tags.mjs.map +1 -1
  191. package/resources/support/conversations/conversations.d.mts +363 -332
  192. package/resources/support/conversations/conversations.d.mts.map +1 -1
  193. package/resources/support/conversations/conversations.d.ts +363 -332
  194. package/resources/support/conversations/conversations.d.ts.map +1 -1
  195. package/resources/support/conversations/conversations.js +293 -283
  196. package/resources/support/conversations/conversations.js.map +1 -1
  197. package/resources/support/conversations/conversations.mjs +293 -283
  198. package/resources/support/conversations/conversations.mjs.map +1 -1
  199. package/resources/support/conversations/index.d.mts +1 -1
  200. package/resources/support/conversations/index.d.mts.map +1 -1
  201. package/resources/support/conversations/index.d.ts +1 -1
  202. package/resources/support/conversations/index.d.ts.map +1 -1
  203. package/resources/support/conversations/participants.d.mts +2 -2
  204. package/resources/support/conversations/participants.d.mts.map +1 -1
  205. package/resources/support/conversations/participants.d.ts +2 -2
  206. package/resources/support/conversations/participants.d.ts.map +1 -1
  207. package/resources/support/index.d.mts +3 -3
  208. package/resources/support/index.d.mts.map +1 -1
  209. package/resources/support/index.d.ts +3 -3
  210. package/resources/support/index.d.ts.map +1 -1
  211. package/resources/support/support.d.mts +3 -3
  212. package/resources/support/support.d.mts.map +1 -1
  213. package/resources/support/support.d.ts +3 -3
  214. package/resources/support/support.d.ts.map +1 -1
  215. package/resources/support/tickets/categories.d.mts +20 -20
  216. package/resources/support/tickets/categories.d.mts.map +1 -1
  217. package/resources/support/tickets/categories.d.ts +20 -20
  218. package/resources/support/tickets/categories.d.ts.map +1 -1
  219. package/resources/support/tickets/categories.js +25 -25
  220. package/resources/support/tickets/categories.js.map +1 -1
  221. package/resources/support/tickets/categories.mjs +25 -25
  222. package/resources/support/tickets/categories.mjs.map +1 -1
  223. package/resources/support/tickets/custom-fields.d.mts +22 -22
  224. package/resources/support/tickets/custom-fields.d.mts.map +1 -1
  225. package/resources/support/tickets/custom-fields.d.ts +22 -22
  226. package/resources/support/tickets/custom-fields.d.ts.map +1 -1
  227. package/resources/support/tickets/custom-fields.js +19 -19
  228. package/resources/support/tickets/custom-fields.js.map +1 -1
  229. package/resources/support/tickets/custom-fields.mjs +19 -19
  230. package/resources/support/tickets/custom-fields.mjs.map +1 -1
  231. package/resources/support/tickets/index.d.mts +4 -4
  232. package/resources/support/tickets/index.d.mts.map +1 -1
  233. package/resources/support/tickets/index.d.ts +4 -4
  234. package/resources/support/tickets/index.d.ts.map +1 -1
  235. package/resources/support/tickets/statuses.d.mts +19 -19
  236. package/resources/support/tickets/statuses.d.mts.map +1 -1
  237. package/resources/support/tickets/statuses.d.ts +19 -19
  238. package/resources/support/tickets/statuses.d.ts.map +1 -1
  239. package/resources/support/tickets/statuses.js +21 -21
  240. package/resources/support/tickets/statuses.js.map +1 -1
  241. package/resources/support/tickets/statuses.mjs +21 -21
  242. package/resources/support/tickets/statuses.mjs.map +1 -1
  243. package/resources/support/tickets/tickets.d.mts +75 -75
  244. package/resources/support/tickets/tickets.d.mts.map +1 -1
  245. package/resources/support/tickets/tickets.d.ts +75 -75
  246. package/resources/support/tickets/tickets.d.ts.map +1 -1
  247. package/resources/support/tickets/tickets.js +44 -44
  248. package/resources/support/tickets/tickets.js.map +1 -1
  249. package/resources/support/tickets/tickets.mjs +44 -44
  250. package/resources/support/tickets/tickets.mjs.map +1 -1
  251. package/resources/surveys.d.mts +43 -43
  252. package/resources/surveys.d.mts.map +1 -1
  253. package/resources/surveys.d.ts +43 -43
  254. package/resources/surveys.d.ts.map +1 -1
  255. package/resources/surveys.js +44 -44
  256. package/resources/surveys.js.map +1 -1
  257. package/resources/surveys.mjs +44 -44
  258. package/resources/surveys.mjs.map +1 -1
  259. package/resources/training-data/files.d.mts +292 -0
  260. package/resources/training-data/files.d.mts.map +1 -0
  261. package/resources/training-data/files.d.ts +292 -0
  262. package/resources/training-data/files.d.ts.map +1 -0
  263. package/resources/training-data/files.js +171 -0
  264. package/resources/training-data/files.js.map +1 -0
  265. package/resources/training-data/files.mjs +167 -0
  266. package/resources/training-data/files.mjs.map +1 -0
  267. package/resources/training-data/index.d.mts +4 -0
  268. package/resources/training-data/index.d.mts.map +1 -0
  269. package/resources/training-data/index.d.ts +4 -0
  270. package/resources/training-data/index.d.ts.map +1 -0
  271. package/resources/training-data/index.js +11 -0
  272. package/resources/training-data/index.js.map +1 -0
  273. package/resources/training-data/index.mjs +5 -0
  274. package/resources/training-data/index.mjs.map +1 -0
  275. package/resources/training-data/qna.d.mts +370 -0
  276. package/resources/training-data/qna.d.mts.map +1 -0
  277. package/resources/training-data/qna.d.ts +370 -0
  278. package/resources/training-data/qna.d.ts.map +1 -0
  279. package/resources/training-data/qna.js +177 -0
  280. package/resources/training-data/qna.js.map +1 -0
  281. package/resources/training-data/qna.mjs +173 -0
  282. package/resources/training-data/qna.mjs.map +1 -0
  283. package/resources/training-data/training-data.d.mts +442 -0
  284. package/resources/training-data/training-data.d.mts.map +1 -0
  285. package/resources/training-data/training-data.d.ts +442 -0
  286. package/resources/training-data/training-data.d.ts.map +1 -0
  287. package/resources/training-data/training-data.js +105 -0
  288. package/resources/training-data/training-data.js.map +1 -0
  289. package/resources/training-data/training-data.mjs +100 -0
  290. package/resources/training-data/training-data.mjs.map +1 -0
  291. package/resources/training-data.d.mts +2 -0
  292. package/resources/training-data.d.mts.map +1 -0
  293. package/resources/training-data.d.ts +2 -0
  294. package/resources/training-data.d.ts.map +1 -0
  295. package/resources/training-data.js +6 -0
  296. package/resources/training-data.js.map +1 -0
  297. package/resources/training-data.mjs +3 -0
  298. package/resources/training-data.mjs.map +1 -0
  299. package/resources/users/companies/companies.d.mts +121 -130
  300. package/resources/users/companies/companies.d.mts.map +1 -1
  301. package/resources/users/companies/companies.d.ts +121 -130
  302. package/resources/users/companies/companies.d.ts.map +1 -1
  303. package/resources/users/companies/companies.js +125 -125
  304. package/resources/users/companies/companies.js.map +1 -1
  305. package/resources/users/companies/companies.mjs +125 -125
  306. package/resources/users/companies/companies.mjs.map +1 -1
  307. package/resources/users/companies/contacts.d.mts +3 -3
  308. package/resources/users/companies/contacts.d.mts.map +1 -1
  309. package/resources/users/companies/contacts.d.ts +3 -3
  310. package/resources/users/companies/contacts.d.ts.map +1 -1
  311. package/resources/users/companies/index.d.mts +1 -1
  312. package/resources/users/companies/index.d.mts.map +1 -1
  313. package/resources/users/companies/index.d.ts +1 -1
  314. package/resources/users/companies/index.d.ts.map +1 -1
  315. package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
  316. package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
  317. package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
  318. package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
  319. package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
  320. package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
  321. package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
  322. package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
  323. package/resources/users/contacts/contacts.d.mts +249 -235
  324. package/resources/users/contacts/contacts.d.mts.map +1 -1
  325. package/resources/users/contacts/contacts.d.ts +249 -235
  326. package/resources/users/contacts/contacts.d.ts.map +1 -1
  327. package/resources/users/contacts/contacts.js +211 -184
  328. package/resources/users/contacts/contacts.js.map +1 -1
  329. package/resources/users/contacts/contacts.mjs +211 -184
  330. package/resources/users/contacts/contacts.mjs.map +1 -1
  331. package/resources/users/contacts/email-preferences.d.mts +2 -2
  332. package/resources/users/contacts/email-preferences.d.mts.map +1 -1
  333. package/resources/users/contacts/email-preferences.d.ts +2 -2
  334. package/resources/users/contacts/email-preferences.d.ts.map +1 -1
  335. package/resources/users/contacts/index.d.mts +1 -1
  336. package/resources/users/contacts/index.d.mts.map +1 -1
  337. package/resources/users/contacts/index.d.ts +1 -1
  338. package/resources/users/contacts/index.d.ts.map +1 -1
  339. package/resources/users/index.d.mts +2 -2
  340. package/resources/users/index.d.mts.map +1 -1
  341. package/resources/users/index.d.ts +2 -2
  342. package/resources/users/index.d.ts.map +1 -1
  343. package/resources/users/users.d.mts +2 -2
  344. package/resources/users/users.d.mts.map +1 -1
  345. package/resources/users/users.d.ts +2 -2
  346. package/resources/users/users.d.ts.map +1 -1
  347. package/resources/webhooks.d.mts +83 -83
  348. package/resources/webhooks.d.mts.map +1 -1
  349. package/resources/webhooks.d.ts +83 -83
  350. package/resources/webhooks.d.ts.map +1 -1
  351. package/resources/webhooks.js +77 -77
  352. package/resources/webhooks.js.map +1 -1
  353. package/resources/webhooks.mjs +77 -77
  354. package/resources/webhooks.mjs.map +1 -1
  355. package/src/client.ts +26 -6
  356. package/src/resources/audit-logs.ts +19 -1
  357. package/src/resources/changelogs/changelogs.ts +320 -175
  358. package/src/resources/changelogs/index.ts +1 -1
  359. package/src/resources/changelogs/subscribers.ts +31 -2
  360. package/src/resources/conversation-attributes.ts +40 -34
  361. package/src/resources/feedback/boards.ts +30 -30
  362. package/src/resources/feedback/comments.ts +137 -137
  363. package/src/resources/feedback/custom-fields.ts +46 -46
  364. package/src/resources/feedback/feedback.ts +6 -6
  365. package/src/resources/feedback/index.ts +6 -6
  366. package/src/resources/feedback/post-statuses.ts +33 -33
  367. package/src/resources/feedback/posts/index.ts +2 -2
  368. package/src/resources/feedback/posts/posts.ts +176 -176
  369. package/src/resources/feedback/posts/voters.ts +3 -3
  370. package/src/resources/help-center/articles.ts +631 -109
  371. package/src/resources/help-center/collections.ts +349 -88
  372. package/src/resources/help-center/help-center.ts +5 -5
  373. package/src/resources/help-center/help-centers.ts +202 -57
  374. package/src/resources/help-center/index.ts +5 -5
  375. package/src/resources/help-center/redirect-rules.ts +294 -178
  376. package/src/resources/index.ts +13 -6
  377. package/src/resources/organization/admins.ts +36 -36
  378. package/src/resources/organization/brands.ts +68 -68
  379. package/src/resources/organization/index.ts +3 -3
  380. package/src/resources/organization/organization.ts +3 -3
  381. package/src/resources/organization/teams.ts +54 -54
  382. package/src/resources/reports.ts +462 -272
  383. package/src/resources/support/conversation-tags.ts +62 -62
  384. package/src/resources/support/conversations/conversations.ts +453 -417
  385. package/src/resources/support/conversations/index.ts +4 -4
  386. package/src/resources/support/conversations/participants.ts +2 -2
  387. package/src/resources/support/index.ts +7 -7
  388. package/src/resources/support/support.ts +7 -7
  389. package/src/resources/support/tickets/categories.ts +35 -35
  390. package/src/resources/support/tickets/custom-fields.ts +29 -29
  391. package/src/resources/support/tickets/index.ts +4 -4
  392. package/src/resources/support/tickets/statuses.ts +31 -31
  393. package/src/resources/support/tickets/tickets.ts +101 -101
  394. package/src/resources/surveys.ts +60 -60
  395. package/src/resources/training-data/files.ts +431 -0
  396. package/src/resources/training-data/index.ts +31 -0
  397. package/src/resources/training-data/qna.ts +514 -0
  398. package/src/resources/training-data/training-data.ts +603 -0
  399. package/src/resources/training-data.ts +3 -0
  400. package/src/resources/users/companies/companies.ts +158 -172
  401. package/src/resources/users/companies/contacts.ts +3 -3
  402. package/src/resources/users/companies/index.ts +2 -2
  403. package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
  404. package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
  405. package/src/resources/users/contacts/contacts.ts +284 -280
  406. package/src/resources/users/contacts/email-preferences.ts +2 -2
  407. package/src/resources/users/contacts/index.ts +3 -3
  408. package/src/resources/users/index.ts +5 -5
  409. package/src/resources/users/users.ts +5 -5
  410. package/src/resources/webhooks.ts +106 -100
  411. package/src/version.ts +1 -1
  412. package/version.d.mts +1 -1
  413. package/version.d.ts +1 -1
  414. package/version.js +1 -1
  415. package/version.mjs +1 -1
@@ -9,85 +9,6 @@ import { RequestOptions } from "../../internal/request-options.js";
9
9
  * Threaded discussions on posts and changelogs. Comments support voting, moderation, and privacy controls.
10
10
  */
11
11
  export declare class Comments extends APIResource {
12
- /**
13
- * Returns comments for your organization.
14
- *
15
- * Comments are threaded discussions. Each comment can have:
16
- *
17
- * - Author information
18
- * - Voting (upvotes/downvotes)
19
- * - Privacy settings (public/private)
20
- * - Moderation status
21
- * - Parent comment reference for threading
22
- *
23
- * ### Filtering
24
- *
25
- * Optionally filter by:
26
- *
27
- * - `postId` - Get comments for a specific post
28
- * - `changelogId` - Get comments for a specific changelog
29
- *
30
- * If no filter is provided, returns all comments across the organization.
31
- *
32
- * ### Pagination
33
- *
34
- * This endpoint uses **cursor-based pagination**:
35
- *
36
- * - `limit` - Number of comments to return (1-100, default 10)
37
- * - `cursor` - Opaque cursor from a previous response's `nextCursor` field
38
- *
39
- * **Example:** To paginate through results:
40
- *
41
- * 1. First request: `GET /v2/comments?postId={id}&limit=10`
42
- * 2. If `nextCursor` is not null, use it for the next page
43
- * 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
44
- *
45
- * ### Response Format
46
- *
47
- * Returns a list object with:
48
- *
49
- * - `object` - Always "list"
50
- * - `data` - Array of comment objects (flat structure with `parentCommentId` for
51
- * threading)
52
- * - `nextCursor` - Cursor for the next page (null if no more results)
53
- *
54
- * ### Comment Structure
55
- *
56
- * Each comment includes:
57
- *
58
- * - `id` - Unique comment identifier
59
- * - `postId` / `changelogId` - Reference to the parent content
60
- * - `parentCommentId` - Reference to parent comment (null for root comments)
61
- * - `content` - Comment content in HTML format
62
- * - `author` - Author information (id, name, profilePicture, type)
63
- * - `upvotes` / `downvotes` / `score` - Voting metrics
64
- * - `isPrivate` - Whether comment is only visible to admins
65
- * - `inReview` - Whether comment is pending moderation
66
- * - `created` / `updated` - Unix timestamps
67
- *
68
- * ### Additional Filters
69
- *
70
- * - `privacy` - Filter by privacy: "public", "private", or "all"
71
- * - `inReview` - Filter by moderation status (true/false)
72
- *
73
- * ### Sorting
74
- *
75
- * Use `sortBy` to sort results:
76
- *
77
- * - `best` - Sort by confidence score (default, like Reddit)
78
- * - `top` - Sort by net score (upvotes - downvotes)
79
- * - `new` - Sort by creation date, newest first
80
- * - `old` - Sort by creation date, oldest first
81
- *
82
- * @example
83
- * ```ts
84
- * // Automatically fetches more pages as needed.
85
- * for await (const comment of client.feedback.comments.list()) {
86
- * // ...
87
- * }
88
- * ```
89
- */
90
- list(params?: CommentListParams | null | undefined, options?: RequestOptions): PagePromise<CommentsCursorPage, Comment>;
91
12
  /**
92
13
  * Creates a new comment or reply to an existing comment.
93
14
  *
@@ -227,6 +148,85 @@ export declare class Comments extends APIResource {
227
148
  * ```
228
149
  */
229
150
  update(id: string, params: CommentUpdateParams, options?: RequestOptions): APIPromise<Comment>;
151
+ /**
152
+ * Returns comments for your organization.
153
+ *
154
+ * Comments are threaded discussions. Each comment can have:
155
+ *
156
+ * - Author information
157
+ * - Voting (upvotes/downvotes)
158
+ * - Privacy settings (public/private)
159
+ * - Moderation status
160
+ * - Parent comment reference for threading
161
+ *
162
+ * ### Filtering
163
+ *
164
+ * Optionally filter by:
165
+ *
166
+ * - `postId` - Get comments for a specific post
167
+ * - `changelogId` - Get comments for a specific changelog
168
+ *
169
+ * If no filter is provided, returns all comments across the organization.
170
+ *
171
+ * ### Pagination
172
+ *
173
+ * This endpoint uses **cursor-based pagination**:
174
+ *
175
+ * - `limit` - Number of comments to return (1-100, default 10)
176
+ * - `cursor` - Opaque cursor from a previous response's `nextCursor` field
177
+ *
178
+ * **Example:** To paginate through results:
179
+ *
180
+ * 1. First request: `GET /v2/comments?postId={id}&limit=10`
181
+ * 2. If `nextCursor` is not null, use it for the next page
182
+ * 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
183
+ *
184
+ * ### Response Format
185
+ *
186
+ * Returns a list object with:
187
+ *
188
+ * - `object` - Always "list"
189
+ * - `data` - Array of comment objects (flat structure with `parentCommentId` for
190
+ * threading)
191
+ * - `nextCursor` - Cursor for the next page (null if no more results)
192
+ *
193
+ * ### Comment Structure
194
+ *
195
+ * Each comment includes:
196
+ *
197
+ * - `id` - Unique comment identifier
198
+ * - `postId` / `changelogId` - Reference to the parent content
199
+ * - `parentCommentId` - Reference to parent comment (null for root comments)
200
+ * - `content` - Comment content in HTML format
201
+ * - `author` - Author information (id, name, profilePicture, type)
202
+ * - `upvotes` / `downvotes` / `score` - Voting metrics
203
+ * - `isPrivate` - Whether comment is only visible to admins
204
+ * - `inReview` - Whether comment is pending moderation
205
+ * - `created` / `updated` - Unix timestamps
206
+ *
207
+ * ### Additional Filters
208
+ *
209
+ * - `privacy` - Filter by privacy: "public", "private", or "all"
210
+ * - `inReview` - Filter by moderation status (true/false)
211
+ *
212
+ * ### Sorting
213
+ *
214
+ * Use `sortBy` to sort results:
215
+ *
216
+ * - `best` - Sort by confidence score (default, like Reddit)
217
+ * - `top` - Sort by net score (upvotes - downvotes)
218
+ * - `new` - Sort by creation date, newest first
219
+ * - `old` - Sort by creation date, oldest first
220
+ *
221
+ * @example
222
+ * ```ts
223
+ * // Automatically fetches more pages as needed.
224
+ * for await (const comment of client.feedback.comments.list()) {
225
+ * // ...
226
+ * }
227
+ * ```
228
+ */
229
+ list(params?: CommentListParams | null | undefined, options?: RequestOptions): PagePromise<CommentsCursorPage, Comment>;
230
230
  /**
231
231
  * Deletes a comment by its unique identifier.
232
232
  *
@@ -681,33 +681,6 @@ export declare namespace CommentSearchResponse {
681
681
  upvotes: number;
682
682
  }
683
683
  }
684
- export interface CommentListParams extends CursorPageParams {
685
- /**
686
- * Query param: Filter comments by changelog ID
687
- */
688
- changelogId?: string;
689
- /**
690
- * Query param: Filter by review status
691
- */
692
- inReview?: boolean | null;
693
- /**
694
- * Query param: Filter comments by post ID
695
- */
696
- postId?: string;
697
- /**
698
- * Query param: Filter comments by privacy
699
- */
700
- privacy?: 'public' | 'private' | 'all';
701
- /**
702
- * Query param: Sort order for comments
703
- */
704
- sortBy?: 'best' | 'top' | 'new' | 'old';
705
- /**
706
- * Header param: API version for this request. Defaults to your organization's
707
- * configured API version if not specified.
708
- */
709
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
710
- }
711
684
  export interface CommentCreateParams {
712
685
  /**
713
686
  * Body param: Comment content in HTML format
@@ -758,14 +731,14 @@ export interface CommentCreateParams {
758
731
  * Header param: API version for this request. Defaults to your organization's
759
732
  * configured API version if not specified.
760
733
  */
761
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
734
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
762
735
  }
763
736
  export interface CommentRetrieveParams {
764
737
  /**
765
738
  * API version for this request. Defaults to your organization's configured API
766
739
  * version if not specified.
767
740
  */
768
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
741
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
769
742
  }
770
743
  export interface CommentUpdateParams {
771
744
  /**
@@ -802,14 +775,41 @@ export interface CommentUpdateParams {
802
775
  * Header param: API version for this request. Defaults to your organization's
803
776
  * configured API version if not specified.
804
777
  */
805
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
778
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
779
+ }
780
+ export interface CommentListParams extends CursorPageParams {
781
+ /**
782
+ * Query param: Filter comments by changelog ID
783
+ */
784
+ changelogId?: string;
785
+ /**
786
+ * Query param: Filter by review status
787
+ */
788
+ inReview?: boolean | null;
789
+ /**
790
+ * Query param: Filter comments by post ID
791
+ */
792
+ postId?: string;
793
+ /**
794
+ * Query param: Filter comments by privacy
795
+ */
796
+ privacy?: 'public' | 'private' | 'all';
797
+ /**
798
+ * Query param: Sort order for comments
799
+ */
800
+ sortBy?: 'best' | 'top' | 'new' | 'old';
801
+ /**
802
+ * Header param: API version for this request. Defaults to your organization's
803
+ * configured API version if not specified.
804
+ */
805
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
806
806
  }
807
807
  export interface CommentDelete0Params {
808
808
  /**
809
809
  * API version for this request. Defaults to your organization's configured API
810
810
  * version if not specified.
811
811
  */
812
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
812
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
813
813
  }
814
814
  export interface CommentDelete1Params {
815
815
  /**
@@ -820,7 +820,7 @@ export interface CommentDelete1Params {
820
820
  * Header param: API version for this request. Defaults to your organization's
821
821
  * configured API version if not specified.
822
822
  */
823
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
823
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
824
824
  }
825
825
  export interface CommentSearchParams {
826
826
  /**
@@ -857,9 +857,9 @@ export interface CommentSearchParams {
857
857
  * Header param: API version for this request. Defaults to your organization's
858
858
  * configured API version if not specified.
859
859
  */
860
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
860
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
861
861
  }
862
862
  export declare namespace Comments {
863
- export { type Comment as Comment, type CommentAuthor as CommentAuthor, type CommentDelete0Response as CommentDelete0Response, type CommentDelete1Response as CommentDelete1Response, type CommentSearchResponse as CommentSearchResponse, type CommentsCursorPage as CommentsCursorPage, type CommentListParams as CommentListParams, type CommentCreateParams as CommentCreateParams, type CommentRetrieveParams as CommentRetrieveParams, type CommentUpdateParams as CommentUpdateParams, type CommentDelete0Params as CommentDelete0Params, type CommentDelete1Params as CommentDelete1Params, type CommentSearchParams as CommentSearchParams, };
863
+ export { type Comment as Comment, type CommentAuthor as CommentAuthor, type CommentDelete0Response as CommentDelete0Response, type CommentDelete1Response as CommentDelete1Response, type CommentSearchResponse as CommentSearchResponse, type CommentsCursorPage as CommentsCursorPage, type CommentCreateParams as CommentCreateParams, type CommentRetrieveParams as CommentRetrieveParams, type CommentUpdateParams as CommentUpdateParams, type CommentListParams as CommentListParams, type CommentDelete0Params as CommentDelete0Params, type CommentDelete1Params as CommentDelete1Params, type CommentSearchParams as CommentSearchParams, };
864
864
  }
865
865
  //# sourceMappingURL=comments.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"comments.d.ts","sourceRoot":"","sources":["../../src/resources/feedback/comments.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,KAAK,QAAQ,yBAAsB;AAC1C,OAAO,KAAK,UAAU,sCAAmC;AACzD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,iCAA8B;AAE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;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,iBAAiB,CAAC;IAE3D;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,gBAAgB,GAAG,eAAe,GAAG,sBAAsB,GAAG,qBAAqB,GAAG,YAAY,CAAC;IAE1G;;;OAGG;IACH,qBAAqB,CAAC,EAAE,kBAAkB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;CACtF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -10,99 +10,6 @@ const path_1 = require("../../internal/utils/path.js");
10
10
  * Threaded discussions on posts and changelogs. Comments support voting, moderation, and privacy controls.
11
11
  */
12
12
  class Comments extends resource_1.APIResource {
13
- /**
14
- * Returns comments for your organization.
15
- *
16
- * Comments are threaded discussions. Each comment can have:
17
- *
18
- * - Author information
19
- * - Voting (upvotes/downvotes)
20
- * - Privacy settings (public/private)
21
- * - Moderation status
22
- * - Parent comment reference for threading
23
- *
24
- * ### Filtering
25
- *
26
- * Optionally filter by:
27
- *
28
- * - `postId` - Get comments for a specific post
29
- * - `changelogId` - Get comments for a specific changelog
30
- *
31
- * If no filter is provided, returns all comments across the organization.
32
- *
33
- * ### Pagination
34
- *
35
- * This endpoint uses **cursor-based pagination**:
36
- *
37
- * - `limit` - Number of comments to return (1-100, default 10)
38
- * - `cursor` - Opaque cursor from a previous response's `nextCursor` field
39
- *
40
- * **Example:** To paginate through results:
41
- *
42
- * 1. First request: `GET /v2/comments?postId={id}&limit=10`
43
- * 2. If `nextCursor` is not null, use it for the next page
44
- * 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
45
- *
46
- * ### Response Format
47
- *
48
- * Returns a list object with:
49
- *
50
- * - `object` - Always "list"
51
- * - `data` - Array of comment objects (flat structure with `parentCommentId` for
52
- * threading)
53
- * - `nextCursor` - Cursor for the next page (null if no more results)
54
- *
55
- * ### Comment Structure
56
- *
57
- * Each comment includes:
58
- *
59
- * - `id` - Unique comment identifier
60
- * - `postId` / `changelogId` - Reference to the parent content
61
- * - `parentCommentId` - Reference to parent comment (null for root comments)
62
- * - `content` - Comment content in HTML format
63
- * - `author` - Author information (id, name, profilePicture, type)
64
- * - `upvotes` / `downvotes` / `score` - Voting metrics
65
- * - `isPrivate` - Whether comment is only visible to admins
66
- * - `inReview` - Whether comment is pending moderation
67
- * - `created` / `updated` - Unix timestamps
68
- *
69
- * ### Additional Filters
70
- *
71
- * - `privacy` - Filter by privacy: "public", "private", or "all"
72
- * - `inReview` - Filter by moderation status (true/false)
73
- *
74
- * ### Sorting
75
- *
76
- * Use `sortBy` to sort results:
77
- *
78
- * - `best` - Sort by confidence score (default, like Reddit)
79
- * - `top` - Sort by net score (upvotes - downvotes)
80
- * - `new` - Sort by creation date, newest first
81
- * - `old` - Sort by creation date, oldest first
82
- *
83
- * @example
84
- * ```ts
85
- * // Automatically fetches more pages as needed.
86
- * for await (const comment of client.feedback.comments.list()) {
87
- * // ...
88
- * }
89
- * ```
90
- */
91
- list(params = {}, options) {
92
- const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
93
- return this._client.getAPIList('/v2/comments', (pagination_1.CursorPage), {
94
- query,
95
- ...options,
96
- headers: (0, headers_1.buildHeaders)([
97
- {
98
- ...(featurebaseVersion?.toString() != null ?
99
- { 'Featurebase-Version': featurebaseVersion?.toString() }
100
- : undefined),
101
- },
102
- options?.headers,
103
- ]),
104
- });
105
- }
106
13
  /**
107
14
  * Creates a new comment or reply to an existing comment.
108
15
  *
@@ -283,6 +190,99 @@ class Comments extends resource_1.APIResource {
283
190
  ]),
284
191
  });
285
192
  }
193
+ /**
194
+ * Returns comments for your organization.
195
+ *
196
+ * Comments are threaded discussions. Each comment can have:
197
+ *
198
+ * - Author information
199
+ * - Voting (upvotes/downvotes)
200
+ * - Privacy settings (public/private)
201
+ * - Moderation status
202
+ * - Parent comment reference for threading
203
+ *
204
+ * ### Filtering
205
+ *
206
+ * Optionally filter by:
207
+ *
208
+ * - `postId` - Get comments for a specific post
209
+ * - `changelogId` - Get comments for a specific changelog
210
+ *
211
+ * If no filter is provided, returns all comments across the organization.
212
+ *
213
+ * ### Pagination
214
+ *
215
+ * This endpoint uses **cursor-based pagination**:
216
+ *
217
+ * - `limit` - Number of comments to return (1-100, default 10)
218
+ * - `cursor` - Opaque cursor from a previous response's `nextCursor` field
219
+ *
220
+ * **Example:** To paginate through results:
221
+ *
222
+ * 1. First request: `GET /v2/comments?postId={id}&limit=10`
223
+ * 2. If `nextCursor` is not null, use it for the next page
224
+ * 3. Next request: `GET /v2/comments?postId={id}&limit=10&cursor={nextCursor}`
225
+ *
226
+ * ### Response Format
227
+ *
228
+ * Returns a list object with:
229
+ *
230
+ * - `object` - Always "list"
231
+ * - `data` - Array of comment objects (flat structure with `parentCommentId` for
232
+ * threading)
233
+ * - `nextCursor` - Cursor for the next page (null if no more results)
234
+ *
235
+ * ### Comment Structure
236
+ *
237
+ * Each comment includes:
238
+ *
239
+ * - `id` - Unique comment identifier
240
+ * - `postId` / `changelogId` - Reference to the parent content
241
+ * - `parentCommentId` - Reference to parent comment (null for root comments)
242
+ * - `content` - Comment content in HTML format
243
+ * - `author` - Author information (id, name, profilePicture, type)
244
+ * - `upvotes` / `downvotes` / `score` - Voting metrics
245
+ * - `isPrivate` - Whether comment is only visible to admins
246
+ * - `inReview` - Whether comment is pending moderation
247
+ * - `created` / `updated` - Unix timestamps
248
+ *
249
+ * ### Additional Filters
250
+ *
251
+ * - `privacy` - Filter by privacy: "public", "private", or "all"
252
+ * - `inReview` - Filter by moderation status (true/false)
253
+ *
254
+ * ### Sorting
255
+ *
256
+ * Use `sortBy` to sort results:
257
+ *
258
+ * - `best` - Sort by confidence score (default, like Reddit)
259
+ * - `top` - Sort by net score (upvotes - downvotes)
260
+ * - `new` - Sort by creation date, newest first
261
+ * - `old` - Sort by creation date, oldest first
262
+ *
263
+ * @example
264
+ * ```ts
265
+ * // Automatically fetches more pages as needed.
266
+ * for await (const comment of client.feedback.comments.list()) {
267
+ * // ...
268
+ * }
269
+ * ```
270
+ */
271
+ list(params = {}, options) {
272
+ const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
273
+ return this._client.getAPIList('/v2/comments', (pagination_1.CursorPage), {
274
+ query,
275
+ ...options,
276
+ headers: (0, headers_1.buildHeaders)([
277
+ {
278
+ ...(featurebaseVersion?.toString() != null ?
279
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
280
+ : undefined),
281
+ },
282
+ options?.headers,
283
+ ]),
284
+ });
285
+ }
286
286
  /**
287
287
  * Deletes a comment by its unique identifier.
288
288
  *
@@ -1 +1 @@
1
- {"version":3,"file":"comments.js","sourceRoot":"","sources":["../../src/resources/feedback/comments.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAKlD,yDAAuF;AACvF,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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