featurebase-node 0.3.0 → 0.5.0

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 (423) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +12 -6
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +12 -6
  6. package/client.d.ts.map +1 -1
  7. package/client.js +10 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +10 -0
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +54 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +54 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/changelogs/changelogs.d.mts +16 -60
  37. package/resources/changelogs/changelogs.d.mts.map +1 -1
  38. package/resources/changelogs/changelogs.d.ts +16 -60
  39. package/resources/changelogs/changelogs.d.ts.map +1 -1
  40. package/resources/changelogs/changelogs.js +41 -9
  41. package/resources/changelogs/changelogs.js.map +1 -1
  42. package/resources/changelogs/changelogs.mjs +41 -9
  43. package/resources/changelogs/changelogs.mjs.map +1 -1
  44. package/resources/changelogs/index.d.mts +1 -1
  45. package/resources/changelogs/index.d.mts.map +1 -1
  46. package/resources/changelogs/index.d.ts +1 -1
  47. package/resources/changelogs/index.d.ts.map +1 -1
  48. package/resources/changelogs/subscribers.d.mts +2 -2
  49. package/resources/changelogs/subscribers.d.mts.map +1 -1
  50. package/resources/changelogs/subscribers.d.ts +2 -2
  51. package/resources/changelogs/subscribers.d.ts.map +1 -1
  52. package/resources/changelogs/subscribers.js +10 -2
  53. package/resources/changelogs/subscribers.js.map +1 -1
  54. package/resources/changelogs/subscribers.mjs +10 -2
  55. package/resources/changelogs/subscribers.mjs.map +1 -1
  56. package/resources/feedback/boards.d.mts +2 -2
  57. package/resources/feedback/boards.d.mts.map +1 -1
  58. package/resources/feedback/boards.d.ts +2 -2
  59. package/resources/feedback/boards.d.ts.map +1 -1
  60. package/resources/feedback/boards.js +10 -2
  61. package/resources/feedback/boards.js.map +1 -1
  62. package/resources/feedback/boards.mjs +10 -2
  63. package/resources/feedback/boards.mjs.map +1 -1
  64. package/resources/feedback/comments.d.mts +15 -59
  65. package/resources/feedback/comments.d.mts.map +1 -1
  66. package/resources/feedback/comments.d.ts +15 -59
  67. package/resources/feedback/comments.d.ts.map +1 -1
  68. package/resources/feedback/comments.js +36 -8
  69. package/resources/feedback/comments.js.map +1 -1
  70. package/resources/feedback/comments.mjs +36 -8
  71. package/resources/feedback/comments.mjs.map +1 -1
  72. package/resources/feedback/custom-fields.d.mts +2 -2
  73. package/resources/feedback/custom-fields.d.mts.map +1 -1
  74. package/resources/feedback/custom-fields.d.ts +2 -2
  75. package/resources/feedback/custom-fields.d.ts.map +1 -1
  76. package/resources/feedback/custom-fields.js +10 -2
  77. package/resources/feedback/custom-fields.js.map +1 -1
  78. package/resources/feedback/custom-fields.mjs +10 -2
  79. package/resources/feedback/custom-fields.mjs.map +1 -1
  80. package/resources/feedback/feedback.d.mts +4 -4
  81. package/resources/feedback/feedback.d.mts.map +1 -1
  82. package/resources/feedback/feedback.d.ts +4 -4
  83. package/resources/feedback/feedback.d.ts.map +1 -1
  84. package/resources/feedback/feedback.mjs.map +1 -1
  85. package/resources/feedback/index.d.mts +2 -2
  86. package/resources/feedback/index.d.mts.map +1 -1
  87. package/resources/feedback/index.d.ts +2 -2
  88. package/resources/feedback/index.d.ts.map +1 -1
  89. package/resources/feedback/post-statuses.d.mts +2 -2
  90. package/resources/feedback/post-statuses.d.mts.map +1 -1
  91. package/resources/feedback/post-statuses.d.ts +2 -2
  92. package/resources/feedback/post-statuses.d.ts.map +1 -1
  93. package/resources/feedback/post-statuses.js +10 -2
  94. package/resources/feedback/post-statuses.js.map +1 -1
  95. package/resources/feedback/post-statuses.mjs +10 -2
  96. package/resources/feedback/post-statuses.mjs.map +1 -1
  97. package/resources/feedback/posts/index.d.mts +2 -2
  98. package/resources/feedback/posts/index.d.mts.map +1 -1
  99. package/resources/feedback/posts/index.d.ts +2 -2
  100. package/resources/feedback/posts/index.d.ts.map +1 -1
  101. package/resources/feedback/posts/index.js.map +1 -1
  102. package/resources/feedback/posts/index.mjs.map +1 -1
  103. package/resources/feedback/posts/posts.d.mts +16 -61
  104. package/resources/feedback/posts/posts.d.mts.map +1 -1
  105. package/resources/feedback/posts/posts.d.ts +16 -61
  106. package/resources/feedback/posts/posts.d.ts.map +1 -1
  107. package/resources/feedback/posts/posts.js +31 -7
  108. package/resources/feedback/posts/posts.js.map +1 -1
  109. package/resources/feedback/posts/posts.mjs +31 -7
  110. package/resources/feedback/posts/posts.mjs.map +1 -1
  111. package/resources/feedback/posts/voters.d.mts +82 -127
  112. package/resources/feedback/posts/voters.d.mts.map +1 -1
  113. package/resources/feedback/posts/voters.d.ts +82 -127
  114. package/resources/feedback/posts/voters.d.ts.map +1 -1
  115. package/resources/feedback/posts/voters.js +22 -6
  116. package/resources/feedback/posts/voters.js.map +1 -1
  117. package/resources/feedback/posts/voters.mjs +22 -6
  118. package/resources/feedback/posts/voters.mjs.map +1 -1
  119. package/resources/help-center/articles.d.mts +14 -32
  120. package/resources/help-center/articles.d.mts.map +1 -1
  121. package/resources/help-center/articles.d.ts +14 -32
  122. package/resources/help-center/articles.d.ts.map +1 -1
  123. package/resources/help-center/articles.js +31 -7
  124. package/resources/help-center/articles.js.map +1 -1
  125. package/resources/help-center/articles.mjs +31 -7
  126. package/resources/help-center/articles.mjs.map +1 -1
  127. package/resources/help-center/collections.d.mts +14 -33
  128. package/resources/help-center/collections.d.mts.map +1 -1
  129. package/resources/help-center/collections.d.ts +14 -33
  130. package/resources/help-center/collections.d.ts.map +1 -1
  131. package/resources/help-center/collections.js +31 -8
  132. package/resources/help-center/collections.js.map +1 -1
  133. package/resources/help-center/collections.mjs +31 -8
  134. package/resources/help-center/collections.mjs.map +1 -1
  135. package/resources/help-center/help-center.d.mts +8 -8
  136. package/resources/help-center/help-center.d.mts.map +1 -1
  137. package/resources/help-center/help-center.d.ts +8 -8
  138. package/resources/help-center/help-center.d.ts.map +1 -1
  139. package/resources/help-center/help-center.mjs.map +1 -1
  140. package/resources/help-center/help-centers.d.mts +11 -30
  141. package/resources/help-center/help-centers.d.mts.map +1 -1
  142. package/resources/help-center/help-centers.d.ts +11 -30
  143. package/resources/help-center/help-centers.d.ts.map +1 -1
  144. package/resources/help-center/help-centers.js +16 -5
  145. package/resources/help-center/help-centers.js.map +1 -1
  146. package/resources/help-center/help-centers.mjs +16 -5
  147. package/resources/help-center/help-centers.mjs.map +1 -1
  148. package/resources/help-center/index.d.mts +4 -4
  149. package/resources/help-center/index.d.mts.map +1 -1
  150. package/resources/help-center/index.d.ts +4 -4
  151. package/resources/help-center/index.d.ts.map +1 -1
  152. package/resources/help-center/redirect-rules.d.mts +15 -34
  153. package/resources/help-center/redirect-rules.d.mts.map +1 -1
  154. package/resources/help-center/redirect-rules.d.ts +15 -34
  155. package/resources/help-center/redirect-rules.d.ts.map +1 -1
  156. package/resources/help-center/redirect-rules.js +36 -9
  157. package/resources/help-center/redirect-rules.js.map +1 -1
  158. package/resources/help-center/redirect-rules.mjs +36 -9
  159. package/resources/help-center/redirect-rules.mjs.map +1 -1
  160. package/resources/index.d.mts +3 -3
  161. package/resources/index.d.mts.map +1 -1
  162. package/resources/index.d.ts +3 -3
  163. package/resources/index.d.ts.map +1 -1
  164. package/resources/index.js.map +1 -1
  165. package/resources/index.mjs.map +1 -1
  166. package/resources/organization/admins.d.mts +3 -3
  167. package/resources/organization/admins.d.mts.map +1 -1
  168. package/resources/organization/admins.d.ts +3 -3
  169. package/resources/organization/admins.d.ts.map +1 -1
  170. package/resources/organization/admins.js +15 -3
  171. package/resources/organization/admins.js.map +1 -1
  172. package/resources/organization/admins.mjs +15 -3
  173. package/resources/organization/admins.mjs.map +1 -1
  174. package/resources/organization/brands.d.mts +7 -28
  175. package/resources/organization/brands.d.mts.map +1 -1
  176. package/resources/organization/brands.d.ts +7 -28
  177. package/resources/organization/brands.d.ts.map +1 -1
  178. package/resources/organization/brands.js +12 -3
  179. package/resources/organization/brands.js.map +1 -1
  180. package/resources/organization/brands.mjs +12 -3
  181. package/resources/organization/brands.mjs.map +1 -1
  182. package/resources/organization/index.d.mts +1 -1
  183. package/resources/organization/index.d.mts.map +1 -1
  184. package/resources/organization/index.d.ts +1 -1
  185. package/resources/organization/index.d.ts.map +1 -1
  186. package/resources/organization/organization.d.mts +2 -2
  187. package/resources/organization/organization.d.mts.map +1 -1
  188. package/resources/organization/organization.d.ts +2 -2
  189. package/resources/organization/organization.d.ts.map +1 -1
  190. package/resources/organization/organization.js.map +1 -1
  191. package/resources/organization/organization.mjs.map +1 -1
  192. package/resources/organization/teams.d.mts +2 -2
  193. package/resources/organization/teams.d.mts.map +1 -1
  194. package/resources/organization/teams.d.ts +2 -2
  195. package/resources/organization/teams.d.ts.map +1 -1
  196. package/resources/organization/teams.js +10 -2
  197. package/resources/organization/teams.js.map +1 -1
  198. package/resources/organization/teams.mjs +10 -2
  199. package/resources/organization/teams.mjs.map +1 -1
  200. package/resources/support/conversation-tags.d.mts +4 -4
  201. package/resources/support/conversation-tags.d.mts.map +1 -1
  202. package/resources/support/conversation-tags.d.ts +4 -4
  203. package/resources/support/conversation-tags.d.ts.map +1 -1
  204. package/resources/support/conversation-tags.js +20 -4
  205. package/resources/support/conversation-tags.js.map +1 -1
  206. package/resources/support/conversation-tags.mjs +20 -4
  207. package/resources/support/conversation-tags.mjs.map +1 -1
  208. package/resources/support/conversations/conversations.d.mts +17 -36
  209. package/resources/support/conversations/conversations.d.mts.map +1 -1
  210. package/resources/support/conversations/conversations.d.ts +17 -36
  211. package/resources/support/conversations/conversations.d.ts.map +1 -1
  212. package/resources/support/conversations/conversations.js +41 -10
  213. package/resources/support/conversations/conversations.js.map +1 -1
  214. package/resources/support/conversations/conversations.mjs +41 -10
  215. package/resources/support/conversations/conversations.mjs.map +1 -1
  216. package/resources/support/conversations/index.d.mts +1 -1
  217. package/resources/support/conversations/index.d.mts.map +1 -1
  218. package/resources/support/conversations/index.d.ts +1 -1
  219. package/resources/support/conversations/index.d.ts.map +1 -1
  220. package/resources/support/conversations/participants.d.mts +2 -2
  221. package/resources/support/conversations/participants.d.mts.map +1 -1
  222. package/resources/support/conversations/participants.d.ts +2 -2
  223. package/resources/support/conversations/participants.d.ts.map +1 -1
  224. package/resources/support/conversations/participants.js +10 -2
  225. package/resources/support/conversations/participants.js.map +1 -1
  226. package/resources/support/conversations/participants.mjs +10 -2
  227. package/resources/support/conversations/participants.mjs.map +1 -1
  228. package/resources/support/conversations/tags.d.mts +2 -2
  229. package/resources/support/conversations/tags.d.mts.map +1 -1
  230. package/resources/support/conversations/tags.d.ts +2 -2
  231. package/resources/support/conversations/tags.d.ts.map +1 -1
  232. package/resources/support/conversations/tags.js +10 -2
  233. package/resources/support/conversations/tags.js.map +1 -1
  234. package/resources/support/conversations/tags.mjs +10 -2
  235. package/resources/support/conversations/tags.mjs.map +1 -1
  236. package/resources/support/index.d.mts +2 -2
  237. package/resources/support/index.d.mts.map +1 -1
  238. package/resources/support/index.d.ts +2 -2
  239. package/resources/support/index.d.ts.map +1 -1
  240. package/resources/support/support.d.mts +4 -4
  241. package/resources/support/support.d.mts.map +1 -1
  242. package/resources/support/support.d.ts +4 -4
  243. package/resources/support/support.d.ts.map +1 -1
  244. package/resources/support/support.mjs.map +1 -1
  245. package/resources/support/tickets/categories.d.mts +2 -2
  246. package/resources/support/tickets/categories.d.mts.map +1 -1
  247. package/resources/support/tickets/categories.d.ts +2 -2
  248. package/resources/support/tickets/categories.d.ts.map +1 -1
  249. package/resources/support/tickets/categories.js +10 -2
  250. package/resources/support/tickets/categories.js.map +1 -1
  251. package/resources/support/tickets/categories.mjs +10 -2
  252. package/resources/support/tickets/categories.mjs.map +1 -1
  253. package/resources/support/tickets/custom-fields.d.mts +2 -2
  254. package/resources/support/tickets/custom-fields.d.mts.map +1 -1
  255. package/resources/support/tickets/custom-fields.d.ts +2 -2
  256. package/resources/support/tickets/custom-fields.d.ts.map +1 -1
  257. package/resources/support/tickets/custom-fields.js +10 -2
  258. package/resources/support/tickets/custom-fields.js.map +1 -1
  259. package/resources/support/tickets/custom-fields.mjs +10 -2
  260. package/resources/support/tickets/custom-fields.mjs.map +1 -1
  261. package/resources/support/tickets/index.d.mts +1 -1
  262. package/resources/support/tickets/index.d.mts.map +1 -1
  263. package/resources/support/tickets/index.d.ts +1 -1
  264. package/resources/support/tickets/index.d.ts.map +1 -1
  265. package/resources/support/tickets/statuses.d.mts +2 -2
  266. package/resources/support/tickets/statuses.d.mts.map +1 -1
  267. package/resources/support/tickets/statuses.d.ts +2 -2
  268. package/resources/support/tickets/statuses.d.ts.map +1 -1
  269. package/resources/support/tickets/statuses.js +10 -2
  270. package/resources/support/tickets/statuses.js.map +1 -1
  271. package/resources/support/tickets/statuses.mjs +10 -2
  272. package/resources/support/tickets/statuses.mjs.map +1 -1
  273. package/resources/support/tickets/tickets.d.mts +16 -34
  274. package/resources/support/tickets/tickets.d.mts.map +1 -1
  275. package/resources/support/tickets/tickets.d.ts +16 -34
  276. package/resources/support/tickets/tickets.d.ts.map +1 -1
  277. package/resources/support/tickets/tickets.js +36 -8
  278. package/resources/support/tickets/tickets.js.map +1 -1
  279. package/resources/support/tickets/tickets.mjs +36 -8
  280. package/resources/support/tickets/tickets.mjs.map +1 -1
  281. package/resources/surveys.d.mts +37 -82
  282. package/resources/surveys.d.mts.map +1 -1
  283. package/resources/surveys.d.ts +37 -82
  284. package/resources/surveys.d.ts.map +1 -1
  285. package/resources/surveys.js +19 -6
  286. package/resources/surveys.js.map +1 -1
  287. package/resources/surveys.mjs +19 -6
  288. package/resources/surveys.mjs.map +1 -1
  289. package/resources/users/companies/companies.d.mts +14 -33
  290. package/resources/users/companies/companies.d.mts.map +1 -1
  291. package/resources/users/companies/companies.d.ts +14 -33
  292. package/resources/users/companies/companies.d.ts.map +1 -1
  293. package/resources/users/companies/companies.js +31 -7
  294. package/resources/users/companies/companies.js.map +1 -1
  295. package/resources/users/companies/companies.mjs +31 -7
  296. package/resources/users/companies/companies.mjs.map +1 -1
  297. package/resources/users/companies/contacts.d.mts +14 -19
  298. package/resources/users/companies/contacts.d.mts.map +1 -1
  299. package/resources/users/companies/contacts.d.ts +14 -19
  300. package/resources/users/companies/contacts.d.ts.map +1 -1
  301. package/resources/users/companies/contacts.js +23 -8
  302. package/resources/users/companies/contacts.js.map +1 -1
  303. package/resources/users/companies/contacts.mjs +23 -8
  304. package/resources/users/companies/contacts.mjs.map +1 -1
  305. package/resources/users/companies/index.d.mts +1 -1
  306. package/resources/users/companies/index.d.mts.map +1 -1
  307. package/resources/users/companies/index.d.ts +1 -1
  308. package/resources/users/companies/index.d.ts.map +1 -1
  309. package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
  310. package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
  311. package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
  312. package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
  313. package/resources/users/contacts/by-user-id/by-user-id.js +10 -2
  314. package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -1
  315. package/resources/users/contacts/by-user-id/by-user-id.mjs +10 -2
  316. package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -1
  317. package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
  318. package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
  319. package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
  320. package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
  321. package/resources/users/contacts/by-user-id/email-preferences.js +10 -2
  322. package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -1
  323. package/resources/users/contacts/by-user-id/email-preferences.mjs +10 -2
  324. package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -1
  325. package/resources/users/contacts/contacts.d.mts +15 -19
  326. package/resources/users/contacts/contacts.d.mts.map +1 -1
  327. package/resources/users/contacts/contacts.d.ts +15 -19
  328. package/resources/users/contacts/contacts.d.ts.map +1 -1
  329. package/resources/users/contacts/contacts.js +36 -8
  330. package/resources/users/contacts/contacts.js.map +1 -1
  331. package/resources/users/contacts/contacts.mjs +36 -8
  332. package/resources/users/contacts/contacts.mjs.map +1 -1
  333. package/resources/users/contacts/email-preferences.d.mts +2 -2
  334. package/resources/users/contacts/email-preferences.d.mts.map +1 -1
  335. package/resources/users/contacts/email-preferences.d.ts +2 -2
  336. package/resources/users/contacts/email-preferences.d.ts.map +1 -1
  337. package/resources/users/contacts/email-preferences.js +10 -2
  338. package/resources/users/contacts/email-preferences.js.map +1 -1
  339. package/resources/users/contacts/email-preferences.mjs +10 -2
  340. package/resources/users/contacts/email-preferences.mjs.map +1 -1
  341. package/resources/users/contacts/index.d.mts +1 -1
  342. package/resources/users/contacts/index.d.mts.map +1 -1
  343. package/resources/users/contacts/index.d.ts +1 -1
  344. package/resources/users/contacts/index.d.ts.map +1 -1
  345. package/resources/users/contacts/index.js.map +1 -1
  346. package/resources/users/contacts/index.mjs.map +1 -1
  347. package/resources/users/index.d.mts +2 -2
  348. package/resources/users/index.d.mts.map +1 -1
  349. package/resources/users/index.d.ts +2 -2
  350. package/resources/users/index.d.ts.map +1 -1
  351. package/resources/users/index.js.map +1 -1
  352. package/resources/users/index.mjs.map +1 -1
  353. package/resources/users/users.d.mts +4 -4
  354. package/resources/users/users.d.mts.map +1 -1
  355. package/resources/users/users.d.ts +4 -4
  356. package/resources/users/users.d.ts.map +1 -1
  357. package/resources/users/users.js.map +1 -1
  358. package/resources/users/users.mjs.map +1 -1
  359. package/resources/webhooks.d.mts +15 -33
  360. package/resources/webhooks.d.mts.map +1 -1
  361. package/resources/webhooks.d.ts +15 -33
  362. package/resources/webhooks.d.ts.map +1 -1
  363. package/resources/webhooks.js +36 -8
  364. package/resources/webhooks.js.map +1 -1
  365. package/resources/webhooks.mjs +36 -8
  366. package/resources/webhooks.mjs.map +1 -1
  367. package/src/client.ts +41 -10
  368. package/src/core/pagination.ts +157 -0
  369. package/src/index.ts +1 -0
  370. package/src/pagination.ts +2 -0
  371. package/src/resources/changelogs/changelogs.ts +53 -78
  372. package/src/resources/changelogs/index.ts +1 -1
  373. package/src/resources/changelogs/subscribers.ts +12 -4
  374. package/src/resources/feedback/boards.ts +12 -4
  375. package/src/resources/feedback/comments.ts +47 -76
  376. package/src/resources/feedback/custom-fields.ts +12 -4
  377. package/src/resources/feedback/feedback.ts +4 -4
  378. package/src/resources/feedback/index.ts +2 -2
  379. package/src/resources/feedback/post-statuses.ts +12 -4
  380. package/src/resources/feedback/posts/index.ts +2 -1
  381. package/src/resources/feedback/posts/posts.ts +43 -75
  382. package/src/resources/feedback/posts/voters.ts +105 -146
  383. package/src/resources/help-center/articles.ts +41 -43
  384. package/src/resources/help-center/collections.ts +41 -44
  385. package/src/resources/help-center/help-center.ts +8 -8
  386. package/src/resources/help-center/help-centers.ts +23 -38
  387. package/src/resources/help-center/index.ts +4 -4
  388. package/src/resources/help-center/redirect-rules.ts +47 -46
  389. package/src/resources/index.ts +6 -5
  390. package/src/resources/organization/admins.ts +18 -6
  391. package/src/resources/organization/brands.ts +19 -36
  392. package/src/resources/organization/index.ts +1 -1
  393. package/src/resources/organization/organization.ts +2 -2
  394. package/src/resources/organization/teams.ts +12 -4
  395. package/src/resources/support/conversation-tags.ts +24 -8
  396. package/src/resources/support/conversations/conversations.ts +54 -49
  397. package/src/resources/support/conversations/index.ts +1 -1
  398. package/src/resources/support/conversations/participants.ts +12 -4
  399. package/src/resources/support/conversations/tags.ts +12 -4
  400. package/src/resources/support/index.ts +2 -2
  401. package/src/resources/support/support.ts +4 -4
  402. package/src/resources/support/tickets/categories.ts +12 -4
  403. package/src/resources/support/tickets/custom-fields.ts +12 -4
  404. package/src/resources/support/tickets/index.ts +1 -1
  405. package/src/resources/support/tickets/statuses.ts +12 -4
  406. package/src/resources/support/tickets/tickets.ts +48 -46
  407. package/src/resources/surveys.ts +71 -107
  408. package/src/resources/users/companies/companies.ts +41 -44
  409. package/src/resources/users/companies/contacts.ts +41 -31
  410. package/src/resources/users/companies/index.ts +1 -1
  411. package/src/resources/users/contacts/by-user-id/by-user-id.ts +12 -4
  412. package/src/resources/users/contacts/by-user-id/email-preferences.ts +12 -4
  413. package/src/resources/users/contacts/contacts.ts +50 -27
  414. package/src/resources/users/contacts/email-preferences.ts +12 -4
  415. package/src/resources/users/contacts/index.ts +1 -0
  416. package/src/resources/users/index.ts +2 -1
  417. package/src/resources/users/users.ts +4 -2
  418. package/src/resources/webhooks.ts +47 -45
  419. package/src/version.ts +1 -1
  420. package/version.d.mts +1 -1
  421. package/version.d.ts +1 -1
  422. package/version.js +1 -1
  423. package/version.mjs +1 -1
