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
@@ -6,6 +6,45 @@ import { RequestOptions } from "../internal/request-options.js";
6
6
  * Query your workspace analytics: conversation volume, response times, CSAT, SLA compliance, teammate performance, AI agent resolutions and more. Start with the datasets catalog to discover metrics and attributes, then run queries with filters, grouping and period comparison.
7
7
  */
8
8
  export declare class Reports extends APIResource {
9
+ /**
10
+ * Returns the paginated row-level records behind a metric — either the whole
11
+ * reporting window, or one specific data point from a previous
12
+ * `POST /v2/reports/query` response.
13
+ *
14
+ * Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
15
+ * `segmentBy` and `view` as the query you're drilling into, plus
16
+ * `dataPointFilters` selecting the data point:
17
+ *
18
+ * - `timeBucket` — a `date` from the time series
19
+ * - `timeSegmentValue` + `timeSegmentGranularity` — the selected bucket from a
20
+ * Segment-by-Time series
21
+ * - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
22
+ * - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
23
+ * - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
24
+ *
25
+ * Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
26
+ *
27
+ * Results are paginated with `page` / `pageSize` (max 200 per page);
28
+ * `availableColumns` describes every column the dataset can return and
29
+ * `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
30
+ * cells (teammates, contacts) are objects with `id` + `label`.
31
+ *
32
+ * ### Version Availability
33
+ *
34
+ * This endpoint is only available in API version 2026-01-01.nova and newer, and
35
+ * only for workspaces with the Reports product enabled (404 otherwise).
36
+ *
37
+ * @example
38
+ * ```ts
39
+ * const response = await client.reports.drillIn({
40
+ * endDate: '2026-07-15',
41
+ * granularity: 'day',
42
+ * metric: 'new_conversations',
43
+ * startDate: '2026-07-14',
44
+ * });
45
+ * ```
46
+ */
47
+ drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse>;
9
48
  /**
10
49
  * Returns the reporting catalog: every dataset available to your workspace with
11
50
  * its metrics and attributes.
@@ -36,6 +75,37 @@ export declare class Reports extends APIResource {
36
75
  * ```
37
76
  */
38
77
  listDatasets(params?: ReportListDatasetsParams | null | undefined, options?: RequestOptions): APIPromise<ReportListDatasetsResponse>;
78
+ /**
79
+ * Returns the available values for a filterable attribute — use it to build valid
80
+ * `filters` rules for `POST /v2/reports/query`.
81
+ *
82
+ * Works for attributes whose values live in your workspace data (tags, teammates,
83
+ * teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
84
+ * catalog don't need this endpoint — their value set is already inline.
85
+ *
86
+ * - `query` narrows results by search string
87
+ * - `selectedValues` resolves labels for values you already hold (returned
88
+ * alongside search results)
89
+ *
90
+ * ### Example
91
+ *
92
+ * ```json
93
+ * { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
94
+ * ```
95
+ *
96
+ * ### Version Availability
97
+ *
98
+ * This endpoint is only available in API version 2026-01-01.nova and newer, and
99
+ * only for workspaces with the Reports product enabled (404 otherwise).
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const response = await client.reports.lookupFilterValues({
104
+ * fieldId: 'conversation.tags',
105
+ * });
106
+ * ```
107
+ */
108
+ lookupFilterValues(params: ReportLookupFilterValuesParams, options?: RequestOptions): APIPromise<ReportLookupFilterValuesResponse>;
39
109
  /**
40
110
  * Executes an ad-hoc reporting query: one metric + aggregation over a date range,
41
111
  * with optional filters, grouping, segmentation and period-over-period comparison.
@@ -48,7 +118,7 @@ export declare class Reports extends APIResource {
48
118
  * `percentile: 95` for p95); rate metrics use `value`.
49
119
  * 2. Set the reporting window with `startDate` / `endDate` (ISO 8601) and a
50
120
  * `granularity` (`hour`, `day`, `week`, `month`) for the returned time series.
51
- * Reporting data is available from **July 12, 2026**. Windows ending earlier
121
+ * Reporting data is available from **July 14, 2026**. Windows ending earlier
52
122
  * are rejected; crossing windows are clamped to that boundary in the requested
53
123
  * timezone.
54
124
  * 3. Optionally narrow with `filters` — a rule
@@ -65,14 +135,19 @@ export declare class Reports extends APIResource {
65
135
  * For high-cardinality breakdowns, cap the number of returned series:
66
136
  *
67
137
  * - `topValuesLimit` keeps only the top **N** `groupBy` values;
68
- * `segmentTopValuesLimit` does the same for `segmentBy`. Allowed values: **5, 7,
69
- * 10, 15, 20**. `topValuesLimit` requires `groupBy`; `segmentTopValuesLimit`
70
- * requires `segmentBy`.
71
- * - Members are ranked by the selected metric/aggregation over the **full filtered
72
- * primary range**, so the ranked set is **stable across every time bucket** (a
73
- * value that spikes in one bucket but is small overall does not enter the set).
74
- * A comparison period reuses the **primary period's** ranked set it is never
75
- * re-ranked, so the legend stays identical period-over-period.
138
+ * `segmentTopValuesLimit` does the same for `segmentBy`. Both accept integers
139
+ * from **1 to 100**; the editor offers common presets plus a Custom value.
140
+ * `topValuesLimit` requires `groupBy`; `segmentTopValuesLimit` requires
141
+ * `segmentBy`.
142
+ * - For time-series segment breakdowns, members are ranked **inside each time
143
+ * bucket**. The response keeps the union of those bucket winners in its series
144
+ * catalog, while a member outside a bucket's Top N has a zero value in that
145
+ * bucket. This matches the chart's per-period ranking semantics. A comparison
146
+ * period is folded into the primary period's union of visible members so current
147
+ * and previous series keep the same identities.
148
+ * - For non-time-series grouped results, members are ranked over the full filtered
149
+ * primary range. A comparison period reuses the primary period's ranked set
150
+ * rather than independently changing the legend.
76
151
  * - `showOther` / `segmentShowOther` append a single synthetic bucket with id
77
152
  * `__other__` and label `Other` that sums every value outside the top set.
78
153
  * Because the values are summed, Show Other is only supported for **additive
@@ -91,7 +166,7 @@ export declare class Reports extends APIResource {
91
166
  * {
92
167
  * "metric": "new_conversations",
93
168
  * "aggregation": "count",
94
- * "startDate": "2026-07-12",
169
+ * "startDate": "2026-07-14",
95
170
  * "endDate": "2026-07-15",
96
171
  * "granularity": "day",
97
172
  * "groupBy": "conversation.channel",
@@ -131,79 +206,11 @@ export declare class Reports extends APIResource {
131
206
  * endDate: '2026-07-15',
132
207
  * granularity: 'day',
133
208
  * metric: 'new_conversations',
134
- * startDate: '2026-07-12',
209
+ * startDate: '2026-07-14',
135
210
  * });
136
211
  * ```
137
212
  */
138
213
  query(params: ReportQueryParams, options?: RequestOptions): APIPromise<ReportQueryResponse>;
139
- /**
140
- * Returns the available values for a filterable attribute — use it to build valid
141
- * `filters` rules for `POST /v2/reports/query`.
142
- *
143
- * Works for attributes whose values live in your workspace data (tags, teammates,
144
- * teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
145
- * catalog don't need this endpoint — their value set is already inline.
146
- *
147
- * - `query` narrows results by search string
148
- * - `selectedValues` resolves labels for values you already hold (returned
149
- * alongside search results)
150
- *
151
- * ### Example
152
- *
153
- * ```json
154
- * { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
155
- * ```
156
- *
157
- * ### Version Availability
158
- *
159
- * This endpoint is only available in API version 2026-01-01.nova and newer, and
160
- * only for workspaces with the Reports product enabled (404 otherwise).
161
- *
162
- * @example
163
- * ```ts
164
- * const response = await client.reports.lookupFilterValues({
165
- * fieldId: 'conversation.tags',
166
- * });
167
- * ```
168
- */
169
- lookupFilterValues(params: ReportLookupFilterValuesParams, options?: RequestOptions): APIPromise<ReportLookupFilterValuesResponse>;
170
- /**
171
- * Returns the paginated row-level records behind a metric — either the whole
172
- * reporting window, or one specific data point from a previous
173
- * `POST /v2/reports/query` response.
174
- *
175
- * Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
176
- * `segmentBy` and `view` as the query you're drilling into, plus
177
- * `dataPointFilters` selecting the data point:
178
- *
179
- * - `timeBucket` — a `date` from the time series
180
- * - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
181
- * - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
182
- * - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
183
- *
184
- * Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
185
- *
186
- * Results are paginated with `page` / `pageSize` (max 200 per page);
187
- * `availableColumns` describes every column the dataset can return and
188
- * `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
189
- * cells (teammates, contacts) are objects with `id` + `label`.
190
- *
191
- * ### Version Availability
192
- *
193
- * This endpoint is only available in API version 2026-01-01.nova and newer, and
194
- * only for workspaces with the Reports product enabled (404 otherwise).
195
- *
196
- * @example
197
- * ```ts
198
- * const response = await client.reports.drillIn({
199
- * endDate: '2026-07-15',
200
- * granularity: 'day',
201
- * metric: 'new_conversations',
202
- * startDate: '2026-07-12',
203
- * });
204
- * ```
205
- */
206
- drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse>;
207
214
  }
