featurebase-node 0.1.0 → 0.2.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 (640) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +8 -8
  3. package/client.d.mts +15 -90
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +15 -90
  6. package/client.d.ts.map +1 -1
  7. package/client.js +15 -90
  8. package/client.js.map +1 -1
  9. package/client.mjs +15 -90
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/{boards.d.mts → feedback/boards.d.mts} +15 -3
  13. package/resources/feedback/boards.d.mts.map +1 -0
  14. package/resources/{boards.d.ts → feedback/boards.d.ts} +15 -3
  15. package/resources/feedback/boards.d.ts.map +1 -0
  16. package/resources/{boards.js → feedback/boards.js} +15 -3
  17. package/resources/feedback/boards.js.map +1 -0
  18. package/resources/{boards.mjs → feedback/boards.mjs} +15 -3
  19. package/resources/feedback/boards.mjs.map +1 -0
  20. package/resources/{comments.d.mts → feedback/comments.d.mts} +10 -10
  21. package/resources/feedback/comments.d.mts.map +1 -0
  22. package/resources/{comments.d.ts → feedback/comments.d.ts} +10 -10
  23. package/resources/feedback/comments.d.ts.map +1 -0
  24. package/resources/{comments.js → feedback/comments.js} +9 -9
  25. package/resources/feedback/comments.js.map +1 -0
  26. package/resources/{comments.mjs → feedback/comments.mjs} +9 -9
  27. package/resources/feedback/comments.mjs.map +1 -0
  28. package/resources/{custom-fields.d.mts → feedback/custom-fields.d.mts} +17 -3
  29. package/resources/feedback/custom-fields.d.mts.map +1 -0
  30. package/resources/{custom-fields.d.ts → feedback/custom-fields.d.ts} +17 -3
  31. package/resources/feedback/custom-fields.d.ts.map +1 -0
  32. package/resources/{custom-fields.js → feedback/custom-fields.js} +17 -3
  33. package/resources/feedback/custom-fields.js.map +1 -0
  34. package/resources/{custom-fields.mjs → feedback/custom-fields.mjs} +17 -3
  35. package/resources/feedback/custom-fields.mjs.map +1 -0
  36. package/resources/feedback/feedback.d.mts +26 -0
  37. package/resources/feedback/feedback.d.mts.map +1 -0
  38. package/resources/feedback/feedback.d.ts +26 -0
  39. package/resources/feedback/feedback.d.ts.map +1 -0
  40. package/resources/feedback/feedback.js +33 -0
  41. package/resources/feedback/feedback.js.map +1 -0
  42. package/resources/feedback/feedback.mjs +28 -0
  43. package/resources/feedback/feedback.mjs.map +1 -0
  44. package/resources/feedback/index.d.mts +7 -0
  45. package/resources/feedback/index.d.mts.map +1 -0
  46. package/resources/feedback/index.d.ts +7 -0
  47. package/resources/feedback/index.d.ts.map +1 -0
  48. package/resources/feedback/index.js +17 -0
  49. package/resources/feedback/index.js.map +1 -0
  50. package/resources/feedback/index.mjs +8 -0
  51. package/resources/feedback/index.mjs.map +1 -0
  52. package/resources/{post-statuses.d.mts → feedback/post-statuses.d.mts} +17 -3
  53. package/resources/feedback/post-statuses.d.mts.map +1 -0
  54. package/resources/{post-statuses.d.ts → feedback/post-statuses.d.ts} +17 -3
  55. package/resources/feedback/post-statuses.d.ts.map +1 -0
  56. package/resources/{post-statuses.js → feedback/post-statuses.js} +17 -3
  57. package/resources/feedback/post-statuses.js.map +1 -0
  58. package/resources/{post-statuses.mjs → feedback/post-statuses.mjs} +17 -3
  59. package/resources/feedback/post-statuses.mjs.map +1 -0
  60. package/resources/feedback/posts/index.d.mts.map +1 -0
  61. package/resources/feedback/posts/index.d.ts.map +1 -0
  62. package/resources/feedback/posts/index.js.map +1 -0
  63. package/resources/feedback/posts/index.mjs.map +1 -0
  64. package/resources/{posts → feedback/posts}/posts.d.mts +9 -9
  65. package/resources/feedback/posts/posts.d.mts.map +1 -0
  66. package/resources/{posts → feedback/posts}/posts.d.ts +9 -9
  67. package/resources/feedback/posts/posts.d.ts.map +1 -0
  68. package/resources/{posts → feedback/posts}/posts.js +9 -9
  69. package/resources/feedback/posts/posts.js.map +1 -0
  70. package/resources/{posts → feedback/posts}/posts.mjs +8 -8
  71. package/resources/feedback/posts/posts.mjs.map +1 -0
  72. package/resources/{posts → feedback/posts}/voters.d.mts +7 -7
  73. package/resources/feedback/posts/voters.d.mts.map +1 -0
  74. package/resources/{posts → feedback/posts}/voters.d.ts +7 -7
  75. package/resources/feedback/posts/voters.d.ts.map +1 -0
  76. package/resources/{posts → feedback/posts}/voters.js +6 -6
  77. package/resources/feedback/posts/voters.js.map +1 -0
  78. package/resources/{posts → feedback/posts}/voters.mjs +6 -6
  79. package/resources/feedback/posts/voters.mjs.map +1 -0
  80. package/resources/{posts.d.mts.map → feedback/posts.d.mts.map} +1 -1
  81. package/resources/{posts.d.ts.map → feedback/posts.d.ts.map} +1 -1
  82. package/resources/{posts.js → feedback/posts.js} +1 -1
  83. package/resources/feedback/posts.js.map +1 -0
  84. package/resources/feedback/posts.mjs.map +1 -0
  85. package/resources/feedback.d.mts +2 -0
  86. package/resources/feedback.d.mts.map +1 -0
  87. package/resources/feedback.d.ts +2 -0
  88. package/resources/feedback.d.ts.map +1 -0
  89. package/resources/feedback.js +6 -0
  90. package/resources/feedback.js.map +1 -0
  91. package/resources/feedback.mjs +3 -0
  92. package/resources/feedback.mjs.map +1 -0
  93. package/resources/index.d.mts +5 -15
  94. package/resources/index.d.mts.map +1 -1
  95. package/resources/index.d.ts +5 -15
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.js +11 -31
  98. package/resources/index.js.map +1 -1
  99. package/resources/index.mjs +5 -15
  100. package/resources/index.mjs.map +1 -1
  101. package/resources/integrations/index.d.mts +3 -0
  102. package/resources/integrations/index.d.mts.map +1 -0
  103. package/resources/integrations/index.d.ts +3 -0
  104. package/resources/integrations/index.d.ts.map +1 -0
  105. package/resources/integrations/index.js +9 -0
  106. package/resources/integrations/index.js.map +1 -0
  107. package/resources/integrations/index.mjs +4 -0
  108. package/resources/integrations/index.mjs.map +1 -0
  109. package/resources/integrations/integrations.d.mts +10 -0
  110. package/resources/integrations/integrations.d.mts.map +1 -0
  111. package/resources/integrations/integrations.d.ts +10 -0
  112. package/resources/integrations/integrations.d.ts.map +1 -0
  113. package/resources/integrations/integrations.js +17 -0
  114. package/resources/integrations/integrations.js.map +1 -0
  115. package/resources/integrations/integrations.mjs +12 -0
  116. package/resources/integrations/integrations.mjs.map +1 -0
  117. package/resources/{webhooks.d.mts → integrations/webhooks.d.mts} +12 -11
  118. package/resources/integrations/webhooks.d.mts.map +1 -0
  119. package/resources/{webhooks.d.ts → integrations/webhooks.d.ts} +12 -11
  120. package/resources/integrations/webhooks.d.ts.map +1 -0
  121. package/resources/{webhooks.js → integrations/webhooks.js} +12 -11
  122. package/resources/integrations/webhooks.js.map +1 -0
  123. package/resources/{webhooks.mjs → integrations/webhooks.mjs} +12 -11
  124. package/resources/integrations/webhooks.mjs.map +1 -0
  125. package/resources/integrations.d.mts +2 -0
  126. package/resources/integrations.d.mts.map +1 -0
  127. package/resources/integrations.d.ts +2 -0
  128. package/resources/integrations.d.ts.map +1 -0
  129. package/resources/integrations.js +6 -0
  130. package/resources/integrations.js.map +1 -0
  131. package/resources/integrations.mjs +3 -0
  132. package/resources/integrations.mjs.map +1 -0
  133. package/resources/{admins.d.mts → organization/admins.d.mts} +3 -3
  134. package/resources/organization/admins.d.mts.map +1 -0
  135. package/resources/{admins.d.ts → organization/admins.d.ts} +3 -3
  136. package/resources/organization/admins.d.ts.map +1 -0
  137. package/resources/{admins.js → organization/admins.js} +3 -3
  138. package/resources/organization/admins.js.map +1 -0
  139. package/resources/{admins.mjs → organization/admins.mjs} +3 -3
  140. package/resources/organization/admins.mjs.map +1 -0
  141. package/resources/{brands.d.mts → organization/brands.d.mts} +3 -3
  142. package/resources/organization/brands.d.mts.map +1 -0
  143. package/resources/{brands.d.ts → organization/brands.d.ts} +3 -3
  144. package/resources/organization/brands.d.ts.map +1 -0
  145. package/resources/{brands.js → organization/brands.js} +3 -3
  146. package/resources/organization/brands.js.map +1 -0
  147. package/resources/{brands.mjs → organization/brands.mjs} +3 -3
  148. package/resources/organization/brands.mjs.map +1 -0
  149. package/resources/organization/index.d.mts +5 -0
  150. package/resources/organization/index.d.mts.map +1 -0
  151. package/resources/organization/index.d.ts +5 -0
  152. package/resources/organization/index.d.ts.map +1 -0
  153. package/resources/organization/index.js +13 -0
  154. package/resources/organization/index.js.map +1 -0
  155. package/resources/organization/index.mjs +6 -0
  156. package/resources/organization/index.mjs.map +1 -0
  157. package/resources/organization/organization.d.mts +18 -0
  158. package/resources/organization/organization.d.mts.map +1 -0
  159. package/resources/organization/organization.d.ts +18 -0
  160. package/resources/organization/organization.d.ts.map +1 -0
  161. package/resources/organization/organization.js +25 -0
  162. package/resources/organization/organization.js.map +1 -0
  163. package/resources/organization/organization.mjs +20 -0
  164. package/resources/organization/organization.mjs.map +1 -0
  165. package/resources/{teams.d.mts → organization/teams.d.mts} +3 -3
  166. package/resources/organization/teams.d.mts.map +1 -0
  167. package/resources/{teams.d.ts → organization/teams.d.ts} +3 -3
  168. package/resources/organization/teams.d.ts.map +1 -0
  169. package/resources/{teams.js → organization/teams.js} +3 -3
  170. package/resources/organization/teams.js.map +1 -0
  171. package/resources/{teams.mjs → organization/teams.mjs} +3 -3
  172. package/resources/organization/teams.mjs.map +1 -0
  173. package/resources/organization.d.mts +2 -0
  174. package/resources/organization.d.mts.map +1 -0
  175. package/resources/organization.d.ts +2 -0
  176. package/resources/organization.d.ts.map +1 -0
  177. package/resources/organization.js +6 -0
  178. package/resources/organization.js.map +1 -0
  179. package/resources/organization.mjs +3 -0
  180. package/resources/organization.mjs.map +1 -0
  181. package/resources/{tags.d.mts → products/conversation-tags.d.mts} +31 -27
  182. package/resources/products/conversation-tags.d.mts.map +1 -0
  183. package/resources/{tags.d.ts → products/conversation-tags.d.ts} +31 -27
  184. package/resources/products/conversation-tags.d.ts.map +1 -0
  185. package/resources/{tags.js → products/conversation-tags.js} +21 -17
  186. package/resources/products/conversation-tags.js.map +1 -0
  187. package/resources/{tags.mjs → products/conversation-tags.mjs} +19 -15
  188. package/resources/products/conversation-tags.mjs.map +1 -0
  189. package/resources/{conversations → products/conversations}/conversations.d.mts +37 -36
  190. package/resources/products/conversations/conversations.d.mts.map +1 -0
  191. package/resources/{conversations → products/conversations}/conversations.d.ts +37 -36
  192. package/resources/products/conversations/conversations.d.ts.map +1 -0
  193. package/resources/{conversations → products/conversations}/conversations.js +32 -31
  194. package/resources/products/conversations/conversations.js.map +1 -0
  195. package/resources/{conversations → products/conversations}/conversations.mjs +31 -30
  196. package/resources/products/conversations/conversations.mjs.map +1 -0
  197. package/resources/products/conversations/index.d.mts.map +1 -0
  198. package/resources/products/conversations/index.d.ts.map +1 -0
  199. package/resources/products/conversations/index.js.map +1 -0
  200. package/resources/products/conversations/index.mjs.map +1 -0
  201. package/resources/{conversations → products/conversations}/participants.d.mts +11 -9
  202. package/resources/products/conversations/participants.d.mts.map +1 -0
  203. package/resources/{conversations → products/conversations}/participants.d.ts +11 -9
  204. package/resources/products/conversations/participants.d.ts.map +1 -0
  205. package/resources/{conversations → products/conversations}/participants.js +11 -9
  206. package/resources/products/conversations/participants.js.map +1 -0
  207. package/resources/{conversations → products/conversations}/participants.mjs +11 -9
  208. package/resources/products/conversations/participants.mjs.map +1 -0
  209. package/resources/{conversations → products/conversations}/tags.d.mts +5 -5
  210. package/resources/products/conversations/tags.d.mts.map +1 -0
  211. package/resources/{conversations → products/conversations}/tags.d.ts +5 -5
  212. package/resources/products/conversations/tags.d.ts.map +1 -0
  213. package/resources/{conversations → products/conversations}/tags.js +5 -5
  214. package/resources/products/conversations/tags.js.map +1 -0
  215. package/resources/{conversations → products/conversations}/tags.mjs +5 -5
  216. package/resources/products/conversations/tags.mjs.map +1 -0
  217. package/resources/products/conversations.d.mts.map +1 -0
  218. package/resources/products/conversations.d.ts.map +1 -0
  219. package/resources/{conversations.js → products/conversations.js} +1 -1
  220. package/resources/products/conversations.js.map +1 -0
  221. package/resources/products/conversations.mjs.map +1 -0
  222. package/resources/products/index.d.mts +6 -0
  223. package/resources/products/index.d.mts.map +1 -0
  224. package/resources/products/index.d.ts +6 -0
  225. package/resources/products/index.d.ts.map +1 -0
  226. package/resources/products/index.js +15 -0
  227. package/resources/products/index.js.map +1 -0
  228. package/resources/products/index.mjs +7 -0
  229. package/resources/products/index.mjs.map +1 -0
  230. package/resources/products/products.d.mts +22 -0
  231. package/resources/products/products.d.mts.map +1 -0
  232. package/resources/products/products.d.ts +22 -0
  233. package/resources/products/products.d.ts.map +1 -0
  234. package/resources/products/products.js +29 -0
  235. package/resources/products/products.js.map +1 -0
  236. package/resources/products/products.mjs +24 -0
  237. package/resources/products/products.mjs.map +1 -0
  238. package/resources/{surveys.d.mts → products/surveys.d.mts} +24 -4
  239. package/resources/products/surveys.d.mts.map +1 -0
  240. package/resources/{surveys.d.ts → products/surveys.d.ts} +24 -4
  241. package/resources/products/surveys.d.ts.map +1 -0
  242. package/resources/{surveys.js → products/surveys.js} +23 -3
  243. package/resources/products/surveys.js.map +1 -0
  244. package/resources/{surveys.mjs → products/surveys.mjs} +23 -3
  245. package/resources/products/surveys.mjs.map +1 -0
  246. package/resources/{tickets → products/tickets}/categories.d.mts +10 -8
  247. package/resources/products/tickets/categories.d.mts.map +1 -0
  248. package/resources/{tickets → products/tickets}/categories.d.ts +10 -8
  249. package/resources/products/tickets/categories.d.ts.map +1 -0
  250. package/resources/{tickets → products/tickets}/categories.js +9 -7
  251. package/resources/products/tickets/categories.js.map +1 -0
  252. package/resources/{tickets → products/tickets}/categories.mjs +9 -7
  253. package/resources/products/tickets/categories.mjs.map +1 -0
  254. package/resources/{tickets → products/tickets}/custom-fields.d.mts +6 -6
  255. package/resources/products/tickets/custom-fields.d.mts.map +1 -0
  256. package/resources/{tickets → products/tickets}/custom-fields.d.ts +6 -6
  257. package/resources/products/tickets/custom-fields.d.ts.map +1 -0
  258. package/resources/{tickets → products/tickets}/custom-fields.js +5 -5
  259. package/resources/products/tickets/custom-fields.js.map +1 -0
  260. package/resources/{tickets → products/tickets}/custom-fields.mjs +5 -5
  261. package/resources/products/tickets/custom-fields.mjs.map +1 -0
  262. package/resources/products/tickets/index.d.mts.map +1 -0
  263. package/resources/products/tickets/index.d.ts.map +1 -0
  264. package/resources/products/tickets/index.js.map +1 -0
  265. package/resources/products/tickets/index.mjs.map +1 -0
  266. package/resources/{tickets → products/tickets}/statuses.d.mts +10 -8
  267. package/resources/products/tickets/statuses.d.mts.map +1 -0
  268. package/resources/{tickets → products/tickets}/statuses.d.ts +10 -8
  269. package/resources/products/tickets/statuses.d.ts.map +1 -0
  270. package/resources/{tickets → products/tickets}/statuses.js +9 -7
  271. package/resources/products/tickets/statuses.js.map +1 -0
  272. package/resources/{tickets → products/tickets}/statuses.mjs +9 -7
  273. package/resources/products/tickets/statuses.mjs.map +1 -0
  274. package/resources/{tickets → products/tickets}/tickets.d.mts +10 -10
  275. package/resources/products/tickets/tickets.d.mts.map +1 -0
  276. package/resources/{tickets → products/tickets}/tickets.d.ts +10 -10
  277. package/resources/products/tickets/tickets.d.ts.map +1 -0
  278. package/resources/{tickets → products/tickets}/tickets.js +10 -10
  279. package/resources/products/tickets/tickets.js.map +1 -0
  280. package/resources/{tickets → products/tickets}/tickets.mjs +9 -9
  281. package/resources/products/tickets/tickets.mjs.map +1 -0
  282. package/resources/products/tickets.d.mts.map +1 -0
  283. package/resources/products/tickets.d.ts.map +1 -0
  284. package/resources/{tickets.js → products/tickets.js} +1 -1
  285. package/resources/products/tickets.js.map +1 -0
  286. package/resources/products/tickets.mjs.map +1 -0
  287. package/resources/products.d.mts +2 -0
  288. package/resources/products.d.mts.map +1 -0
  289. package/resources/products.d.ts +2 -0
  290. package/resources/products.d.ts.map +1 -0
  291. package/resources/products.js +6 -0
  292. package/resources/products.js.map +1 -0
  293. package/resources/products.mjs +3 -0
  294. package/resources/products.mjs.map +1 -0
  295. package/resources/{companies → users/companies}/companies.d.mts +12 -11
  296. package/resources/users/companies/companies.d.mts.map +1 -0
  297. package/resources/{companies → users/companies}/companies.d.ts +12 -11
  298. package/resources/users/companies/companies.d.ts.map +1 -0
  299. package/resources/{companies → users/companies}/companies.js +13 -12
  300. package/resources/users/companies/companies.js.map +1 -0
  301. package/resources/{companies → users/companies}/companies.mjs +12 -11
  302. package/resources/users/companies/companies.mjs.map +1 -0
  303. package/resources/{companies → users/companies}/contacts.d.mts +21 -18
  304. package/resources/users/companies/contacts.d.mts.map +1 -0
  305. package/resources/{companies → users/companies}/contacts.d.ts +21 -18
  306. package/resources/users/companies/contacts.d.ts.map +1 -0
  307. package/resources/{companies → users/companies}/contacts.js +17 -14
  308. package/resources/users/companies/contacts.js.map +1 -0
  309. package/resources/{companies → users/companies}/contacts.mjs +17 -14
  310. package/resources/users/companies/contacts.mjs.map +1 -0
  311. package/resources/users/companies/index.d.mts.map +1 -0
  312. package/resources/users/companies/index.d.ts.map +1 -0
  313. package/resources/users/companies/index.js.map +1 -0
  314. package/resources/users/companies/index.mjs.map +1 -0
  315. package/resources/users/companies.d.mts.map +1 -0
  316. package/resources/users/companies.d.ts.map +1 -0
  317. package/resources/{companies.js → users/companies.js} +1 -1
  318. package/resources/users/companies.js.map +1 -0
  319. package/resources/users/companies.mjs.map +1 -0
  320. package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.mts +8 -7
  321. package/resources/users/contacts/by-user-id/by-user-id.d.mts.map +1 -0
  322. package/resources/{contacts → users/contacts}/by-user-id/by-user-id.d.ts +8 -7
  323. package/resources/users/contacts/by-user-id/by-user-id.d.ts.map +1 -0
  324. package/resources/{contacts → users/contacts}/by-user-id/by-user-id.js +9 -8
  325. package/resources/users/contacts/by-user-id/by-user-id.js.map +1 -0
  326. package/resources/{contacts → users/contacts}/by-user-id/by-user-id.mjs +8 -7
  327. package/resources/users/contacts/by-user-id/by-user-id.mjs.map +1 -0
  328. package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.mts +5 -5
  329. package/resources/users/contacts/by-user-id/email-preferences.d.mts.map +1 -0
  330. package/resources/{contacts → users/contacts}/by-user-id/email-preferences.d.ts +5 -5
  331. package/resources/users/contacts/by-user-id/email-preferences.d.ts.map +1 -0
  332. package/resources/{contacts → users/contacts}/by-user-id/email-preferences.js +5 -5
  333. package/resources/users/contacts/by-user-id/email-preferences.js.map +1 -0
  334. package/resources/{contacts → users/contacts}/by-user-id/email-preferences.mjs +5 -5
  335. package/resources/users/contacts/by-user-id/email-preferences.mjs.map +1 -0
  336. package/resources/users/contacts/by-user-id/index.d.mts.map +1 -0
  337. package/resources/users/contacts/by-user-id/index.d.ts.map +1 -0
  338. package/resources/users/contacts/by-user-id/index.js.map +1 -0
  339. package/resources/users/contacts/by-user-id/index.mjs.map +1 -0
  340. package/resources/users/contacts/by-user-id.d.mts.map +1 -0
  341. package/resources/users/contacts/by-user-id.d.ts.map +1 -0
  342. package/resources/{contacts → users/contacts}/by-user-id.js +1 -1
  343. package/resources/users/contacts/by-user-id.js.map +1 -0
  344. package/resources/users/contacts/by-user-id.mjs.map +1 -0
  345. package/resources/{contacts → users/contacts}/contacts.d.mts +10 -9
  346. package/resources/users/contacts/contacts.d.mts.map +1 -0
  347. package/resources/{contacts → users/contacts}/contacts.d.ts +10 -9
  348. package/resources/users/contacts/contacts.d.ts.map +1 -0
  349. package/resources/{contacts → users/contacts}/contacts.js +11 -10
  350. package/resources/users/contacts/contacts.js.map +1 -0
  351. package/resources/{contacts → users/contacts}/contacts.mjs +10 -9
  352. package/resources/users/contacts/contacts.mjs.map +1 -0
  353. package/resources/{contacts → users/contacts}/email-preferences.d.mts +5 -5
  354. package/resources/users/contacts/email-preferences.d.mts.map +1 -0
  355. package/resources/{contacts → users/contacts}/email-preferences.d.ts +5 -5
  356. package/resources/users/contacts/email-preferences.d.ts.map +1 -0
  357. package/resources/{contacts → users/contacts}/email-preferences.js +5 -5
  358. package/resources/users/contacts/email-preferences.js.map +1 -0
  359. package/resources/{contacts → users/contacts}/email-preferences.mjs +5 -5
  360. package/resources/users/contacts/email-preferences.mjs.map +1 -0
  361. package/resources/users/contacts/index.d.mts.map +1 -0
  362. package/resources/users/contacts/index.d.ts.map +1 -0
  363. package/resources/users/contacts/index.js.map +1 -0
  364. package/resources/users/contacts/index.mjs.map +1 -0
  365. package/resources/users/contacts.d.mts.map +1 -0
  366. package/resources/users/contacts.d.ts.map +1 -0
  367. package/resources/{contacts.js → users/contacts.js} +1 -1
  368. package/resources/users/contacts.js.map +1 -0
  369. package/resources/users/contacts.mjs.map +1 -0
  370. package/resources/users/index.d.mts +4 -0
  371. package/resources/users/index.d.mts.map +1 -0
  372. package/resources/users/index.d.ts +4 -0
  373. package/resources/users/index.d.ts.map +1 -0
  374. package/resources/users/index.js +11 -0
  375. package/resources/users/index.js.map +1 -0
  376. package/resources/users/index.mjs +5 -0
  377. package/resources/users/index.mjs.map +1 -0
  378. package/resources/users/users.d.mts +14 -0
  379. package/resources/users/users.d.mts.map +1 -0
  380. package/resources/users/users.d.ts +14 -0
  381. package/resources/users/users.d.ts.map +1 -0
  382. package/resources/users/users.js +21 -0
  383. package/resources/users/users.js.map +1 -0
  384. package/resources/users/users.mjs +16 -0
  385. package/resources/users/users.mjs.map +1 -0
  386. package/resources/users.d.mts +2 -0
  387. package/resources/users.d.mts.map +1 -0
  388. package/resources/users.d.ts +2 -0
  389. package/resources/users.d.ts.map +1 -0
  390. package/resources/users.js +6 -0
  391. package/resources/users.js.map +1 -0
  392. package/resources/users.mjs +3 -0
  393. package/resources/users.mjs.map +1 -0
  394. package/src/client.ts +20 -391
  395. package/src/resources/{boards.ts → feedback/boards.ts} +17 -5
  396. package/src/resources/{comments.ts → feedback/comments.ts} +12 -12
  397. package/src/resources/{custom-fields.ts → feedback/custom-fields.ts} +19 -5
  398. package/src/resources/feedback/feedback.ts +113 -0
  399. package/src/resources/feedback/index.ts +48 -0
  400. package/src/resources/{post-statuses.ts → feedback/post-statuses.ts} +19 -5
  401. package/src/resources/{posts → feedback/posts}/posts.ts +11 -11
  402. package/src/resources/{posts → feedback/posts}/voters.ts +9 -9
  403. package/src/resources/feedback.ts +3 -0
  404. package/src/resources/index.ts +5 -162
  405. package/src/resources/integrations/index.ts +16 -0
  406. package/src/resources/integrations/integrations.ts +39 -0
  407. package/src/resources/{webhooks.ts → integrations/webhooks.ts} +14 -13
  408. package/src/resources/integrations.ts +3 -0
  409. package/src/resources/{admins.ts → organization/admins.ts} +5 -5
  410. package/src/resources/{brands.ts → organization/brands.ts} +5 -5
  411. package/src/resources/organization/index.ts +26 -0
  412. package/src/resources/organization/organization.ts +55 -0
  413. package/src/resources/{teams.ts → organization/teams.ts} +5 -5
  414. package/src/resources/organization.ts +3 -0
  415. package/src/resources/{tags.ts → products/conversation-tags.ts} +44 -34
  416. package/src/resources/{conversations → products/conversations}/conversations.ts +39 -38
  417. package/src/resources/{conversations → products/conversations}/participants.ts +13 -11
  418. package/src/resources/{conversations → products/conversations}/tags.ts +7 -7
  419. package/src/resources/products/index.ts +57 -0
  420. package/src/resources/products/products.ts +135 -0
  421. package/src/resources/{surveys.ts → products/surveys.ts} +26 -6
  422. package/src/resources/{tickets → products/tickets}/categories.ts +12 -10
  423. package/src/resources/{tickets → products/tickets}/custom-fields.ts +8 -8
  424. package/src/resources/{tickets → products/tickets}/statuses.ts +12 -10
  425. package/src/resources/{tickets → products/tickets}/tickets.ts +12 -12
  426. package/src/resources/products.ts +3 -0
  427. package/src/resources/{companies → users/companies}/companies.ts +14 -13
  428. package/src/resources/{companies → users/companies}/contacts.ts +23 -20
  429. package/src/resources/{contacts → users/contacts}/by-user-id/by-user-id.ts +10 -9
  430. package/src/resources/{contacts → users/contacts}/by-user-id/email-preferences.ts +7 -7
  431. package/src/resources/{contacts → users/contacts}/contacts.ts +12 -11
  432. package/src/resources/{contacts → users/contacts}/email-preferences.ts +7 -7
  433. package/src/resources/users/index.ts +30 -0
  434. package/src/resources/users/users.ts +71 -0
  435. package/src/resources/users.ts +3 -0
  436. package/src/version.ts +1 -1
  437. package/version.d.mts +1 -1
  438. package/version.d.ts +1 -1
  439. package/version.js +1 -1
  440. package/version.mjs +1 -1
  441. package/resources/admins.d.mts.map +0 -1
  442. package/resources/admins.d.ts.map +0 -1
  443. package/resources/admins.js.map +0 -1
  444. package/resources/admins.mjs.map +0 -1
  445. package/resources/boards.d.mts.map +0 -1
  446. package/resources/boards.d.ts.map +0 -1
  447. package/resources/boards.js.map +0 -1
  448. package/resources/boards.mjs.map +0 -1
  449. package/resources/brands.d.mts.map +0 -1
  450. package/resources/brands.d.ts.map +0 -1
  451. package/resources/brands.js.map +0 -1
  452. package/resources/brands.mjs.map +0 -1
  453. package/resources/comments.d.mts.map +0 -1
  454. package/resources/comments.d.ts.map +0 -1
  455. package/resources/comments.js.map +0 -1
  456. package/resources/comments.mjs.map +0 -1
  457. package/resources/companies/companies.d.mts.map +0 -1
  458. package/resources/companies/companies.d.ts.map +0 -1
  459. package/resources/companies/companies.js.map +0 -1
  460. package/resources/companies/companies.mjs.map +0 -1
  461. package/resources/companies/contacts.d.mts.map +0 -1
  462. package/resources/companies/contacts.d.ts.map +0 -1
  463. package/resources/companies/contacts.js.map +0 -1
  464. package/resources/companies/contacts.mjs.map +0 -1
  465. package/resources/companies/index.d.mts.map +0 -1
  466. package/resources/companies/index.d.ts.map +0 -1
  467. package/resources/companies/index.js.map +0 -1
  468. package/resources/companies/index.mjs.map +0 -1
  469. package/resources/companies.d.mts.map +0 -1
  470. package/resources/companies.d.ts.map +0 -1
  471. package/resources/companies.js.map +0 -1
  472. package/resources/companies.mjs.map +0 -1
  473. package/resources/contacts/by-user-id/by-user-id.d.mts.map +0 -1
  474. package/resources/contacts/by-user-id/by-user-id.d.ts.map +0 -1
  475. package/resources/contacts/by-user-id/by-user-id.js.map +0 -1
  476. package/resources/contacts/by-user-id/by-user-id.mjs.map +0 -1
  477. package/resources/contacts/by-user-id/email-preferences.d.mts.map +0 -1
  478. package/resources/contacts/by-user-id/email-preferences.d.ts.map +0 -1
  479. package/resources/contacts/by-user-id/email-preferences.js.map +0 -1
  480. package/resources/contacts/by-user-id/email-preferences.mjs.map +0 -1
  481. package/resources/contacts/by-user-id/index.d.mts.map +0 -1
  482. package/resources/contacts/by-user-id/index.d.ts.map +0 -1
  483. package/resources/contacts/by-user-id/index.js.map +0 -1
  484. package/resources/contacts/by-user-id/index.mjs.map +0 -1
  485. package/resources/contacts/by-user-id.d.mts.map +0 -1
  486. package/resources/contacts/by-user-id.d.ts.map +0 -1
  487. package/resources/contacts/by-user-id.js.map +0 -1
  488. package/resources/contacts/by-user-id.mjs.map +0 -1
  489. package/resources/contacts/contacts.d.mts.map +0 -1
  490. package/resources/contacts/contacts.d.ts.map +0 -1
  491. package/resources/contacts/contacts.js.map +0 -1
  492. package/resources/contacts/contacts.mjs.map +0 -1
  493. package/resources/contacts/email-preferences.d.mts.map +0 -1
  494. package/resources/contacts/email-preferences.d.ts.map +0 -1
  495. package/resources/contacts/email-preferences.js.map +0 -1
  496. package/resources/contacts/email-preferences.mjs.map +0 -1
  497. package/resources/contacts/index.d.mts.map +0 -1
  498. package/resources/contacts/index.d.ts.map +0 -1
  499. package/resources/contacts/index.js.map +0 -1
  500. package/resources/contacts/index.mjs.map +0 -1
  501. package/resources/contacts.d.mts.map +0 -1
  502. package/resources/contacts.d.ts.map +0 -1
  503. package/resources/contacts.js.map +0 -1
  504. package/resources/contacts.mjs.map +0 -1
  505. package/resources/conversations/conversations.d.mts.map +0 -1
  506. package/resources/conversations/conversations.d.ts.map +0 -1
  507. package/resources/conversations/conversations.js.map +0 -1
  508. package/resources/conversations/conversations.mjs.map +0 -1
  509. package/resources/conversations/index.d.mts.map +0 -1
  510. package/resources/conversations/index.d.ts.map +0 -1
  511. package/resources/conversations/index.js.map +0 -1
  512. package/resources/conversations/index.mjs.map +0 -1
  513. package/resources/conversations/participants.d.mts.map +0 -1
  514. package/resources/conversations/participants.d.ts.map +0 -1
  515. package/resources/conversations/participants.js.map +0 -1
  516. package/resources/conversations/participants.mjs.map +0 -1
  517. package/resources/conversations/tags.d.mts.map +0 -1
  518. package/resources/conversations/tags.d.ts.map +0 -1
  519. package/resources/conversations/tags.js.map +0 -1
  520. package/resources/conversations/tags.mjs.map +0 -1
  521. package/resources/conversations.d.mts.map +0 -1
  522. package/resources/conversations.d.ts.map +0 -1
  523. package/resources/conversations.js.map +0 -1
  524. package/resources/conversations.mjs.map +0 -1
  525. package/resources/custom-fields.d.mts.map +0 -1
  526. package/resources/custom-fields.d.ts.map +0 -1
  527. package/resources/custom-fields.js.map +0 -1
  528. package/resources/custom-fields.mjs.map +0 -1
  529. package/resources/post-statuses.d.mts.map +0 -1
  530. package/resources/post-statuses.d.ts.map +0 -1
  531. package/resources/post-statuses.js.map +0 -1
  532. package/resources/post-statuses.mjs.map +0 -1
  533. package/resources/posts/index.d.mts.map +0 -1
  534. package/resources/posts/index.d.ts.map +0 -1
  535. package/resources/posts/index.js.map +0 -1
  536. package/resources/posts/index.mjs.map +0 -1
  537. package/resources/posts/posts.d.mts.map +0 -1
  538. package/resources/posts/posts.d.ts.map +0 -1
  539. package/resources/posts/posts.js.map +0 -1
  540. package/resources/posts/posts.mjs.map +0 -1
  541. package/resources/posts/voters.d.mts.map +0 -1
  542. package/resources/posts/voters.d.ts.map +0 -1
  543. package/resources/posts/voters.js.map +0 -1
  544. package/resources/posts/voters.mjs.map +0 -1
  545. package/resources/posts.js.map +0 -1
  546. package/resources/posts.mjs.map +0 -1
  547. package/resources/surveys.d.mts.map +0 -1
  548. package/resources/surveys.d.ts.map +0 -1
  549. package/resources/surveys.js.map +0 -1
  550. package/resources/surveys.mjs.map +0 -1
  551. package/resources/tags.d.mts.map +0 -1
  552. package/resources/tags.d.ts.map +0 -1
  553. package/resources/tags.js.map +0 -1
  554. package/resources/tags.mjs.map +0 -1
  555. package/resources/teams.d.mts.map +0 -1
  556. package/resources/teams.d.ts.map +0 -1
  557. package/resources/teams.js.map +0 -1
  558. package/resources/teams.mjs.map +0 -1
  559. package/resources/tickets/categories.d.mts.map +0 -1
  560. package/resources/tickets/categories.d.ts.map +0 -1
  561. package/resources/tickets/categories.js.map +0 -1
  562. package/resources/tickets/categories.mjs.map +0 -1
  563. package/resources/tickets/custom-fields.d.mts.map +0 -1
  564. package/resources/tickets/custom-fields.d.ts.map +0 -1
  565. package/resources/tickets/custom-fields.js.map +0 -1
  566. package/resources/tickets/custom-fields.mjs.map +0 -1
  567. package/resources/tickets/index.d.mts.map +0 -1
  568. package/resources/tickets/index.d.ts.map +0 -1
  569. package/resources/tickets/index.js.map +0 -1
  570. package/resources/tickets/index.mjs.map +0 -1
  571. package/resources/tickets/statuses.d.mts.map +0 -1
  572. package/resources/tickets/statuses.d.ts.map +0 -1
  573. package/resources/tickets/statuses.js.map +0 -1
  574. package/resources/tickets/statuses.mjs.map +0 -1
  575. package/resources/tickets/tickets.d.mts.map +0 -1
  576. package/resources/tickets/tickets.d.ts.map +0 -1
  577. package/resources/tickets/tickets.js.map +0 -1
  578. package/resources/tickets/tickets.mjs.map +0 -1
  579. package/resources/tickets.d.mts.map +0 -1
  580. package/resources/tickets.d.ts.map +0 -1
  581. package/resources/tickets.js.map +0 -1
  582. package/resources/tickets.mjs.map +0 -1
  583. package/resources/webhooks.d.mts.map +0 -1
  584. package/resources/webhooks.d.ts.map +0 -1
  585. package/resources/webhooks.js.map +0 -1
  586. package/resources/webhooks.mjs.map +0 -1
  587. /package/resources/{posts → feedback/posts}/index.d.mts +0 -0
  588. /package/resources/{posts → feedback/posts}/index.d.ts +0 -0
  589. /package/resources/{posts → feedback/posts}/index.js +0 -0
  590. /package/resources/{posts → feedback/posts}/index.mjs +0 -0
  591. /package/resources/{posts.d.mts → feedback/posts.d.mts} +0 -0
  592. /package/resources/{posts.d.ts → feedback/posts.d.ts} +0 -0
  593. /package/resources/{posts.mjs → feedback/posts.mjs} +0 -0
  594. /package/resources/{conversations → products/conversations}/index.d.mts +0 -0
  595. /package/resources/{conversations → products/conversations}/index.d.ts +0 -0
  596. /package/resources/{conversations → products/conversations}/index.js +0 -0
  597. /package/resources/{conversations → products/conversations}/index.mjs +0 -0
  598. /package/resources/{conversations.d.mts → products/conversations.d.mts} +0 -0
  599. /package/resources/{conversations.d.ts → products/conversations.d.ts} +0 -0
  600. /package/resources/{conversations.mjs → products/conversations.mjs} +0 -0
  601. /package/resources/{tickets → products/tickets}/index.d.mts +0 -0
  602. /package/resources/{tickets → products/tickets}/index.d.ts +0 -0
  603. /package/resources/{tickets → products/tickets}/index.js +0 -0
  604. /package/resources/{tickets → products/tickets}/index.mjs +0 -0
  605. /package/resources/{tickets.d.mts → products/tickets.d.mts} +0 -0
  606. /package/resources/{tickets.d.ts → products/tickets.d.ts} +0 -0
  607. /package/resources/{tickets.mjs → products/tickets.mjs} +0 -0
  608. /package/resources/{companies → users/companies}/index.d.mts +0 -0
  609. /package/resources/{companies → users/companies}/index.d.ts +0 -0
  610. /package/resources/{companies → users/companies}/index.js +0 -0
  611. /package/resources/{companies → users/companies}/index.mjs +0 -0
  612. /package/resources/{companies.d.mts → users/companies.d.mts} +0 -0
  613. /package/resources/{companies.d.ts → users/companies.d.ts} +0 -0
  614. /package/resources/{companies.mjs → users/companies.mjs} +0 -0
  615. /package/resources/{contacts → users/contacts}/by-user-id/index.d.mts +0 -0
  616. /package/resources/{contacts → users/contacts}/by-user-id/index.d.ts +0 -0
  617. /package/resources/{contacts → users/contacts}/by-user-id/index.js +0 -0
  618. /package/resources/{contacts → users/contacts}/by-user-id/index.mjs +0 -0
  619. /package/resources/{contacts → users/contacts}/by-user-id.d.mts +0 -0
  620. /package/resources/{contacts → users/contacts}/by-user-id.d.ts +0 -0
  621. /package/resources/{contacts → users/contacts}/by-user-id.mjs +0 -0
  622. /package/resources/{contacts → users/contacts}/index.d.mts +0 -0
  623. /package/resources/{contacts → users/contacts}/index.d.ts +0 -0
  624. /package/resources/{contacts → users/contacts}/index.js +0 -0
  625. /package/resources/{contacts → users/contacts}/index.mjs +0 -0
  626. /package/resources/{contacts.d.mts → users/contacts.d.mts} +0 -0
  627. /package/resources/{contacts.d.ts → users/contacts.d.ts} +0 -0
  628. /package/resources/{contacts.mjs → users/contacts.mjs} +0 -0
  629. /package/src/resources/{posts → feedback/posts}/index.ts +0 -0
  630. /package/src/resources/{posts.ts → feedback/posts.ts} +0 -0
  631. /package/src/resources/{conversations → products/conversations}/index.ts +0 -0
  632. /package/src/resources/{conversations.ts → products/conversations.ts} +0 -0
  633. /package/src/resources/{tickets → products/tickets}/index.ts +0 -0
  634. /package/src/resources/{tickets.ts → products/tickets.ts} +0 -0
  635. /package/src/resources/{companies → users/companies}/index.ts +0 -0
  636. /package/src/resources/{companies.ts → users/companies.ts} +0 -0
  637. /package/src/resources/{contacts → users/contacts}/by-user-id/index.ts +0 -0
  638. /package/src/resources/{contacts → users/contacts}/by-user-id.ts +0 -0
  639. /package/src/resources/{contacts → users/contacts}/index.ts +0 -0
  640. /package/src/resources/{contacts.ts → users/contacts.ts} +0 -0
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../../core/resource.js";
1
+ import { APIResource } from "../../../../core/resource.js";
2
2
  import * as EmailPreferencesAPI from "../email-preferences.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
