featurebase-node 0.14.3 → 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 (362) hide show
  1. package/CHANGELOG.md +12 -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 +5 -5
  60. package/resources/feedback/feedback.d.mts.map +1 -1
  61. package/resources/feedback/feedback.d.ts +5 -5
  62. package/resources/feedback/feedback.d.ts.map +1 -1
  63. package/resources/feedback/index.d.mts +5 -5
  64. package/resources/feedback/index.d.mts.map +1 -1
  65. package/resources/feedback/index.d.ts +5 -5
  66. package/resources/feedback/index.d.ts.map +1 -1
  67. package/resources/feedback/post-statuses.d.mts +20 -20
  68. package/resources/feedback/post-statuses.d.mts.map +1 -1
  69. package/resources/feedback/post-statuses.d.ts +20 -20
  70. package/resources/feedback/post-statuses.d.ts.map +1 -1
  71. package/resources/feedback/post-statuses.js +23 -23
  72. package/resources/feedback/post-statuses.js.map +1 -1
  73. package/resources/feedback/post-statuses.mjs +23 -23
  74. package/resources/feedback/post-statuses.mjs.map +1 -1
  75. package/resources/feedback/posts/index.d.mts +1 -1
  76. package/resources/feedback/posts/index.d.mts.map +1 -1
  77. package/resources/feedback/posts/index.d.ts +1 -1
  78. package/resources/feedback/posts/index.d.ts.map +1 -1
  79. package/resources/feedback/posts/posts.d.mts +132 -132
  80. package/resources/feedback/posts/posts.d.mts.map +1 -1
  81. package/resources/feedback/posts/posts.d.ts +132 -132
  82. package/resources/feedback/posts/posts.d.ts.map +1 -1
  83. package/resources/feedback/posts/posts.js +107 -107
  84. package/resources/feedback/posts/posts.js.map +1 -1
  85. package/resources/feedback/posts/posts.mjs +107 -107
  86. package/resources/feedback/posts/posts.mjs.map +1 -1
  87. package/resources/feedback/posts/voters.d.mts +3 -3
  88. package/resources/feedback/posts/voters.d.mts.map +1 -1
  89. package/resources/feedback/posts/voters.d.ts +3 -3
  90. package/resources/feedback/posts/voters.d.ts.map +1 -1
  91. package/resources/help-center/articles.d.mts +213 -97
  92. package/resources/help-center/articles.d.mts.map +1 -1
  93. package/resources/help-center/articles.d.ts +213 -97
  94. package/resources/help-center/articles.d.ts.map +1 -1
  95. package/resources/help-center/articles.js +73 -73
  96. package/resources/help-center/articles.js.map +1 -1
  97. package/resources/help-center/articles.mjs +73 -73
  98. package/resources/help-center/articles.mjs.map +1 -1
  99. package/resources/help-center/collections.d.mts +158 -71
  100. package/resources/help-center/collections.d.mts.map +1 -1
  101. package/resources/help-center/collections.d.ts +158 -71
  102. package/resources/help-center/collections.d.ts.map +1 -1
  103. package/resources/help-center/collections.js +65 -65
  104. package/resources/help-center/collections.js.map +1 -1
  105. package/resources/help-center/collections.mjs +65 -65
  106. package/resources/help-center/collections.mjs.map +1 -1
  107. package/resources/help-center/help-center.d.mts +4 -4
  108. package/resources/help-center/help-center.d.mts.map +1 -1
  109. package/resources/help-center/help-center.d.ts +4 -4
  110. package/resources/help-center/help-center.d.ts.map +1 -1
  111. package/resources/help-center/help-centers.d.mts +77 -48
  112. package/resources/help-center/help-centers.d.mts.map +1 -1
  113. package/resources/help-center/help-centers.d.ts +77 -48
  114. package/resources/help-center/help-centers.d.ts.map +1 -1
  115. package/resources/help-center/help-centers.js +43 -43
  116. package/resources/help-center/help-centers.js.map +1 -1
  117. package/resources/help-center/help-centers.mjs +43 -43
  118. package/resources/help-center/help-centers.mjs.map +1 -1
  119. package/resources/help-center/index.d.mts +4 -4
  120. package/resources/help-center/index.d.mts.map +1 -1
  121. package/resources/help-center/index.d.ts +4 -4
  122. package/resources/help-center/index.d.ts.map +1 -1
  123. package/resources/help-center/redirect-rules.d.mts +124 -124
  124. package/resources/help-center/redirect-rules.d.mts.map +1 -1
  125. package/resources/help-center/redirect-rules.d.ts +124 -124
  126. package/resources/help-center/redirect-rules.d.ts.map +1 -1
  127. package/resources/help-center/redirect-rules.js +112 -112
  128. package/resources/help-center/redirect-rules.js.map +1 -1
  129. package/resources/help-center/redirect-rules.mjs +112 -112
  130. package/resources/help-center/redirect-rules.mjs.map +1 -1
  131. package/resources/index.d.mts +5 -5
  132. package/resources/index.d.mts.map +1 -1
  133. package/resources/index.d.ts +5 -5
  134. package/resources/index.d.ts.map +1 -1
  135. package/resources/organization/admins.d.mts +26 -26
  136. package/resources/organization/admins.d.mts.map +1 -1
  137. package/resources/organization/admins.d.ts +26 -26
  138. package/resources/organization/admins.d.ts.map +1 -1
  139. package/resources/organization/admins.js +25 -25
  140. package/resources/organization/admins.js.map +1 -1
  141. package/resources/organization/admins.mjs +25 -25
  142. package/resources/organization/admins.mjs.map +1 -1
  143. package/resources/organization/brands.d.mts +52 -52
  144. package/resources/organization/brands.d.mts.map +1 -1
  145. package/resources/organization/brands.d.ts +52 -52
  146. package/resources/organization/brands.d.ts.map +1 -1
  147. package/resources/organization/brands.js +54 -54
  148. package/resources/organization/brands.js.map +1 -1
  149. package/resources/organization/brands.mjs +54 -54
  150. package/resources/organization/brands.mjs.map +1 -1
  151. package/resources/organization/index.d.mts +3 -3
  152. package/resources/organization/index.d.mts.map +1 -1
  153. package/resources/organization/index.d.ts +3 -3
  154. package/resources/organization/index.d.ts.map +1 -1
  155. package/resources/organization/organization.d.mts +3 -3
  156. package/resources/organization/organization.d.mts.map +1 -1
  157. package/resources/organization/organization.d.ts +3 -3
  158. package/resources/organization/organization.d.ts.map +1 -1
  159. package/resources/organization/teams.d.mts +47 -47
  160. package/resources/organization/teams.d.mts.map +1 -1
  161. package/resources/organization/teams.d.ts +47 -47
  162. package/resources/organization/teams.d.ts.map +1 -1
  163. package/resources/organization/teams.js +44 -44
  164. package/resources/organization/teams.js.map +1 -1
  165. package/resources/organization/teams.mjs +44 -44
  166. package/resources/organization/teams.mjs.map +1 -1
  167. package/resources/reports.d.mts +249 -215
  168. package/resources/reports.d.mts.map +1 -1
  169. package/resources/reports.d.ts +249 -215
  170. package/resources/reports.d.ts.map +1 -1
  171. package/resources/reports.js +99 -99
  172. package/resources/reports.js.map +1 -1
  173. package/resources/reports.mjs +99 -99
  174. package/resources/reports.mjs.map +1 -1
  175. package/resources/support/conversation-tags.d.mts +43 -43
  176. package/resources/support/conversation-tags.d.mts.map +1 -1
  177. package/resources/support/conversation-tags.d.ts +43 -43
  178. package/resources/support/conversation-tags.d.ts.map +1 -1
  179. package/resources/support/conversation-tags.js +32 -32
  180. package/resources/support/conversation-tags.js.map +1 -1
  181. package/resources/support/conversation-tags.mjs +32 -32
  182. package/resources/support/conversation-tags.mjs.map +1 -1
  183. package/resources/support/conversations/conversations.d.mts +337 -327
  184. package/resources/support/conversations/conversations.d.mts.map +1 -1
  185. package/resources/support/conversations/conversations.d.ts +337 -327
  186. package/resources/support/conversations/conversations.d.ts.map +1 -1
  187. package/resources/support/conversations/conversations.js +293 -283
  188. package/resources/support/conversations/conversations.js.map +1 -1
  189. package/resources/support/conversations/conversations.mjs +293 -283
  190. package/resources/support/conversations/conversations.mjs.map +1 -1
  191. package/resources/support/conversations/index.d.mts +1 -1
  192. package/resources/support/conversations/index.d.mts.map +1 -1
  193. package/resources/support/conversations/index.d.ts +1 -1
  194. package/resources/support/conversations/index.d.ts.map +1 -1
  195. package/resources/support/conversations/participants.d.mts +2 -2
  196. package/resources/support/conversations/participants.d.mts.map +1 -1
  197. package/resources/support/conversations/participants.d.ts +2 -2
  198. package/resources/support/conversations/participants.d.ts.map +1 -1
  199. package/resources/support/index.d.mts +3 -3
  200. package/resources/support/index.d.mts.map +1 -1
  201. package/resources/support/index.d.ts +3 -3
  202. package/resources/support/index.d.ts.map +1 -1
  203. package/resources/support/support.d.mts +3 -3
  204. package/resources/support/support.d.mts.map +1 -1
  205. package/resources/support/support.d.ts +3 -3
  206. package/resources/support/support.d.ts.map +1 -1
  207. package/resources/support/tickets/categories.d.mts +20 -20
  208. package/resources/support/tickets/categories.d.mts.map +1 -1
  209. package/resources/support/tickets/categories.d.ts +20 -20
  210. package/resources/support/tickets/categories.d.ts.map +1 -1
  211. package/resources/support/tickets/categories.js +25 -25
  212. package/resources/support/tickets/categories.js.map +1 -1
  213. package/resources/support/tickets/categories.mjs +25 -25
  214. package/resources/support/tickets/categories.mjs.map +1 -1
  215. package/resources/support/tickets/custom-fields.d.mts +22 -22
  216. package/resources/support/tickets/custom-fields.d.mts.map +1 -1
  217. package/resources/support/tickets/custom-fields.d.ts +22 -22
  218. package/resources/support/tickets/custom-fields.d.ts.map +1 -1
  219. package/resources/support/tickets/custom-fields.js +19 -19
  220. package/resources/support/tickets/custom-fields.js.map +1 -1
  221. package/resources/support/tickets/custom-fields.mjs +19 -19
  222. package/resources/support/tickets/custom-fields.mjs.map +1 -1
  223. package/resources/support/tickets/index.d.mts +4 -4
  224. package/resources/support/tickets/index.d.mts.map +1 -1
  225. package/resources/support/tickets/index.d.ts +4 -4
  226. package/resources/support/tickets/index.d.ts.map +1 -1
  227. package/resources/support/tickets/statuses.d.mts +19 -19
  228. package/resources/support/tickets/statuses.d.mts.map +1 -1
  229. package/resources/support/tickets/statuses.d.ts +19 -19
  230. package/resources/support/tickets/statuses.d.ts.map +1 -1
  231. package/resources/support/tickets/statuses.js +21 -21
  232. package/resources/support/tickets/statuses.js.map +1 -1
  233. package/resources/support/tickets/statuses.mjs +21 -21
  234. package/resources/support/tickets/statuses.mjs.map +1 -1
  235. package/resources/support/tickets/tickets.d.mts +75 -75
  236. package/resources/support/tickets/tickets.d.mts.map +1 -1
  237. package/resources/support/tickets/tickets.d.ts +75 -75
  238. package/resources/support/tickets/tickets.d.ts.map +1 -1
  239. package/resources/support/tickets/tickets.js +44 -44
  240. package/resources/support/tickets/tickets.js.map +1 -1
  241. package/resources/support/tickets/tickets.mjs +44 -44
  242. package/resources/support/tickets/tickets.mjs.map +1 -1
  243. package/resources/surveys.d.mts +43 -43
  244. package/resources/surveys.d.mts.map +1 -1
  245. package/resources/surveys.d.ts +43 -43
  246. package/resources/surveys.d.ts.map +1 -1
  247. package/resources/surveys.js +44 -44
  248. package/resources/surveys.js.map +1 -1
  249. package/resources/surveys.mjs +44 -44
  250. package/resources/surveys.mjs.map +1 -1
  251. package/resources/users/companies/companies.d.mts +121 -130
  252. package/resources/users/companies/companies.d.mts.map +1 -1
  253. package/resources/users/companies/companies.d.ts +121 -130
  254. package/resources/users/companies/companies.d.ts.map +1 -1
  255. package/resources/users/companies/companies.js +125 -125
  256. package/resources/users/companies/companies.js.map +1 -1
  257. package/resources/users/companies/companies.mjs +125 -125
  258. package/resources/users/companies/companies.mjs.map +1 -1
  259. package/resources/users/companies/contacts.d.mts +3 -3
  260. package/resources/users/companies/contacts.d.mts.map +1 -1
  261. package/resources/users/companies/contacts.d.ts +3 -3
  262. package/resources/users/companies/contacts.d.ts.map +1 -1
  263. package/resources/users/companies/index.d.mts +1 -1
  264. package/resources/users/companies/index.d.mts.map +1 -1
  265. package/resources/users/companies/index.d.ts +1 -1
  266. package/resources/users/companies/index.d.ts.map +1 -1
  267. package/resources/users/contacts/by-user-id/by-user-id.d.mts +2 -2
  268. package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -1
  269. package/resources/users/contacts/by-user-id/by-user-id.d.ts +2 -2
  270. package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -1
  271. package/resources/users/contacts/by-user-id/email-preferences.d.mts +2 -2
  272. package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -1
  273. package/resources/users/contacts/by-user-id/email-preferences.d.ts +2 -2
  274. package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -1
  275. package/resources/users/contacts/contacts.d.mts +249 -235
  276. package/resources/users/contacts/contacts.d.mts.map +1 -1
  277. package/resources/users/contacts/contacts.d.ts +249 -235
  278. package/resources/users/contacts/contacts.d.ts.map +1 -1
  279. package/resources/users/contacts/contacts.js +211 -184
  280. package/resources/users/contacts/contacts.js.map +1 -1
  281. package/resources/users/contacts/contacts.mjs +211 -184
  282. package/resources/users/contacts/contacts.mjs.map +1 -1
  283. package/resources/users/contacts/email-preferences.d.mts +2 -2
  284. package/resources/users/contacts/email-preferences.d.mts.map +1 -1
  285. package/resources/users/contacts/email-preferences.d.ts +2 -2
  286. package/resources/users/contacts/email-preferences.d.ts.map +1 -1
  287. package/resources/users/contacts/index.d.mts +1 -1
  288. package/resources/users/contacts/index.d.mts.map +1 -1
  289. package/resources/users/contacts/index.d.ts +1 -1
  290. package/resources/users/contacts/index.d.ts.map +1 -1
  291. package/resources/users/index.d.mts +2 -2
  292. package/resources/users/index.d.mts.map +1 -1
  293. package/resources/users/index.d.ts +2 -2
  294. package/resources/users/index.d.ts.map +1 -1
  295. package/resources/users/users.d.mts +2 -2
  296. package/resources/users/users.d.mts.map +1 -1
  297. package/resources/users/users.d.ts +2 -2
  298. package/resources/users/users.d.ts.map +1 -1
  299. package/resources/webhooks.d.mts +83 -83
  300. package/resources/webhooks.d.mts.map +1 -1
  301. package/resources/webhooks.d.ts +83 -83
  302. package/resources/webhooks.d.ts.map +1 -1
  303. package/resources/webhooks.js +77 -77
  304. package/resources/webhooks.js.map +1 -1
  305. package/resources/webhooks.mjs +77 -77
  306. package/resources/webhooks.mjs.map +1 -1
  307. package/src/client.ts +6 -6
  308. package/src/resources/audit-logs.ts +7 -1
  309. package/src/resources/changelogs/changelogs.ts +320 -175
  310. package/src/resources/changelogs/index.ts +1 -1
  311. package/src/resources/changelogs/subscribers.ts +31 -2
  312. package/src/resources/conversation-attributes.ts +34 -34
  313. package/src/resources/feedback/boards.ts +30 -30
  314. package/src/resources/feedback/comments.ts +137 -137
  315. package/src/resources/feedback/custom-fields.ts +46 -46
  316. package/src/resources/feedback/feedback.ts +6 -6
  317. package/src/resources/feedback/index.ts +6 -6
  318. package/src/resources/feedback/post-statuses.ts +33 -33
  319. package/src/resources/feedback/posts/index.ts +2 -2
  320. package/src/resources/feedback/posts/posts.ts +176 -176
  321. package/src/resources/feedback/posts/voters.ts +3 -3
  322. package/src/resources/help-center/articles.ts +631 -109
  323. package/src/resources/help-center/collections.ts +349 -88
  324. package/src/resources/help-center/help-center.ts +5 -5
  325. package/src/resources/help-center/help-centers.ts +202 -57
  326. package/src/resources/help-center/index.ts +5 -5
  327. package/src/resources/help-center/redirect-rules.ts +294 -178
  328. package/src/resources/index.ts +6 -6
  329. package/src/resources/organization/admins.ts +36 -36
  330. package/src/resources/organization/brands.ts +68 -68
  331. package/src/resources/organization/index.ts +3 -3
  332. package/src/resources/organization/organization.ts +3 -3
  333. package/src/resources/organization/teams.ts +54 -54
  334. package/src/resources/reports.ts +311 -262
  335. package/src/resources/support/conversation-tags.ts +62 -62
  336. package/src/resources/support/conversations/conversations.ts +429 -419
  337. package/src/resources/support/conversations/index.ts +4 -4
  338. package/src/resources/support/conversations/participants.ts +2 -2
  339. package/src/resources/support/index.ts +7 -7
  340. package/src/resources/support/support.ts +7 -7
  341. package/src/resources/support/tickets/categories.ts +35 -35
  342. package/src/resources/support/tickets/custom-fields.ts +29 -29
  343. package/src/resources/support/tickets/index.ts +4 -4
  344. package/src/resources/support/tickets/statuses.ts +31 -31
  345. package/src/resources/support/tickets/tickets.ts +101 -101
  346. package/src/resources/surveys.ts +60 -60
  347. package/src/resources/users/companies/companies.ts +158 -172
  348. package/src/resources/users/companies/contacts.ts +3 -3
  349. package/src/resources/users/companies/index.ts +2 -2
  350. package/src/resources/users/contacts/by-user-id/by-user-id.ts +2 -2
  351. package/src/resources/users/contacts/by-user-id/email-preferences.ts +2 -2
  352. package/src/resources/users/contacts/contacts.ts +284 -280
  353. package/src/resources/users/contacts/email-preferences.ts +2 -2
  354. package/src/resources/users/contacts/index.ts +3 -3
  355. package/src/resources/users/index.ts +5 -5
  356. package/src/resources/users/users.ts +5 -5
  357. package/src/resources/webhooks.ts +106 -100
  358. package/src/version.ts +1 -1
  359. package/version.d.mts +1 -1
  360. package/version.d.ts +1 -1
  361. package/version.js +1 -1
  362. package/version.mjs +1 -1
