featurebase-node 0.14.2 → 0.15.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 (368) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/client.d.mts +5 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +5 -5
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/audit-logs.d.mts +3 -3
  8. package/resources/audit-logs.d.mts.map +1 -1
  9. package/resources/audit-logs.d.ts +3 -3
  10. package/resources/audit-logs.d.ts.map +1 -1
  11. package/resources/changelogs/changelogs.d.mts +116 -116
  12. package/resources/changelogs/changelogs.d.mts.map +1 -1
  13. package/resources/changelogs/changelogs.d.ts +116 -116
  14. package/resources/changelogs/changelogs.d.ts.map +1 -1
  15. package/resources/changelogs/changelogs.js +74 -74
  16. package/resources/changelogs/changelogs.js.map +1 -1
  17. package/resources/changelogs/changelogs.mjs +74 -74
  18. package/resources/changelogs/changelogs.mjs.map +1 -1
  19. package/resources/changelogs/index.d.mts +1 -1
  20. package/resources/changelogs/index.d.mts.map +1 -1
  21. package/resources/changelogs/index.d.ts +1 -1
  22. package/resources/changelogs/index.d.ts.map +1 -1
  23. package/resources/changelogs/subscribers.d.mts +3 -3
  24. package/resources/changelogs/subscribers.d.mts.map +1 -1
  25. package/resources/changelogs/subscribers.d.ts +3 -3
  26. package/resources/changelogs/subscribers.d.ts.map +1 -1
  27. package/resources/conversation-attributes.d.mts +17 -17
  28. package/resources/conversation-attributes.d.mts.map +1 -1
  29. package/resources/conversation-attributes.d.ts +17 -17
  30. package/resources/conversation-attributes.d.ts.map +1 -1
  31. package/resources/conversation-attributes.js +19 -19
  32. package/resources/conversation-attributes.js.map +1 -1
  33. package/resources/conversation-attributes.mjs +19 -19
  34. package/resources/conversation-attributes.mjs.map +1 -1
  35. package/resources/feedback/boards.d.mts +19 -19
  36. package/resources/feedback/boards.d.mts.map +1 -1
  37. package/resources/feedback/boards.d.ts +19 -19
  38. package/resources/feedback/boards.d.ts.map +1 -1
  39. package/resources/feedback/boards.js +20 -20
  40. package/resources/feedback/boards.js.map +1 -1
  41. package/resources/feedback/boards.mjs +20 -20
  42. package/resources/feedback/boards.mjs.map +1 -1
  43. package/resources/feedback/comments.d.mts +113 -113
  44. package/resources/feedback/comments.d.mts.map +1 -1
  45. package/resources/feedback/comments.d.ts +113 -113
  46. package/resources/feedback/comments.d.ts.map +1 -1
  47. package/resources/feedback/comments.js +93 -93
  48. package/resources/feedback/comments.js.map +1 -1
  49. package/resources/feedback/comments.mjs +93 -93
  50. package/resources/feedback/comments.mjs.map +1 -1
  51. package/resources/feedback/custom-fields.d.mts +36 -36
  52. package/resources/feedback/custom-fields.d.mts.map +1 -1
  53. package/resources/feedback/custom-fields.d.ts +36 -36
  54. package/resources/feedback/custom-fields.d.ts.map +1 -1
  55. package/resources/feedback/custom-fields.js +36 -36
  56. package/resources/feedback/custom-fields.js.map +1 -1
  57. package/resources/feedback/custom-fields.mjs +36 -36
  58. package/resources/feedback/custom-fields.mjs.map +1 -1
  59. package/resources/feedback/feedback.d.mts +6 -6
  60. package/resources/feedback/feedback.d.mts.map +1 -1
  61. package/resources/feedback/feedback.d.ts +6 -6
  62. package/resources/feedback/feedback.d.ts.map +1 -1
  63. package/resources/feedback/feedback.js.map +1 -1
  64. package/resources/feedback/feedback.mjs.map +1 -1
  65. package/resources/feedback/index.d.mts +5 -5
  66. package/resources/feedback/index.d.mts.map +1 -1
  67. package/resources/feedback/index.d.ts +5 -5
  68. package/resources/feedback/index.d.ts.map +1 -1
  69. package/resources/feedback/index.js.map +1 -1
  70. package/resources/feedback/index.mjs.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/index.js.map +1 -1
  84. package/resources/feedback/posts/index.mjs.map +1 -1
  85. package/resources/feedback/posts/posts.d.mts +169 -102
  86. package/resources/feedback/posts/posts.d.mts.map +1 -1
  87. package/resources/feedback/posts/posts.d.ts +169 -102
  88. package/resources/feedback/posts/posts.d.ts.map +1 -1
  89. package/resources/feedback/posts/posts.js +144 -75
  90. package/resources/feedback/posts/posts.js.map +1 -1
  91. package/resources/feedback/posts/posts.mjs +144 -75
  92. package/resources/feedback/posts/posts.mjs.map +1 -1
  93. package/resources/feedback/posts/voters.d.mts +3 -3
  94. package/resources/feedback/posts/voters.d.mts.map +1 -1
  95. package/resources/feedback/posts/voters.d.ts +3 -3
  96. package/resources/feedback/posts/voters.d.ts.map +1 -1
  97. package/resources/help-center/articles.d.mts +213 -97
  98. package/resources/help-center/articles.d.mts.map +1 -1
  99. package/resources/help-center/articles.d.ts +213 -97
  100. package/resources/help-center/articles.d.ts.map +1 -1
  101. package/resources/help-center/articles.js +73 -73
  102. package/resources/help-center/articles.js.map +1 -1
  103. package/resources/help-center/articles.mjs +73 -73
  104. package/resources/help-center/articles.mjs.map +1 -1
  105. package/resources/help-center/collections.d.mts +158 -71
  106. package/resources/help-center/collections.d.mts.map +1 -1
  107. package/resources/help-center/collections.d.ts +158 -71
  108. package/resources/help-center/collections.d.ts.map +1 -1
  109. package/resources/help-center/collections.js +65 -65
  110. package/resources/help-center/collections.js.map +1 -1
  111. package/resources/help-center/collections.mjs +65 -65
  112. package/resources/help-center/collections.mjs.map +1 -1
  113. package/resources/help-center/help-center.d.mts +4 -4
  114. package/resources/help-center/help-center.d.mts.map +1 -1
  115. package/resources/help-center/help-center.d.ts +4 -4
  116. package/resources/help-center/help-center.d.ts.map +1 -1
  117. package/resources/help-center/help-centers.d.mts +77 -48
  118. package/resources/help-center/help-centers.d.mts.map +1 -1
  119. package/resources/help-center/help-centers.d.ts +77 -48
  120. package/resources/help-center/help-centers.d.ts.map +1 -1
  121. package/resources/help-center/help-centers.js +43 -43
  122. package/resources/help-center/help-centers.js.map +1 -1
  123. package/resources/help-center/help-centers.mjs +43 -43
  124. package/resources/help-center/help-centers.mjs.map +1 -1
  125. package/resources/help-center/index.d.mts +4 -4
  126. package/resources/help-center/index.d.mts.map +1 -1
  127. package/resources/help-center/index.d.ts +4 -4
  128. package/resources/help-center/index.d.ts.map +1 -1
  129. package/resources/help-center/redirect-rules.d.mts +124 -124
  130. package/resources/help-center/redirect-rules.d.mts.map +1 -1
  131. package/resources/help-center/redirect-rules.d.ts +124 -124
  132. package/resources/help-center/redirect-rules.d.ts.map +1 -1
  133. package/resources/help-center/redirect-rules.js +112 -112
  134. package/resources/help-center/redirect-rules.js.map +1 -1
  135. package/resources/help-center/redirect-rules.mjs +112 -112
  136. package/resources/help-center/redirect-rules.mjs.map +1 -1
  137. package/resources/index.d.mts +5 -5
  138. package/resources/index.d.mts.map +1 -1
  139. package/resources/index.d.ts +5 -5
  140. package/resources/index.d.ts.map +1 -1
  141. package/resources/organization/admins.d.mts +26 -26
  142. package/resources/organization/admins.d.mts.map +1 -1
  143. package/resources/organization/admins.d.ts +26 -26
  144. package/resources/organization/admins.d.ts.map +1 -1
  145. package/resources/organization/admins.js +25 -25
  146. package/resources/organization/admins.js.map +1 -1
  147. package/resources/organization/admins.mjs +25 -25
  148. package/resources/organization/admins.mjs.map +1 -1
  149. package/resources/organization/brands.d.mts +52 -52
  150. package/resources/organization/brands.d.mts.map +1 -1
  151. package/resources/organization/brands.d.ts +52 -52
  152. package/resources/organization/brands.d.ts.map +1 -1
  153. package/resources/organization/brands.js +54 -54
  154. package/resources/organization/brands.js.map +1 -1
  155. package/resources/organization/brands.mjs +54 -54
  156. package/resources/organization/brands.mjs.map +1 -1
  157. package/resources/organization/index.d.mts +3 -3
  158. package/resources/organization/index.d.mts.map +1 -1
  159. package/resources/organization/index.d.ts +3 -3
  160. package/resources/organization/index.d.ts.map +1 -1
  161. package/resources/organization/organization.d.mts +3 -3
  162. package/resources/organization/organization.d.mts.map +1 -1
  163. package/resources/organization/organization.d.ts +3 -3
  164. package/resources/organization/organization.d.ts.map +1 -1
  165. package/resources/organization/teams.d.mts +47 -47
  166. package/resources/organization/teams.d.mts.map +1 -1
  167. package/resources/organization/teams.d.ts +47 -47
  168. package/resources/organization/teams.d.ts.map +1 -1
  169. package/resources/organization/teams.js +44 -44
  170. package/resources/organization/teams.js.map +1 -1
  171. package/resources/organization/teams.mjs +44 -44
  172. package/resources/organization/teams.mjs.map +1 -1
  173. package/resources/reports.d.mts +347 -180
  174. package/resources/reports.d.mts.map +1 -1
  175. package/resources/reports.d.ts +347 -180
  176. package/resources/reports.d.ts.map +1 -1
  177. package/resources/reports.js +124 -99
  178. package/resources/reports.js.map +1 -1
  179. package/resources/reports.mjs +124 -99
  180. package/resources/reports.mjs.map +1 -1
  181. package/resources/support/conversation-tags.d.mts +43 -43
  182. package/resources/support/conversation-tags.d.mts.map +1 -1
  183. package/resources/support/conversation-tags.d.ts +43 -43
  184. package/resources/support/conversation-tags.d.ts.map +1 -1
  185. package/resources/support/conversation-tags.js +32 -32
  186. package/resources/support/conversation-tags.js.map +1 -1
  187. package/resources/support/conversation-tags.mjs +32 -32
  188. package/resources/support/conversation-tags.mjs.map +1 -1
  189. package/resources/support/conversations/conversations.d.mts +402 -351
  190. package/resources/support/conversations/conversations.d.mts.map +1 -1
  191. package/resources/support/conversations/conversations.d.ts +402 -351
  192. package/resources/support/conversations/conversations.d.ts.map +1 -1
  193. package/resources/support/conversations/conversations.js +340 -295
  194. package/resources/support/conversations/conversations.js.map +1 -1
  195. package/resources/support/conversations/conversations.mjs +340 -295
  196. package/resources/support/conversations/conversations.mjs.map +1 -1
  197. package/resources/support/conversations/index.d.mts +1 -1
  198. package/resources/support/conversations/index.d.mts.map +1 -1
  199. package/resources/support/conversations/index.d.ts +1 -1
  200. package/resources/support/conversations/index.d.ts.map +1 -1
  201. package/resources/support/conversations/participants.d.mts +2 -2
  202. package/resources/support/conversations/participants.d.mts.map +1 -1
  203. package/resources/support/conversations/participants.d.ts +2 -2
  204. package/resources/support/conversations/participants.d.ts.map +1 -1
  205. package/resources/support/index.d.mts +3 -3
  206. package/resources/support/index.d.mts.map +1 -1
  207. package/resources/support/index.d.ts +3 -3
  208. package/resources/support/index.d.ts.map +1 -1
  209. package/resources/support/support.d.mts +3 -3
  210. package/resources/support/support.d.mts.map +1 -1
  211. package/resources/support/support.d.ts +3 -3
  212. package/resources/support/support.d.ts.map +1 -1
  213. package/resources/support/tickets/categories.d.mts +20 -20
  214. package/resources/support/tickets/categories.d.mts.map +1 -1
  215. package/resources/support/tickets/categories.d.ts +20 -20
  216. package/resources/support/tickets/categories.d.ts.map +1 -1
  217. package/resources/support/tickets/categories.js +25 -25
  218. package/resources/support/tickets/categories.js.map +1 -1
  219. package/resources/support/tickets/categories.mjs +25 -25
  220. package/resources/support/tickets/categories.mjs.map +1 -1
  221. package/resources/support/tickets/custom-fields.d.mts +22 -22
  222. package/resources/support/tickets/custom-fields.d.mts.map +1 -1
  223. package/resources/support/tickets/custom-fields.d.ts +22 -22
  224. package/resources/support/tickets/custom-fields.d.ts.map +1 -1
  225. package/resources/support/tickets/custom-fields.js +19 -19
  226. package/resources/support/tickets/custom-fields.js.map +1 -1
  227. package/resources/support/tickets/custom-fields.mjs +19 -19
  228. package/resources/support/tickets/custom-fields.mjs.map +1 -1
  229. package/resources/support/tickets/index.d.mts +4 -4
  230. package/resources/support/tickets/index.d.mts.map +1 -1
  231. package/resources/support/tickets/index.d.ts +4 -4
  232. package/resources/support/tickets/index.d.ts.map +1 -1
  233. package/resources/support/tickets/statuses.d.mts +19 -19
  234. package/resources/support/tickets/statuses.d.mts.map +1 -1
  235. package/resources/support/tickets/statuses.d.ts +19 -19
  236. package/resources/support/tickets/statuses.d.ts.map +1 -1
  237. package/resources/support/tickets/statuses.js +21 -21
  238. package/resources/support/tickets/statuses.js.map +1 -1
  239. package/resources/support/tickets/statuses.mjs +21 -21
  240. package/resources/support/tickets/statuses.mjs.map +1 -1
  241. package/resources/support/tickets/tickets.d.mts +75 -75
  242. package/resources/support/tickets/tickets.d.mts.map +1 -1
  243. package/resources/support/tickets/tickets.d.ts +75 -75
  244. package/resources/support/tickets/tickets.d.ts.map +1 -1
  245. package/resources/support/tickets/tickets.js +44 -44
  246. package/resources/support/tickets/tickets.js.map +1 -1
  247. package/resources/support/tickets/tickets.mjs +44 -44
  248. package/resources/support/tickets/tickets.mjs.map +1 -1
  249. package/resources/surveys.d.mts +43 -43
  250. package/resources/surveys.d.mts.map +1 -1
  251. package/resources/surveys.d.ts +43 -43
  252. package/resources/surveys.d.ts.map +1 -1
  253. package/resources/surveys.js +44 -44
  254. package/resources/surveys.js.map +1 -1
  255. package/resources/surveys.mjs +44 -44
  256. package/resources/surveys.mjs.map +1 -1
  257. package/resources/users/companies/companies.d.mts +121 -130
  258. package/resources/users/companies/companies.d.mts.map +1 -1
  259. package/resources/users/companies/companies.d.ts +121 -130
  260. package/resources/users/companies/companies.d.ts.map +1 -1
  261. package/resources/users/companies/companies.js +125 -125
  262. package/resources/users/companies/companies.js.map +1 -1
  263. package/resources/users/companies/companies.mjs +125 -125
  264. package/resources/users/companies/companies.mjs.map +1 -1
  265. package/resources/users/companies/contacts.d.mts +3 -3
  266. package/resources/users/companies/contacts.d.mts.map +1 -1
  267. package/resources/users/companies/contacts.d.ts +3 -3
  268. package/resources/users/companies/contacts.d.ts.map +1 -1
  269. package/resources/users/companies/index.d.mts +1 -1
  270. package/resources/users/companies/index.d.mts.map +1 -1
  271. package/resources/users/companies/index.d.ts +1 -1
  272. package/resources/users/companies/index.d.ts.map +1 -1
  273. package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
  274. package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
  275. package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
  276. package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
  277. package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
  278. package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
  279. package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
  280. package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
  281. package/resources/users/contacts/contacts.d.mts +249 -235
  282. package/resources/users/contacts/contacts.d.mts.map +1 -1
  283. package/resources/users/contacts/contacts.d.ts +249 -235
  284. package/resources/users/contacts/contacts.d.ts.map +1 -1
  285. package/resources/users/contacts/contacts.js +211 -184
  286. package/resources/users/contacts/contacts.js.map +1 -1
  287. package/resources/users/contacts/contacts.mjs +211 -184
  288. package/resources/users/contacts/contacts.mjs.map +1 -1
  289. package/resources/users/contacts/email-preferences.d.mts +2 -2
  290. package/resources/users/contacts/email-preferences.d.mts.map +1 -1
  291. package/resources/users/contacts/email-preferences.d.ts +2 -2
  292. package/resources/users/contacts/email-preferences.d.ts.map +1 -1
  293. package/resources/users/contacts/index.d.mts +1 -1
  294. package/resources/users/contacts/index.d.mts.map +1 -1
  295. package/resources/users/contacts/index.d.ts +1 -1
  296. package/resources/users/contacts/index.d.ts.map +1 -1
  297. package/resources/users/index.d.mts +2 -2
  298. package/resources/users/index.d.mts.map +1 -1
  299. package/resources/users/index.d.ts +2 -2
  300. package/resources/users/index.d.ts.map +1 -1
  301. package/resources/users/users.d.mts +2 -2
  302. package/resources/users/users.d.mts.map +1 -1
  303. package/resources/users/users.d.ts +2 -2
  304. package/resources/users/users.d.ts.map +1 -1
  305. package/resources/webhooks.d.mts +83 -83
  306. package/resources/webhooks.d.mts.map +1 -1
  307. package/resources/webhooks.d.ts +83 -83
  308. package/resources/webhooks.d.ts.map +1 -1
  309. package/resources/webhooks.js +77 -77
  310. package/resources/webhooks.js.map +1 -1
  311. package/resources/webhooks.mjs +77 -77
  312. package/resources/webhooks.mjs.map +1 -1
  313. package/src/client.ts +6 -6
  314. package/src/resources/audit-logs.ts +7 -1
  315. package/src/resources/changelogs/changelogs.ts +320 -175
  316. package/src/resources/changelogs/index.ts +1 -1
  317. package/src/resources/changelogs/subscribers.ts +31 -2
  318. package/src/resources/conversation-attributes.ts +34 -34
  319. package/src/resources/feedback/boards.ts +30 -30
  320. package/src/resources/feedback/comments.ts +137 -137
  321. package/src/resources/feedback/custom-fields.ts +46 -46
  322. package/src/resources/feedback/feedback.ts +9 -5
  323. package/src/resources/feedback/index.ts +7 -5
  324. package/src/resources/feedback/post-statuses.ts +33 -33
  325. package/src/resources/feedback/posts/index.ts +3 -1
  326. package/src/resources/feedback/posts/posts.ts +232 -128
  327. package/src/resources/feedback/posts/voters.ts +3 -3
  328. package/src/resources/help-center/articles.ts +631 -109
  329. package/src/resources/help-center/collections.ts +349 -88
  330. package/src/resources/help-center/help-center.ts +5 -5
  331. package/src/resources/help-center/help-centers.ts +202 -57
  332. package/src/resources/help-center/index.ts +5 -5
  333. package/src/resources/help-center/redirect-rules.ts +294 -178
  334. package/src/resources/index.ts +6 -6
  335. package/src/resources/organization/admins.ts +36 -36
  336. package/src/resources/organization/brands.ts +68 -68
  337. package/src/resources/organization/index.ts +3 -3
  338. package/src/resources/organization/organization.ts +3 -3
  339. package/src/resources/organization/teams.ts +54 -54
  340. package/src/resources/reports.ts +454 -232
  341. package/src/resources/support/conversation-tags.ts +62 -62
  342. package/src/resources/support/conversations/conversations.ts +489 -438
  343. package/src/resources/support/conversations/index.ts +4 -4
  344. package/src/resources/support/conversations/participants.ts +2 -2
  345. package/src/resources/support/index.ts +7 -7
  346. package/src/resources/support/support.ts +7 -7
  347. package/src/resources/support/tickets/categories.ts +35 -35
  348. package/src/resources/support/tickets/custom-fields.ts +29 -29
  349. package/src/resources/support/tickets/index.ts +4 -4
  350. package/src/resources/support/tickets/statuses.ts +31 -31
  351. package/src/resources/support/tickets/tickets.ts +101 -101
  352. package/src/resources/surveys.ts +60 -60
  353. package/src/resources/users/companies/companies.ts +158 -172
  354. package/src/resources/users/companies/contacts.ts +3 -3
  355. package/src/resources/users/companies/index.ts +2 -2
  356. package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
  357. package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
  358. package/src/resources/users/contacts/contacts.ts +284 -280
  359. package/src/resources/users/contacts/email-preferences.ts +2 -2
  360. package/src/resources/users/contacts/index.ts +3 -3
  361. package/src/resources/users/index.ts +5 -5
  362. package/src/resources/users/users.ts +5 -5
  363. package/src/resources/webhooks.ts +106 -100
  364. package/src/version.ts +1 -1
  365. package/version.d.mts +1 -1
  366. package/version.d.ts +1 -1
  367. package/version.js +1 -1
  368. package/version.mjs +1 -1
