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
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,KAAK,QAAQ,sCAAmC;AACvD,OAAO,KAAK,YAAY,kCAA+B;AACvD,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACrB,+BAA4B;AAC7B,OAAO,KAAK,WAAW,mCAAgC;AACvD,OAAO,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACzB,mCAAgC;AACjC,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,oCAAiC;AAE1F,OAAO,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AAI,2BAA2B,EAC/D,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -21,27 +21,19 @@ class Contacts extends resource_1.APIResource {
21
21
  this.emailPreferences = new EmailPreferencesAPI.EmailPreferences(this._client);
22
22
  }
23
23
  /**
24
- * Returns a list of contacts (customers and leads) in your organization using
25
- * cursor-based pagination.
26
- *
27
- * ### Query Parameters
28
- *
29
- * - `limit` - Number of contacts to return (1-100, default 10)
30
- * - `cursor` - Cursor from previous response for pagination
31
- * - `contactType` - Filter by contact type: "customer" (default), "lead", or "all"
24
+ * Retrieves a single contact by their Featurebase ID.
32
25
  *
33
- * ### Response Format
26
+ * Returns both customers and leads.
34
27
  *
35
- * Returns a list object with:
28
+ * ### Path Parameters
36
29
  *
37
- * - `object` - Always "list"
38
- * - `data` - Array of contact objects
39
- * - `nextCursor` - Cursor for the next page, or null if no more results
30
+ * - `id` - The Featurebase contact ID (24-character ObjectId)
40
31
  *
41
- * ### Contact Object
32
+ * ### Response Format
42
33
  *
43
- * Each contact includes:
34
+ * Returns a single contact object with:
44
35
  *
36
+ * - `object` - Always "contact"
45
37
  * - `id` - Unique contact identifier
46
38
  * - `userId` - External user ID from SSO (if set)
47
39
  * - `email` - Contact email address
@@ -58,129 +50,11 @@ class Contacts extends resource_1.APIResource {
58
50
  *
59
51
  * ```json
60
52
  * {
61
- * "object": "list",
62
- * "data": [
63
- * {
64
- * "object": "contact",
65
- * "id": "676f0f6765bdaa7d7d760f88",
66
- * "email": "john@example.com",
67
- * "name": "John Doe",
68
- * "type": "customer",
69
- * ...
70
- * }
71
- * ],
72
- * "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
73
- * }
74
- * ```
75
- *
76
- * ### Version Availability
77
- *
78
- * This endpoint is only available in API version 2026-01-01.nova and newer.
79
- *
80
- * @example
81
- * ```ts
82
- * // Automatically fetches more pages as needed.
83
- * for await (const contact of client.users.contacts.list()) {
84
- * // ...
85
- * }
86
- * ```
87
- */
88
- list(params = {}, options) {
89
- const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
90
- return this._client.getAPIList('/v2/contacts', (pagination_1.CursorPage), {
91
- query,
92
- ...options,
93
- headers: (0, headers_1.buildHeaders)([
94
- {
95
- ...(featurebaseVersion?.toString() != null ?
96
- { 'Featurebase-Version': featurebaseVersion?.toString() }
97
- : undefined),
98
- },
99
- options?.headers,
100
- ]),
101
- });
102
- }
103
- /**
104
- * Creates a new contact or updates an existing one.
105
- *
106
- * If a contact with the given `email` or `userId` already exists, it will be
107
- * updated. Otherwise, a new contact will be created.
108
- *
109
- * **At least one of `email` or `userId` must be provided for identification.**
110
- *
111
- * ### Request Body
112
- *
113
- * | Field | Type | Required | Description |
114
- * | ----------------------- | ------- | ------------------- | --------------------------------------- |
115
- * | `email` | string | One of email/userId | Contact email address |
116
- * | `userId` | string | One of email/userId | External user ID from your system |
117
- * | `name` | string | No | Contact display name |
118
- * | `profilePicture` | string | No | Profile picture URL |
119
- * | `companies` | array | No | Companies the contact belongs to |
120
- * | `customFields` | object | No | Custom field values |
121
- * | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
122
- * | `locale` | string | No | Contact locale/language |
123
- * | `phone` | string | No | Contact phone number |
124
- * | `roles` | array | No | Role (User Tag) names to assign |
125
- * | `userHash` | string | No | HMAC hash for identity verification |
126
- * | `createdAt` | string | No | When the contact was created (ISO 8601) |
127
- *
128
- * ### Company Object
129
- *
130
- * Each company in the `companies` array can have:
131
- *
132
- * - `id` (required) - External company ID from your system
133
- * - `name` (required) - Company name
134
- * - `monthlySpend` - Monthly spend/revenue
135
- * - `customFields` - Custom field values
136
- * - `industry` - Industry
137
- * - `website` - Company website URL
138
- * - `plan` - Current plan/subscription
139
- * - `companySize` - Number of employees
140
- * - `createdAt` - When the company was created
141
- *
142
- * ### Response
143
- *
144
- * Returns the created or updated contact object.
145
- *
146
- * - **201 Created** - A new contact was created
147
- * - **200 OK** - An existing contact was updated
148
- *
149
- * ### Example Request
150
- *
151
- * ```json
152
- * {
153
- * "email": "john@example.com",
154
- * "name": "John Doe",
155
- * "userId": "usr_12345",
156
- * "companies": [
157
- * {
158
- * "id": "company_123",
159
- * "name": "Acme Inc",
160
- * "monthlySpend": 500,
161
- * "plan": "enterprise"
162
- * }
163
- * ],
164
- * "customFields": {
165
- * "plan": "pro",
166
- * "signupSource": "website"
167
- * },
168
- * "subscribedToChangelog": true
169
- * }
170
- * ```
171
- *
172
- * ### Example Response
173
- *
174
- * ```json
175
- * {
176
53
  * "object": "contact",
177
54
  * "id": "676f0f6765bdaa7d7d760f88",
178
55
  * "email": "john@example.com",
179
56
  * "name": "John Doe",
180
- * "userId": "usr_12345",
181
57
  * "type": "customer",
182
- * "companies": [...],
183
- * "customFields": {...},
184
58
  * ...
185
59
  * }
186
60
  * ```
@@ -191,14 +65,14 @@ class Contacts extends resource_1.APIResource {
191
65
  *
192
66
  * @example
193
67
  * ```ts
194
- * const response =
195
- * await client.users.contacts.createOrUpdate();
68
+ * const contact = await client.users.contacts.retrieve(
69
+ * '507f1f77bcf86cd799439011',
70
+ * );
196
71
  * ```
197
72
  */