@@ -66,7 +66,11 @@ export class Tags extends APIResource {
66
66
  body,
67
67
  ...options,
68
68
  headers: buildHeaders([
69
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
69
+ {
70
+ ...(featurebaseVersion?.toString() != null ?
71
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
72
+ : undefined),
73
+ },
70
74
  options?.headers,
71
75
  ]),
72
76
  });
@@ -134,7 +138,11 @@ export class Tags extends APIResource {
134
138
  body,
135
139
  ...options,
136
140
  headers: buildHeaders([
137
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
141
+ {
142
+ ...(featurebaseVersion?.toString() != null ?
143
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
144
+ : undefined),
145
+ },
138
146
  options?.headers,
139
147
  ]),
140
148
  });
@@ -220,7 +228,7 @@ export interface TagAttachParams {
220
228
  * Header param: API version for this request. Defaults to your organization's
221
229
  * configured API version if not specified.
222
230
  */
223
- 'Featurebase-Version'?: string;
231
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
224
232
  }
225
233
 
226
234
  export interface TagDetachParams {
@@ -239,7 +247,7 @@ export interface TagDetachParams {
239
247
  * Header param: API version for this request. Defaults to your organization's
240
248
  * configured API version if not specified.
241
249
  */
242
- 'Featurebase-Version'?: string;
250
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
243
251
  }
244
252
 
245
253
  export declare namespace Tags {
@@ -21,7 +21,6 @@ export {
21
21
  type CsatRatedAgent,
22
22
  type CsatWorkflowLink,
23
23
  type EmailRecipients,
24
- type ConversationListResponse,
25
24
  type ConversationDeleteResponse,
26
25
  type ConversationCreateParams,
27
26
  type ConversationRetrieveParams,
@@ -30,13 +29,13 @@ export {
30
29
  type ConversationDeleteParams,
31
30
  type ConversationRedactParams,
32
31
  type ConversationReplyParams,
32
+ type ConversationsCursorPage,
33
33
  } from './conversations/index';
34
34
  export { Support } from './support';
35
35
  export {
36
36
  Tickets,
37
37
  type AuthorInput,
38
38
  type Ticket,
39
- type TicketListResponse,
40
39
  type TicketDeleteResponse,
41
40
  type TicketCreateParams,
42
41
  type TicketRetrieveParams,
@@ -44,4 +43,5 @@ export {
44
43
  type TicketListParams,
45
44
  type TicketDeleteParams,
46
45
  type TicketReplyParams,
46
+ type TicketsCursorPage,
47
47
  } from './tickets/index';
@@ -19,7 +19,6 @@ import {
19
19
  ConversationDeleteParams,
20
20
  ConversationDeleteResponse,
21
21
  ConversationListParams,
22
- ConversationListResponse,
23
22
  ConversationPart,
24
23
  ConversationPartAuthor,
25
24
  ConversationParticipant,
@@ -29,6 +28,7 @@ import {
29
28
  ConversationTagApplication,
30
29
  ConversationUpdateParams,
31
30
  Conversations,
31
+ ConversationsCursorPage,
32
32
  CsatEmailDelivery,
33
33
  CsatRatedAgent,
34
34
  CsatWorkflowLink,
@@ -42,11 +42,11 @@ import {
42
42
  TicketDeleteParams,
43
43
  TicketDeleteResponse,
44
44
  TicketListParams,
45
- TicketListResponse,
46
45
  TicketReplyParams,
47
46
  TicketRetrieveParams,
48
47
  TicketUpdateParams,
49
48
  Tickets,
49
+ TicketsCursorPage,
50
50
  } from './tickets/tickets';
51
51
 
52
52
  export class Support extends APIResource {
@@ -73,8 +73,8 @@ export declare namespace Support {
73
73
  type CsatRatedAgent as CsatRatedAgent,
74
74
  type CsatWorkflowLink as CsatWorkflowLink,
75
75
  type EmailRecipients as EmailRecipients,
76
- type ConversationListResponse as ConversationListResponse,
77
76
  type ConversationDeleteResponse as ConversationDeleteResponse,
77
+ type ConversationsCursorPage as ConversationsCursorPage,
78
78
  type ConversationCreateParams as ConversationCreateParams,
79
79
  type ConversationRetrieveParams as ConversationRetrieveParams,
80
80
  type ConversationUpdateParams as ConversationUpdateParams,
@@ -99,8 +99,8 @@ export declare namespace Support {
99
99
  Tickets as Tickets,
100
100
  type AuthorInput as AuthorInput,
101
101
  type Ticket as Ticket,
102
- type TicketListResponse as TicketListResponse,
103
102
  type TicketDeleteResponse as TicketDeleteResponse,
103
+ type TicketsCursorPage as TicketsCursorPage,
104
104
  type TicketCreateParams as TicketCreateParams,
105
105
  type TicketRetrieveParams as TicketRetrieveParams,
106
106
  type TicketUpdateParams as TicketUpdateParams,
@@ -34,7 +34,11 @@ export class Categories extends APIResource {
34
34
  return this._client.get(path`/v2/tickets/categories/${id}`, {
35
35
  ...options,
36
36
  headers: buildHeaders([
37
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
37
+ {
38
+ ...(featurebaseVersion?.toString() != null ?
39
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
40
+ : undefined),
41
+ },
38
42
  options?.headers,
39
43
  ]),
40
44
  });
@@ -69,7 +73,11 @@ export class Categories extends APIResource {
69
73
  return this._client.get('/v2/tickets/categories', {
70
74
  ...options,
71
75
  headers: buildHeaders([
72
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
76
+ {
77
+ ...(featurebaseVersion?.toString() != null ?
78
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
79
+ : undefined),
80
+ },
73
81
  options?.headers,
74
82
  ]),
75
83
  });
@@ -83,7 +91,7 @@ export interface CategoryRetrieveParams {
83
91
  * API version for this request. Defaults to your organization's configured API
84
92
  * version if not specified.
85
93
  */
86
- 'Featurebase-Version'?: string;
94
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
87
95
  }
88
96
 
89
97
  export interface CategoryListParams {
@@ -91,7 +99,7 @@ export interface CategoryListParams {
91
99
  * API version for this request. Defaults to your organization's configured API
92
100
  * version if not specified.
93
101
  */
94
- 'Featurebase-Version'?: string;
102
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
95
103
  }
96
104
 
97
105
  export declare namespace Categories {
@@ -45,7 +45,11 @@ export class CustomFields extends APIResource {
45
45
  return this._client.get(path`/v2/tickets/custom_fields/${id}`, {
46
46
  ...options,
47
47
  headers: buildHeaders([
48
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
48
+ {
49
+ ...(featurebaseVersion?.toString() != null ?
50
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
51
+ : undefined),
52
+ },
49
53
  options?.headers,
50
54
  ]),
51
55
  });
@@ -85,7 +89,11 @@ export class CustomFields extends APIResource {
85
89
  return this._client.get('/v2/tickets/custom_fields', {
86
90
  ...options,
87
91
  headers: buildHeaders([
88
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
92
+ {
93
+ ...(featurebaseVersion?.toString() != null ?
94
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
95
+ : undefined),
96
+ },
89
97
  options?.headers,
90
98
  ]),
91
99
  });
@@ -97,7 +105,7 @@ export interface CustomFieldRetrieveParams {
97
105
  * API version for this request. Defaults to your organization's configured API
98
106
  * version if not specified.
99
107
  */
100
- 'Featurebase-Version'?: string;
108
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
101
109
  }
102
110
 
103
111
  export interface CustomFieldListParams {
@@ -105,7 +113,7 @@ export interface CustomFieldListParams {
105
113
  * API version for this request. Defaults to your organization's configured API
106
114
  * version if not specified.
107
115
  */
108
- 'Featurebase-Version'?: string;
116
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
109
117
  }
110
118
 
111
119
  export declare namespace CustomFields {
@@ -17,7 +17,6 @@ export {
17
17
  Tickets,
18
18
  type AuthorInput,
19
19
  type Ticket,
20
- type TicketListResponse,
21
20
  type TicketDeleteResponse,
22
21
  type TicketCreateParams,
23
22
  type TicketRetrieveParams,
@@ -25,4 +24,5 @@ export {
25
24
  type TicketListParams,
26
25
  type TicketDeleteParams,
27
26
  type TicketReplyParams,
27
+ type TicketsCursorPage,
28
28
  } from './tickets';
@@ -33,7 +33,11 @@ export class Statuses extends APIResource {
33
33
  return this._client.get(path`/v2/tickets/statuses/${id}`, {
34
34
  ...options,
35
35
  headers: buildHeaders([
36
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
36
+ {
37
+ ...(featurebaseVersion?.toString() != null ?
38
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
39
+ : undefined),
40
+ },
37
41
  options?.headers,
38
42
  ]),
39
43
  });
@@ -65,7 +69,11 @@ export class Statuses extends APIResource {
65
69
  return this._client.get('/v2/tickets/statuses', {
66
70
  ...options,
67
71
  headers: buildHeaders([
68
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
72
+ {
73
+ ...(featurebaseVersion?.toString() != null ?
74
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
75
+ : undefined),
76
+ },
69
77
  options?.headers,
70
78
  ]),
71
79
  });
@@ -79,7 +87,7 @@ export interface StatusRetrieveParams {
79
87
  * API version for this request. Defaults to your organization's configured API
80
88
  * version if not specified.
81
89
  */
82
- 'Featurebase-Version'?: string;
90
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
83
91
  }
84
92
 
85
93
  export interface StatusListParams {
@@ -87,7 +95,7 @@ export interface StatusListParams {
87
95
  * API version for this request. Defaults to your organization's configured API
88
96
  * version if not specified.
89
97
  */
90
- 'Featurebase-Version'?: string;
98
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
91
99
  }
92
100
 
93
101
  export declare namespace Statuses {
@@ -10,6 +10,7 @@ import { CustomFieldListParams, CustomFieldRetrieveParams, CustomFields } from '
10
10
  import * as StatusesAPI from './statuses';
11
11
  import { StatusListParams, StatusListResponse, StatusRetrieveParams, Statuses } from './statuses';
12
12
  import { APIPromise } from '../../../core/api-promise';
13
+ import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
13
14
  import { buildHeaders } from '../../../internal/headers';
14
15
  import { RequestOptions } from '../../../internal/request-options';
15
16
  import { path } from '../../../internal/utils/path';
@@ -91,7 +92,11 @@ export class Tickets extends APIResource {
91
92
  body,
92
93
  ...options,
93
94
  headers: buildHeaders([
94
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
95
+ {
96
+ ...(featurebaseVersion?.toString() != null ?
97
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
98
+ : undefined),
99
+ },
95
100
  options?.headers,
96
101
  ]),
97
102
  });
@@ -123,7 +128,11 @@ export class Tickets extends APIResource {
123
128
  return this._client.get(path`/v2/tickets/${id}`, {
124
129
  ...options,
125
130
  headers: buildHeaders([
126
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
131
+ {
132
+ ...(featurebaseVersion?.toString() != null ?
133
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
134
+ : undefined),
135
+ },
127
136
  options?.headers,
128
137
  ]),
129
138
  });
@@ -181,7 +190,11 @@ export class Tickets extends APIResource {
181
190
  body,
182
191
  ...options,
183
192
  headers: buildHeaders([
184
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
193
+ {
194
+ ...(featurebaseVersion?.toString() != null ?
195
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
196
+ : undefined),
197
+ },
185
198
  options?.headers,
186
199
  ]),
187
200
  });
@@ -210,19 +223,26 @@ export class Tickets extends APIResource {
210
223
  *
211
224
  * @example
212
225
  * ```ts
213
- * const tickets = await client.support.tickets.list();
226
+ * // Automatically fetches more pages as needed.
227
+ * for await (const ticket of client.support.tickets.list()) {
228
+ * // ...
229
+ * }
214
230
  * ```
215
231
  */
216
232
  list(
217
233
  params: TicketListParams | null | undefined = {},
218
234
  options?: RequestOptions,
219
- ): APIPromise<TicketListResponse> {
235
+ ): PagePromise<TicketsCursorPage, Ticket> {
220
236
  const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
221
- return this._client.get('/v2/tickets', {
237
+ return this._client.getAPIList('/v2/tickets', CursorPage<Ticket>, {
222
238
  query,
223
239
  ...options,
224
240
  headers: buildHeaders([
225
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
241
+ {
242
+ ...(featurebaseVersion?.toString() != null ?
243
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
244
+ : undefined),
245
+ },
226
246
  options?.headers,
227
247
  ]),
228
248
  });
@@ -271,7 +291,11 @@ export class Tickets extends APIResource {
271
291
  return this._client.delete(path`/v2/tickets/${id}`, {
272
292
  ...options,
273
293
  headers: buildHeaders([
274
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
294
+ {
295
+ ...(featurebaseVersion?.toString() != null ?
296
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
297
+ : undefined),
298
+ },
275
299
  options?.headers,
276
300
  ]),
277
301
  });
@@ -330,13 +354,19 @@ export class Tickets extends APIResource {
330
354
  body,
331
355
  ...options,
332
356
  headers: buildHeaders([
333
- { ...(featurebaseVersion != null ? { 'Featurebase-Version': featurebaseVersion } : undefined) },
357
+ {
358
+ ...(featurebaseVersion?.toString() != null ?
359
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
360
+ : undefined),
361
+ },
334
362
  options?.headers,
335
363
  ]),
336
364
  });
337
365
  }
338
366
  }
339
367
 
368
+ export type TicketsCursorPage = CursorPage<Ticket>;
369
+
340
370
  /**
341
371
  * Author to attribute the post to. If not provided, uses the authenticated user.
342
372
  * Supports multiple identification methods: id (Featurebase ID), userId (external
@@ -663,23 +693,6 @@ export namespace Ticket {
663
693
  }
664
694
  }
665
695
 
666
- export interface TicketListResponse {
667
- /**
668
- * Array of tickets
669
- */
670
- data: Array<Ticket>;
671
-
672
- /**
673
- * Cursor for fetching the next page
674
- */
675
- nextCursor: string | null;
676
-
677
- /**
678
- * Object type identifier
679
- */
680
- object: 'list';
681
- }
682
-
683
696
  export interface TicketDeleteResponse {
684
697
  /**
685
698
  * Unique identifier of the deleted ticket
@@ -759,7 +772,7 @@ export interface TicketCreateParams {
759
772
  * Header param: API version for this request. Defaults to your organization's
760
773
  * configured API version if not specified.
761
774
  */
762
- 'Featurebase-Version'?: string;
775
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
763
776
  }
764
777
 
765
778
  export interface TicketRetrieveParams {
@@ -767,7 +780,7 @@ export interface TicketRetrieveParams {
767
780
  * API version for this request. Defaults to your organization's configured API
768
781
  * version if not specified.
769
782
  */
770
- 'Featurebase-Version'?: string;
783
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
771
784
  }
772
785
 
773
786
  export interface TicketUpdateParams {
@@ -820,10 +833,10 @@ export interface TicketUpdateParams {
820
833
  * Header param: API version for this request. Defaults to your organization's
821
834
  * configured API version if not specified.
822
835
  */
823
- 'Featurebase-Version'?: string;
836
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
824
837
  }
825
838
 
826
- export interface TicketListParams {
839
+ export interface TicketListParams extends CursorPageParams {
827
840
  /**
828
841
  * Query param
829
842
  */
@@ -834,17 +847,6 @@ export interface TicketListParams {
834
847
  */
835
848
  categoryType?: 'customer' | 'tracker' | 'back-office';
836
849
 
837
- /**
838
- * Query param: An opaque cursor for pagination. Use the nextCursor value from a
839
- * previous response to fetch the next page of results.
840
- */
841
- cursor?: string;
842
-
843
- /**
844
- * Query param
845
- */
846
- limit?: number;
847
-
848
850
  /**
849
851
  * Query param
850
852
  */
@@ -874,7 +876,7 @@ export interface TicketListParams {
874
876
  * Header param: API version for this request. Defaults to your organization's
875
877
  * configured API version if not specified.
876
878
  */
877
- 'Featurebase-Version'?: string;
879
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
878
880
  }
879
881
 
880
882
  export interface TicketDeleteParams {
@@ -882,7 +884,7 @@ export interface TicketDeleteParams {
882
884
  * API version for this request. Defaults to your organization's configured API
883
885
  * version if not specified.
884
886
  */
885
- 'Featurebase-Version'?: string;
887
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
886
888
  }
887
889
 
888
890
  export type TicketReplyParams = TicketReplyParams.Variant0 | TicketReplyParams.Variant1;
@@ -933,7 +935,7 @@ export declare namespace TicketReplyParams {
933
935
  * Header param: API version for this request. Defaults to your organization's
934
936
  * configured API version if not specified.
935
937
  */
936
- 'Featurebase-Version'?: string;
938
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
937
939
  }
938
940
 
939
941
  export interface Variant1 {
@@ -976,7 +978,7 @@ export declare namespace TicketReplyParams {
976
978
  * Header param: API version for this request. Defaults to your organization's
977
979
  * configured API version if not specified.
978
980
  */
979
- 'Featurebase-Version'?: string;
981
+ 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
980
982
  }
981
983
  }
982
984
 
@@ -988,8 +990,8 @@ export declare namespace Tickets {
988
990
  export {
989
991
  type AuthorInput as AuthorInput,
990
992
  type Ticket as Ticket,
991
- type TicketListResponse as TicketListResponse,
992
993
  type TicketDeleteResponse as TicketDeleteResponse,
994
+ type TicketsCursorPage as TicketsCursorPage,
993
995
  type TicketCreateParams as TicketCreateParams,
994
996
  type TicketRetrieveParams as TicketRetrieveParams,
995
997
  type TicketUpdateParams as TicketUpdateParams,