@@ -6,6 +6,43 @@ 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
+ * - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
20
+ * - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
21
+ * - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
22
+ *
23
+ * Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
24
+ *
25
+ * Results are paginated with `page` / `pageSize` (max 200 per page);
26
+ * `availableColumns` describes every column the dataset can return and
27
+ * `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
28
+ * cells (teammates, contacts) are objects with `id` + `label`.
29
+ *
30
+ * ### Version Availability
31
+ *
32
+ * This endpoint is only available in API version 2026-01-01.nova and newer, and
33
+ * only for workspaces with the Reports product enabled (404 otherwise).
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const response = await client.reports.drillIn({
38
+ * endDate: '2026-07-15',
39
+ * granularity: 'day',
40
+ * metric: 'new_conversations',
41
+ * startDate: '2026-07-14',
42
+ * });
43
+ * ```
44
+ */
45
+ drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse>;
9
46
  /**
10
47
  * Returns the reporting catalog: every dataset available to your workspace with
11
48
  * its metrics and attributes.
@@ -36,6 +73,37 @@ export declare class Reports extends APIResource {
36
73
  * ```
37
74
  */
38
75
  listDatasets(params?: ReportListDatasetsParams | null | undefined, options?: RequestOptions): APIPromise<ReportListDatasetsResponse>;