3
+ import { APIPromise } from "../../../../core/api-promise.js";
4
+ import { RequestOptions } from "../../../../internal/request-options.js";
5
5
  /**
6
6
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
7
7
  */
@@ -53,7 +53,7 @@ export declare class EmailPreferences extends APIResource {
53
53
  * @example
54
54
  * ```ts
55
55
  * const preferencesOutput =
56
- * await client.contacts.byUserID.emailPreferences.retrieve(
56
+ * await client.users.contacts.byUserID.emailPreferences.retrieve(
57
57
  * 'usr_12345',
58
58
  * );
59
59
  * ```
@@ -142,7 +142,7 @@ export declare class EmailPreferences extends APIResource {
142
142
  * @example
143
143
  * ```ts
144
144
  * const preferencesOutput =
145
- * await client.contacts.byUserID.emailPreferences.update(
145
+ * await client.users.contacts.byUserID.emailPreferences.update(
146
146
  * 'usr_12345',
147
147
  * { preferences: {} },
148
148
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.d.ts","sourceRoot":"","sources":["../../../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CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;KAC7C;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -2,9 +2,9 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.EmailPreferences = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- const headers_1 = require("../../../internal/headers.js");
7
- const path_1 = require("../../../internal/utils/path.js");
5
+ const resource_1 = require("../../../../core/resource.js");
6
+ const headers_1 = require("../../../../internal/headers.js");
7
+ const path_1 = require("../../../../internal/utils/path.js");
8
8
  /**
9
9
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
10
10
  */
@@ -56,7 +56,7 @@ class EmailPreferences extends resource_1.APIResource {
56
56
  * @example
57
57
  * ```ts
58
58
  * const preferencesOutput =
59
- * await client.contacts.byUserID.emailPreferences.retrieve(
59
+ * await client.users.contacts.byUserID.emailPreferences.retrieve(
60
60
  * 'usr_12345',
61
61
  * );
62
62
  * ```
@@ -154,7 +154,7 @@ class EmailPreferences extends resource_1.APIResource {
154
154
  * @example
155
155
  * ```ts
156
156
  * const preferencesOutput =
157
- * await client.contacts.byUserID.emailPreferences.update(
157
+ * await client.users.contacts.byUserID.emailPreferences.update(
158
158
  * 'usr_12345',
159
159
  * { preferences: {} },
160
160
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.js","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/email-preferences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAAwD;AAGxD,6DAA4D;AAE5D,6DAAuD;AAEvD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;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} from "../../../core/resource.mjs";
3
- import { buildHeaders } from "../../../internal/headers.mjs";
4
- import { path } from "../../../internal/utils/path.mjs";
2
+ import { APIResource } from "../../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../../internal/headers.mjs";
4
+ import { path } from "../../../../internal/utils/path.mjs";
5
5
  /**
6
6
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
7
7
  */
@@ -53,7 +53,7 @@ export class EmailPreferences extends APIResource {
53
53
  * @example
54
54
  * ```ts
55
55
  * const preferencesOutput =
56
- * await client.contacts.byUserID.emailPreferences.retrieve(
56
+ * await client.users.contacts.byUserID.emailPreferences.retrieve(
57
57
  * 'usr_12345',
58
58
  * );
59
59
  * ```
@@ -151,7 +151,7 @@ export class EmailPreferences extends APIResource {
151
151
  * @example
152
152
  * ```ts
153
153
  * const preferencesOutput =
154
- * await client.contacts.byUserID.emailPreferences.update(
154
+ * await client.users.contacts.byUserID.emailPreferences.update(
155
155
  * 'usr_12345',
156
156
  * { preferences: {} },
157
157
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.mjs","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/email-preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmDG;IACH,QAAQ,CACN,MAAc,EACd,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,2BAA2B,MAAM,oBAAoB,EAAE;YACjF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwFG;IACH,MAAM,CACJ,MAAc,EACd,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,2BAA2B,MAAM,oBAAoB,EAAE;YACnF,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/index.ts"],"names":[],"mappings":"OAEO,EACL,QAAQ,EACR,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B;OACM,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,GACjC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CAKsB;AAJpB,sGAAA,QAAQ,OAAA;AAKV,4DAI6B;AAH3B,qHAAA,gBAAgB,OAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/users/contacts/by-user-id/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,QAAQ,GAIT;OACM,EACL,gBAAgB,GAGjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"by-user-id.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/by-user-id.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"by-user-id.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/by-user-id.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const tslib_1 = require("../../internal/tslib.js");
4
+ const tslib_1 = require("../../../internal/tslib.js");
5
5
  tslib_1.__exportStar(require("./by-user-id/index.js"), exports);
6
6
  //# sourceMappingURL=by-user-id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"by-user-id.js","sourceRoot":"","sources":["../../../src/resources/users/contacts/by-user-id.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gEAAmC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"by-user-id.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/by-user-id.ts"],"names":[],"mappings":"AAAA,sFAAsF"}
@@ -1,12 +1,12 @@
1
- import { APIResource } from "../../core/resource.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as ContactsAPI from "./contacts.mjs";
3
3
  import * as CompaniesAPI from "../companies/companies.mjs";
4
4
  import * as EmailPreferencesAPI from "./email-preferences.mjs";
5
5
  import { EmailPreferenceRetrieveParams, EmailPreferenceUpdateParams, EmailPreferences, PreferenceState, PreferencesOutput, UpdatePreferenceBody } from "./email-preferences.mjs";
6
6
  import * as ByUserIDAPI from "./by-user-id/by-user-id.mjs";
7
7
  import { ByUserID, ByUserIDDeleteParams, ByUserIDRetrieveParams, ByUserIDRetrieveResponse } from "./by-user-id/by-user-id.mjs";
8
- import { APIPromise } from "../../core/api-promise.mjs";
9
- import { RequestOptions } from "../../internal/request-options.mjs";
8
+ import { APIPromise } from "../../../core/api-promise.mjs";
9
+ import { RequestOptions } from "../../../internal/request-options.mjs";
10
10
  /**
11
11
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
12
12
  */
@@ -58,7 +58,7 @@ export declare class Contacts extends APIResource {
58
58
  *
59
59
  * @example
60
60
  * ```ts
61
- * const contact = await client.contacts.retrieve(
61
+ * const contact = await client.users.contacts.retrieve(
62
62
  * '507f1f77bcf86cd799439011',
63
63
  * );
64
64
  * ```
@@ -123,7 +123,7 @@ export declare class Contacts extends APIResource {
123
123
  *
124
124
  * @example
125
125
  * ```ts
126
- * const contactList = await client.contacts.list();
126
+ * const contactList = await client.users.contacts.list();
127
127
  * ```
128
128
  */
129
129
  list(params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<ContactList>;
@@ -169,7 +169,7 @@ export declare class Contacts extends APIResource {
169
169
  *
170
170
  * @example
171
171
  * ```ts
172
- * const deletedContact = await client.contacts.delete(
172
+ * const deletedContact = await client.users.contacts.delete(
173
173
  * '507f1f77bcf86cd799439011',
174
174
  * );
175
175
  * ```
@@ -222,7 +222,7 @@ export declare class Contacts extends APIResource {
222
222
  *
223
223
  * @example
224
224
  * ```ts
225
- * const response = await client.contacts.block(
225
+ * const response = await client.users.contacts.block(
226
226
  * '507f1f77bcf86cd799439011',
227
227
  * );
228
228
  * ```
@@ -319,7 +319,8 @@ export declare class Contacts extends APIResource {
319
319
  *
320
320
  * @example
321
321
  * ```ts
322
- * const response = await client.contacts.createOrUpdate();
322
+ * const response =
323
+ * await client.users.contacts.createOrUpdate();
323
324
  * ```
324
325
  */
325
326
  createOrUpdate(params: ContactCreateOrUpdateParams, options?: RequestOptions): APIPromise<ContactCreateOrUpdateResponse>;
@@ -369,7 +370,7 @@ export declare class Contacts extends APIResource {
369
370
  *
370
371
  * @example
371
372
  * ```ts
372
- * const response = await client.contacts.unblock(
373
+ * const response = await client.users.contacts.unblock(
373
374
  * '507f1f77bcf86cd799439011',
374
375
  * );
375
376
  * ```
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,YAAY;OACjB,KAAK,mBAAmB;OACxB,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACrB;OACM,KAAK,WAAW;OAChB,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACzB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,qBAAqB,GAAG,IAAI,GAAG,SAAc,EACrD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAA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K,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"}
@@ -1,12 +1,12 @@
1
- import { APIResource } from "../../core/resource.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
2
  import * as ContactsAPI from "./contacts.js";
3
3
  import * as CompaniesAPI from "../companies/companies.js";
4
4
  import * as EmailPreferencesAPI from "./email-preferences.js";
5
5
  import { EmailPreferenceRetrieveParams, EmailPreferenceUpdateParams, EmailPreferences, PreferenceState, PreferencesOutput, UpdatePreferenceBody } from "./email-preferences.js";
6
6
  import * as ByUserIDAPI from "./by-user-id/by-user-id.js";
7
7
  import { ByUserID, ByUserIDDeleteParams, ByUserIDRetrieveParams, ByUserIDRetrieveResponse } from "./by-user-id/by-user-id.js";
8
- import { APIPromise } from "../../core/api-promise.js";
9
- import { RequestOptions } from "../../internal/request-options.js";
8
+ import { APIPromise } from "../../../core/api-promise.js";
9
+ import { RequestOptions } from "../../../internal/request-options.js";
10
10
  /**
11
11
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
12
12
  */
@@ -58,7 +58,7 @@ export declare class Contacts extends APIResource {
58
58
  *
59
59
  * @example
60
60
  * ```ts
61
- * const contact = await client.contacts.retrieve(
61
+ * const contact = await client.users.contacts.retrieve(
62
62
  * '507f1f77bcf86cd799439011',
63
63
  * );
64
64
  * ```
@@ -123,7 +123,7 @@ export declare class Contacts extends APIResource {
123
123
  *
124
124
  * @example
125
125
  * ```ts
126
- * const contactList = await client.contacts.list();
126
+ * const contactList = await client.users.contacts.list();
127
127
  * ```
128
128
  */
129
129
  list(params?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<ContactList>;
@@ -169,7 +169,7 @@ export declare class Contacts extends APIResource {
169
169
  *
170
170
  * @example
171
171
  * ```ts
172
- * const deletedContact = await client.contacts.delete(
172
+ * const deletedContact = await client.users.contacts.delete(
173
173
  * '507f1f77bcf86cd799439011',
174
174
  * );
175
175
  * ```
@@ -222,7 +222,7 @@ export declare class Contacts extends APIResource {
222
222
  *
223
223
  * @example
224
224
  * ```ts
225
- * const response = await client.contacts.block(
225
+ * const response = await client.users.contacts.block(
226
226
  * '507f1f77bcf86cd799439011',
227
227
  * );
228
228
  * ```
@@ -319,7 +319,8 @@ export declare class Contacts extends APIResource {
319
319
  *
320
320
  * @example
321
321
  * ```ts
322
- * const response = await client.contacts.createOrUpdate();
322
+ * const response =
323
+ * await client.users.contacts.createOrUpdate();
323
324
  * ```
324
325
  */
325
326
  createOrUpdate(params: ContactCreateOrUpdateParams, options?: RequestOptions): APIPromise<ContactCreateOrUpdateResponse>;
@@ -369,7 +370,7 @@ export declare class Contacts extends APIResource {
369
370
  *
370
371
  * @example
371
372
  * ```ts
372
- * const response = await client.contacts.unblock(
373
+ * const response = await client.users.contacts.unblock(
373
374
  * '507f1f77bcf86cd799439011',
374
375
  * );
375
376
  * ```
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,YAAY;OACjB,KAAK,mBAAmB;OACxB,EACL,6BAA6B,EAC7B,2BAA2B,EAC3B,gBAAgB,EAChB,eAAe,EACf,iBAAiB,EACjB,oBAAoB,EACrB;OACM,KAAK,WAAW;OAChB,EACL,QAAQ,EACR,oBAAoB,EACpB,sBAAsB,EACtB,wBAAwB,EACzB;OACM,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IAEF;;;;;;;;;;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AQ,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"}
@@ -2,14 +2,14 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Contacts = void 0;
5
- const tslib_1 = require("../../internal/tslib.js");
6
- const resource_1 = require("../../core/resource.js");
5
+ const tslib_1 = require("../../../internal/tslib.js");
6
+ const resource_1 = require("../../../core/resource.js");
7
7
  const EmailPreferencesAPI = tslib_1.__importStar(require("./email-preferences.js"));
8
8
  const email_preferences_1 = require("./email-preferences.js");
9
9
  const ByUserIDAPI = tslib_1.__importStar(require("./by-user-id/by-user-id.js"));
10
10
  const by_user_id_1 = require("./by-user-id/by-user-id.js");
11
- const headers_1 = require("../../internal/headers.js");
12
- const path_1 = require("../../internal/utils/path.js");
11
+ const headers_1 = require("../../../internal/headers.js");
12
+ const path_1 = require("../../../internal/utils/path.js");
13
13
  /**
14
14
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
15
15
  */
@@ -64,7 +64,7 @@ class Contacts extends resource_1.APIResource {
64
64
  *
65
65
  * @example
66
66
  * ```ts
67
- * const contact = await client.contacts.retrieve(
67
+ * const contact = await client.users.contacts.retrieve(
68
68
  * '507f1f77bcf86cd799439011',
69
69
  * );
70
70
  * ```
@@ -138,7 +138,7 @@ class Contacts extends resource_1.APIResource {
138
138
  *
139
139
  * @example
140
140
  * ```ts
141
- * const contactList = await client.contacts.list();
141
+ * const contactList = await client.users.contacts.list();
142
142
  * ```
143
143
  */
144
144
  list(params = {}, options) {
@@ -194,7 +194,7 @@ class Contacts extends resource_1.APIResource {
194
194
  *
195
195
  * @example
196
196
  * ```ts
197
- * const deletedContact = await client.contacts.delete(
197
+ * const deletedContact = await client.users.contacts.delete(
198
198
  * '507f1f77bcf86cd799439011',
199
199
  * );
200
200
  * ```
@@ -256,7 +256,7 @@ class Contacts extends resource_1.APIResource {
256
256
  *
257
257
  * @example
258
258
  * ```ts
259
- * const response = await client.contacts.block(
259
+ * const response = await client.users.contacts.block(
260
260
  * '507f1f77bcf86cd799439011',
261
261
  * );
262
262
  * ```
@@ -362,7 +362,8 @@ class Contacts extends resource_1.APIResource {
362
362
  *
363
363
  * @example
364
364
  * ```ts
365
- * const response = await client.contacts.createOrUpdate();
365
+ * const response =
366
+ * await client.users.contacts.createOrUpdate();
366
367
  * ```
367
368
  */
368
369
  createOrUpdate(params, options) {
@@ -422,7 +423,7 @@ class Contacts extends resource_1.APIResource {
422
423
  *
423
424
  * @example
424
425
  * ```ts
425
- * const response = await client.contacts.unblock(
426
+ * const response = await client.users.contacts.unblock(
426
427
  * '507f1f77bcf86cd799439011',
427
428
  * );
428
429
  * ```
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contacts.js","sourceRoot":"","sources":["../../../src/resources/users/contacts/contacts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AAGrD,oFAA2D;AAC3D,8DAO6B;AAC7B,gFAAuD;AACvD,2DAKiC;AAEjC,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;IA6bJ,C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,CAAC,OAAO,CAAC,IAAI,CAAC,cAAc,EAAE;YACvC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkDG;IACH,OAAO,CACL,EAAU,EACV,SAAkD,EAAE,EACpD,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,UAAU,EAAE;YACzD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAjcD,4BAicC;AA2YD,QAAQ,CAAC,QAAQ,GAAG,qBAAQ,CAAC;AAC7B,QAAQ,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
@@ -1,11 +1,11 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
2
+ import { APIResource } from "../../../core/resource.mjs";
3
3
  import * as EmailPreferencesAPI from "./email-preferences.mjs";
4
4
  import { EmailPreferences, } from "./email-preferences.mjs";
5
5
  import * as ByUserIDAPI from "./by-user-id/by-user-id.mjs";
6
6
  import { ByUserID, } from "./by-user-id/by-user-id.mjs";
7
- import { buildHeaders } from "../../internal/headers.mjs";
8
- import { path } from "../../internal/utils/path.mjs";
7
+ import { buildHeaders } from "../../../internal/headers.mjs";
8
+ import { path } from "../../../internal/utils/path.mjs";
9
9
  /**
10
10
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
11
11
  */
@@ -60,7 +60,7 @@ export class Contacts extends APIResource {
60
60
  *
61
61
  * @example
62
62
  * ```ts
63
- * const contact = await client.contacts.retrieve(
63
+ * const contact = await client.users.contacts.retrieve(
64
64
  * '507f1f77bcf86cd799439011',
65
65
  * );
66
66
  * ```
@@ -134,7 +134,7 @@ export class Contacts extends APIResource {
134
134
  *
135
135
  * @example
136
136
  * ```ts
137
- * const contactList = await client.contacts.list();
137
+ * const contactList = await client.users.contacts.list();
138
138
  * ```
139
139
  */
140
140
  list(params = {}, options) {
@@ -190,7 +190,7 @@ export class Contacts extends APIResource {
190
190
  *
191
191
  * @example
192
192
  * ```ts
193
- * const deletedContact = await client.contacts.delete(
193
+ * const deletedContact = await client.users.contacts.delete(
194
194
  * '507f1f77bcf86cd799439011',
195
195
  * );
196
196
  * ```
@@ -252,7 +252,7 @@ export class Contacts extends APIResource {
252
252
  *
253
253
  * @example
254
254
  * ```ts
255
- * const response = await client.contacts.block(
255
+ * const response = await client.users.contacts.block(
256
256
  * '507f1f77bcf86cd799439011',
257
257
  * );
258
258
  * ```
@@ -358,7 +358,8 @@ export class Contacts extends APIResource {
358
358
  *
359
359
  * @example
360
360
  * ```ts
361
- * const response = await client.contacts.createOrUpdate();
361
+ * const response =
362
+ * await client.users.contacts.createOrUpdate();
362
363
  * ```
363
364
  */
364
365
  createOrUpdate(params, options) {
@@ -418,7 +419,7 @@ export class Contacts extends APIResource {
418
419
  *
419
420
  * @example
420
421
  * ```ts
421
- * const response = await client.contacts.unblock(
422
+ * const response = await client.users.contacts.unblock(
422
423
  * '507f1f77bcf86cd799439011',
423
424
  * );
424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S,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA2YD,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC7B,QAAQ,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../core/resource.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
2
  import * as EmailPreferencesAPI from "./email-preferences.mjs";
3
- import { APIPromise } from "../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../internal/request-options.mjs";
3
+ import { APIPromise } from "../../../core/api-promise.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
5
  /**
6
6
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
7
7
  */
@@ -71,7 +71,7 @@ export declare class EmailPreferences extends APIResource {
71
71
  * @example
72
72
  * ```ts
73
73
  * const preferencesOutput =
74
- * await client.contacts.emailPreferences.retrieve(
74
+ * await client.users.contacts.emailPreferences.retrieve(
75
75
  * '507f1f77bcf86cd799439011',
76
76
  * );
77
77
  * ```
@@ -185,7 +185,7 @@ export declare class EmailPreferences extends APIResource {
185
185
  * @example
186
186
  * ```ts
187
187
  * const preferencesOutput =
188
- * await client.contacts.emailPreferences.update(
188
+ * await client.users.contacts.emailPreferences.update(
189
189
  * '507f1f77bcf86cd799439011',
190
190
  * { preferences: {} },
191
191
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.d.mts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../core/resource.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
2
  import * as EmailPreferencesAPI from "./email-preferences.js";
3
- import { APIPromise } from "../../core/api-promise.js";
4
- import { RequestOptions } from "../../internal/request-options.js";
3
+ import { APIPromise } from "../../../core/api-promise.js";
4
+ import { RequestOptions } from "../../../internal/request-options.js";
5
5
  /**
6
6
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
7
7
  */
@@ -71,7 +71,7 @@ export declare class EmailPreferences extends APIResource {
71
71
  * @example
72
72
  * ```ts
73
73
  * const preferencesOutput =
74
- * await client.contacts.emailPreferences.retrieve(
74
+ * await client.users.contacts.emailPreferences.retrieve(
75
75
  * '507f1f77bcf86cd799439011',
76
76
  * );
77
77
  * ```
@@ -185,7 +185,7 @@ export declare class EmailPreferences extends APIResource {
185
185
  * @example
186
186
  * ```ts
187
187
  * const preferencesOutput =
188
- * await client.contacts.emailPreferences.update(
188
+ * await client.users.contacts.emailPreferences.update(
189
189
  * '507f1f77bcf86cd799439011',
190
190
  * { preferences: {} },
191
191
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.d.ts","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,6BAA6B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,U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3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.EmailPreferences = void 0;
5
- const resource_1 = require("../../core/resource.js");
6
- const headers_1 = require("../../internal/headers.js");
7
- const path_1 = require("../../internal/utils/path.js");
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const headers_1 = require("../../../internal/headers.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
8
  /**
9
9
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
10
10
  */
@@ -74,7 +74,7 @@ class EmailPreferences extends resource_1.APIResource {
74
74
  * @example
75
75
  * ```ts
76
76
  * const preferencesOutput =
77
- * await client.contacts.emailPreferences.retrieve(
77
+ * await client.users.contacts.emailPreferences.retrieve(
78
78
  * '507f1f77bcf86cd799439011',
79
79
  * );
80
80
  * ```
@@ -197,7 +197,7 @@ class EmailPreferences extends resource_1.APIResource {
197
197
  * @example
198
198
  * ```ts
199
199
  * const preferencesOutput =
200
- * await client.contacts.emailPreferences.update(
200
+ * await client.users.contacts.emailPreferences.update(
201
201
  * '507f1f77bcf86cd799439011',
202
202
  * { preferences: {} },
203
203
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.js","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACH,QAAQ,CACN,EAAU,EACV,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,oBAAoB,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiHG;IACH,MAAM,CACJ,EAAU,EACV,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,gBAAgB,EAAE,oBAAoB,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAvND,4CAuNC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../core/resource.mjs";
3
- import { buildHeaders } from "../../internal/headers.mjs";
4
- import { path } from "../../internal/utils/path.mjs";
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { buildHeaders } from "../../../internal/headers.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
5
  /**
6
6
  * Contacts are the customers and leads in your Featurebase organization. Use this endpoint to list and retrieve contact information.
7
7
  */
@@ -71,7 +71,7 @@ export class EmailPreferences extends APIResource {
71
71
  * @example
72
72
  * ```ts
73
73
  * const preferencesOutput =
74
- * await client.contacts.emailPreferences.retrieve(
74
+ * await client.users.contacts.emailPreferences.retrieve(
75
75
  * '507f1f77bcf86cd799439011',
76
76
  * );
77
77
  * ```
@@ -194,7 +194,7 @@ export class EmailPreferences extends APIResource {
194
194
  * @example
195
195
  * ```ts
196
196
  * const preferencesOutput =
197
- * await client.contacts.emailPreferences.update(
197
+ * await client.users.contacts.emailPreferences.update(
198
198
  * '507f1f77bcf86cd799439011',
199
199
  * { preferences: {} },
200
200
  * );
@@ -0,0 +1 @@
1
+ {"version":3,"file":"email-preferences.mjs","sourceRoot":"","sources":["../../../src/resources/users/contacts/email-preferences.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqEG;IACH,QAAQ,CACN,EAAU,EACV,SAA2D,EAAE,EAC7D,OAAwB;QAExB,MAAM,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gBAAgB,EAAE,oBAAoB,EAAE;YAClE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,kBAAkB,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBAC/F,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;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