198
- createOrUpdate(params, options) {
199
- const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
200
- return this._client.post('/v2/contacts', {
201
- body,
73
+ retrieve(id, params = {}, options) {
74
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
75
+ return this._client.get((0, path_1.path) `/v2/contacts/${id}`, {
202
76
  ...options,
203
77
  headers: (0, headers_1.buildHeaders)([
204
78
  {
@@ -211,19 +85,27 @@ class Contacts extends resource_1.APIResource {
211
85
  });
212
86
  }
213
87
  /**
214
- * Retrieves a single contact by their Featurebase ID.
215
- *
216
- * Returns both customers and leads.
88
+ * Returns a list of contacts (customers and leads) in your organization using
89
+ * cursor-based pagination.
217
90
  *
218
- * ### Path Parameters
91
+ * ### Query Parameters
219
92
  *
220
- * - `id` - The Featurebase contact ID (24-character ObjectId)
93
+ * - `limit` - Number of contacts to return (1-100, default 10)
94
+ * - `cursor` - Cursor from previous response for pagination
95
+ * - `contactType` - Filter by contact type: "customer" (default), "lead", or "all"
221
96
  *
222
97
  * ### Response Format
223
98
  *
224
- * Returns a single contact object with:
99
+ * Returns a list object with:
100
+ *
101
+ * - `object` - Always "list"
102
+ * - `data` - Array of contact objects
103
+ * - `nextCursor` - Cursor for the next page, or null if no more results
104
+ *
105
+ * ### Contact Object
106
+ *
107
+ * Each contact includes:
225
108
  *
226
- * - `object` - Always "contact"
227
109
  * - `id` - Unique contact identifier
228
110
  * - `userId` - External user ID from SSO (if set)
229
111
  * - `email` - Contact email address
@@ -240,12 +122,18 @@ class Contacts extends resource_1.APIResource {
240
122
  *
241
123
  * ```json
242
124
  * {
243
- * "object": "contact",
244
- * "id": "676f0f6765bdaa7d7d760f88",
245
- * "email": "john@example.com",
246
- * "name": "John Doe",
247
- * "type": "customer",
248
- * ...
125
+ * "object": "list",
126
+ * "data": [
127
+ * {
128
+ * "object": "contact",
129
+ * "id": "676f0f6765bdaa7d7d760f88",
130
+ * "email": "john@example.com",
131
+ * "name": "John Doe",
132
+ * "type": "customer",
133
+ * ...
134
+ * }
135
+ * ],
136
+ * "nextCursor": "eyJpZCI6IjUwN2YxZjc3YmNmODZjZDc5OTQzOTAxMSJ9"
249
137
  * }
250
138
  * ```
251
139
  *
@@ -255,14 +143,16 @@ class Contacts extends resource_1.APIResource {
255
143
  *
256
144
  * @example
257
145
  * ```ts
258
- * const contact = await client.users.contacts.retrieve(
259
- * '507f1f77bcf86cd799439011',
260
- * );
146
+ * // Automatically fetches more pages as needed.
147
+ * for await (const contact of client.users.contacts.list()) {
148
+ * // ...
149
+ * }
261
150
  * ```
262
151
  */
263
- retrieve(id, params = {}, options) {
264
- const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
265
- return this._client.get((0, path_1.path) `/v2/contacts/${id}`, {
152
+ list(params = {}, options) {
153
+ const { 'Featurebase-Version': featurebaseVersion, ...query } = params ?? {};
154
+ return this._client.getAPIList('/v2/contacts', (pagination_1.CursorPage), {
155
+ query,
266
156
  ...options,
267
157
  headers: (0, headers_1.buildHeaders)([
268
158
  {
@@ -404,59 +294,131 @@ class Contacts extends resource_1.APIResource {
404
294
  });
405
295
  }
406
296
  /**
407
- * Unblocks a contact by their Featurebase ID from the global moderation system.
408
- *
409
- * ### Path Parameters
297
+ * Creates a new contact or updates an existing one.
410
298
  *
411
- * - `id` - The Featurebase internal ID of the contact (MongoDB ObjectId)
299
+ * If a contact with the given `email` or `userId` already exists, it will be
300
+ * updated. Otherwise, a new contact will be created.
412
301
  *
413
- * ### Supported Contact Types
302
+ * **At least one of `email` or `userId` must be provided for identification.**
414
303
  *
415
- * This endpoint unblocks both:
304
+ * ### Request Body
416
305
  *
417
- * - **Customers** - Users with registered accounts
418
- * - **Leads** - Anonymous or unregistered visitors
306
+ * | Field | Type | Required | Description |
307
+ * | ----------------------- | -------------- | ------------------- | ----------------------------------------------------------------------------- |
308
+ * | `email` | string or null | One of email/userId | Contact email address. Send `null` with `userId` to remove the current email. |
309
+ * | `userId` | string or null | One of email/userId | External user ID. Send `null` with `email` to remove it. |
310
+ * | `name` | string or null | No | Contact display name. `null` resets it to the system fallback. |
311
+ * | `profilePicture` | string or null | No | Profile picture URL. `null` removes it. |
312
+ * | `companies` | array | No | Replacement company list. `[]` removes all memberships. |
313
+ * | `customFields` | object | No | Values merge by key. A key with `null` is removed. |
314
+ * | `subscribedToChangelog` | boolean | No | Whether subscribed to changelog |
315
+ * | `locale` | string or null | No | Contact locale/language. `null` removes it. |
316
+ * | `phone` | string or null | No | Contact phone number. `null` removes it. |
317
+ * | `roles` | array | No | Replacement role list. `[]` removes all roles. |
318
+ * | `userHash` | string | No | HMAC hash for identity verification |
319
+ * | `createdAt` | string | No | When the contact was created (ISO 8601) |
320
+ *
321
+ * ### Orbit Field Update Semantics
322
+ *
323
+ * - Omit a field to keep its current value.
324
+ * - Send a non-null scalar value to add or replace that value.
325
+ * - Send `null` for `email`, `userId`, `name`, `profilePicture`, `phone`, or
326
+ * `locale` to clear or reset it.
327
+ * - A contact must keep at least one identifier. Removing `email` requires
328
+ * `userId`. Removing `userId` requires `email`.
329
+ * - Send an array to replace the stored list. Send `[]` to clear `companies` or
330
+ * `roles`.
331
+ * - `customFields` is merged by key. Omitted keys stay unchanged. A key with
332
+ * `null` is removed.
333
+ * - `createdAt` and `subscribedToChangelog` do not accept `null`. Use `false` to
334
+ * turn off changelog subscription.
335
+ * - Empty strings are not deletion values for typed contact fields.
419
336
  *
420
- * ### Unblocking Behavior
337
+ * ### Company Object
421
338
  *
422
- * When a contact is unblocked:
339
+ * Each company in the `companies` array can have:
423
340
  *
424
- * - The contact can resume sending messages via messenger
425
- * - Previously blocked conversations remain intact
426
- * - The contact regains full messenger functionality
341
+ * - `id` (required) - External company ID from your system
342
+ * - `name` (required) - Company name
343
+ * - `monthlySpend` - Monthly spend/revenue
344
+ * - `customFields` - Custom field values
345
+ * - `industry` - Industry
346
+ * - `website` - Company website URL
347
+ * - `plan` - Current plan/subscription
348
+ * - `companySize` - Number of employees
349
+ * - `createdAt` - When the company was created
427
350
  *
428
351
  * ### Response
429
352
  *
430
- * Returns an unblock confirmation object:
353
+ * Returns the created or updated contact object.
431
354
  *
432
- * - `id` - The ID of the unblocked contact
433
- * - `object` - Always "contact"
434
- * - `unblocked` - Always `true`
355
+ * - **201 Created** - A new contact was created
356
+ * - **200 OK** - An existing contact was updated
357
+ *
358
+ * ### Example Request
359
+ *
360
+ * ```json
361
+ * {
362
+ * "email": "john@example.com",
363
+ * "name": "John Doe",
364
+ * "userId": "usr_12345",
365
+ * "companies": [
366
+ * {
367
+ * "id": "company_123",
368
+ * "name": "Acme Inc",
369
+ * "monthlySpend": 500,
370
+ * "plan": "enterprise"
371
+ * }
372
+ * ],
373
+ * "customFields": {
374
+ * "plan": "pro",
375
+ * "signupSource": "website"
376
+ * },
377
+ * "subscribedToChangelog": true
378
+ * }
379
+ * ```
380
+ *
381
+ * ### Example: Remove an Email
382
+ *
383
+ * ```json
384
+ * {
385
+ * "userId": "usr_12345",
386
+ * "email": null
387
+ * }
388
+ * ```
435
389
  *
436
390
  * ### Example Response
437
391
  *
438
392
  * ```json
439
393
  * {
440
- * "id": "507f1f77bcf86cd799439011",
441
394
  * "object": "contact",
442
- * "unblocked": true
395
+ * "id": "676f0f6765bdaa7d7d760f88",
396
+ * "email": "john@example.com",
397
+ * "name": "John Doe",
398
+ * "userId": "usr_12345",
399
+ * "type": "customer",
400
+ * "companies": [...],
401
+ * "customFields": {...},
402
+ * ...
443
403
  * }
444
404
  * ```
445
405
  *
446
406
  * ### Version Availability
447
407
  *
448
- * This endpoint is only available in API version 2026-01-01.nova and newer.
408
+ * This endpoint is available in API version 2026-01-01.nova and newer. The Orbit
409
+ * field update rules, including null removal and empty-array replacement, require
410
+ * API version 2026-08-19.orbit or newer.
449
411
  *
450
412
  * @example
451
413
  * ```ts
452
- * const response = await client.users.contacts.unblock(
453
- * '507f1f77bcf86cd799439011',
454
- * );
414
+ * const response =
415
+ * await client.users.contacts.createOrUpdate();
455
416
  * ```
456
417
  */
457
- unblock(id, params = {}, options) {
458
- const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
459
- return this._client.post((0, path_1.path) `/v2/contacts/${id}/unblock`, {
418
+ createOrUpdate(params, options) {
419
+ const { 'Featurebase-Version': featurebaseVersion, ...body } = params;
420
+ return this._client.post('/v2/contacts', {
421
+ body,
460
422
  ...options,
461
423
  headers: (0, headers_1.buildHeaders)([
462
424
  {
@@ -577,6 +539,71 @@ class Contacts extends resource_1.APIResource {
577
539
  ]),
578
540
  });
579
541
  }
542
+ /**
543
+ * Unblocks a contact by their Featurebase ID from the global moderation system.
544
+ *
545
+ * ### Path Parameters
546
+ *
547
+ * - `id` - The Featurebase internal ID of the contact (MongoDB ObjectId)
548
+ *
549
+ * ### Supported Contact Types
550
+ *
551
+ * This endpoint unblocks both:
552
+ *
553
+ * - **Customers** - Users with registered accounts
554
+ * - **Leads** - Anonymous or unregistered visitors
555
+ *
556
+ * ### Unblocking Behavior
557
+ *
558
+ * When a contact is unblocked:
559
+ *
560
+ * - The contact can resume sending messages via messenger
561
+ * - Previously blocked conversations remain intact
562
+ * - The contact regains full messenger functionality
563
+ *
564
+ * ### Response
565
+ *
566
+ * Returns an unblock confirmation object:
567
+ *
568
+ * - `id` - The ID of the unblocked contact
569
+ * - `object` - Always "contact"
570
+ * - `unblocked` - Always `true`
571
+ *
572
+ * ### Example Response
573
+ *
574
+ * ```json
575
+ * {
576
+ * "id": "507f1f77bcf86cd799439011",
577
+ * "object": "contact",
578
+ * "unblocked": true
579
+ * }
580
+ * ```
581
+ *
582
+ * ### Version Availability
583
+ *
584
+ * This endpoint is only available in API version 2026-01-01.nova and newer.
585
+ *
586
+ * @example
587
+ * ```ts
588
+ * const response = await client.users.contacts.unblock(
589
+ * '507f1f77bcf86cd799439011',
590
+ * );
591
+ * ```
592
+ */
593
+ unblock(id, params = {}, options) {
594
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
595
+ return this._client.post((0, path_1.path) `/v2/contacts/${id}/unblock`, {
596
+ ...options,
597
+ headers: (0, headers_1.buildHeaders)([
598
+ {
599
+ ...(featurebaseVersion?.toString() != null ?
600
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
601
+ : undefined),
602
+ },
603
+ options?.headers,
604
+ ]),
605
+ });
606
+ }
580
607
  }
581
608
  exports.Contacts = Contacts;
582
609
  Contacts.ByUserID = by_user_id_1.ByUserID;
@@ -1 +1 @@
1
- {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAIrD,oFAA2D;AAC3D,8DAO6B;AAC7B,gFAAuD;AACvD,2DAKiC;AAEjC,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IA2kBJ,CAAC;IAzkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgEG;IACH,IAAI,CACF,SAA+C,EAAE,EACjD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QAC7E,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,cAAc,EAAE,CAAA,uBAA4B,CAAA,EAAE;YAC3E,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,kBAAkB,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC;wBAC1C,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,QAAQ,EAAE,EAAE;wBAC3D,CAAC,CAAC,SAAS,CAAC;iBACb;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;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