76
+ /**
77
+ * Returns the available values for a filterable attribute — use it to build valid
78
+ * `filters` rules for `POST /v2/reports/query`.
79
+ *
80
+ * Works for attributes whose values live in your workspace data (tags, teammates,
81
+ * teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
82
+ * catalog don't need this endpoint — their value set is already inline.
83
+ *
84
+ * - `query` narrows results by search string
85
+ * - `selectedValues` resolves labels for values you already hold (returned
86
+ * alongside search results)
87
+ *
88
+ * ### Example
89
+ *
90
+ * ```json
91
+ * { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
92
+ * ```
93
+ *
94
+ * ### Version Availability
95
+ *
96
+ * This endpoint is only available in API version 2026-01-01.nova and newer, and
97
+ * only for workspaces with the Reports product enabled (404 otherwise).
98
+ *
99
+ * @example
100
+ * ```ts
101
+ * const response = await client.reports.lookupFilterValues({
102
+ * fieldId: 'conversation.tags',
103
+ * });
104
+ * ```
105
+ */
106
+ lookupFilterValues(params: ReportLookupFilterValuesParams, options?: RequestOptions): APIPromise<ReportLookupFilterValuesResponse>;
39
107
  /**
40
108
  * Executes an ad-hoc reporting query: one metric + aggregation over a date range,
41
109
  * with optional filters, grouping, segmentation and period-over-period comparison.
@@ -48,7 +116,7 @@ export declare class Reports extends APIResource {
48
116
  * `percentile: 95` for p95); rate metrics use `value`.
49
117
  * 2. Set the reporting window with `startDate` / `endDate` (ISO 8601) and a
50
118
  * `granularity` (`hour`, `day`, `week`, `month`) for the returned time series.
51
- * Reporting data is available from **July 12, 2026**. Windows ending earlier
119
+ * Reporting data is available from **July 14, 2026**. Windows ending earlier
52
120
  * are rejected; crossing windows are clamped to that boundary in the requested
53
121
  * timezone.
54
122
  * 3. Optionally narrow with `filters` — a rule
@@ -60,13 +128,38 @@ export declare class Reports extends APIResource {
60
128
  * 5. Optionally pass `compareStartDate` / `compareEndDate` to get `previousValue`
61
129
  * / `deltaPercent` alongside every data point.
62
130
  *
131
+ * ### Top-N and Show Other
132
+ *
133
+ * For high-cardinality breakdowns, cap the number of returned series:
134
+ *
135
+ * - `topValuesLimit` keeps only the top **N** `groupBy` values;
136
+ * `segmentTopValuesLimit` does the same for `segmentBy`. Allowed values: **5, 7,
137
+ * 10, 15, 20**. `topValuesLimit` requires `groupBy`; `segmentTopValuesLimit`
138
+ * requires `segmentBy`.
139
+ * - Members are ranked by the selected metric/aggregation over the **full filtered
140
+ * primary range**, so the ranked set is **stable across every time bucket** (a
141
+ * value that spikes in one bucket but is small overall does not enter the set).
142
+ * A comparison period reuses the **primary period's** ranked set — it is never
143
+ * re-ranked, so the legend stays identical period-over-period.
144
+ * - `showOther` / `segmentShowOther` append a single synthetic bucket with id
145
+ * `__other__` and label `Other` that sums every value outside the top set.
146
+ * Because the values are summed, Show Other is only supported for **additive
147
+ * aggregations** (`count`, `sum`, `value`); it is rejected for `avg`, `median`,
148
+ * `min`, `max`, `range`, `percentile`, and for percentage metrics (whose ratios
149
+ * cannot be summed). `showOther` also requires `topValuesLimit` (and
150
+ * `segmentShowOther` requires `segmentTopValuesLimit`). Plain `topValuesLimit`
151
+ * (without Show Other) works with any aggregation.
152
+ * - The `__other__` group/segment aggregates rows outside the selected top groups
153
+ * and **cannot be drilled into** (`POST /v2/reports/drill-in` rejects
154
+ * `dataPointFilters.groupValue` / `segmentValue` equal to `__other__`).
155
+ *
63
156
  * ### Example
64
157
  *
65
158
  * ```json
66
159
  * {
67
160
  * "metric": "new_conversations",
68
161
  * "aggregation": "count",
69
- * "startDate": "2026-07-12",
162
+ * "startDate": "2026-07-14",
70
163
  * "endDate": "2026-07-15",
71
164
  * "granularity": "day",
72
165
  * "groupBy": "conversation.channel",
@@ -106,79 +199,11 @@ export declare class Reports extends APIResource {
106
199
  * endDate: '2026-07-15',
107
200
  * granularity: 'day',
108
201
  * metric: 'new_conversations',
109
- * startDate: '2026-07-12',
202
+ * startDate: '2026-07-14',
110
203
  * });
111
204
  * ```
112
205
  */