@@ -10,6 +10,68 @@ import { RequestOptions } from "../../../internal/request-options.js";
10
10
  */
11
11
  export declare class Companies extends APIResource {
12
12
  contacts: ContactsAPI.Contacts;
13
+ /**
14
+ * Retrieves a single company by its Featurebase ID.
15
+ *
16
+ * ### Path Parameters
17
+ *
18
+ * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
19
+ *
20
+ * ### Response
21
+ *
22
+ * Returns a company object with:
23
+ *
24
+ * - `id` - Featurebase internal ID
25
+ * - `companyId` - External company ID from your system
26
+ * - `name` - Company name
27
+ * - `monthlySpend` - Monthly spend/revenue
28
+ * - `industry` - Industry
29
+ * - `website` - Company website URL
30
+ * - `plan` - Plan/tier name
31
+ * - `linkedUsers` - Number of users linked to this company
32
+ * - `companySize` - Employee headcount
33
+ * - `lastActivity` - Last activity timestamp
34
+ * - `customFields` - Custom field values
35
+ * - `createdAt` - Creation timestamp
36
+ * - `updatedAt` - Last update timestamp
37
+ *
38
+ * ### Example Response
39
+ *
40
+ * ```json
41
+ * {
42
+ * "object": "company",
43
+ * "id": "507f1f77bcf86cd799439011",
44
+ * "companyId": "comp_12345",
45
+ * "name": "Acme Inc",
46
+ * "monthlySpend": 5000,
47
+ * "industry": "Technology",
48
+ * "website": "https://acme.com",
49
+ * "plan": "enterprise",
50
+ * "linkedUsers": 15,
51
+ * "companySize": 250,
52
+ * "lastActivity": "2025-01-15T00:00:00.000Z",
53
+ * "customFields": { "location": "Europe" },
54
+ * "createdAt": "2025-01-01T12:00:00.000Z",
55
+ * "updatedAt": "2025-01-10T15:30:00.000Z"
56
+ * }
57
+ * ```
58
+ *
59
+ * ### Error Responses
60
+ *
61
+ * - **404 Not Found** - Company with the specified ID does not exist
62
+ *
63
+ * ### Version Availability
64
+ *
65
+ * This endpoint is only available in API version 2026-01-01.nova and newer.
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const company = await client.users.companies.retrieve(
70
+ * '507f1f77bcf86cd799439011',
71
+ * );
72
+ * ```
73
+ */
74
+ retrieve(id: string, params?: CompanyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Company>;
13
75
  /**
14
76
  * Returns all companies in your organization with cursor-based pagination.
15
77
  *
@@ -84,6 +146,43 @@ export declare class Companies extends APIResource {
84
146
  * ```
85
147
  */
86
148
  list(params?: CompanyListParams | null | undefined, options?: RequestOptions): PagePromise<CompaniesCursorPage, Company>;
149
+ /**
150
+ * Deletes a company by its Featurebase ID.
151
+ *
152
+ * This will also remove the company from all linked users' associations.
153
+ *
154
+ * ### Path Parameters
155
+ *
156
+ * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
157
+ *
158
+ * ### Response
159
+ *
160
+ * Returns a deletion confirmation object:
161
+ *
162
+ * ```json
163
+ * {
164
+ * "id": "507f1f77bcf86cd799439011",
165
+ * "object": "company",
166
+ * "deleted": true
167
+ * }
168
+ * ```
169
+ *
170
+ * ### Error Responses
171
+ *
172
+ * - **404 Not Found** - Company with the specified ID does not exist
173
+ *
174
+ * ### Version Availability
175
+ *
176
+ * This endpoint is only available in API version 2026-01-01.nova and newer.
177
+ *
178
+ * @example
179
+ * ```ts
180
+ * const deletedCompany = await client.users.companies.delete(
181
+ * '507f1f77bcf86cd799439011',
182
+ * );
183
+ * ```
184
+ */
185
+ delete(id: string, params?: CompanyDeleteParams | null | undefined, options?: RequestOptions): APIPromise<DeletedCompany>;
87
186
  /**
88
187
  * Creates a new company or updates an existing one.
89
188
  *
@@ -160,105 +259,6 @@ export declare class Companies extends APIResource {
160
259
  * ```
161
260
  */
162
261
  createOrUpdate(params: CompanyCreateOrUpdateParams, options?: RequestOptions): APIPromise<Company>;
163
- /**
164
- * Retrieves a single company by its Featurebase ID.
165
- *
166
- * ### Path Parameters
167
- *
168
- * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
169
- *
170
- * ### Response
171
- *
172
- * Returns a company object with:
173
- *
174
- * - `id` - Featurebase internal ID
175
- * - `companyId` - External company ID from your system
176
- * - `name` - Company name
177
- * - `monthlySpend` - Monthly spend/revenue
178
- * - `industry` - Industry
179
- * - `website` - Company website URL
180
- * - `plan` - Plan/tier name
181
- * - `linkedUsers` - Number of users linked to this company
182
- * - `companySize` - Employee headcount
183
- * - `lastActivity` - Last activity timestamp
184
- * - `customFields` - Custom field values
185
- * - `createdAt` - Creation timestamp
186
- * - `updatedAt` - Last update timestamp
187
- *
188
- * ### Example Response
189
- *
190
- * ```json
191
- * {
192
- * "object": "company",
193
- * "id": "507f1f77bcf86cd799439011",
194
- * "companyId": "comp_12345",
195
- * "name": "Acme Inc",
196
- * "monthlySpend": 5000,
197
- * "industry": "Technology",
198
- * "website": "https://acme.com",
199
- * "plan": "enterprise",
200
- * "linkedUsers": 15,
201
- * "companySize": 250,
202
- * "lastActivity": "2025-01-15T00:00:00.000Z",
203
- * "customFields": { "location": "Europe" },
204
- * "createdAt": "2025-01-01T12:00:00.000Z",
205
- * "updatedAt": "2025-01-10T15:30:00.000Z"
206
- * }
207
- * ```
208
- *
209
- * ### Error Responses
210
- *
211
- * - **404 Not Found** - Company with the specified ID does not exist
212
- *
213
- * ### Version Availability
214
- *
215
- * This endpoint is only available in API version 2026-01-01.nova and newer.
216
- *
217
- * @example
218
- * ```ts
219
- * const company = await client.users.companies.retrieve(
220
- * '507f1f77bcf86cd799439011',
221
- * );
222
- * ```
223
- */
224
- retrieve(id: string, params?: CompanyRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Company>;
225
- /**
226
- * Deletes a company by its Featurebase ID.
227
- *
228
- * This will also remove the company from all linked users' associations.
229
- *
230
- * ### Path Parameters
231
- *
232
- * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
233
- *
234
- * ### Response
235
- *
236
- * Returns a deletion confirmation object:
237
- *
238
- * ```json
239
- * {
240
- * "id": "507f1f77bcf86cd799439011",
241
- * "object": "company",
242
- * "deleted": true
243
- * }
244
- * ```
245
- *
246
- * ### Error Responses
247
- *
248
- * - **404 Not Found** - Company with the specified ID does not exist
249
- *
250
- * ### Version Availability
251
- *
252
- * This endpoint is only available in API version 2026-01-01.nova and newer.
253
- *
254
- * @example
255
- * ```ts
256
- * const deletedCompany = await client.users.companies.delete(
257
- * '507f1f77bcf86cd799439011',
258
- * );
259
- * ```
260
- */
261
- delete(id: string, params?: CompanyDeleteParams | null | undefined, options?: RequestOptions): APIPromise<DeletedCompany>;
262
262
  /**
263
263
  * Permanently deletes a company by its external company ID (the `companyId` from
264
264
  * your system).
@@ -567,12 +567,26 @@ export declare namespace CompanySearchResponse {
567
567
  };
568
568
  }
569
569
  }
570
+ export interface CompanyRetrieveParams {
571
+ /**
572
+ * API version for this request. Defaults to your organization's configured API
573
+ * version if not specified.
574
+ */
575
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
576
+ }
570
577
  export interface CompanyListParams extends CursorPageParams {
571
578
  /**
572
579
  * Header param: API version for this request. Defaults to your organization's
573
580
  * configured API version if not specified.
574
581
  */
575
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
582
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
583
+ }
584
+ export interface CompanyDeleteParams {
585
+ /**
586
+ * API version for this request. Defaults to your organization's configured API
587
+ * version if not specified.
588
+ */
589
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
576
590
  }
577
591
  export interface CompanyCreateOrUpdateParams {
578
592
  /**
@@ -596,7 +610,9 @@ export interface CompanyCreateOrUpdateParams {
596
610
  * Body param: Custom field values on the company. Values can be string, number,
597
611
  * boolean, null, or array of primitives.
598
612
  */
599
- customFields?: CompanyCreateOrUpdateParams.CustomFields;
613
+ customFields?: {
614
+ [key: string]: string | number | boolean | Array<string | number | boolean> | null;
615
+ };
600
616
  /**
601
617
  * Body param: Industry the company operates in
602
618
  */
@@ -617,39 +633,14 @@ export interface CompanyCreateOrUpdateParams {
617
633
  * Header param: API version for this request. Defaults to your organization's
618
634
  * configured API version if not specified.
619
635
  */
620
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
621
- }
622
- export declare namespace CompanyCreateOrUpdateParams {
623
- /**
624
- * Custom field values on the company. Values can be string, number, boolean, null,
625
- * or array of primitives.
626
- */
627
- interface CustomFields {
628
- priority?: string;
629
- region?: string;
630
- tier?: string;
631
- }
632
- }
633
- export interface CompanyRetrieveParams {
634
- /**
635
- * API version for this request. Defaults to your organization's configured API
636
- * version if not specified.
637
- */
638
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
639
- }
640
- export interface CompanyDeleteParams {
641
- /**
642
- * API version for this request. Defaults to your organization's configured API
643
- * version if not specified.
644
- */
645
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
636
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
646
637
  }
647
638
  export interface CompanyDeleteByCompanyIDParams {
648
639
  /**
649
640
  * API version for this request. Defaults to your organization's configured API
650
641
  * version if not specified.
651
642
  */
652
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
643
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
653
644
  }
654
645
  export interface CompanySearchParams {
655
646
  /**
@@ -678,10 +669,10 @@ export interface CompanySearchParams {
678
669
  * Header param: API version for this request. Defaults to your organization's
679
670
  * configured API version if not specified.
680
671
  */
681
- 'Featurebase-Version'?: '2026-01-01.nova' | '2025-12-12.clover';
672
+ 'Featurebase-Version'?: '2026-08-19.orbit' | '2026-01-01.nova' | '2025-12-12.clover';
682
673
  }
683
674
  export declare namespace Companies {
684
- export { type Company as Company, type DeletedCompany as DeletedCompany, type CompanySearchResponse as CompanySearchResponse, type CompaniesCursorPage as CompaniesCursorPage, type CompanyListParams as CompanyListParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, type CompanySearchParams as CompanySearchParams, };
675
+ export { type Company as Company, type DeletedCompany as DeletedCompany, type CompanySearchResponse as CompanySearchResponse, type CompaniesCursorPage as CompaniesCursorPage, type CompanyRetrieveParams as CompanyRetrieveParams, type CompanyListParams as CompanyListParams, type CompanyDeleteParams as CompanyDeleteParams, type CompanyCreateOrUpdateParams as CompanyCreateOrUpdateParams, type CompanyDeleteByCompanyIDParams as CompanyDeleteByCompanyIDParams, type CompanySearchParams as CompanySearchParams, };
685
676
  export { Contacts as Contacts, type ContactAttachResponse as ContactAttachResponse, type ContactRemoveResponse as ContactRemoveResponse, type ContactListParams as ContactListParams, type ContactAttachParams as ContactAttachParams, type ContactRemoveParams as ContactRemoveParams, };
686
677
  }
687
678
  //# sourceMappingURL=companies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,sCAAmC;AACvD,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,QAAQ,EACT,sBAAmB;AACpB,OAAO,EAA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hB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY,GAAG,QAAQ,CAAC,iBAAiB,CAAC;IAE3D;;;;;;OAMG;IACH,IAAI,CAAC,EACD,gBAAgB,GAChB,eAAe,GACf,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,GAClB,iBAAiB,GACjB,gBAAgB,GAChB,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,mBAAmB,CAAC;IAExB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACjE;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
1
+ {"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,QAAQ,sCAAmC;AACvD,OAAO,KAAK,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@@ -17,6 +17,81 @@ class Companies extends resource_1.APIResource {
17
17
  super(...arguments);
18
18
  this.contacts = new ContactsAPI.Contacts(this._client);
19
19
  }
20
+ /**
21
+ * Retrieves a single company by its Featurebase ID.
22
+ *
23
+ * ### Path Parameters
24
+ *
25
+ * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
26
+ *
27
+ * ### Response
28
+ *
29
+ * Returns a company object with:
30
+ *
31
+ * - `id` - Featurebase internal ID
32
+ * - `companyId` - External company ID from your system
33
+ * - `name` - Company name
34
+ * - `monthlySpend` - Monthly spend/revenue
35
+ * - `industry` - Industry
36
+ * - `website` - Company website URL
37
+ * - `plan` - Plan/tier name
38
+ * - `linkedUsers` - Number of users linked to this company
39
+ * - `companySize` - Employee headcount
40
+ * - `lastActivity` - Last activity timestamp
41
+ * - `customFields` - Custom field values
42
+ * - `createdAt` - Creation timestamp
43
+ * - `updatedAt` - Last update timestamp
44
+ *
45
+ * ### Example Response
46
+ *
47
+ * ```json
48
+ * {
49
+ * "object": "company",
50
+ * "id": "507f1f77bcf86cd799439011",
51
+ * "companyId": "comp_12345",
52
+ * "name": "Acme Inc",
53
+ * "monthlySpend": 5000,
54
+ * "industry": "Technology",
55
+ * "website": "https://acme.com",
56
+ * "plan": "enterprise",
57
+ * "linkedUsers": 15,
58
+ * "companySize": 250,
59
+ * "lastActivity": "2025-01-15T00:00:00.000Z",
60
+ * "customFields": { "location": "Europe" },
61
+ * "createdAt": "2025-01-01T12:00:00.000Z",
62
+ * "updatedAt": "2025-01-10T15:30:00.000Z"
63
+ * }
64
+ * ```
65
+ *
66
+ * ### Error Responses
67
+ *
68
+ * - **404 Not Found** - Company with the specified ID does not exist
69
+ *
70
+ * ### Version Availability
71
+ *
72
+ * This endpoint is only available in API version 2026-01-01.nova and newer.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * const company = await client.users.companies.retrieve(
77
+ * '507f1f77bcf86cd799439011',
78
+ * );
79
+ * ```
80
+ */
81
+ retrieve(id, params = {}, options) {
82
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
83
+ return this._client.get((0, path_1.path) `/v2/companies/${id}`, {
84
+ ...options,
85
+ headers: (0, headers_1.buildHeaders)([
86
+ {
87
+ ...(featurebaseVersion?.toString() != null ?
88
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
89
+ : undefined),
90
+ },
91
+ options?.headers,
92
+ ]),
93
+ });
94
+ }
20
95
  /**
21
96
  * Returns all companies in your organization with cursor-based pagination.
22
97
  *
@@ -105,6 +180,56 @@ class Companies extends resource_1.APIResource {
105
180
  ]),
106
181
  });
107
182
  }
183
+ /**
184
+ * Deletes a company by its Featurebase ID.
185
+ *
186
+ * This will also remove the company from all linked users' associations.
187
+ *
188
+ * ### Path Parameters
189
+ *
190
+ * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
191
+ *
192
+ * ### Response
193
+ *
194
+ * Returns a deletion confirmation object:
195
+ *
196
+ * ```json
197
+ * {
198
+ * "id": "507f1f77bcf86cd799439011",
199
+ * "object": "company",
200
+ * "deleted": true
201
+ * }
202
+ * ```
203
+ *
204
+ * ### Error Responses
205
+ *
206
+ * - **404 Not Found** - Company with the specified ID does not exist
207
+ *
208
+ * ### Version Availability
209
+ *
210
+ * This endpoint is only available in API version 2026-01-01.nova and newer.
211
+ *
212
+ * @example
213
+ * ```ts
214
+ * const deletedCompany = await client.users.companies.delete(
215
+ * '507f1f77bcf86cd799439011',
216
+ * );
217
+ * ```
218
+ */
219
+ delete(id, params = {}, options) {
220
+ const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
221
+ return this._client.delete((0, path_1.path) `/v2/companies/${id}`, {
222
+ ...options,
223
+ headers: (0, headers_1.buildHeaders)([
224
+ {
225
+ ...(featurebaseVersion?.toString() != null ?
226
+ { 'Featurebase-Version': featurebaseVersion?.toString() }
227
+ : undefined),
228
+ },
229
+ options?.headers,
230
+ ]),
231
+ });
232
+ }
108
233
  /**
109
234
  * Creates a new company or updates an existing one.
110
235
  *
@@ -195,131 +320,6 @@ class Companies extends resource_1.APIResource {
195
320
  ]),
196
321
  });
197
322
  }
198
- /**
199
- * Retrieves a single company by its Featurebase ID.
200
- *
201
- * ### Path Parameters
202
- *
203
- * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
204
- *
205
- * ### Response
206
- *
207
- * Returns a company object with:
208
- *
209
- * - `id` - Featurebase internal ID
210
- * - `companyId` - External company ID from your system
211
- * - `name` - Company name
212
- * - `monthlySpend` - Monthly spend/revenue
213
- * - `industry` - Industry
214
- * - `website` - Company website URL
215
- * - `plan` - Plan/tier name
216
- * - `linkedUsers` - Number of users linked to this company
217
- * - `companySize` - Employee headcount
218
- * - `lastActivity` - Last activity timestamp
219
- * - `customFields` - Custom field values
220
- * - `createdAt` - Creation timestamp
221
- * - `updatedAt` - Last update timestamp
222
- *
223
- * ### Example Response
224
- *
225
- * ```json
226
- * {
227
- * "object": "company",
228
- * "id": "507f1f77bcf86cd799439011",
229
- * "companyId": "comp_12345",
230
- * "name": "Acme Inc",
231
- * "monthlySpend": 5000,
232
- * "industry": "Technology",
233
- * "website": "https://acme.com",
234
- * "plan": "enterprise",
235
- * "linkedUsers": 15,
236
- * "companySize": 250,
237
- * "lastActivity": "2025-01-15T00:00:00.000Z",
238
- * "customFields": { "location": "Europe" },
239
- * "createdAt": "2025-01-01T12:00:00.000Z",
240
- * "updatedAt": "2025-01-10T15:30:00.000Z"
241
- * }
242
- * ```
243
- *
244
- * ### Error Responses
245
- *
246
- * - **404 Not Found** - Company with the specified ID does not exist
247
- *
248
- * ### Version Availability
249
- *
250
- * This endpoint is only available in API version 2026-01-01.nova and newer.
251
- *
252
- * @example
253
- * ```ts
254
- * const company = await client.users.companies.retrieve(
255
- * '507f1f77bcf86cd799439011',
256
- * );
257
- * ```
258
- */
259
- retrieve(id, params = {}, options) {
260
- const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
261
- return this._client.get((0, path_1.path) `/v2/companies/${id}`, {
262
- ...options,
263
- headers: (0, headers_1.buildHeaders)([
264
- {
265
- ...(featurebaseVersion?.toString() != null ?
266
- { 'Featurebase-Version': featurebaseVersion?.toString() }
267
- : undefined),
268
- },
269
- options?.headers,
270
- ]),
271
- });
272
- }
273
- /**
274
- * Deletes a company by its Featurebase ID.
275
- *
276
- * This will also remove the company from all linked users' associations.
277
- *
278
- * ### Path Parameters
279
- *
280
- * - `id` - The Featurebase internal ID of the company (MongoDB ObjectId)
281
- *
282
- * ### Response
283
- *
284
- * Returns a deletion confirmation object:
285
- *
286
- * ```json
287
- * {
288
- * "id": "507f1f77bcf86cd799439011",
289
- * "object": "company",
290
- * "deleted": true
291
- * }
292
- * ```
293
- *
294
- * ### Error Responses
295
- *
296
- * - **404 Not Found** - Company with the specified ID does not exist
297
- *
298
- * ### Version Availability
299
- *
300
- * This endpoint is only available in API version 2026-01-01.nova and newer.
301
- *
302
- * @example
303
- * ```ts
304
- * const deletedCompany = await client.users.companies.delete(
305
- * '507f1f77bcf86cd799439011',
306
- * );
307
- * ```
308
- */
309
- delete(id, params = {}, options) {
310
- const { 'Featurebase-Version': featurebaseVersion } = params ?? {};
311
- return this._client.delete((0, path_1.path) `/v2/companies/${id}`, {
312
- ...options,
313
- headers: (0, headers_1.buildHeaders)([
314
- {
315
- ...(featurebaseVersion?.toString() != null ?
316
- { 'Featurebase-Version': featurebaseVersion?.toString() }
317
- : undefined),
318
- },
319
- options?.headers,
320
- ]),
321
- });
322
- }
323
323
  /**
324
324
  * Permanently deletes a company by its external company ID (the `companyId` from
325
325
  * your system).
@@ -1 +1 @@
1
- {"version":3,"file":"companies.js","sourceRoot":"","sources":["../../../src/resources/users/companies/companies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAErD,mEAA0C;AAC1C,4CAOoB;AAEpB,4DAA0F;AAC1F,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,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