208
215
  export interface ReportAttribute {
209
216
  /**
@@ -243,6 +250,17 @@ export interface ReportAttribute {
243
250
  export interface ReportAttributeOption {
244
251
  label: string;
245
252
  value: string;
253
+ presentation?: ReportAttributeOption.Presentation;
254
+ }
255
+ export declare namespace ReportAttributeOption {
256
+ interface Presentation {
257
+ kind: 'brand' | 'company' | 'country' | 'knowledge_source' | 'plain' | 'sla' | 'tag' | 'team' | 'teammate' | 'ticket_category' | 'ticket_state' | 'ticket_type' | 'user' | 'workflow';
258
+ color?: string;
259
+ icon?: unknown;
260
+ iconSvg?: string;
261
+ imageUrl?: string;
262
+ secondaryLabel?: string;
263
+ }
246
264
  }
247
265
  export interface ReportDataset {
248
266
  id: string;
@@ -300,17 +318,33 @@ export interface ReportGroupedDatum {
300
318
  group: string;
301
319
  value: number;
302
320
  groupLabel?: string;
321
+ identity?: ReportGroupedDatum.Identity;
303
322
  previousValue?: number;
304
323
  segments?: Array<ReportSegmentDatum>;
305
324
  }
325
+ export declare namespace ReportGroupedDatum {
326
+ interface Identity {
327
+ id: string;
328
+ kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
329
+ label: string;
330
+ avatarUrl?: string;
331
+ color?: string;
332
+ website?: string;
333
+ }
334
+ }
306
335
  export interface ReportMetric {
307
336
  /**
308
337
  * Metric ID — use as `metric` in query requests.
309
338
  */
310
339
  id: string;
340
+ algebra: ReportMetric.Algebra;
311
341
  allowedAggregations: Array<'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value'>;
342
+ definitionVersion: number;
312
343
  description: string;
344
+ executionKind: 'pipe_aggregate' | 'pipe_computed_ratio';
313
345
  name: string;
346
+ presentationFamily: 'count' | 'duration' | 'percentage' | 'decimal' | 'fibi' | 'ai';
347
+ releaseState: 'available' | 'unavailable';
314
348
  /**
315
349
  * Attribute IDs this specific metric accepts in filter expressions.
316
350
  */
@@ -329,6 +363,7 @@ export interface ReportMetric {
329
363
  supportsPeriodComparison: boolean;
330
364
  type: 'count' | 'percentage' | 'duration' | 'number';
331
365
  unit: 'count' | 'percentage' | 'duration_ms' | 'number';
366
+ availabilityReason?: string;
332
367
  /**
333
368
  * Local calendar date (ISO 8601) from which this specific metric has data, when it
334
369
  * differs from the global reporting floor. Windows ending before this date are
@@ -339,6 +374,8 @@ export interface ReportMetric {
339
374
  * Whether this variant is the default selection for its `variantGroupId`.
340
375
  */
341
376
  isDefaultVariant?: boolean;
377
+ qualifiers?: Array<string>;
378
+ searchAliases?: Array<string>;
342
379
  /**
343
380
  * Metrics sharing a `variantGroupId` are timestamp variants of one logical metric
344
381
  * (same display `name`); each measures the same population at a different
@@ -355,12 +392,28 @@ export interface ReportMetric {
355
392
  */
356
393
  variantLabel?: string;
357
394
  }
395
+ export declare namespace ReportMetric {
396
+ interface Algebra {
397
+ kind: 'direct_aggregate' | 'pipe_computed_ratio';
398
+ }
399
+ }
358
400
  export interface ReportSegmentDatum {
359
401
  segment: string;
360
402
  value: number;
403
+ identity?: ReportSegmentDatum.Identity;
361
404
  previousValue?: number;
362
405
  segmentLabel?: string;
363
406
  }
407
+ export declare namespace ReportSegmentDatum {
408
+ interface Identity {
409
+ id: string;
410
+ kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
411
+ label: string;
412
+ avatarUrl?: string;
413
+ color?: string;
414
+ website?: string;
415
+ }
416
+ }
364
417
  export interface ReportTimeSeriesDatum {
365
418
  /**
366
419
  * Time bucket start (ISO 8601).
@@ -453,6 +506,10 @@ export interface ReportListDatasetsResponse {
453
506
  export interface ReportLookupFilterValuesResponse {
454
507
  data: Array<ReportAttributeOption>;
455
508
  object: 'list';
509
+ lookupContextKey?: string;
510
+ nextCursor?: string;
511
+ truncated?: boolean;
512
+ unavailableSelectedValues?: Array<string>;
456
513
  }
457
514
  export interface ReportQueryResponse {
458
515
  meta: ReportQueryResponse.Meta;
@@ -535,12 +592,25 @@ export declare namespace ReportQueryResponse {
535
592
  namespace Row {
536
593
  interface Cells {
537
594
  display: string;
595
+ deltaPercent?: number;
538
596
  denominator?: number;
597
+ identity?: Cells.Identity;
539
598
  numerator?: number;
599
+ previousValue?: number;
540
600
  raw?: unknown;
541
601
  sortValue?: string | number | null;
542
602
  value?: unknown;
543
603
  }
604
+ namespace Cells {
605
+ interface Identity {
606
+ id: string;
607
+ kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
608
+ label: string;
609
+ avatarUrl?: string;
610
+ color?: string;
611
+ website?: string;
612
+ }
613
+ }
544
614
  }
545
615
  interface Sort {
546
616
  columnId: string;
@@ -555,32 +625,32 @@ export declare namespace ReportQueryResponse {
555
625
  namespace SummaryRow {
556
626
  interface Cells {
557
627
  display: string;
628
+ deltaPercent?: number;
558
629
  denominator?: number;
630
+ identity?: Cells.Identity;
559
631
  numerator?: number;
632
+ previousValue?: number;
560
633
  raw?: unknown;
561
634
  sortValue?: string | number | null;
562
635
  value?: unknown;
563
636
  }
637
+ namespace Cells {
638
+ interface Identity {
639
+ id: string;
640
+ kind: 'teammate' | 'team' | 'user' | 'company' | 'fibi';
641
+ label: string;
642
+ avatarUrl?: string;
643
+ color?: string;
644
+ website?: string;
645
+ }
646
+ }
564
647
  }
565
648
  }
566
649
  }
567
- export interface ReportListDatasetsParams {
568
- /**
569
- * API version for this request. Defaults to your organization's configured API
570
- * version if not specified.
571
- */
572
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
573
- }
574
- export interface ReportQueryParams {
575
- /**
576
- * Body param: Aggregation function applied to the metric. Each metric supports a
577
- * subset of aggregations — see the `allowedAggregations` field in the
578
- * `GET /v2/reports/datasets` catalog.
579
- */
580
- aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
650
+ export interface ReportDrillInParams {
581
651
  /**
582
652
  * Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
583
- * Windows ending before 2026-07-12 are rejected.
653
+ * Windows ending before 2026-07-14 are rejected.
584
654
  */
585
655
  endDate: string;
586
656
  /**
@@ -588,26 +658,30 @@ export interface ReportQueryParams {
588
658
  */
589
659
  granularity: 'hour' | 'day' | 'week' | 'month';
590
660
  /**
591
- * Body param: Metric ID to query (e.g. `new_conversations`). Discover metric IDs
592
- * via `GET /v2/reports/datasets`.
661
+ * Body param: Metric ID the drill-in belongs to.
593
662
  */
594
663
  metric: string;
595
664
  /**
596
665
  * Body param: Start of the reporting window (ISO 8601 date or datetime,
597
- * inclusive). Reporting data is available from 2026-07-12; crossing windows are
666
+ * inclusive). Reporting data is available from 2026-07-14; crossing windows are
598
667
  * clamped to that boundary.
599
668
  */
600
669
  startDate: string;
601
670
  /**
602
- * Body param: End of the comparison window. Must be paired with
603
- * `compareStartDate`.
671
+ * Body param: Stable editor ID of the saved chart that launched this drill-in.
604
672
  */
605
- compareEndDate?: string;
673
+ chartEditorId?: string;
606
674
  /**
607
- * Body param: Start of the comparison window for period-over-period deltas. Must
608
- * be paired with `compareEndDate`.
675
+ * Body param: Column IDs to include in each returned row. Omit for legacy
676
+ * full-width static rows; pass an empty array to use `defaultColumnIds`.
609
677
  */
610
- compareStartDate?: string;
678
+ columns?: Array<string>;
679
+ /**
680
+ * Body param: Narrows the drill-in to one data point from a previous query (time
681
+ * bucket, group value, heatmap cell, or flow edge). Pass `{}` to list all
682
+ * underlying rows.
683
+ */
684
+ dataPointFilters?: ReportDrillInParams.DataPointFilters;
611
685
  /**
612
686
  * Body param: Filter expression: a single rule, or an `and`/`or` group combining
613
687
  * rules and nested groups. Attribute IDs and their allowed operators come from
@@ -615,61 +689,43 @@ export interface ReportQueryParams {
615
689
  */
616
690
  filters?: ReportFilterRule | ReportFilterExpression;
617
691
  /**
618
- * Body param: Attribute ID to group results by (e.g. `conversation.channel`). See
619
- * `supportsGroupBy` in the catalog.
692
+ * Body param
620
693
  */
621
694
  groupBy?: string;
622
695
  /**
623
- * Body param: Restrict time-based metrics to configured office hours. Only
624
- * supported by some metrics (see `supportsOfficeHours` in the catalog).
696
+ * Body param
625
697
  */
626
698
  officeHoursOnly?: boolean;
627
699
  /**
628
- * Body param: Percentile (1-100) — required when `aggregation` is `percentile`.
700
+ * Body param: Page number (1-based).
629
701
  */
630
- percentile?: number;
702
+ page?: number;
631
703
  /**
632
- * Body param: Attribute ID for secondary segmentation within each group or time
633
- * bucket.
704
+ * Body param: Rows per page (1-200, default 25).
634
705
  */
635
- segmentBy?: string;
706
+ pageSize?: number;
636
707
  /**
637
- * Body param: When `true`, fold `segmentBy` values outside the top set into a
638
- * synthetic `__other__` / `Other` segment. Only supported for additive
639
- * aggregations (`count`, `sum`, `value`) and not for percentage metrics. The
640
- * `__other__` segment cannot be drilled into. Requires `segmentBy` and
641
- * `segmentTopValuesLimit`.
708
+ * Body param
642
709
  */
643
- segmentShowOther?: boolean;
710
+ segmentBy?: string;
644
711
  /**
645
- * Body param: Keep only the top N `segmentBy` values per series, ranked by the
646
- * selected metric over the full filtered primary range. Under a time View-by the
647
- * ranked segment set is identical across every bucket; under a dimension View-by
648
- * the ranking is applied within each retained parent group. Allowed values: `5`,
649
- * `7`, `10`, `15`, `20`. Requires `segmentBy`.
712
+ * Body param: A metric ID from the datasets catalog. Use when the originating
713
+ * chart aggregates several metrics to pick which one the drill-in follows.
714
+ * Defaults to `metric`.
650
715
  */
651
- segmentTopValuesLimit?: 5 | 7 | 10 | 15 | 20;
716
+ selectedMetricId?: string;
652
717
  /**
653
- * Body param: When `true`, append a single synthetic group with id `__other__` and
654
- * label `Other` that sums the values of every `groupBy` value outside the top set.
655
- * Only supported for additive aggregations (`count`, `sum`, `value`) and not for
656
- * percentage metrics. The `__other__` group cannot be drilled into. Requires
657
- * `groupBy` and `topValuesLimit`.
718
+ * Body param: Stable metric-row ID selected within the launching chart.
658
719
  */
659
- showOther?: boolean;
720
+ selectedMetricRowId?: string;
660
721
  /**
661
- * Body param: IANA timezone for date bucketing (e.g. `America/New_York`). Defaults
662
- * to UTC.
722
+ * Body param
663
723
  */
664
- timezone?: string;
724
+ sort?: Array<ReportDrillInParams.Sort>;
665
725
  /**
666
- * Body param: Keep only the top N `groupBy` (View-by) values, ranked by the
667
- * selected metric/aggregation over the full filtered primary range. Allowed
668
- * values: `5`, `7`, `10`, `15`, `20`. The ranked set is stable across every time
669
- * bucket, and a comparison period reuses the primary period's ranked set (never
670
- * re-ranked). Requires `groupBy`.
726
+ * Body param
671
727
  */
672
- topValuesLimit?: 5 | 7 | 10 | 15 | 20;
728
+ timezone?: string;
673
729
  /**
674
730
  * Body param: Result shape. `standard` returns a time series (plus grouped/segment
675
731
  * data when requested), `hourly_heatmap` buckets by day-of-week × hour-of-day,
@@ -681,7 +737,69 @@ export interface ReportQueryParams {
681
737
  * Header param: API version for this request. Defaults to your organization's
682
738
  * configured API version if not specified.
683
739
  */
684
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
740
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
741
+ }
742
+ export declare namespace ReportDrillInParams {
743
+ /**
744
+ * Narrows the drill-in to one data point from a previous query (time bucket, group
745
+ * value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
746
+ */
747
+ interface DataPointFilters {
748
+ /**
749
+ * Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
750
+ */
751
+ dayOfWeek?: number;
752
+ /**
753
+ * Flow path ID — for `sankey` views.
754
+ */
755
+ flowPathId?: string;
756
+ /**
757
+ * Group value to drill into (a `group` value from `groupedData`).
758
+ */
759
+ groupValue?: string;
760
+ /**
761
+ * Hour of day (0-23) — for `hourly_heatmap` views.
762
+ */
763
+ hourOfDay?: number;
764
+ /**
765
+ * Segment value to drill into (a `segment` value from segment data).
766
+ */
767
+ segmentValue?: string;
768
+ /**
769
+ * Flow source node ID — for `sankey` views.
770
+ */
771
+ sourceNodeId?: string;
772
+ /**
773
+ * Flow target node ID — for `sankey` views.
774
+ */
775
+ targetNodeId?: string;
776
+ /**
777
+ * Time bucket to drill into (a `date` value from the query time series).
778
+ */
779
+ timeBucket?: string;
780
+ /**
781
+ * Granularity of `timeSegmentValue`; both fields must be sent together.
782
+ */
783
+ timeSegmentGranularity?: 'hour' | 'day' | 'week' | 'month';
784
+ /**
785
+ * Time-segment bucket selected from a Segment-by-Time series.
786
+ */
787
+ timeSegmentValue?: string;
788
+ }
789
+ interface Sort {
790
+ direction: 'asc' | 'desc';
791
+ /**
792
+ * Column ID to sort by (an attribute ID or `metric.value`).
793
+ */
794
+ fieldId: string;
795
+ }
796
+ }
797
+ export interface ReportListDatasetsParams {
798
+ /**
799
+ * API version for this request. Defaults to your organization's configured API
800
+ * version if not specified.
801
+ */
802
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
685
803
  }
686
804
  export interface ReportLookupFilterValuesParams {
687
805
  /**
@@ -689,14 +807,39 @@ export interface ReportLookupFilterValuesParams {
689
807
  * `valueSource: "remote_search"` or static options in the catalog).
690
808
  */
691
809
  fieldId: string;
810
+ /**
811
+ * Body param
812
+ */
813
+ cursor?: string;
814
+ /**
815
+ * Body param
816
+ */
817
+ datasetId?: string;
818
+ /**
819
+ * Body param
820
+ */
821
+ groupBy?: string;
692
822
  /**
693
823
  * Body param: Maximum number of options to return (1-50, default 20).
694
824
  */
695
825
  limit?: number;
826
+ /**
827
+ * Body param: Opaque client context echoed by the response so stale lookup results
828
+ * can be discarded safely.
829
+ */
830
+ lookupContextKey?: string;
831
+ /**
832
+ * Body param
833
+ */
834
+ metricId?: string;
696
835
  /**
697
836
  * Body param: Optional search string to narrow the returned options.
698
837
  */
699
838
  query?: string;
839
+ /**
840
+ * Body param
841
+ */
842
+ segmentBy?: string;
700
843
  /**
701
844
  * Body param: Already-selected values to resolve labels for (returned alongside
702
845
  * search results).
@@ -706,12 +849,18 @@ export interface ReportLookupFilterValuesParams {
706
849
  * Header param: API version for this request. Defaults to your organization's
707
850
  * configured API version if not specified.
708
851
  */
709
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
852
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
710
853
  }
711
- export interface ReportDrillInParams {
854
+ export interface ReportQueryParams {
855
+ /**
856
+ * Body param: Aggregation function applied to the metric. Each metric supports a
857
+ * subset of aggregations — see the `allowedAggregations` field in the
858
+ * `GET /v2/reports/datasets` catalog.
859
+ */
860
+ aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
712
861
  /**
713
862
  * Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
714
- * Windows ending before 2026-07-12 are rejected.
863
+ * Windows ending before 2026-07-14 are rejected.
715
864
  */
716
865
  endDate: string;
717
866
  /**
@@ -719,30 +868,26 @@ export interface ReportDrillInParams {
719
868
  */
720
869
  granularity: 'hour' | 'day' | 'week' | 'month';
721
870
  /**
722
- * Body param: Metric ID the drill-in belongs to.
871
+ * Body param: Metric ID to query (e.g. `new_conversations`). Discover metric IDs
872
+ * via `GET /v2/reports/datasets`.
723
873
  */
724
874
  metric: string;
725
875
  /**
726
876
  * Body param: Start of the reporting window (ISO 8601 date or datetime,
727
- * inclusive). Reporting data is available from 2026-07-12; crossing windows are
877
+ * inclusive). Reporting data is available from 2026-07-14; crossing windows are
728
878
  * clamped to that boundary.
729
879
  */
730
880
  startDate: string;
731
881
  /**
732
- * Body param: Stable editor ID of the saved chart that launched this drill-in.
733
- */
734
- chartEditorId?: string;
735
- /**
736
- * Body param: Column IDs to include in each returned row. Omit for legacy
737
- * full-width static rows; pass an empty array to use `defaultColumnIds`.
882
+ * Body param: End of the comparison window. Must be paired with
883
+ * `compareStartDate`.
738
884
  */
739
- columns?: Array<string>;
885
+ compareEndDate?: string;
740
886
  /**
741
- * Body param: Narrows the drill-in to one data point from a previous query (time
742
- * bucket, group value, heatmap cell, or flow edge). Pass `{}` to list all
743
- * underlying rows.
887
+ * Body param: Start of the comparison window for period-over-period deltas. Must
888
+ * be paired with `compareEndDate`.
744
889
  */
745
- dataPointFilters?: ReportDrillInParams.DataPointFilters;
890
+ compareStartDate?: string;
746
891
  /**
747
892
  * Body param: Filter expression: a single rule, or an `and`/`or` group combining
748
893
  * rules and nested groups. Attribute IDs and their allowed operators come from
@@ -750,43 +895,61 @@ export interface ReportDrillInParams {
750
895
  */
751
896
  filters?: ReportFilterRule | ReportFilterExpression;
752
897
  /**
753
- * Body param
898
+ * Body param: Attribute ID to group results by (e.g. `conversation.channel`). See
899
+ * `supportsGroupBy` in the catalog.
754
900
  */
755
901
  groupBy?: string;
756
902
  /**
757
- * Body param
903
+ * Body param: Restrict time-based metrics to configured office hours. Only
904
+ * supported by some metrics (see `supportsOfficeHours` in the catalog).
758
905
  */
759
906
  officeHoursOnly?: boolean;
760
907
  /**
761
- * Body param: Page number (1-based).
762
- */
763
- page?: number;
764
- /**
765
- * Body param: Rows per page (1-200, default 25).
908
+ * Body param: Percentile (1-100) — required when `aggregation` is `percentile`.
766
909
  */
767
- pageSize?: number;
910
+ percentile?: number;
768
911
  /**
769
- * Body param
912
+ * Body param: Attribute ID for secondary segmentation within each group or time
913
+ * bucket.
770
914
  */
771
915
  segmentBy?: string;
772
916
  /**
773
- * Body param: A metric ID from the datasets catalog. Use when the originating
774
- * chart aggregates several metrics to pick which one the drill-in follows.
775
- * Defaults to `metric`.
917
+ * Body param: When `true`, fold `segmentBy` values outside the top set into a
918
+ * synthetic `__other__` / `Other` segment. Only supported for additive
919
+ * aggregations (`count`, `sum`, `value`) and not for percentage metrics. The
920
+ * `__other__` segment cannot be drilled into. Requires `segmentBy` and
921
+ * `segmentTopValuesLimit`.
776
922
  */
777
- selectedMetricId?: string;
923
+ segmentShowOther?: boolean;
778
924
  /**
779
- * Body param: Stable metric-row ID selected within the launching chart.
925
+ * Body param: Keep only the top N `segmentBy` values per series. Under a time
926
+ * View-by, segments are ranked independently inside each time bucket and the
927
+ * response series catalog contains the union of bucket winners. Under a dimension
928
+ * View-by, ranking is applied within each retained parent group. Allowed range:
929
+ * `1` to `100`; the editor offers common presets plus a Custom value. Requires
930
+ * `segmentBy`.
780
931
  */
781
- selectedMetricRowId?: string;
932
+ segmentTopValuesLimit?: number;
782
933
  /**
783
- * Body param
934
+ * Body param: When `true`, append a single synthetic group with id `__other__` and
935
+ * label `Other` that sums the values of every `groupBy` value outside the top set.
936
+ * Only supported for additive aggregations (`count`, `sum`, `value`) and not for
937
+ * percentage metrics. The `__other__` group cannot be drilled into. Requires
938
+ * `groupBy` and `topValuesLimit`.
784
939
  */
785
- sort?: Array<ReportDrillInParams.Sort>;
940
+ showOther?: boolean;
786
941
  /**
787
- * Body param
942
+ * Body param: IANA timezone for date bucketing (e.g. `America/New_York`). Defaults
943
+ * to UTC.
788
944
  */
789
945
  timezone?: string;
946
+ /**
947
+ * Body param: Keep only the top N `groupBy` (View-by) values, ranked by the
948
+ * selected metric/aggregation over the full filtered primary range. Allowed range:
949
+ * `1` to `100`; the editor offers common presets plus a Custom value. A comparison
950
+ * period reuses the primary period's ranked set. Requires `groupBy`.
951
+ */
952
+ topValuesLimit?: number;
790
953
  /**
791
954
  * Body param: Result shape. `standard` returns a time series (plus grouped/segment
792
955
  * data when requested), `hourly_heatmap` buckets by day-of-week × hour-of-day,
@@ -798,56 +961,9 @@ export interface ReportDrillInParams {
798
961
  * Header param: API version for this request. Defaults to your organization's
799
962
  * configured API version if not specified.
800
963
  */
801
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
802
- }
803
- export declare namespace ReportDrillInParams {
804
- /**
805
- * Narrows the drill-in to one data point from a previous query (time bucket, group
806
- * value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
807
- */
808
- interface DataPointFilters {
809
- /**
810
- * Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
811
- */
812
- dayOfWeek?: number;
813
- /**
814
- * Flow path ID — for `sankey` views.
815
- */
816
- flowPathId?: string;
817
- /**
818
- * Group value to drill into (a `group` value from `groupedData`).
819
- */
820
- groupValue?: string;
821
- /**
822
- * Hour of day (0-23) — for `hourly_heatmap` views.
823
- */
824
- hourOfDay?: number;
825
- /**
826
- * Segment value to drill into (a `segment` value from segment data).
827
- */
828
- segmentValue?: string;
829
- /**
830
- * Flow source node ID — for `sankey` views.
831
- */
832
- sourceNodeId?: string;
833
- /**
834
- * Flow target node ID — for `sankey` views.
835
- */
836
- targetNodeId?: string;
837
- /**
838
- * Time bucket to drill into (a `date` value from the query time series).
839
- */
840
- timeBucket?: string;
841
- }
842
- interface Sort {
843
- direction: 'asc' | 'desc';
844
- /**
845
- * Column ID to sort by (an attribute ID or `metric.value`).
846
- */
847
- fieldId: string;
848
- }
964
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
849
965
  }
850
966
  export declare namespace Reports {
851
- export { type ReportAttribute as ReportAttribute, type ReportAttributeOption as ReportAttributeOption, type ReportDataset as ReportDataset, type ReportFilterExpression as ReportFilterExpression, type ReportFilterRule as ReportFilterRule, type ReportGroupedDatum as ReportGroupedDatum, type ReportMetric as ReportMetric, type ReportSegmentDatum as ReportSegmentDatum, type ReportTimeSeriesDatum as ReportTimeSeriesDatum, type ReportDrillInResponse as ReportDrillInResponse, type ReportListDatasetsResponse as ReportListDatasetsResponse, type ReportLookupFilterValuesResponse as ReportLookupFilterValuesResponse, type ReportQueryResponse as ReportQueryResponse, type ReportListDatasetsParams as ReportListDatasetsParams, type ReportQueryParams as ReportQueryParams, type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams, type ReportDrillInParams as ReportDrillInParams, };
967
+ export { type ReportAttribute as ReportAttribute, type ReportAttributeOption as ReportAttributeOption, type ReportDataset as ReportDataset, type ReportFilterExpression as ReportFilterExpression, type ReportFilterRule as ReportFilterRule, type ReportGroupedDatum as ReportGroupedDatum, type ReportMetric as ReportMetric, type ReportSegmentDatum as ReportSegmentDatum, type ReportTimeSeriesDatum as ReportTimeSeriesDatum, type ReportDrillInResponse as ReportDrillInResponse, type ReportListDatasetsResponse as ReportListDatasetsResponse, type ReportLookupFilterValuesResponse as ReportLookupFilterValuesResponse, type ReportQueryResponse as ReportQueryResponse, type ReportDrillInParams as ReportDrillInParams, type ReportListDatasetsParams as ReportListDatasetsParams, type ReportLookupFilterValuesParams as ReportLookupFilterValuesParams, type ReportQueryParams as ReportQueryParams, };
852
968
  }
853
969
  //# sourceMappingURL=reports.d.ts.map