113
206
  query(params: ReportQueryParams, options?: RequestOptions): APIPromise<ReportQueryResponse>;
114
- /**
115
- * Returns the available values for a filterable attribute — use it to build valid
116
- * `filters` rules for `POST /v2/reports/query`.
117
- *
118
- * Works for attributes whose values live in your workspace data (tags, teammates,
119
- * teams, companies, plans, countries, ...). Attributes with `staticOptions` in the
120
- * catalog don't need this endpoint — their value set is already inline.
121
- *
122
- * - `query` narrows results by search string
123
- * - `selectedValues` resolves labels for values you already hold (returned
124
- * alongside search results)
125
- *
126
- * ### Example
127
- *
128
- * ```json
129
- * { "fieldId": "conversation.tags", "query": "bill", "limit": 20 }
130
- * ```
131
- *
132
- * ### Version Availability
133
- *
134
- * This endpoint is only available in API version 2026-01-01.nova and newer, and
135
- * only for workspaces with the Reports product enabled (404 otherwise).
136
- *
137
- * @example
138
- * ```ts
139
- * const response = await client.reports.lookupFilterValues({
140
- * fieldId: 'conversation.tags',
141
- * });
142
- * ```
143
- */
144
- lookupFilterValues(params: ReportLookupFilterValuesParams, options?: RequestOptions): APIPromise<ReportLookupFilterValuesResponse>;
145
- /**
146
- * Returns the paginated row-level records behind a metric — either the whole
147
- * reporting window, or one specific data point from a previous
148
- * `POST /v2/reports/query` response.
149
- *
150
- * Send the **same** `metric`, date range, `granularity`, `filters`, `groupBy` /
151
- * `segmentBy` and `view` as the query you're drilling into, plus
152
- * `dataPointFilters` selecting the data point:
153
- *
154
- * - `timeBucket` — a `date` from the time series
155
- * - `groupValue` / `segmentValue` — a `group` / `segment` value from grouped data
156
- * - `dayOfWeek` + `hourOfDay` — a heatmap cell (`hourly_heatmap` view)
157
- * - `flowPathId` or `sourceNodeId` + `targetNodeId` — a flow edge (`sankey` view)
158
- *
159
- * Pass `dataPointFilters: {}` to list all rows behind the metric for the window.
160
- *
161
- * Results are paginated with `page` / `pageSize` (max 200 per page);
162
- * `availableColumns` describes every column the dataset can return and
163
- * `defaultColumnIds` the recommended subset. Rows are keyed by column ID; identity
164
- * cells (teammates, contacts) are objects with `id` + `label`.
165
- *
166
- * ### Version Availability
167
- *
168
- * This endpoint is only available in API version 2026-01-01.nova and newer, and
169
- * only for workspaces with the Reports product enabled (404 otherwise).
170
- *
171
- * @example
172
- * ```ts
173
- * const response = await client.reports.drillIn({
174
- * endDate: 'xxxxxxxxxx',
175
- * granularity: 'day',
176
- * metric: 'new_conversations',
177
- * startDate: 'xxxxxxxxxx',
178
- * });
179
- * ```
180
- */
181
- drillIn(params: ReportDrillInParams, options?: RequestOptions): APIPromise<ReportDrillInResponse>;
182
207
  }
183
208
  export interface ReportAttribute {
184
209
  /**
@@ -283,9 +308,13 @@ export interface ReportMetric {
283
308
  * Metric ID — use as `metric` in query requests.
284
309
  */
285
310
  id: string;
311
+ algebra: ReportMetric.Algebra;
286
312
  allowedAggregations: Array<'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value'>;
287
313
  description: string;
314
+ executionKind: 'pipe_aggregate' | 'pipe_computed_ratio';
288
315
  name: string;
316
+ presentationFamily: 'count' | 'duration' | 'percentage' | 'decimal' | 'fibi' | 'ai';
317
+ releaseState: 'available' | 'unavailable';
289
318
  /**
290
319
  * Attribute IDs this specific metric accepts in filter expressions.
291
320
  */
@@ -304,6 +333,39 @@ export interface ReportMetric {
304
333
  supportsPeriodComparison: boolean;
305
334
  type: 'count' | 'percentage' | 'duration' | 'number';
306
335
  unit: 'count' | 'percentage' | 'duration_ms' | 'number';
336
+ availabilityReason?: string;
337
+ /**
338
+ * Local calendar date (ISO 8601) from which this specific metric has data, when it
339
+ * differs from the global reporting floor. Windows ending before this date are
340
+ * rejected for this metric.
341
+ */
342
+ dataAvailableFromIso?: string;
343
+ /**
344
+ * Whether this variant is the default selection for its `variantGroupId`.
345
+ */
346
+ isDefaultVariant?: boolean;
347
+ qualifiers?: Array<string>;
348
+ searchAliases?: Array<string>;
349
+ /**
350
+ * Metrics sharing a `variantGroupId` are timestamp variants of one logical metric
351
+ * (same display `name`); each measures the same population at a different
352
+ * timestamp. Query the concrete metric `id` to pick a variant.
353
+ */
354
+ variantGroupId?: string;
355
+ /**
356
+ * Stable identifier for this variant within its group (e.g. `created_at`,
357
+ * `started_at`).
358
+ */
359
+ variantId?: string;
360
+ /**
361
+ * Human-readable variant label for pickers (e.g. `Created at`, `Started at`).
362
+ */
363
+ variantLabel?: string;
364
+ }
365
+ export declare namespace ReportMetric {
366
+ interface Algebra {
367
+ kind: 'direct_aggregate' | 'pipe_computed_ratio';
368
+ }
307
369
  }
308
370
  export interface ReportSegmentDatum {
309
371
  segment: string;
@@ -334,7 +396,7 @@ export interface ReportDrillInResponse {
334
396
  * One record per underlying row, keyed by column ID.
335
397
  */
336
398
  rows: Array<{
337
- [key: string]: string | number | boolean | Array<string> | ReportDrillInResponse.ReportDrillInIdentityCell | null;
399
+ [key: string]: string | number | boolean | Array<string> | ReportDrillInResponse.ReportDrillInIdentityCell | ReportDrillInResponse.ReportDrillInSourceDetailsCell | null;
338
400
  }>;
339
401
  timezone: string;
340
402
  total: number;
@@ -346,12 +408,34 @@ export declare namespace ReportDrillInResponse {
346
408
  */
347
409
  id: string;
348
410
  name: string;
411
+ /**
412
+ * Whether this column may be used in the drill-in sort request.
413
+ */
414
+ supportsSort: boolean;
349
415
  valueType: string;
350
416
  category?: string;
351
417
  }
352
418
  interface Meta {
353
419
  datasetId: string;
354
420
  metricId: string;
421
+ rawMetricId: string;
422
+ reconciliation: Meta.Reconciliation;
423
+ rowGrain: string;
424
+ rowSemantics: 'metric_rows' | 'numerator_rows';
425
+ sourceFact: string;
426
+ emptyReason?: 'no_matching_rows' | 'denominator_unavailable';
427
+ metricRowId?: string;
428
+ }
429
+ namespace Meta {
430
+ interface Reconciliation {
431
+ kind: 'rows' | 'actions_across_conversations' | 'active_hour_rate' | 'positive_ratings_over_eligible_ratings' | 'missed_over_evaluated';
432
+ rowCount: number;
433
+ status: 'not_applicable' | 'available' | 'denominator_unavailable';
434
+ denominatorHours?: number;
435
+ displayedRate?: number;
436
+ eligibleDenominatorTotal?: number;
437
+ rawNumeratorTotal?: number;
438
+ }
355
439
  }
356
440
  interface ReportDrillInIdentityCell {
357
441
  id: string;
@@ -359,6 +443,19 @@ export declare namespace ReportDrillInResponse {
359
443
  label: string;
360
444
  avatarUrl?: string;
361
445
  color?: string;
446
+ provenance?: 'current' | 'historical' | 'fallback' | 'unassigned';
447
+ }
448
+ interface ReportDrillInSourceDetailsCell {
449
+ items: Array<ReportDrillInSourceDetailsCell.Item>;
450
+ kind: 'source_details';
451
+ }
452
+ namespace ReportDrillInSourceDetailsCell {
453
+ interface Item {
454
+ label: string;
455
+ id?: string;
456
+ type?: string;
457
+ url?: string;
458
+ }
362
459
  }
363
460
  }
364
461
  export interface ReportListDatasetsResponse {
@@ -368,6 +465,8 @@ export interface ReportListDatasetsResponse {
368
465
  export interface ReportLookupFilterValuesResponse {
369
466
  data: Array<ReportAttributeOption>;
370
467
  object: 'list';
468
+ nextCursor?: string;
469
+ unavailableSelectedValues?: Array<string>;
371
470
  }
372
471
  export interface ReportQueryResponse {
373
472
  meta: ReportQueryResponse.Meta;
@@ -479,23 +578,10 @@ export declare namespace ReportQueryResponse {
479
578
  }
480
579
  }
481
580
  }
482
- export interface ReportListDatasetsParams {
483
- /**
484
- * API version for this request. Defaults to your organization's configured API
485
- * version if not specified.
486
- */
487
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
488
- }
489
- export interface ReportQueryParams {
490
- /**
491
- * Body param: Aggregation function applied to the metric. Each metric supports a
492
- * subset of aggregations — see the `allowedAggregations` field in the
493
- * `GET /v2/reports/datasets` catalog.
494
- */
495
- aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
581
+ export interface ReportDrillInParams {
496
582
  /**
497
583
  * Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
498
- * Windows ending before 2026-07-12 are rejected.
584
+ * Windows ending before 2026-07-14 are rejected.
499
585
  */
500
586
  endDate: string;
501
587
  /**
@@ -503,26 +589,30 @@ export interface ReportQueryParams {
503
589
  */
504
590
  granularity: 'hour' | 'day' | 'week' | 'month';
505
591
  /**
506
- * Body param: Metric ID to query (e.g. `new_conversations`). Discover metric IDs
507
- * via `GET /v2/reports/datasets`.
592
+ * Body param: Metric ID the drill-in belongs to.
508
593
  */
509
594
  metric: string;
510
595
  /**
511
596
  * Body param: Start of the reporting window (ISO 8601 date or datetime,
512
- * inclusive). Reporting data is available from 2026-07-12; crossing windows are
597
+ * inclusive). Reporting data is available from 2026-07-14; crossing windows are
513
598
  * clamped to that boundary.
514
599
  */
515
600
  startDate: string;
516
601
  /**
517
- * Body param: End of the comparison window. Must be paired with
518
- * `compareStartDate`.
602
+ * Body param: Stable editor ID of the saved chart that launched this drill-in.
519
603
  */
520
- compareEndDate?: string;
604
+ chartEditorId?: string;
521
605
  /**
522
- * Body param: Start of the comparison window for period-over-period deltas. Must
523
- * be paired with `compareEndDate`.
606
+ * Body param: Column IDs to include in each returned row. Omit for legacy
607
+ * full-width static rows; pass an empty array to use `defaultColumnIds`.
524
608
  */
525
- compareStartDate?: string;
609
+ columns?: Array<string>;
610
+ /**
611
+ * Body param: Narrows the drill-in to one data point from a previous query (time
612
+ * bucket, group value, heatmap cell, or flow edge). Pass `{}` to list all
613
+ * underlying rows.
614
+ */
615
+ dataPointFilters?: ReportDrillInParams.DataPointFilters;
526
616
  /**
527
617
  * Body param: Filter expression: a single rule, or an `and`/`or` group combining
528
618
  * rules and nested groups. Attribute IDs and their allowed operators come from
@@ -530,27 +620,41 @@ export interface ReportQueryParams {
530
620
  */
531
621
  filters?: ReportFilterRule | ReportFilterExpression;
532
622
  /**
533
- * Body param: Attribute ID to group results by (e.g. `conversation.channel`). See
534
- * `supportsGroupBy` in the catalog.
623
+ * Body param
535
624
  */
536
625
  groupBy?: string;
537
626
  /**
538
- * Body param: Restrict time-based metrics to configured office hours. Only
539
- * supported by some metrics (see `supportsOfficeHours` in the catalog).
627
+ * Body param
540
628
  */
541
629
  officeHoursOnly?: boolean;
542
630
  /**
543
- * Body param: Percentile (1-100) — required when `aggregation` is `percentile`.
631
+ * Body param: Page number (1-based).
544
632
  */
545
- percentile?: number;
633
+ page?: number;
546
634
  /**
547
- * Body param: Attribute ID for secondary segmentation within each group or time
548
- * bucket.
635
+ * Body param: Rows per page (1-200, default 25).
636
+ */
637
+ pageSize?: number;
638
+ /**
639
+ * Body param
549
640
  */
550
641
  segmentBy?: string;
551
642
  /**
552
- * Body param: IANA timezone for date bucketing (e.g. `America/New_York`). Defaults
553
- * to UTC.
643
+ * Body param: A metric ID from the datasets catalog. Use when the originating
644
+ * chart aggregates several metrics to pick which one the drill-in follows.
645
+ * Defaults to `metric`.
646
+ */
647
+ selectedMetricId?: string;
648
+ /**
649
+ * Body param: Stable metric-row ID selected within the launching chart.
650
+ */
651
+ selectedMetricRowId?: string;
652
+ /**
653
+ * Body param
654
+ */
655
+ sort?: Array<ReportDrillInParams.Sort>;
656
+ /**
657
+ * Body param
554
658
  */
555
659
  timezone?: string;
556
660
  /**
@@ -564,7 +668,61 @@ export interface ReportQueryParams {
564
668
  * Header param: API version for this request. Defaults to your organization's
565
669
  * configured API version if not specified.
566
670
  */
567
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
671
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
672
+ }
673
+ export declare namespace ReportDrillInParams {
674
+ /**
675
+ * Narrows the drill-in to one data point from a previous query (time bucket, group
676
+ * value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
677
+ */
678
+ interface DataPointFilters {
679
+ /**
680
+ * Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
681
+ */
682
+ dayOfWeek?: number;
683
+ /**
684
+ * Flow path ID — for `sankey` views.
685
+ */
686
+ flowPathId?: string;
687
+ /**
688
+ * Group value to drill into (a `group` value from `groupedData`).
689
+ */
690
+ groupValue?: string;
691
+ /**
692
+ * Hour of day (0-23) — for `hourly_heatmap` views.
693
+ */
694
+ hourOfDay?: number;
695
+ /**
696
+ * Segment value to drill into (a `segment` value from segment data).
697
+ */
698
+ segmentValue?: string;
699
+ /**
700
+ * Flow source node ID — for `sankey` views.
701
+ */
702
+ sourceNodeId?: string;
703
+ /**
704
+ * Flow target node ID — for `sankey` views.
705
+ */
706
+ targetNodeId?: string;
707
+ /**
708
+ * Time bucket to drill into (a `date` value from the query time series).
709
+ */
710
+ timeBucket?: string;
711
+ }
712
+ interface Sort {
713
+ direction: 'asc' | 'desc';
714
+ /**
715
+ * Column ID to sort by (an attribute ID or `metric.value`).
716
+ */
717
+ fieldId: string;
718
+ }
719
+ }
720
+ export interface ReportListDatasetsParams {
721
+ /**
722
+ * API version for this request. Defaults to your organization's configured API
723
+ * version if not specified.
724
+ */
725
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
568
726
  }
569
727
  export interface ReportLookupFilterValuesParams {
570
728
  /**
@@ -572,14 +730,34 @@ export interface ReportLookupFilterValuesParams {
572
730
  * `valueSource: "remote_search"` or static options in the catalog).
573
731
  */
574
732
  fieldId: string;
733
+ /**
734
+ * Body param
735
+ */
736
+ cursor?: string;
737
+ /**
738
+ * Body param
739
+ */
740
+ datasetId?: string;
741
+ /**
742
+ * Body param
743
+ */
744
+ groupBy?: string;
575
745
  /**
576
746
  * Body param: Maximum number of options to return (1-50, default 20).
577
747
  */
578
748
  limit?: number;
749
+ /**
750
+ * Body param
751
+ */
752
+ metricId?: string;
579
753
  /**
580
754
  * Body param: Optional search string to narrow the returned options.
581
755
  */
582
756
  query?: string;
757
+ /**
758
+ * Body param
759
+ */
760
+ segmentBy?: string;
583
761
  /**
584
762
  * Body param: Already-selected values to resolve labels for (returned alongside
585
763
  * search results).
@@ -589,11 +767,18 @@ export interface ReportLookupFilterValuesParams {
589
767
  * Header param: API version for this request. Defaults to your organization's
590
768
  * configured API version if not specified.
591
769
  */
592
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
770
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
593
771
  }
594
- export interface ReportDrillInParams {
772
+ export interface ReportQueryParams {
595
773
  /**
596
- * Body param
774
+ * Body param: Aggregation function applied to the metric. Each metric supports a
775
+ * subset of aggregations — see the `allowedAggregations` field in the
776
+ * `GET /v2/reports/datasets` catalog.
777
+ */
778
+ aggregation: 'count' | 'sum' | 'avg' | 'median' | 'min' | 'max' | 'range' | 'percentile' | 'value';
779
+ /**
780
+ * Body param: End of the reporting window (ISO 8601 date or datetime, inclusive).
781
+ * Windows ending before 2026-07-14 are rejected.
597
782
  */
598
783
  endDate: string;
599
784
  /**
@@ -601,19 +786,26 @@ export interface ReportDrillInParams {
601
786
  */
602
787
  granularity: 'hour' | 'day' | 'week' | 'month';
603
788
  /**
604
- * Body param: Metric ID the drill-in belongs to.
789
+ * Body param: Metric ID to query (e.g. `new_conversations`). Discover metric IDs
790
+ * via `GET /v2/reports/datasets`.
605
791
  */
606
792
  metric: string;
607
793
  /**
608
- * Body param
794
+ * Body param: Start of the reporting window (ISO 8601 date or datetime,
795
+ * inclusive). Reporting data is available from 2026-07-14; crossing windows are
796
+ * clamped to that boundary.
609
797
  */
610
798
  startDate: string;
611
799
  /**
612
- * Body param: Narrows the drill-in to one data point from a previous query (time
613
- * bucket, group value, heatmap cell, or flow edge). Pass `{}` to list all
614
- * underlying rows.
800
+ * Body param: End of the comparison window. Must be paired with
801
+ * `compareStartDate`.
615
802
  */
616
- dataPointFilters?: ReportDrillInParams.DataPointFilters;
803
+ compareEndDate?: string;
804
+ /**
805
+ * Body param: Start of the comparison window for period-over-period deltas. Must
806
+ * be paired with `compareEndDate`.
807
+ */
808
+ compareStartDate?: string;
617
809
  /**
618
810
  * Body param: Filter expression: a single rule, or an `and`/`or` group combining
619
811
  * rules and nested groups. Attribute IDs and their allowed operators come from
@@ -621,39 +813,61 @@ export interface ReportDrillInParams {
621
813
  */
622
814
  filters?: ReportFilterRule | ReportFilterExpression;
623
815
  /**
624
- * Body param
816
+ * Body param: Attribute ID to group results by (e.g. `conversation.channel`). See
817
+ * `supportsGroupBy` in the catalog.
625
818
  */
626
819
  groupBy?: string;
627
820
  /**
628
- * Body param
821
+ * Body param: Restrict time-based metrics to configured office hours. Only
822
+ * supported by some metrics (see `supportsOfficeHours` in the catalog).
629
823
  */
630
824
  officeHoursOnly?: boolean;
631
825
  /**
632
- * Body param: Page number (1-based).
826
+ * Body param: Percentile (1-100) — required when `aggregation` is `percentile`.
633
827
  */
634
- page?: number;
828
+ percentile?: number;
635
829
  /**
636
- * Body param: Rows per page (1-200, default 25).
830
+ * Body param: Attribute ID for secondary segmentation within each group or time
831
+ * bucket.
637
832
  */
638
- pageSize?: number;
833
+ segmentBy?: string;
639
834
  /**
640
- * Body param
835
+ * Body param: When `true`, fold `segmentBy` values outside the top set into a
836
+ * synthetic `__other__` / `Other` segment. Only supported for additive
837
+ * aggregations (`count`, `sum`, `value`) and not for percentage metrics. The
838
+ * `__other__` segment cannot be drilled into. Requires `segmentBy` and
839
+ * `segmentTopValuesLimit`.
641
840
  */
642
- segmentBy?: string;
841
+ segmentShowOther?: boolean;
643
842
  /**
644
- * Body param: A metric ID from the datasets catalog. Use when the originating
645
- * chart aggregates several metrics to pick which one the drill-in follows.
646
- * Defaults to `metric`.
843
+ * Body param: Keep only the top N `segmentBy` values per series, ranked by the
844
+ * selected metric over the full filtered primary range. Under a time View-by the
845
+ * ranked segment set is identical across every bucket; under a dimension View-by
846
+ * the ranking is applied within each retained parent group. Allowed values: `5`,
847
+ * `7`, `10`, `15`, `20`. Requires `segmentBy`.
647
848
  */
648
- selectedMetricId?: string;
849
+ segmentTopValuesLimit?: 5 | 7 | 10 | 15 | 20;
649
850
  /**
650
- * Body param
851
+ * Body param: When `true`, append a single synthetic group with id `__other__` and
852
+ * label `Other` that sums the values of every `groupBy` value outside the top set.
853
+ * Only supported for additive aggregations (`count`, `sum`, `value`) and not for
854
+ * percentage metrics. The `__other__` group cannot be drilled into. Requires
855
+ * `groupBy` and `topValuesLimit`.
651
856
  */
652
- sort?: Array<ReportDrillInParams.Sort>;
857
+ showOther?: boolean;
653
858
  /**
654
- * Body param
859
+ * Body param: IANA timezone for date bucketing (e.g. `America/New_York`). Defaults
860
+ * to UTC.
655
861
  */
656
862
  timezone?: string;
863
+ /**
864
+ * Body param: Keep only the top N `groupBy` (View-by) values, ranked by the
865
+ * selected metric/aggregation over the full filtered primary range. Allowed
866
+ * values: `5`, `7`, `10`, `15`, `20`. The ranked set is stable across every time
867
+ * bucket, and a comparison period reuses the primary period's ranked set (never
868
+ * re-ranked). Requires `groupBy`.
869
+ */
870
+ topValuesLimit?: 5 | 7 | 10 | 15 | 20;
657
871
  /**
658
872
  * Body param: Result shape. `standard` returns a time series (plus grouped/segment
659
873
  * data when requested), `hourly_heatmap` buckets by day-of-week × hour-of-day,
@@ -665,56 +879,9 @@ export interface ReportDrillInParams {
665
879
  * Header param: API version for this request. Defaults to your organization's
666
880
  * configured API version if not specified.
667
881
  */
668
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
669
- }
670
- export declare namespace ReportDrillInParams {
671
- /**
672
- * Narrows the drill-in to one data point from a previous query (time bucket, group
673
- * value, heatmap cell, or flow edge). Pass `{}` to list all underlying rows.
674
- */
675
- interface DataPointFilters {
676
- /**
677
- * Day of week (1 = Monday … 7 = Sunday) — for `hourly_heatmap` views.
678
- */
679
- dayOfWeek?: number;
680
- /**
681
- * Flow path ID — for `sankey` views.
682
- */
683
- flowPathId?: string;
684
- /**
685
- * Group value to drill into (a `group` value from `groupedData`).
686
- */
687
- groupValue?: string;
688
- /**
689
- * Hour of day (0-23) — for `hourly_heatmap` views.
690
- */
691
- hourOfDay?: number;
692
- /**
693
- * Segment value to drill into (a `segment` value from segment data).
694
- */
695
- segmentValue?: string;
696
- /**
697
- * Flow source node ID — for `sankey` views.
698
- */
699
- sourceNodeId?: string;
700
- /**
701
- * Flow target node ID — for `sankey` views.
702
- */
703
- targetNodeId?: string;
704
- /**
705
- * Time bucket to drill into (a `date` value from the query time series).
706
- */
707
- timeBucket?: string;
708
- }
709
- interface Sort {
710
- direction: 'asc' | 'desc';
711
- /**
712
- * Column ID to sort by (an attribute ID or `metric.value`).
713
- */
714
- fieldId: string;
715
- }
882
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
716
883
  }
717
884
  export declare namespace Reports {
718
- 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, };
885
+ 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, };
719
886
  }
720
887
  //# sourceMappingURL=reports.d.ts.map