@augno/sdk 0.7.0 → 0.9.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 (798) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/client.d.mts +11 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +15 -9
  11. package/resources/auth/api-keys/actions.d.mts +2 -0
  12. package/resources/auth/api-keys/actions.d.mts.map +1 -1
  13. package/resources/auth/api-keys/actions.d.ts +2 -0
  14. package/resources/auth/api-keys/actions.d.ts.map +1 -1
  15. package/resources/auth/api-keys/actions.js +2 -0
  16. package/resources/auth/api-keys/actions.js.map +1 -1
  17. package/resources/auth/api-keys/actions.mjs +2 -0
  18. package/resources/auth/api-keys/actions.mjs.map +1 -1
  19. package/resources/auth/api-keys/api-keys.d.mts +12 -3
  20. package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
  21. package/resources/auth/api-keys/api-keys.d.ts +12 -3
  22. package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
  23. package/resources/auth/api-keys/api-keys.js +9 -0
  24. package/resources/auth/api-keys/api-keys.js.map +1 -1
  25. package/resources/auth/api-keys/api-keys.mjs +9 -0
  26. package/resources/auth/api-keys/api-keys.mjs.map +1 -1
  27. package/resources/catalog/item-categories/item-categories.d.mts +17 -1
  28. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  29. package/resources/catalog/item-categories/item-categories.d.ts +17 -1
  30. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  31. package/resources/catalog/item-categories/item-categories.js +17 -1
  32. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  33. package/resources/catalog/item-categories/item-categories.mjs +17 -1
  34. package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
  35. package/resources/catalog/item-categories/properties.d.mts +4 -0
  36. package/resources/catalog/item-categories/properties.d.mts.map +1 -1
  37. package/resources/catalog/item-categories/properties.d.ts +4 -0
  38. package/resources/catalog/item-categories/properties.d.ts.map +1 -1
  39. package/resources/catalog/item-categories/properties.js +4 -0
  40. package/resources/catalog/item-categories/properties.js.map +1 -1
  41. package/resources/catalog/item-categories/properties.mjs +4 -0
  42. package/resources/catalog/item-categories/properties.mjs.map +1 -1
  43. package/resources/catalog/items/attributes.d.mts +4 -0
  44. package/resources/catalog/items/attributes.d.mts.map +1 -1
  45. package/resources/catalog/items/attributes.d.ts +4 -0
  46. package/resources/catalog/items/attributes.d.ts.map +1 -1
  47. package/resources/catalog/items/attributes.js +4 -0
  48. package/resources/catalog/items/attributes.js.map +1 -1
  49. package/resources/catalog/items/attributes.mjs +4 -0
  50. package/resources/catalog/items/attributes.mjs.map +1 -1
  51. package/resources/catalog/items/items.d.mts +8 -0
  52. package/resources/catalog/items/items.d.mts.map +1 -1
  53. package/resources/catalog/items/items.d.ts +8 -0
  54. package/resources/catalog/items/items.d.ts.map +1 -1
  55. package/resources/catalog/items/items.js +8 -0
  56. package/resources/catalog/items/items.js.map +1 -1
  57. package/resources/catalog/items/items.mjs +8 -0
  58. package/resources/catalog/items/items.mjs.map +1 -1
  59. package/resources/catalog/materials.d.mts +66 -10
  60. package/resources/catalog/materials.d.mts.map +1 -1
  61. package/resources/catalog/materials.d.ts +66 -10
  62. package/resources/catalog/materials.d.ts.map +1 -1
  63. package/resources/catalog/materials.js +57 -1
  64. package/resources/catalog/materials.js.map +1 -1
  65. package/resources/catalog/materials.mjs +57 -1
  66. package/resources/catalog/materials.mjs.map +1 -1
  67. package/resources/catalog/parts.d.mts +30 -0
  68. package/resources/catalog/parts.d.mts.map +1 -1
  69. package/resources/catalog/parts.d.ts +30 -0
  70. package/resources/catalog/parts.d.ts.map +1 -1
  71. package/resources/catalog/parts.js +30 -0
  72. package/resources/catalog/parts.js.map +1 -1
  73. package/resources/catalog/parts.mjs +30 -0
  74. package/resources/catalog/parts.mjs.map +1 -1
  75. package/resources/catalog/product-lines.d.mts +18 -1
  76. package/resources/catalog/product-lines.d.mts.map +1 -1
  77. package/resources/catalog/product-lines.d.ts +18 -1
  78. package/resources/catalog/product-lines.d.ts.map +1 -1
  79. package/resources/catalog/product-lines.js +18 -1
  80. package/resources/catalog/product-lines.js.map +1 -1
  81. package/resources/catalog/product-lines.mjs +18 -1
  82. package/resources/catalog/product-lines.mjs.map +1 -1
  83. package/resources/catalog/products.d.mts +52 -9
  84. package/resources/catalog/products.d.mts.map +1 -1
  85. package/resources/catalog/products.d.ts +52 -9
  86. package/resources/catalog/products.d.ts.map +1 -1
  87. package/resources/catalog/products.js +44 -1
  88. package/resources/catalog/products.js.map +1 -1
  89. package/resources/catalog/products.mjs +44 -1
  90. package/resources/catalog/products.mjs.map +1 -1
  91. package/resources/catalog/properties/attributes.d.mts +12 -0
  92. package/resources/catalog/properties/attributes.d.mts.map +1 -1
  93. package/resources/catalog/properties/attributes.d.ts +12 -0
  94. package/resources/catalog/properties/attributes.d.ts.map +1 -1
  95. package/resources/catalog/properties/attributes.js +12 -0
  96. package/resources/catalog/properties/attributes.js.map +1 -1
  97. package/resources/catalog/properties/attributes.mjs +12 -0
  98. package/resources/catalog/properties/attributes.mjs.map +1 -1
  99. package/resources/catalog/properties/properties.d.mts +10 -0
  100. package/resources/catalog/properties/properties.d.mts.map +1 -1
  101. package/resources/catalog/properties/properties.d.ts +10 -0
  102. package/resources/catalog/properties/properties.d.ts.map +1 -1
  103. package/resources/catalog/properties/properties.js +10 -0
  104. package/resources/catalog/properties/properties.js.map +1 -1
  105. package/resources/catalog/properties/properties.mjs +10 -0
  106. package/resources/catalog/properties/properties.mjs.map +1 -1
  107. package/resources/catalog/unit-groups/unit-groups.d.mts +29 -7
  108. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  109. package/resources/catalog/unit-groups/unit-groups.d.ts +29 -7
  110. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  111. package/resources/catalog/unit-groups/unit-groups.js +23 -2
  112. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  113. package/resources/catalog/unit-groups/unit-groups.mjs +23 -2
  114. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  115. package/resources/catalog/unit-groups/units.d.mts +12 -0
  116. package/resources/catalog/unit-groups/units.d.mts.map +1 -1
  117. package/resources/catalog/unit-groups/units.d.ts +12 -0
  118. package/resources/catalog/unit-groups/units.d.ts.map +1 -1
  119. package/resources/catalog/unit-groups/units.js +12 -0
  120. package/resources/catalog/unit-groups/units.js.map +1 -1
  121. package/resources/catalog/unit-groups/units.mjs +12 -0
  122. package/resources/catalog/unit-groups/units.mjs.map +1 -1
  123. package/resources/catalog/units.d.mts +56 -26
  124. package/resources/catalog/units.d.mts.map +1 -1
  125. package/resources/catalog/units.d.ts +56 -26
  126. package/resources/catalog/units.d.ts.map +1 -1
  127. package/resources/catalog/units.js +22 -3
  128. package/resources/catalog/units.js.map +1 -1
  129. package/resources/catalog/units.mjs +22 -3
  130. package/resources/catalog/units.mjs.map +1 -1
  131. package/resources/core/addresses/actions.d.mts +1 -0
  132. package/resources/core/addresses/actions.d.mts.map +1 -1
  133. package/resources/core/addresses/actions.d.ts +1 -0
  134. package/resources/core/addresses/actions.d.ts.map +1 -1
  135. package/resources/core/addresses/actions.js +1 -0
  136. package/resources/core/addresses/actions.js.map +1 -1
  137. package/resources/core/addresses/actions.mjs +1 -0
  138. package/resources/core/addresses/actions.mjs.map +1 -1
  139. package/resources/core/audit-events.d.mts +22 -7
  140. package/resources/core/audit-events.d.mts.map +1 -1
  141. package/resources/core/audit-events.d.ts +22 -7
  142. package/resources/core/audit-events.d.ts.map +1 -1
  143. package/resources/core/audit-events.js +6 -0
  144. package/resources/core/audit-events.js.map +1 -1
  145. package/resources/core/audit-events.mjs +6 -0
  146. package/resources/core/audit-events.mjs.map +1 -1
  147. package/resources/core/core.d.mts +103 -0
  148. package/resources/core/core.d.mts.map +1 -1
  149. package/resources/core/core.d.ts +103 -0
  150. package/resources/core/core.d.ts.map +1 -1
  151. package/resources/core/core.js +19 -0
  152. package/resources/core/core.js.map +1 -1
  153. package/resources/core/core.mjs +19 -0
  154. package/resources/core/core.mjs.map +1 -1
  155. package/resources/core/email-logs.d.mts +6 -1
  156. package/resources/core/email-logs.d.mts.map +1 -1
  157. package/resources/core/email-logs.d.ts +6 -1
  158. package/resources/core/email-logs.d.ts.map +1 -1
  159. package/resources/core/email-logs.js +4 -0
  160. package/resources/core/email-logs.js.map +1 -1
  161. package/resources/core/email-logs.mjs +4 -0
  162. package/resources/core/email-logs.mjs.map +1 -1
  163. package/resources/core/index.d.mts +1 -1
  164. package/resources/core/index.d.mts.map +1 -1
  165. package/resources/core/index.d.ts +1 -1
  166. package/resources/core/index.d.ts.map +1 -1
  167. package/resources/core/index.js.map +1 -1
  168. package/resources/core/index.mjs.map +1 -1
  169. package/resources/core/request-logs.d.mts +21 -7
  170. package/resources/core/request-logs.d.mts.map +1 -1
  171. package/resources/core/request-logs.d.ts +21 -7
  172. package/resources/core/request-logs.d.ts.map +1 -1
  173. package/resources/core/request-logs.js +4 -0
  174. package/resources/core/request-logs.js.map +1 -1
  175. package/resources/core/request-logs.mjs +4 -0
  176. package/resources/core/request-logs.mjs.map +1 -1
  177. package/resources/core/sandboxes.d.mts +11 -3
  178. package/resources/core/sandboxes.d.mts.map +1 -1
  179. package/resources/core/sandboxes.d.ts +11 -3
  180. package/resources/core/sandboxes.d.ts.map +1 -1
  181. package/resources/core/sandboxes.js +8 -0
  182. package/resources/core/sandboxes.js.map +1 -1
  183. package/resources/core/sandboxes.mjs +8 -0
  184. package/resources/core/sandboxes.mjs.map +1 -1
  185. package/resources/finance/payment-terms.d.mts +10 -0
  186. package/resources/finance/payment-terms.d.mts.map +1 -1
  187. package/resources/finance/payment-terms.d.ts +10 -0
  188. package/resources/finance/payment-terms.d.ts.map +1 -1
  189. package/resources/finance/payment-terms.js +10 -0
  190. package/resources/finance/payment-terms.js.map +1 -1
  191. package/resources/finance/payment-terms.mjs +10 -0
  192. package/resources/finance/payment-terms.mjs.map +1 -1
  193. package/resources/identity/account-users/account-users.d.mts +26 -5
  194. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  195. package/resources/identity/account-users/account-users.d.ts +26 -5
  196. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  197. package/resources/identity/account-users/account-users.js +21 -0
  198. package/resources/identity/account-users/account-users.js.map +1 -1
  199. package/resources/identity/account-users/account-users.mjs +21 -0
  200. package/resources/identity/account-users/account-users.mjs.map +1 -1
  201. package/resources/identity/account-users/actions.d.mts +9 -0
  202. package/resources/identity/account-users/actions.d.mts.map +1 -1
  203. package/resources/identity/account-users/actions.d.ts +9 -0
  204. package/resources/identity/account-users/actions.d.ts.map +1 -1
  205. package/resources/identity/account-users/actions.js +9 -0
  206. package/resources/identity/account-users/actions.js.map +1 -1
  207. package/resources/identity/account-users/actions.mjs +9 -0
  208. package/resources/identity/account-users/actions.mjs.map +1 -1
  209. package/resources/identity/roles.d.mts +33 -17
  210. package/resources/identity/roles.d.mts.map +1 -1
  211. package/resources/identity/roles.d.ts +33 -17
  212. package/resources/identity/roles.d.ts.map +1 -1
  213. package/resources/identity/roles.js +20 -6
  214. package/resources/identity/roles.js.map +1 -1
  215. package/resources/identity/roles.mjs +20 -6
  216. package/resources/identity/roles.mjs.map +1 -1
  217. package/resources/index.d.mts +2 -1
  218. package/resources/index.d.mts.map +1 -1
  219. package/resources/index.d.ts +2 -1
  220. package/resources/index.d.ts.map +1 -1
  221. package/resources/index.js +3 -1
  222. package/resources/index.js.map +1 -1
  223. package/resources/index.mjs +1 -0
  224. package/resources/index.mjs.map +1 -1
  225. package/resources/messaging/announcements/actions.d.mts +76 -0
  226. package/resources/messaging/announcements/actions.d.mts.map +1 -0
  227. package/resources/messaging/announcements/actions.d.ts +76 -0
  228. package/resources/messaging/announcements/actions.d.ts.map +1 -0
  229. package/resources/messaging/announcements/actions.js +73 -0
  230. package/resources/messaging/announcements/actions.js.map +1 -0
  231. package/resources/messaging/announcements/actions.mjs +69 -0
  232. package/resources/messaging/announcements/actions.mjs.map +1 -0
  233. package/resources/messaging/announcements/announcements.d.mts +173 -0
  234. package/resources/messaging/announcements/announcements.d.mts.map +1 -0
  235. package/resources/messaging/announcements/announcements.d.ts +173 -0
  236. package/resources/messaging/announcements/announcements.d.ts.map +1 -0
  237. package/resources/messaging/announcements/announcements.js +52 -0
  238. package/resources/messaging/announcements/announcements.js.map +1 -0
  239. package/resources/messaging/announcements/announcements.mjs +47 -0
  240. package/resources/messaging/announcements/announcements.mjs.map +1 -0
  241. package/resources/messaging/announcements/index.d.mts +3 -0
  242. package/resources/messaging/announcements/index.d.mts.map +1 -0
  243. package/resources/messaging/announcements/index.d.ts +3 -0
  244. package/resources/messaging/announcements/index.d.ts.map +1 -0
  245. package/resources/messaging/announcements/index.js +9 -0
  246. package/resources/messaging/announcements/index.js.map +1 -0
  247. package/resources/messaging/announcements/index.mjs +4 -0
  248. package/resources/messaging/announcements/index.mjs.map +1 -0
  249. package/resources/messaging/announcements.d.mts +2 -0
  250. package/resources/messaging/announcements.d.mts.map +1 -0
  251. package/resources/messaging/announcements.d.ts +2 -0
  252. package/resources/messaging/announcements.d.ts.map +1 -0
  253. package/resources/messaging/announcements.js +6 -0
  254. package/resources/messaging/announcements.js.map +1 -0
  255. package/resources/messaging/announcements.mjs +3 -0
  256. package/resources/messaging/announcements.mjs.map +1 -0
  257. package/resources/messaging/blocks.d.mts +674 -0
  258. package/resources/messaging/blocks.d.mts.map +1 -0
  259. package/resources/messaging/blocks.d.ts +674 -0
  260. package/resources/messaging/blocks.d.ts.map +1 -0
  261. package/resources/messaging/blocks.js +61 -0
  262. package/resources/messaging/blocks.js.map +1 -0
  263. package/resources/messaging/blocks.mjs +57 -0
  264. package/resources/messaging/blocks.mjs.map +1 -0
  265. package/resources/messaging/conversations/actions.d.mts +422 -0
  266. package/resources/messaging/conversations/actions.d.mts.map +1 -0
  267. package/resources/messaging/conversations/actions.d.ts +422 -0
  268. package/resources/messaging/conversations/actions.d.ts.map +1 -0
  269. package/resources/messaging/conversations/actions.js +299 -0
  270. package/resources/messaging/conversations/actions.js.map +1 -0
  271. package/resources/messaging/conversations/actions.mjs +295 -0
  272. package/resources/messaging/conversations/actions.mjs.map +1 -0
  273. package/resources/messaging/conversations/attachments/actions.d.mts +87 -0
  274. package/resources/messaging/conversations/attachments/actions.d.mts.map +1 -0
  275. package/resources/messaging/conversations/attachments/actions.d.ts +87 -0
  276. package/resources/messaging/conversations/attachments/actions.d.ts.map +1 -0
  277. package/resources/messaging/conversations/attachments/actions.js +36 -0
  278. package/resources/messaging/conversations/attachments/actions.js.map +1 -0
  279. package/resources/messaging/conversations/attachments/actions.mjs +32 -0
  280. package/resources/messaging/conversations/attachments/actions.mjs.map +1 -0
  281. package/resources/messaging/conversations/attachments/attachments.d.mts +10 -0
  282. package/resources/messaging/conversations/attachments/attachments.d.mts.map +1 -0
  283. package/resources/messaging/conversations/attachments/attachments.d.ts +10 -0
  284. package/resources/messaging/conversations/attachments/attachments.d.ts.map +1 -0
  285. package/resources/messaging/conversations/attachments/attachments.js +17 -0
  286. package/resources/messaging/conversations/attachments/attachments.js.map +1 -0
  287. package/resources/messaging/conversations/attachments/attachments.mjs +12 -0
  288. package/resources/messaging/conversations/attachments/attachments.mjs.map +1 -0
  289. package/resources/messaging/conversations/attachments/index.d.mts +3 -0
  290. package/resources/messaging/conversations/attachments/index.d.mts.map +1 -0
  291. package/resources/messaging/conversations/attachments/index.d.ts +3 -0
  292. package/resources/messaging/conversations/attachments/index.d.ts.map +1 -0
  293. package/resources/messaging/conversations/attachments/index.js +9 -0
  294. package/resources/messaging/conversations/attachments/index.js.map +1 -0
  295. package/resources/messaging/conversations/attachments/index.mjs +4 -0
  296. package/resources/messaging/conversations/attachments/index.mjs.map +1 -0
  297. package/resources/messaging/conversations/attachments.d.mts +2 -0
  298. package/resources/messaging/conversations/attachments.d.mts.map +1 -0
  299. package/resources/messaging/conversations/attachments.d.ts +2 -0
  300. package/resources/messaging/conversations/attachments.d.ts.map +1 -0
  301. package/resources/messaging/conversations/attachments.js +6 -0
  302. package/resources/messaging/conversations/attachments.js.map +1 -0
  303. package/resources/messaging/conversations/attachments.mjs +3 -0
  304. package/resources/messaging/conversations/attachments.mjs.map +1 -0
  305. package/resources/messaging/conversations/conversations.d.mts +1367 -0
  306. package/resources/messaging/conversations/conversations.d.mts.map +1 -0
  307. package/resources/messaging/conversations/conversations.d.ts +1367 -0
  308. package/resources/messaging/conversations/conversations.d.ts.map +1 -0
  309. package/resources/messaging/conversations/conversations.js +113 -0
  310. package/resources/messaging/conversations/conversations.js.map +1 -0
  311. package/resources/messaging/conversations/conversations.mjs +108 -0
  312. package/resources/messaging/conversations/conversations.mjs.map +1 -0
  313. package/resources/messaging/conversations/index.d.mts +7 -0
  314. package/resources/messaging/conversations/index.d.mts.map +1 -0
  315. package/resources/messaging/conversations/index.d.ts +7 -0
  316. package/resources/messaging/conversations/index.d.ts.map +1 -0
  317. package/resources/messaging/conversations/index.js +17 -0
  318. package/resources/messaging/conversations/index.js.map +1 -0
  319. package/resources/messaging/conversations/index.mjs +8 -0
  320. package/resources/messaging/conversations/index.mjs.map +1 -0
  321. package/resources/messaging/conversations/links.d.mts +149 -0
  322. package/resources/messaging/conversations/links.d.mts.map +1 -0
  323. package/resources/messaging/conversations/links.d.ts +149 -0
  324. package/resources/messaging/conversations/links.d.ts.map +1 -0
  325. package/resources/messaging/conversations/links.js +72 -0
  326. package/resources/messaging/conversations/links.js.map +1 -0
  327. package/resources/messaging/conversations/links.mjs +68 -0
  328. package/resources/messaging/conversations/links.mjs.map +1 -0
  329. package/resources/messaging/conversations/messages.d.mts +353 -0
  330. package/resources/messaging/conversations/messages.d.mts.map +1 -0
  331. package/resources/messaging/conversations/messages.d.ts +353 -0
  332. package/resources/messaging/conversations/messages.d.ts.map +1 -0
  333. package/resources/messaging/conversations/messages.js +81 -0
  334. package/resources/messaging/conversations/messages.js.map +1 -0
  335. package/resources/messaging/conversations/messages.mjs +77 -0
  336. package/resources/messaging/conversations/messages.mjs.map +1 -0
  337. package/resources/messaging/conversations/participants/actions.d.mts +62 -0
  338. package/resources/messaging/conversations/participants/actions.d.mts.map +1 -0
  339. package/resources/messaging/conversations/participants/actions.d.ts +62 -0
  340. package/resources/messaging/conversations/participants/actions.d.ts.map +1 -0
  341. package/resources/messaging/conversations/participants/actions.js +35 -0
  342. package/resources/messaging/conversations/participants/actions.js.map +1 -0
  343. package/resources/messaging/conversations/participants/actions.mjs +31 -0
  344. package/resources/messaging/conversations/participants/actions.mjs.map +1 -0
  345. package/resources/messaging/conversations/participants/index.d.mts +3 -0
  346. package/resources/messaging/conversations/participants/index.d.mts.map +1 -0
  347. package/resources/messaging/conversations/participants/index.d.ts +3 -0
  348. package/resources/messaging/conversations/participants/index.d.ts.map +1 -0
  349. package/resources/messaging/conversations/participants/index.js +9 -0
  350. package/resources/messaging/conversations/participants/index.js.map +1 -0
  351. package/resources/messaging/conversations/participants/index.mjs +4 -0
  352. package/resources/messaging/conversations/participants/index.mjs.map +1 -0
  353. package/resources/messaging/conversations/participants/participants.d.mts +100 -0
  354. package/resources/messaging/conversations/participants/participants.d.mts.map +1 -0
  355. package/resources/messaging/conversations/participants/participants.d.ts +100 -0
  356. package/resources/messaging/conversations/participants/participants.d.ts.map +1 -0
  357. package/resources/messaging/conversations/participants/participants.js +64 -0
  358. package/resources/messaging/conversations/participants/participants.js.map +1 -0
  359. package/resources/messaging/conversations/participants/participants.mjs +59 -0
  360. package/resources/messaging/conversations/participants/participants.mjs.map +1 -0
  361. package/resources/messaging/conversations/participants.d.mts +2 -0
  362. package/resources/messaging/conversations/participants.d.mts.map +1 -0
  363. package/resources/messaging/conversations/participants.d.ts +2 -0
  364. package/resources/messaging/conversations/participants.d.ts.map +1 -0
  365. package/resources/messaging/conversations/participants.js +6 -0
  366. package/resources/messaging/conversations/participants.js.map +1 -0
  367. package/resources/messaging/conversations/participants.mjs +3 -0
  368. package/resources/messaging/conversations/participants.mjs.map +1 -0
  369. package/resources/messaging/conversations.d.mts +2 -0
  370. package/resources/messaging/conversations.d.mts.map +1 -0
  371. package/resources/messaging/conversations.d.ts +2 -0
  372. package/resources/messaging/conversations.d.ts.map +1 -0
  373. package/resources/messaging/conversations.js +6 -0
  374. package/resources/messaging/conversations.js.map +1 -0
  375. package/resources/messaging/conversations.mjs +3 -0
  376. package/resources/messaging/conversations.mjs.map +1 -0
  377. package/resources/messaging/email-domains/actions.d.mts +27 -0
  378. package/resources/messaging/email-domains/actions.d.mts.map +1 -0
  379. package/resources/messaging/email-domains/actions.d.ts +27 -0
  380. package/resources/messaging/email-domains/actions.d.ts.map +1 -0
  381. package/resources/messaging/email-domains/actions.js +32 -0
  382. package/resources/messaging/email-domains/actions.js.map +1 -0
  383. package/resources/messaging/email-domains/actions.mjs +28 -0
  384. package/resources/messaging/email-domains/actions.mjs.map +1 -0
  385. package/resources/messaging/email-domains/email-domains.d.mts +136 -0
  386. package/resources/messaging/email-domains/email-domains.d.mts.map +1 -0
  387. package/resources/messaging/email-domains/email-domains.d.ts +136 -0
  388. package/resources/messaging/email-domains/email-domains.d.ts.map +1 -0
  389. package/resources/messaging/email-domains/email-domains.js +70 -0
  390. package/resources/messaging/email-domains/email-domains.js.map +1 -0
  391. package/resources/messaging/email-domains/email-domains.mjs +65 -0
  392. package/resources/messaging/email-domains/email-domains.mjs.map +1 -0
  393. package/resources/messaging/email-domains/index.d.mts +3 -0
  394. package/resources/messaging/email-domains/index.d.mts.map +1 -0
  395. package/resources/messaging/email-domains/index.d.ts +3 -0
  396. package/resources/messaging/email-domains/index.d.ts.map +1 -0
  397. package/resources/messaging/email-domains/index.js +9 -0
  398. package/resources/messaging/email-domains/index.js.map +1 -0
  399. package/resources/messaging/email-domains/index.mjs +4 -0
  400. package/resources/messaging/email-domains/index.mjs.map +1 -0
  401. package/resources/messaging/email-domains.d.mts +2 -0
  402. package/resources/messaging/email-domains.d.mts.map +1 -0
  403. package/resources/messaging/email-domains.d.ts +2 -0
  404. package/resources/messaging/email-domains.d.ts.map +1 -0
  405. package/resources/messaging/email-domains.js +6 -0
  406. package/resources/messaging/email-domains.js.map +1 -0
  407. package/resources/messaging/email-domains.mjs +3 -0
  408. package/resources/messaging/email-domains.mjs.map +1 -0
  409. package/resources/messaging/email-inboxes.d.mts +375 -0
  410. package/resources/messaging/email-inboxes.d.mts.map +1 -0
  411. package/resources/messaging/email-inboxes.d.ts +375 -0
  412. package/resources/messaging/email-inboxes.d.ts.map +1 -0
  413. package/resources/messaging/email-inboxes.js +111 -0
  414. package/resources/messaging/email-inboxes.js.map +1 -0
  415. package/resources/messaging/email-inboxes.mjs +107 -0
  416. package/resources/messaging/email-inboxes.mjs.map +1 -0
  417. package/resources/messaging/groups/groups.d.mts +162 -0
  418. package/resources/messaging/groups/groups.d.mts.map +1 -0
  419. package/resources/messaging/groups/groups.d.ts +162 -0
  420. package/resources/messaging/groups/groups.d.ts.map +1 -0
  421. package/resources/messaging/groups/groups.js +110 -0
  422. package/resources/messaging/groups/groups.js.map +1 -0
  423. package/resources/messaging/groups/groups.mjs +105 -0
  424. package/resources/messaging/groups/groups.mjs.map +1 -0
  425. package/resources/messaging/groups/index.d.mts +3 -0
  426. package/resources/messaging/groups/index.d.mts.map +1 -0
  427. package/resources/messaging/groups/index.d.ts +3 -0
  428. package/resources/messaging/groups/index.d.ts.map +1 -0
  429. package/resources/messaging/groups/index.js +9 -0
  430. package/resources/messaging/groups/index.js.map +1 -0
  431. package/resources/messaging/groups/index.mjs +4 -0
  432. package/resources/messaging/groups/index.mjs.map +1 -0
  433. package/resources/messaging/groups/members.d.mts +84 -0
  434. package/resources/messaging/groups/members.d.mts.map +1 -0
  435. package/resources/messaging/groups/members.d.ts +84 -0
  436. package/resources/messaging/groups/members.d.ts.map +1 -0
  437. package/resources/messaging/groups/members.js +52 -0
  438. package/resources/messaging/groups/members.js.map +1 -0
  439. package/resources/messaging/groups/members.mjs +48 -0
  440. package/resources/messaging/groups/members.mjs.map +1 -0
  441. package/resources/messaging/groups.d.mts +2 -0
  442. package/resources/messaging/groups.d.mts.map +1 -0
  443. package/resources/messaging/groups.d.ts +2 -0
  444. package/resources/messaging/groups.d.ts.map +1 -0
  445. package/resources/messaging/groups.js +6 -0
  446. package/resources/messaging/groups.js.map +1 -0
  447. package/resources/messaging/groups.mjs +3 -0
  448. package/resources/messaging/groups.mjs.map +1 -0
  449. package/resources/messaging/index.d.mts +11 -0
  450. package/resources/messaging/index.d.mts.map +1 -0
  451. package/resources/messaging/index.d.ts +11 -0
  452. package/resources/messaging/index.d.ts.map +1 -0
  453. package/resources/messaging/index.js +25 -0
  454. package/resources/messaging/index.js.map +1 -0
  455. package/resources/messaging/index.mjs +12 -0
  456. package/resources/messaging/index.mjs.map +1 -0
  457. package/resources/messaging/messages/actions.d.mts +95 -0
  458. package/resources/messaging/messages/actions.d.mts.map +1 -0
  459. package/resources/messaging/messages/actions.d.ts +95 -0
  460. package/resources/messaging/messages/actions.d.ts.map +1 -0
  461. package/resources/messaging/messages/actions.js +79 -0
  462. package/resources/messaging/messages/actions.js.map +1 -0
  463. package/resources/messaging/messages/actions.mjs +75 -0
  464. package/resources/messaging/messages/actions.mjs.map +1 -0
  465. package/resources/messaging/messages/index.d.mts +3 -0
  466. package/resources/messaging/messages/index.d.mts.map +1 -0
  467. package/resources/messaging/messages/index.d.ts +3 -0
  468. package/resources/messaging/messages/index.d.ts.map +1 -0
  469. package/resources/messaging/messages/index.js +9 -0
  470. package/resources/messaging/messages/index.js.map +1 -0
  471. package/resources/messaging/messages/index.mjs +4 -0
  472. package/resources/messaging/messages/index.mjs.map +1 -0
  473. package/resources/messaging/messages/messages.d.mts +62 -0
  474. package/resources/messaging/messages/messages.d.mts.map +1 -0
  475. package/resources/messaging/messages/messages.d.ts +62 -0
  476. package/resources/messaging/messages/messages.d.ts.map +1 -0
  477. package/resources/messaging/messages/messages.js +41 -0
  478. package/resources/messaging/messages/messages.js.map +1 -0
  479. package/resources/messaging/messages/messages.mjs +36 -0
  480. package/resources/messaging/messages/messages.mjs.map +1 -0
  481. package/resources/messaging/messages.d.mts +2 -0
  482. package/resources/messaging/messages.d.mts.map +1 -0
  483. package/resources/messaging/messages.d.ts +2 -0
  484. package/resources/messaging/messages.d.ts.map +1 -0
  485. package/resources/messaging/messages.js +6 -0
  486. package/resources/messaging/messages.js.map +1 -0
  487. package/resources/messaging/messages.mjs +3 -0
  488. package/resources/messaging/messages.mjs.map +1 -0
  489. package/resources/messaging/messaging.d.mts +103 -0
  490. package/resources/messaging/messaging.d.mts.map +1 -0
  491. package/resources/messaging/messaging.d.ts +103 -0
  492. package/resources/messaging/messaging.d.ts.map +1 -0
  493. package/resources/messaging/messaging.js +65 -0
  494. package/resources/messaging/messaging.js.map +1 -0
  495. package/resources/messaging/messaging.mjs +60 -0
  496. package/resources/messaging/messaging.mjs.map +1 -0
  497. package/resources/messaging/notifications/actions.d.mts +92 -0
  498. package/resources/messaging/notifications/actions.d.mts.map +1 -0
  499. package/resources/messaging/notifications/actions.d.ts +92 -0
  500. package/resources/messaging/notifications/actions.d.ts.map +1 -0
  501. package/resources/messaging/notifications/actions.js +89 -0
  502. package/resources/messaging/notifications/actions.js.map +1 -0
  503. package/resources/messaging/notifications/actions.mjs +85 -0
  504. package/resources/messaging/notifications/actions.mjs.map +1 -0
  505. package/resources/messaging/notifications/index.d.mts +3 -0
  506. package/resources/messaging/notifications/index.d.mts.map +1 -0
  507. package/resources/messaging/notifications/index.d.ts +3 -0
  508. package/resources/messaging/notifications/index.d.ts.map +1 -0
  509. package/resources/messaging/notifications/index.js +9 -0
  510. package/resources/messaging/notifications/index.js.map +1 -0
  511. package/resources/messaging/notifications/index.mjs +4 -0
  512. package/resources/messaging/notifications/index.mjs.map +1 -0
  513. package/resources/messaging/notifications/notifications.d.mts +444 -0
  514. package/resources/messaging/notifications/notifications.d.mts.map +1 -0
  515. package/resources/messaging/notifications/notifications.d.ts +444 -0
  516. package/resources/messaging/notifications/notifications.d.ts.map +1 -0
  517. package/resources/messaging/notifications/notifications.js +108 -0
  518. package/resources/messaging/notifications/notifications.js.map +1 -0
  519. package/resources/messaging/notifications/notifications.mjs +103 -0
  520. package/resources/messaging/notifications/notifications.mjs.map +1 -0
  521. package/resources/messaging/notifications.d.mts +2 -0
  522. package/resources/messaging/notifications.d.mts.map +1 -0
  523. package/resources/messaging/notifications.d.ts +2 -0
  524. package/resources/messaging/notifications.d.ts.map +1 -0
  525. package/resources/messaging/notifications.js +6 -0
  526. package/resources/messaging/notifications.js.map +1 -0
  527. package/resources/messaging/notifications.mjs +3 -0
  528. package/resources/messaging/notifications.mjs.map +1 -0
  529. package/resources/messaging/preferences.d.mts +180 -0
  530. package/resources/messaging/preferences.d.mts.map +1 -0
  531. package/resources/messaging/preferences.d.ts +180 -0
  532. package/resources/messaging/preferences.d.ts.map +1 -0
  533. package/resources/messaging/preferences.js +47 -0
  534. package/resources/messaging/preferences.js.map +1 -0
  535. package/resources/messaging/preferences.mjs +43 -0
  536. package/resources/messaging/preferences.mjs.map +1 -0
  537. package/resources/messaging.d.mts +2 -0
  538. package/resources/messaging.d.mts.map +1 -0
  539. package/resources/messaging.d.ts +2 -0
  540. package/resources/messaging.d.ts.map +1 -0
  541. package/resources/messaging.js +6 -0
  542. package/resources/messaging.js.map +1 -0
  543. package/resources/messaging.mjs +3 -0
  544. package/resources/messaging.mjs.map +1 -0
  545. package/resources/operations/carriers/carriers.d.mts +20 -7
  546. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  547. package/resources/operations/carriers/carriers.d.ts +20 -7
  548. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  549. package/resources/operations/carriers/carriers.js +16 -1
  550. package/resources/operations/carriers/carriers.js.map +1 -1
  551. package/resources/operations/carriers/carriers.mjs +16 -1
  552. package/resources/operations/carriers/carriers.mjs.map +1 -1
  553. package/resources/operations/carriers/service-levels.d.mts +15 -0
  554. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  555. package/resources/operations/carriers/service-levels.d.ts +15 -0
  556. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  557. package/resources/operations/carriers/service-levels.js +15 -0
  558. package/resources/operations/carriers/service-levels.js.map +1 -1
  559. package/resources/operations/carriers/service-levels.mjs +15 -0
  560. package/resources/operations/carriers/service-levels.mjs.map +1 -1
  561. package/resources/operations/location-types.d.mts +6 -2
  562. package/resources/operations/location-types.d.mts.map +1 -1
  563. package/resources/operations/location-types.d.ts +6 -2
  564. package/resources/operations/location-types.d.ts.map +1 -1
  565. package/resources/operations/location-types.js +4 -0
  566. package/resources/operations/location-types.js.map +1 -1
  567. package/resources/operations/location-types.mjs +4 -0
  568. package/resources/operations/location-types.mjs.map +1 -1
  569. package/resources/operations/locations.d.mts +27 -10
  570. package/resources/operations/locations.d.mts.map +1 -1
  571. package/resources/operations/locations.d.ts +27 -10
  572. package/resources/operations/locations.d.ts.map +1 -1
  573. package/resources/operations/locations.js +18 -1
  574. package/resources/operations/locations.js.map +1 -1
  575. package/resources/operations/locations.mjs +18 -1
  576. package/resources/operations/locations.mjs.map +1 -1
  577. package/resources/operations/scanning-stations.d.mts +23 -6
  578. package/resources/operations/scanning-stations.d.mts.map +1 -1
  579. package/resources/operations/scanning-stations.d.ts +23 -6
  580. package/resources/operations/scanning-stations.d.ts.map +1 -1
  581. package/resources/operations/scanning-stations.js +18 -1
  582. package/resources/operations/scanning-stations.js.map +1 -1
  583. package/resources/operations/scanning-stations.mjs +18 -1
  584. package/resources/operations/scanning-stations.mjs.map +1 -1
  585. package/resources/operations/shipping-terms.d.mts +37 -2
  586. package/resources/operations/shipping-terms.d.mts.map +1 -1
  587. package/resources/operations/shipping-terms.d.ts +37 -2
  588. package/resources/operations/shipping-terms.d.ts.map +1 -1
  589. package/resources/operations/shipping-terms.js +37 -2
  590. package/resources/operations/shipping-terms.js.map +1 -1
  591. package/resources/operations/shipping-terms.mjs +37 -2
  592. package/resources/operations/shipping-terms.mjs.map +1 -1
  593. package/resources/sales/account-groups.d.mts +21 -1
  594. package/resources/sales/account-groups.d.mts.map +1 -1
  595. package/resources/sales/account-groups.d.ts +21 -1
  596. package/resources/sales/account-groups.d.ts.map +1 -1
  597. package/resources/sales/account-groups.js +21 -1
  598. package/resources/sales/account-groups.js.map +1 -1
  599. package/resources/sales/account-groups.mjs +21 -1
  600. package/resources/sales/account-groups.mjs.map +1 -1
  601. package/resources/sales/account-statuses.d.mts +1 -1
  602. package/resources/sales/account-statuses.d.ts +1 -1
  603. package/resources/sales/addresses.d.mts +36 -6
  604. package/resources/sales/addresses.d.mts.map +1 -1
  605. package/resources/sales/addresses.d.ts +36 -6
  606. package/resources/sales/addresses.d.ts.map +1 -1
  607. package/resources/sales/addresses.js +31 -1
  608. package/resources/sales/addresses.js.map +1 -1
  609. package/resources/sales/addresses.mjs +31 -1
  610. package/resources/sales/addresses.mjs.map +1 -1
  611. package/resources/sales/contacts/actions.d.mts +120 -0
  612. package/resources/sales/contacts/actions.d.mts.map +1 -0
  613. package/resources/sales/contacts/actions.d.ts +120 -0
  614. package/resources/sales/contacts/actions.d.ts.map +1 -0
  615. package/resources/sales/contacts/actions.js +38 -0
  616. package/resources/sales/contacts/actions.js.map +1 -0
  617. package/resources/sales/contacts/actions.mjs +34 -0
  618. package/resources/sales/contacts/actions.mjs.map +1 -0
  619. package/resources/sales/contacts/contacts.d.mts +10 -0
  620. package/resources/sales/contacts/contacts.d.mts.map +1 -0
  621. package/resources/sales/contacts/contacts.d.ts +10 -0
  622. package/resources/sales/contacts/contacts.d.ts.map +1 -0
  623. package/resources/sales/contacts/contacts.js +17 -0
  624. package/resources/sales/contacts/contacts.js.map +1 -0
  625. package/resources/sales/contacts/contacts.mjs +12 -0
  626. package/resources/sales/contacts/contacts.mjs.map +1 -0
  627. package/resources/sales/contacts/index.d.mts +3 -0
  628. package/resources/sales/contacts/index.d.mts.map +1 -0
  629. package/resources/sales/contacts/index.d.ts +3 -0
  630. package/resources/sales/contacts/index.d.ts.map +1 -0
  631. package/resources/sales/contacts/index.js +9 -0
  632. package/resources/sales/contacts/index.js.map +1 -0
  633. package/resources/sales/contacts/index.mjs +4 -0
  634. package/resources/sales/contacts/index.mjs.map +1 -0
  635. package/resources/sales/contacts.d.mts +2 -0
  636. package/resources/sales/contacts.d.mts.map +1 -0
  637. package/resources/sales/contacts.d.ts +2 -0
  638. package/resources/sales/contacts.d.ts.map +1 -0
  639. package/resources/sales/contacts.js +6 -0
  640. package/resources/sales/contacts.js.map +1 -0
  641. package/resources/sales/contacts.mjs +3 -0
  642. package/resources/sales/contacts.mjs.map +1 -0
  643. package/resources/sales/customers/actions.d.mts +3 -1
  644. package/resources/sales/customers/actions.d.mts.map +1 -1
  645. package/resources/sales/customers/actions.d.ts +3 -1
  646. package/resources/sales/customers/actions.d.ts.map +1 -1
  647. package/resources/sales/customers/actions.js +2 -0
  648. package/resources/sales/customers/actions.js.map +1 -1
  649. package/resources/sales/customers/actions.mjs +2 -0
  650. package/resources/sales/customers/actions.mjs.map +1 -1
  651. package/resources/sales/customers/customers.d.mts +59 -566
  652. package/resources/sales/customers/customers.d.mts.map +1 -1
  653. package/resources/sales/customers/customers.d.ts +59 -566
  654. package/resources/sales/customers/customers.d.ts.map +1 -1
  655. package/resources/sales/customers/customers.js +52 -13
  656. package/resources/sales/customers/customers.js.map +1 -1
  657. package/resources/sales/customers/customers.mjs +52 -13
  658. package/resources/sales/customers/customers.mjs.map +1 -1
  659. package/resources/sales/customers/index.d.mts +1 -1
  660. package/resources/sales/customers/index.d.mts.map +1 -1
  661. package/resources/sales/customers/index.d.ts +1 -1
  662. package/resources/sales/customers/index.d.ts.map +1 -1
  663. package/resources/sales/customers/index.js.map +1 -1
  664. package/resources/sales/customers/index.mjs.map +1 -1
  665. package/resources/sales/index.d.mts +2 -1
  666. package/resources/sales/index.d.mts.map +1 -1
  667. package/resources/sales/index.d.ts +2 -1
  668. package/resources/sales/index.d.ts.map +1 -1
  669. package/resources/sales/index.js +5 -3
  670. package/resources/sales/index.js.map +1 -1
  671. package/resources/sales/index.mjs +1 -0
  672. package/resources/sales/index.mjs.map +1 -1
  673. package/resources/sales/priorities.d.mts +5 -1
  674. package/resources/sales/priorities.d.mts.map +1 -1
  675. package/resources/sales/priorities.d.ts +5 -1
  676. package/resources/sales/priorities.d.ts.map +1 -1
  677. package/resources/sales/priorities.js +4 -0
  678. package/resources/sales/priorities.js.map +1 -1
  679. package/resources/sales/priorities.mjs +4 -0
  680. package/resources/sales/priorities.mjs.map +1 -1
  681. package/resources/sales/sales-orders.d.mts +58 -46
  682. package/resources/sales/sales-orders.d.mts.map +1 -1
  683. package/resources/sales/sales-orders.d.ts +58 -46
  684. package/resources/sales/sales-orders.d.ts.map +1 -1
  685. package/resources/sales/sales-orders.js +18 -4
  686. package/resources/sales/sales-orders.js.map +1 -1
  687. package/resources/sales/sales-orders.mjs +18 -4
  688. package/resources/sales/sales-orders.mjs.map +1 -1
  689. package/resources/sales/sales.d.mts +6 -2
  690. package/resources/sales/sales.d.mts.map +1 -1
  691. package/resources/sales/sales.d.ts +6 -2
  692. package/resources/sales/sales.d.ts.map +1 -1
  693. package/resources/sales/sales.js +4 -0
  694. package/resources/sales/sales.js.map +1 -1
  695. package/resources/sales/sales.mjs +4 -0
  696. package/resources/sales/sales.mjs.map +1 -1
  697. package/resources/settings/integrations.d.mts +12 -1
  698. package/resources/settings/integrations.d.mts.map +1 -1
  699. package/resources/settings/integrations.d.ts +12 -1
  700. package/resources/settings/integrations.d.ts.map +1 -1
  701. package/resources/settings/integrations.js +12 -1
  702. package/resources/settings/integrations.js.map +1 -1
  703. package/resources/settings/integrations.mjs +12 -1
  704. package/resources/settings/integrations.mjs.map +1 -1
  705. package/src/client.ts +22 -2
  706. package/src/resources/auth/api-keys/actions.ts +2 -0
  707. package/src/resources/auth/api-keys/api-keys.ts +12 -3
  708. package/src/resources/catalog/item-categories/item-categories.ts +17 -1
  709. package/src/resources/catalog/item-categories/properties.ts +4 -0
  710. package/src/resources/catalog/items/attributes.ts +4 -0
  711. package/src/resources/catalog/items/items.ts +8 -0
  712. package/src/resources/catalog/materials.ts +66 -10
  713. package/src/resources/catalog/parts.ts +30 -0
  714. package/src/resources/catalog/product-lines.ts +18 -1
  715. package/src/resources/catalog/products.ts +52 -9
  716. package/src/resources/catalog/properties/attributes.ts +12 -0
  717. package/src/resources/catalog/properties/properties.ts +10 -0
  718. package/src/resources/catalog/unit-groups/unit-groups.ts +29 -7
  719. package/src/resources/catalog/unit-groups/units.ts +12 -0
  720. package/src/resources/catalog/units.ts +56 -26
  721. package/src/resources/core/addresses/actions.ts +1 -0
  722. package/src/resources/core/audit-events.ts +114 -11
  723. package/src/resources/core/core.ts +602 -0
  724. package/src/resources/core/email-logs.ts +6 -1
  725. package/src/resources/core/index.ts +1 -1
  726. package/src/resources/core/request-logs.ts +22 -7
  727. package/src/resources/core/sandboxes.ts +11 -3
  728. package/src/resources/finance/payment-terms.ts +10 -0
  729. package/src/resources/identity/account-users/account-users.ts +26 -5
  730. package/src/resources/identity/account-users/actions.ts +9 -0
  731. package/src/resources/identity/roles.ts +34 -18
  732. package/src/resources/index.ts +2 -1
  733. package/src/resources/messaging/announcements/actions.ts +119 -0
  734. package/src/resources/messaging/announcements/announcements.ts +234 -0
  735. package/src/resources/messaging/announcements/index.ts +10 -0
  736. package/src/resources/messaging/announcements.ts +3 -0
  737. package/src/resources/messaging/blocks.ts +826 -0
  738. package/src/resources/messaging/conversations/actions.ts +766 -0
  739. package/src/resources/messaging/conversations/attachments/actions.ts +116 -0
  740. package/src/resources/messaging/conversations/attachments/attachments.ts +25 -0
  741. package/src/resources/messaging/conversations/attachments/index.ts +9 -0
  742. package/src/resources/messaging/conversations/attachments.ts +3 -0
  743. package/src/resources/messaging/conversations/conversations.ts +2500 -0
  744. package/src/resources/messaging/conversations/index.ts +81 -0
  745. package/src/resources/messaging/conversations/links.ts +692 -0
  746. package/src/resources/messaging/conversations/messages.ts +929 -0
  747. package/src/resources/messaging/conversations/participants/actions.ts +92 -0
  748. package/src/resources/messaging/conversations/participants/index.ts +10 -0
  749. package/src/resources/messaging/conversations/participants/participants.ts +150 -0
  750. package/src/resources/messaging/conversations/participants.ts +3 -0
  751. package/src/resources/messaging/conversations.ts +3 -0
  752. package/src/resources/messaging/email-domains/actions.ts +32 -0
  753. package/src/resources/messaging/email-domains/email-domains.ts +170 -0
  754. package/src/resources/messaging/email-domains/index.ts +10 -0
  755. package/src/resources/messaging/email-domains.ts +3 -0
  756. package/src/resources/messaging/email-inboxes.ts +462 -0
  757. package/src/resources/messaging/groups/groups.ts +211 -0
  758. package/src/resources/messaging/groups/index.ts +17 -0
  759. package/src/resources/messaging/groups/members.ts +113 -0
  760. package/src/resources/messaging/groups.ts +3 -0
  761. package/src/resources/messaging/index.ts +116 -0
  762. package/src/resources/messaging/messages/actions.ts +184 -0
  763. package/src/resources/messaging/messages/index.ts +10 -0
  764. package/src/resources/messaging/messages/messages.ts +108 -0
  765. package/src/resources/messaging/messages.ts +3 -0
  766. package/src/resources/messaging/messaging.ts +353 -0
  767. package/src/resources/messaging/notifications/actions.ts +139 -0
  768. package/src/resources/messaging/notifications/index.ts +24 -0
  769. package/src/resources/messaging/notifications/notifications.ts +1057 -0
  770. package/src/resources/messaging/notifications.ts +3 -0
  771. package/src/resources/messaging/preferences.ts +215 -0
  772. package/src/resources/messaging.ts +3 -0
  773. package/src/resources/operations/carriers/carriers.ts +20 -7
  774. package/src/resources/operations/carriers/service-levels.ts +15 -0
  775. package/src/resources/operations/location-types.ts +6 -2
  776. package/src/resources/operations/locations.ts +27 -10
  777. package/src/resources/operations/scanning-stations.ts +23 -6
  778. package/src/resources/operations/shipping-terms.ts +37 -2
  779. package/src/resources/sales/account-groups.ts +21 -1
  780. package/src/resources/sales/account-statuses.ts +1 -1
  781. package/src/resources/sales/addresses.ts +36 -6
  782. package/src/resources/sales/contacts/actions.ts +150 -0
  783. package/src/resources/sales/contacts/contacts.ts +27 -0
  784. package/src/resources/sales/contacts/index.ts +10 -0
  785. package/src/resources/sales/contacts.ts +3 -0
  786. package/src/resources/sales/customers/actions.ts +4 -0
  787. package/src/resources/sales/customers/customers.ts +62 -679
  788. package/src/resources/sales/customers/index.ts +0 -15
  789. package/src/resources/sales/index.ts +1 -15
  790. package/src/resources/sales/priorities.ts +5 -1
  791. package/src/resources/sales/sales-orders.ts +58 -48
  792. package/src/resources/sales/sales.ts +6 -30
  793. package/src/resources/settings/integrations.ts +12 -1
  794. package/src/version.ts +1 -1
  795. package/version.d.mts +1 -1
  796. package/version.d.ts +1 -1
  797. package/version.js +1 -1
  798. package/version.mjs +1 -1
@@ -0,0 +1,1367 @@
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import * as CoreAPI from "../../core/core.mjs";
3
+ import * as RequestLogsAPI from "../../core/request-logs.mjs";
4
+ import * as APIKeysAPI from "../../auth/api-keys/api-keys.mjs";
5
+ import * as ActionsAPI from "./actions.mjs";
6
+ import { ActionArchiveParams, ActionAssignParams, ActionHideParams, ActionLeaveParams, ActionMuteParams, ActionReadParams, ActionRedactParams, ActionReportParams, ActionSetLegalHoldParams, ActionSetStatusParams, ActionUnarchiveParams, ActionUnhideParams, ActionUnmuteParams, Actions, AssignConversationRequest, MarkConversationReadRequest, MuteConversationRequest, ReportConversationRequest, SetLegalHoldRequest, SetWorkflowStatusRequest } from "./actions.mjs";
7
+ import * as LinksAPI from "./links.mjs";
8
+ import { AddConversationLinkRequest, ConversationLink, LinkCreateParams, LinkDeleteParams, LinkDeleteResponse, LinkListParams, Links, ListConversationLink } from "./links.mjs";
9
+ import * as MessagesAPI from "./messages.mjs";
10
+ import { ListMessage, MessageAttachmentInput, MessageCreateParams, MessageListParams, Messages, SendMessageRequest } from "./messages.mjs";
11
+ import * as AttachmentsAPI from "./attachments/attachments.mjs";
12
+ import { Attachments } from "./attachments/attachments.mjs";
13
+ import * as ParticipantsAPI from "./participants/participants.mjs";
14
+ import { AddParticipantRequest, ParticipantCreateParams, ParticipantDeleteParams, ParticipantDeleteResponse, Participants } from "./participants/participants.mjs";
15
+ import { APIPromise } from "../../../core/api-promise.mjs";
16
+ import { RequestOptions } from "../../../internal/request-options.mjs";
17
+ /**
18
+ * Create conversations, send and read messages (1:1 direct messages).
19
+ */
20
+ export declare class Conversations extends APIResource {
21
+ actions: ActionsAPI.Actions;
22
+ links: LinksAPI.Links;
23
+ messages: MessagesAPI.Messages;
24
+ participants: ParticipantsAPI.Participants;
25
+ attachments: AttachmentsAPI.Attachments;
26
+ /**
27
+ * Starts a conversation between participants.
28
+ *
29
+ * This endpoint requires the permission: `messaging:create`.
30
+ *
31
+ * @example
32
+ * ```ts
33
+ * const conversation =
34
+ * await client.messaging.conversations.create({
35
+ * type: 'group',
36
+ * group_id: 'cvgp_018e88072d1320808dc97abc',
37
+ * participant_account_user_ids: [
38
+ * 'acus_01ea9983ddb41dacc44ecf997c',
39
+ * ],
40
+ * title: 'Order #1042 — shipping question',
41
+ * topic_resource_id: 'or_01d5034136c3ccc048abecc312',
42
+ * topic_resource_type: 'sales_order',
43
+ * });
44
+ * ```
45
+ */
46
+ create(params: ConversationCreateParams, options?: RequestOptions): APIPromise<Conversation>;
47
+ /**
48
+ * Returns the caller's conversations, most-recently-active first.
49
+ *
50
+ * This endpoint requires the permission: `messaging:read`.
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const listConversation =
55
+ * await client.messaging.conversations.list();
56
+ * ```
57
+ */
58
+ list(query?: ConversationListParams | null | undefined, options?: RequestOptions): APIPromise<ListConversation>;
59
+ /**
60
+ * Returns one conversation (with participants) the caller belongs to.
61
+ *
62
+ * This endpoint requires the permission: `messaging:read`.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const conversation =
67
+ * await client.messaging.conversations.retrieve(
68
+ * 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
69
+ * );
70
+ * ```
71
+ */
72
+ retrieve(id: string, query?: ConversationRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Conversation>;
73
+ /**
74
+ * Renames a conversation.
75
+ *
76
+ * This endpoint requires the permission: `messaging:update`.
77
+ *
78
+ * @example
79
+ * ```ts
80
+ * const conversation =
81
+ * await client.messaging.conversations.update(
82
+ * 'cv_01h9z8q1w2e3r4t5y6u7i8cv',
83
+ * { title: 'Fulfillment war room' },
84
+ * );
85
+ * ```
86
+ */
87
+ update(id: string, params?: ConversationUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Conversation>;
88
+ }
89
+ /**
90
+ * A single tool invocation performed by an agent during a run.
91
+ *
92
+ * Each action records the tool that was called, its input and output, and any
93
+ * human review decision.
94
+ */
95
+ export interface AgentAction {
96
+ /**
97
+ * Agent action ID.
98
+ */
99
+ id: string;
100
+ /**
101
+ * When this action was created.
102
+ */
103
+ created_at: string;
104
+ /**
105
+ * Longer description of what the action does.
106
+ */
107
+ description: string | null;
108
+ /**
109
+ * Entity is a polymorphic reference to any resource in the system.
110
+ */
111
+ entity: CoreAPI.Entity | null;
112
+ /**
113
+ * Error message if the action failed.
114
+ */
115
+ error_message: string | null;
116
+ /**
117
+ * When the action was executed.
118
+ */
119
+ executed_at: string | null;
120
+ /**
121
+ * Arguments passed to the tool, as JSON.
122
+ *
123
+ * Shape depends on `tool`. Encoded as a JSON value (object, array, string, number,
124
+ * boolean, or null), not a JSON-encoded string.
125
+ */
126
+ input: unknown | null;
127
+ /**
128
+ * Short human-readable label summarizing the action.
129
+ */
130
+ label: string | null;
131
+ /**
132
+ * Resource type identifier.
133
+ */
134
+ object: 'agent_action';
135
+ /**
136
+ * Result returned by the tool, as JSON.
137
+ *
138
+ * Recorded when the tool runs, so it is present even while the action is still
139
+ * `pending_review` or `auto_approved`; the shape depends on `tool`, and it is `{}`
140
+ * when the tool returned no output. Encoded as a JSON value (object, array,
141
+ * string, number, boolean, or null), not a JSON-encoded string.
142
+ */
143
+ output: unknown | null;
144
+ /**
145
+ * Whether this action must be reviewed by a human before it can execute.
146
+ */
147
+ review_requirement: 'not_required' | 'required';
148
+ /**
149
+ * When a human review decision was recorded for the action.
150
+ */
151
+ reviewed_at: string | null;
152
+ /**
153
+ * Reference to an actor — the user, API key, agent, or group identity associated
154
+ * with an action.
155
+ */
156
+ reviewed_by: RequestLogsAPI.Actor | null;
157
+ /**
158
+ * A single execution of an agent, from trigger through completion.
159
+ */
160
+ run: AgentRun | null;
161
+ /**
162
+ * Current action status.
163
+ *
164
+ * - `pending_review`: awaiting human review before it can execute.
165
+ * - `auto_approved`: automatically approved by policy.
166
+ * - `approved`: manually approved by a user.
167
+ * - `rejected`: rejected by a user; will not execute.
168
+ * - `executed`: successfully executed.
169
+ * - `failed`: errored during execution; see `error_message`.
170
+ */
171
+ status: 'pending_review' | 'auto_approved' | 'approved' | 'rejected' | 'executed' | 'failed';
172
+ /**
173
+ * The tool the agent invoked for this action.
174
+ *
175
+ * - `create_artifact`: create an artifact such as a report, document, or data
176
+ * export.
177
+ * - `read_doc`: read Augno documentation pages.
178
+ * - `fetch_url`: fetch content from a public URL.
179
+ * - `draft_reply`: propose a reply to the case's external party as a draft held
180
+ * for human approval (not sent).
181
+ * - `send_email`: send an email reply through the conversation's bound inbox.
182
+ */
183
+ tool: 'create_artifact' | 'read_doc' | 'fetch_url' | 'send_email' | 'draft_reply';
184
+ /**
185
+ * When this action was last updated.
186
+ */
187
+ updated_at: string;
188
+ }
189
+ /**
190
+ * An AI agent available to the account.
191
+ *
192
+ * The definition describes what the agent does, how its runs are triggered, the
193
+ * tools it can use, and whether it is currently enabled for the account.
194
+ */
195
+ export interface AgentDefinition {
196
+ /**
197
+ * Agent definition ID.
198
+ */
199
+ id: string;
200
+ /**
201
+ * Category grouping for the agent (e.g. `order_processing`), used to organize
202
+ * agents in the UI.
203
+ */
204
+ category_code: string;
205
+ /**
206
+ * Agent-level configuration controlling LLM behavior and trigger settings.
207
+ *
208
+ * Distinct from per-tool configuration (`tools[].config`), which configures
209
+ * individual tools attached to the agent.
210
+ */
211
+ config: AgentDefinitionConfig | null;
212
+ /**
213
+ * Creation timestamp.
214
+ */
215
+ created_at: string;
216
+ /**
217
+ * Whether the agent is provided by Augno or created in this account.
218
+ *
219
+ * - `system`: provided by Augno; cannot be edited or deleted.
220
+ * - `custom`: created by a user in this account.
221
+ */
222
+ definition_type: 'system' | 'custom';
223
+ /**
224
+ * Description of what the agent does.
225
+ */
226
+ description: string | null;
227
+ /**
228
+ * Whether the current user can edit this agent definition.
229
+ *
230
+ * Always `read_only` for `system` definitions.
231
+ */
232
+ editability: 'editable' | 'read_only';
233
+ /**
234
+ * Human-readable name of the agent.
235
+ */
236
+ name: string;
237
+ /**
238
+ * Resource type identifier.
239
+ */
240
+ object: 'agent_definition';
241
+ /**
242
+ * A named set of permissions that can be assigned to users to control what they
243
+ * can access.
244
+ */
245
+ role: APIKeysAPI.Role | null;
246
+ /**
247
+ * URL-friendly identifier for the agent.
248
+ */
249
+ slug: string;
250
+ /**
251
+ * Whether this agent is enabled for the current account.
252
+ *
253
+ * Activation is per-account: a `system` agent shared across accounts can be
254
+ * `active` for one account and `inactive` for another. An `inactive` agent does
255
+ * not run.
256
+ */
257
+ status: 'active' | 'inactive';
258
+ /**
259
+ * List represents a paginated list of resources.
260
+ */
261
+ tools: ListAgentDefinitionTool | null;
262
+ /**
263
+ * How runs of this agent are initiated.
264
+ *
265
+ * - `scheduled`: runs on a cron schedule (see
266
+ * `config.trigger_config.cron_schedule`).
267
+ * - `event`: runs in response to platform events (see
268
+ * `config.trigger_config.event_filters`).
269
+ * - `manual`: runs only when explicitly invoked.
270
+ * - `chat`: runs in response to a chat message; the run is linked to a
271
+ * conversation and posts its reply back into it.
272
+ */
273
+ trigger_type: 'scheduled' | 'manual' | 'event' | 'chat';
274
+ /**
275
+ * Last updated timestamp.
276
+ */
277
+ updated_at: string;
278
+ }
279
+ /**
280
+ * Agent-level configuration controlling LLM behavior and trigger settings.
281
+ *
282
+ * Distinct from per-tool configuration (`tools[].config`), which configures
283
+ * individual tools attached to the agent.
284
+ */
285
+ export interface AgentDefinitionConfig {
286
+ /**
287
+ * Per-endpoint-tool human-review overrides, keyed by tool slug.
288
+ *
289
+ * When an entry is `true`, the run pauses in `awaiting_approval` each time the
290
+ * agent calls that endpoint-tool until it is approved via the Continue Agent Run
291
+ * endpoint. Slugs absent from the map do not require review.
292
+ */
293
+ endpoint_tool_review: {
294
+ [key: string]: boolean;
295
+ };
296
+ /**
297
+ * API-endpoint tools the agent may discover and use, by slug (e.g.
298
+ * `create_account_group`).
299
+ *
300
+ * These correspond to tools listed by the List Tools endpoint with category
301
+ * `api_endpoint`. A single entry `*` grants the entire endpoint-tool catalog.
302
+ */
303
+ endpoint_tool_slugs: Array<string>;
304
+ /**
305
+ * Resource type identifier.
306
+ */
307
+ object: 'agent_definition_config';
308
+ /**
309
+ * System prompt / instructions for the agent.
310
+ */
311
+ system_prompt: string | null;
312
+ /**
313
+ * LLM sampling temperature between 0 and 1.
314
+ */
315
+ temperature: number | null;
316
+ /**
317
+ * Intelligence and cost tier for the agent's reasoning.
318
+ *
319
+ * Selects how capable and expensive a model the agent uses without pinning a
320
+ * specific model; higher tiers reason better but cost more. Leaving it unset uses
321
+ * the default tier.
322
+ *
323
+ * - `frontier`: the most capable tier, for multi-step planning, ambiguous agent
324
+ * work, and hard coding or architecture tasks.
325
+ * - `high`: the default tier, for normal planning, code edits, synthesis, and
326
+ * customer-facing reasoning.
327
+ * - `balanced`: for research, summarization, classification, structured
328
+ * extraction, and light tool use.
329
+ * - `cheap`: for simple transforms, validation, formatting, and routing.
330
+ */
331
+ tier: 'frontier' | 'high' | 'balanced' | 'cheap' | 'legacy' | null;
332
+ /**
333
+ * Trigger-type-specific configuration.
334
+ *
335
+ * Which fields are populated depends on the agent's `trigger_type`:
336
+ *
337
+ * - `scheduled`: `cron_schedule` (and optionally `timezone`) is set.
338
+ * - `event`: `event_filters` is set.
339
+ * - `manual`: all fields are empty.
340
+ */
341
+ trigger_config: TriggerConfig | null;
342
+ }
343
+ /**
344
+ * Tool attached to an agent definition.
345
+ *
346
+ * Pairs an AvailableTool with agent-specific config values.
347
+ */
348
+ export interface AgentDefinitionTool {
349
+ /**
350
+ * Agent definition tool ID.
351
+ */
352
+ id: string;
353
+ /**
354
+ * Instance-specific configuration for this tool.
355
+ *
356
+ * Must conform to the tool's `config_schema`. Encoded as a JSON value (object,
357
+ * array, string, number, boolean, or null), not a JSON-encoded string.
358
+ */
359
+ config: unknown | null;
360
+ /**
361
+ * Resource type identifier.
362
+ */
363
+ object: 'agent_definition_tool';
364
+ /**
365
+ * Whether calls to this tool must be approved by a user before they execute.
366
+ *
367
+ * When `required`, the run pauses in the `awaiting_approval` status each time the
368
+ * agent invokes this tool; approve or allow the tool via the Continue Agent Run
369
+ * endpoint to proceed.
370
+ */
371
+ review_requirement: 'not_required' | 'required';
372
+ /**
373
+ * Sort order within the agent.
374
+ */
375
+ sort_order: number;
376
+ /**
377
+ * Platform tool that can be attached to agents.
378
+ */
379
+ tool: AvailableTool;
380
+ }
381
+ /**
382
+ * A single execution of an agent, from trigger through completion.
383
+ */
384
+ export interface AgentRun {
385
+ /**
386
+ * Agent run ID.
387
+ */
388
+ id: string;
389
+ /**
390
+ * List represents a paginated list of resources.
391
+ */
392
+ actions: ListAgentAction | null;
393
+ /**
394
+ * When the run completed.
395
+ */
396
+ completed_at: string | null;
397
+ /**
398
+ * When this run was created.
399
+ */
400
+ created_at: string;
401
+ /**
402
+ * An AI agent available to the account.
403
+ *
404
+ * The definition describes what the agent does, how its runs are triggered, the
405
+ * tools it can use, and whether it is currently enabled for the account.
406
+ */
407
+ definition: AgentDefinition | null;
408
+ /**
409
+ * Duration in milliseconds.
410
+ */
411
+ duration_ms: number | null;
412
+ /**
413
+ * Error message if the run failed.
414
+ */
415
+ error_message: string | null;
416
+ /**
417
+ * Input provided to the agent at the start of the run, as JSON. Encoded as a JSON
418
+ * value (object, array, string, number, boolean, or null), not a JSON-encoded
419
+ * string.
420
+ */
421
+ input: unknown | null;
422
+ /**
423
+ * Resource type identifier.
424
+ */
425
+ object: 'agent_run';
426
+ /**
427
+ * Final output produced by the agent, as JSON.
428
+ *
429
+ * Populated only once the run has completed successfully. Encoded as a JSON value
430
+ * (object, array, string, number, boolean, or null), not a JSON-encoded string.
431
+ */
432
+ output: unknown | null;
433
+ /**
434
+ * When the run started executing.
435
+ */
436
+ started_at: string | null;
437
+ /**
438
+ * Current run status.
439
+ *
440
+ * - `pending`: queued but not yet started.
441
+ * - `running`: currently executing.
442
+ * - `awaiting_input`: paused, waiting for user input before continuing.
443
+ * - `awaiting_approval`: paused, waiting for a pending action to be approved.
444
+ * - `completed`: finished successfully.
445
+ * - `failed`: stopped after an error; see `error_message`.
446
+ * - `cancelled`: stopped before completion by a user.
447
+ */
448
+ status: 'pending' | 'running' | 'completed' | 'failed' | 'cancelled' | 'awaiting_input' | 'awaiting_approval';
449
+ /**
450
+ * List represents a paginated list of resources.
451
+ */
452
+ steps: ListAgentRunStep | null;
453
+ /**
454
+ * How this run was initiated.
455
+ *
456
+ * - `scheduled`: started by the agent's cron schedule.
457
+ * - `event`: started in response to a platform event.
458
+ * - `manual`: started by an explicit request; see `triggered_by`.
459
+ * - `chat`: started by a message in a conversation, with the agent's reply posted
460
+ * back into that conversation.
461
+ */
462
+ trigger_type: 'scheduled' | 'manual' | 'event' | 'chat';
463
+ /**
464
+ * Reference to an actor — the user, API key, agent, or group identity associated
465
+ * with an action.
466
+ */
467
+ triggered_by: RequestLogsAPI.Actor | null;
468
+ /**
469
+ * When this run was last updated.
470
+ */
471
+ updated_at: string;
472
+ }
473
+ /**
474
+ * A single event in an agent run's execution timeline.
475
+ */
476
+ export interface AgentRunStep {
477
+ /**
478
+ * Agent run step ID.
479
+ */
480
+ id: string;
481
+ /**
482
+ * Reference to an actor — the user, API key, agent, or group identity associated
483
+ * with an action.
484
+ */
485
+ actor: RequestLogsAPI.Actor | null;
486
+ /**
487
+ * Text payload for the step, such as a message body or a tool result.
488
+ */
489
+ content: string | null;
490
+ /**
491
+ * When this step was created.
492
+ */
493
+ created_at: string;
494
+ /**
495
+ * Duration in milliseconds.
496
+ */
497
+ duration_ms: number | null;
498
+ /**
499
+ * Additional structured data for the step, as JSON. Encoded as a JSON value
500
+ * (object, array, string, number, boolean, or null), not a JSON-encoded string.
501
+ */
502
+ metadata: unknown | null;
503
+ /**
504
+ * Resource type identifier.
505
+ */
506
+ object: 'agent_run_step';
507
+ /**
508
+ * Zero-based position of this step within the run's timeline.
509
+ */
510
+ sequence: number;
511
+ /**
512
+ * The kind of timeline event (e.g. `trigger_received`, `user_message`,
513
+ * `assistant_message`, `tool_call`, `tool_result`, `awaiting_approval`,
514
+ * `completion`, `error`).
515
+ */
516
+ step_type: string;
517
+ /**
518
+ * Short title for the step.
519
+ */
520
+ title: string;
521
+ }
522
+ /**
523
+ * Platform tool that can be attached to agents.
524
+ */
525
+ export interface AvailableTool {
526
+ /**
527
+ * Category grouping for the tool (e.g. `built_in`).
528
+ */
529
+ category: string;
530
+ /**
531
+ * JSON schema describing the configuration options this tool accepts.
532
+ *
533
+ * Defines the shape of the `config` field on AgentDefinitionTool.
534
+ *
535
+ * For example:
536
+ *
537
+ * ````json
538
+ * {
539
+ * "type": "object",
540
+ * "properties": {
541
+ * "max_results": {
542
+ * "type": "integer",
543
+ * "default": 10
544
+ * }
545
+ * }
546
+ * }
547
+ * ``` Encoded as a JSON value (object, array, string, number, boolean, or null), not a JSON-encoded string.
548
+ * ````
549
+ */
550
+ config_schema: unknown | null;
551
+ /**
552
+ * Tool description.
553
+ */
554
+ description: string | null;
555
+ /**
556
+ * Whether invoking this tool changes server state.
557
+ *
558
+ * True for any `api_endpoint` tool whose underlying operation is not a read
559
+ * (non-GET); always false for `built_in` tools. The agent-configuration UI uses
560
+ * this to default such tools to requiring human review.
561
+ */
562
+ mutating: boolean;
563
+ /**
564
+ * Tool name.
565
+ */
566
+ name: string;
567
+ /**
568
+ * Resource type identifier.
569
+ */
570
+ object: 'available_tool';
571
+ /**
572
+ * Permission scopes the agent's role must hold for this tool to be usable (e.g.
573
+ * `products:read`).
574
+ */
575
+ required_permissions: Array<string>;
576
+ /**
577
+ * Role type the caller must have for this tool, when the operation is gated by
578
+ * role rather than a permission (e.g. `admin`).
579
+ */
580
+ required_role_type: string | null;
581
+ /**
582
+ * A stable identifier used when attaching the tool to an agent.
583
+ */
584
+ slug: string;
585
+ }
586
+ /**
587
+ * A conversation thread the caller participates in.
588
+ */
589
+ export interface Conversation {
590
+ /**
591
+ * Conversation ID.
592
+ */
593
+ id: string;
594
+ /**
595
+ * Reference to an actor — the user, API key, agent, or group identity associated
596
+ * with an action.
597
+ */
598
+ assignee: RequestLogsAPI.Actor | null;
599
+ /**
600
+ * Whether this is a team-only conversation (`internal`) or a customer-facing case
601
+ * (`customer`).
602
+ */
603
+ audience: 'internal' | 'customer';
604
+ /**
605
+ * Creation timestamp.
606
+ */
607
+ created_at: string;
608
+ /**
609
+ * A reusable roster: a named set of members (users and/or agents) that seeds new
610
+ * conversations.
611
+ *
612
+ * Starting a conversation from a group snapshots its current members into that
613
+ * conversation, so the same group can back many conversations (each with its own
614
+ * title); later edits to the group never change conversations already created from
615
+ * it.
616
+ */
617
+ group: MessagingGroup | null;
618
+ /**
619
+ * A chat message within a conversation.
620
+ */
621
+ last_message: Message | null;
622
+ /**
623
+ * When the most recent message was sent.
624
+ *
625
+ * `null` when the conversation has no messages yet.
626
+ */
627
+ last_message_at: string | null;
628
+ /**
629
+ * Whether the conversation is under legal hold.
630
+ *
631
+ * Exempts the conversation from retention purging and redaction.
632
+ */
633
+ legal_hold: 'released' | 'held';
634
+ /**
635
+ * Resource type identifier.
636
+ */
637
+ object: 'conversation';
638
+ /**
639
+ * List represents a paginated list of resources.
640
+ */
641
+ participants: ListConversationParticipant | null;
642
+ /**
643
+ * The caller's effective status.
644
+ *
645
+ * - `hidden` when the caller has hidden the conversation
646
+ * - otherwise the account-level lifecycle state
647
+ */
648
+ status: 'active' | 'archived' | 'hidden';
649
+ /**
650
+ * The display title of a group conversation.
651
+ *
652
+ * `null` for direct messages, where the client derives a title from the
653
+ * participants.
654
+ */
655
+ title: string | null;
656
+ /**
657
+ * Entity is a polymorphic reference to any resource in the system.
658
+ */
659
+ topic: CoreAPI.Entity | null;
660
+ /**
661
+ * What kind of conversation this is.
662
+ *
663
+ * - `direct_message`: a 1:1 thread between two users.
664
+ * - `group`: a named thread with multiple user or agent members (including
665
+ * customer-facing support cases).
666
+ * - `system`: a system channel that delivers automated account alerts.
667
+ */
668
+ type: 'direct_message' | 'group' | 'system';
669
+ /**
670
+ * Number of messages the caller has not yet read.
671
+ */
672
+ unread: number;
673
+ /**
674
+ * Last update timestamp.
675
+ */
676
+ updated_at: string;
677
+ /**
678
+ * The triage lane of a customer-facing case.
679
+ *
680
+ * Only set for customer-audience conversations.
681
+ *
682
+ * - `new`: opened but not yet triaged.
683
+ * - `open`: actively being worked.
684
+ * - `waiting_internal`: blocked on the internal team.
685
+ * - `waiting_external`: blocked on an external reply.
686
+ * - `needs_approval`: a drafted reply is awaiting human approval.
687
+ * - `resolved`: closed out.
688
+ */
689
+ workflow_status: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved' | null;
690
+ }
691
+ /**
692
+ * A participant (membership) in a conversation.
693
+ */
694
+ export interface ConversationParticipant {
695
+ /**
696
+ * Participant ID.
697
+ */
698
+ id: string;
699
+ /**
700
+ * Reference to an actor — the user, API key, agent, or group identity associated
701
+ * with an action.
702
+ */
703
+ actor: RequestLogsAPI.Actor | null;
704
+ /**
705
+ * For agent participants with a keyword/mention policy, the keywords that trigger
706
+ * it.
707
+ */
708
+ agent_trigger_keywords: Array<string>;
709
+ /**
710
+ * For agent participants, when the agent is invoked in response to messages.
711
+ *
712
+ * `null` for non-agent participants.
713
+ *
714
+ * - `mention`: only when the agent is @mentioned.
715
+ * - `keyword`: when a message contains one of the agent's trigger keywords.
716
+ * - `always`: on every human message in the conversation.
717
+ */
718
+ agent_trigger_policy: 'mention' | 'keyword' | 'always' | null;
719
+ /**
720
+ * The participant's membership in the conversation.
721
+ *
722
+ * - `active`: currently a member.
723
+ * - `left`: voluntarily left the conversation.
724
+ * - `removed`: removed by an admin.
725
+ * - `hidden`: still a member but has hidden the conversation from their own list.
726
+ */
727
+ membership: 'active' | 'left' | 'removed' | 'hidden';
728
+ /**
729
+ * The participant's notification preference for the conversation.
730
+ *
731
+ * - `unmuted`: receives normal notifications.
732
+ * - `muted`: notifications are suppressed (mentions may still pierce the mute).
733
+ */
734
+ notifications: 'unmuted' | 'muted';
735
+ /**
736
+ * Resource type identifier.
737
+ */
738
+ object: 'conversation_participant';
739
+ /**
740
+ * A participant's read position in a conversation — the basis for read receipts
741
+ * ("who has seen this").
742
+ */
743
+ read_cursor: ReadCursor;
744
+ /**
745
+ * The participant's permission level in the conversation.
746
+ *
747
+ * - `owner`: can rename or delete the conversation and manage its members and
748
+ * their roles.
749
+ * - `admin`: can add or remove members and rename the conversation.
750
+ * - `member`: can post, react, mute, and leave.
751
+ * - `viewer`: read-only access.
752
+ */
753
+ role: 'owner' | 'admin' | 'member' | 'viewer';
754
+ /**
755
+ * The kind of participant.
756
+ *
757
+ * - `user`: an account user (a teammate).
758
+ * - `agent`: an AI agent.
759
+ * - `system`: the system itself, which posts automated messages.
760
+ * - `customer`: an external customer in a support case.
761
+ */
762
+ type: 'user' | 'agent' | 'system' | 'customer';
763
+ }
764
+ /**
765
+ * Request to create a conversation.
766
+ */
767
+ export interface CreateConversationRequest {
768
+ /**
769
+ * The kind of conversation to create.
770
+ */
771
+ type: 'direct_message' | 'group' | 'system';
772
+ /**
773
+ * Seed a group conversation from a reusable roster.
774
+ *
775
+ * The roster's current members are copied into this conversation (in addition to
776
+ * any `participant_account_user_ids`); the conversation is independent afterward.
777
+ * Ignored for direct messages.
778
+ */
779
+ group_id?: string;
780
+ /**
781
+ * The other participant(s).
782
+ *
783
+ * For a direct message, exactly one account_user ID. For a group, the members to
784
+ * add — optional when `group_id` seeds the roster.
785
+ */
786
+ participant_account_user_ids?: Array<string>;
787
+ /**
788
+ * Title for a group conversation.
789
+ *
790
+ * Ignored for direct messages.
791
+ */
792
+ title?: string;
793
+ /**
794
+ * The id of the business record to anchor this conversation to.
795
+ */
796
+ topic_resource_id?: string;
797
+ /**
798
+ * The type of business record to anchor this conversation to.
799
+ */
800
+ topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'read_cursor' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
801
+ }
802
+ /**
803
+ * List represents a paginated list of resources.
804
+ */
805
+ export interface ListAgentAction {
806
+ /**
807
+ * Resources in this page.
808
+ */
809
+ data: Array<AgentAction>;
810
+ /**
811
+ * Resource type identifier.
812
+ */
813
+ object: 'list';
814
+ /**
815
+ * PageInfo contains URL-based pagination metadata.
816
+ */
817
+ page_info: APIKeysAPI.PageInfo;
818
+ }
819
+ /**
820
+ * List represents a paginated list of resources.
821
+ */
822
+ export interface ListAgentDefinitionTool {
823
+ /**
824
+ * Resources in this page.
825
+ */
826
+ data: Array<AgentDefinitionTool>;
827
+ /**
828
+ * Resource type identifier.
829
+ */
830
+ object: 'list';
831
+ /**
832
+ * PageInfo contains URL-based pagination metadata.
833
+ */
834
+ page_info: APIKeysAPI.PageInfo;
835
+ }
836
+ /**
837
+ * List represents a paginated list of resources.
838
+ */
839
+ export interface ListAgentRunStep {
840
+ /**
841
+ * Resources in this page.
842
+ */
843
+ data: Array<AgentRunStep>;
844
+ /**
845
+ * Resource type identifier.
846
+ */
847
+ object: 'list';
848
+ /**
849
+ * PageInfo contains URL-based pagination metadata.
850
+ */
851
+ page_info: APIKeysAPI.PageInfo;
852
+ }
853
+ /**
854
+ * List represents a paginated list of resources.
855
+ */
856
+ export interface ListConversation {
857
+ /**
858
+ * Resources in this page.
859
+ */
860
+ data: Array<Conversation>;
861
+ /**
862
+ * Resource type identifier.
863
+ */
864
+ object: 'list';
865
+ /**
866
+ * PageInfo contains URL-based pagination metadata.
867
+ */
868
+ page_info: APIKeysAPI.PageInfo;
869
+ }
870
+ /**
871
+ * List represents a paginated list of resources.
872
+ */
873
+ export interface ListConversationParticipant {
874
+ /**
875
+ * Resources in this page.
876
+ */
877
+ data: Array<ConversationParticipant>;
878
+ /**
879
+ * Resource type identifier.
880
+ */
881
+ object: 'list';
882
+ /**
883
+ * PageInfo contains URL-based pagination metadata.
884
+ */
885
+ page_info: APIKeysAPI.PageInfo;
886
+ }
887
+ /**
888
+ * List represents a paginated list of resources.
889
+ */
890
+ export interface ListMessageAttachment {
891
+ /**
892
+ * Resources in this page.
893
+ */
894
+ data: Array<MessageAttachment>;
895
+ /**
896
+ * Resource type identifier.
897
+ */
898
+ object: 'list';
899
+ /**
900
+ * PageInfo contains URL-based pagination metadata.
901
+ */
902
+ page_info: APIKeysAPI.PageInfo;
903
+ }
904
+ /**
905
+ * List represents a paginated list of resources.
906
+ */
907
+ export interface ListMessagingGroupMember {
908
+ /**
909
+ * Resources in this page.
910
+ */
911
+ data: Array<MessagingGroupMember>;
912
+ /**
913
+ * Resource type identifier.
914
+ */
915
+ object: 'list';
916
+ /**
917
+ * PageInfo contains URL-based pagination metadata.
918
+ */
919
+ page_info: APIKeysAPI.PageInfo;
920
+ }
921
+ /**
922
+ * A chat message within a conversation.
923
+ */
924
+ export interface Message {
925
+ /**
926
+ * Message ID.
927
+ */
928
+ id: string;
929
+ /**
930
+ * A single execution of an agent, from trigger through completion.
931
+ */
932
+ agent_run: AgentRun | null;
933
+ /**
934
+ * List represents a paginated list of resources.
935
+ */
936
+ attachments: ListMessageAttachment | null;
937
+ /**
938
+ * Reference to an actor — the user, API key, agent, or group identity associated
939
+ * with an action.
940
+ */
941
+ author: RequestLogsAPI.Actor | null;
942
+ /**
943
+ * Message body.
944
+ *
945
+ * `null` for templated or deleted messages.
946
+ */
947
+ body: string | null;
948
+ /**
949
+ * How the message was delivered (or, for a draft, how it will be on approve).
950
+ *
951
+ * - `message`: delivered as an in-conversation chat message.
952
+ * - `email`: delivered as email through the conversation's bridged inbox.
953
+ */
954
+ channel: 'message' | 'email';
955
+ /**
956
+ * The client-supplied dedupe key echoed back for optimistic-UI reconciliation.
957
+ *
958
+ * `null` for server-generated messages.
959
+ */
960
+ client_message_id: string | null;
961
+ /**
962
+ * A conversation thread the caller participates in.
963
+ */
964
+ conversation: Conversation | null;
965
+ /**
966
+ * Creation timestamp.
967
+ */
968
+ created_at: string;
969
+ /**
970
+ * When the message was deleted (tombstone).
971
+ */
972
+ deleted_at: string | null;
973
+ /**
974
+ * When the message was last edited.
975
+ */
976
+ edited_at: string | null;
977
+ /**
978
+ * The kind of message.
979
+ *
980
+ * - `chat`: a user-authored chat message.
981
+ * - `system_event`: a system-generated event message.
982
+ * - `agent`: a message authored by an AI agent participant.
983
+ * - `scheduled`: a message materialized from a scheduled send.
984
+ * - `alert`: a system or producer alert rendered as a message.
985
+ * - `email`: an inbound email materialized into the conversation by the email
986
+ * bridge.
987
+ */
988
+ kind: 'chat' | 'system_event' | 'agent' | 'scheduled' | 'alert' | 'email';
989
+ /**
990
+ * Resource type identifier.
991
+ */
992
+ object: 'chat_message';
993
+ /**
994
+ * A chat message within a conversation.
995
+ */
996
+ reply_to: Message | null;
997
+ /**
998
+ * Entity is a polymorphic reference to any resource in the system.
999
+ */
1000
+ resource: CoreAPI.Entity | null;
1001
+ /**
1002
+ * When a `scheduled` message is due to be delivered.
1003
+ */
1004
+ scheduled_at: string | null;
1005
+ /**
1006
+ * Reference to an actor — the user, API key, agent, or group identity associated
1007
+ * with an action.
1008
+ */
1009
+ sender: RequestLogsAPI.Actor | null;
1010
+ /**
1011
+ * Monotonic per-conversation ordering sequence.
1012
+ */
1013
+ sequence: number;
1014
+ /**
1015
+ * The lifecycle state of the message.
1016
+ *
1017
+ * - `draft`: an editable customer-reply draft awaiting approval; not in the
1018
+ * timeline.
1019
+ * - `scheduled`: queued for delivery at a future time; not yet in the timeline.
1020
+ * - `sent`: a delivered timeline message; only `sent` messages carry a `sequence`.
1021
+ * - `canceled`: a scheduled message canceled before delivery.
1022
+ * - `rejected`: a draft discarded without sending.
1023
+ * - `failed`: a scheduled message that exhausted delivery attempts.
1024
+ * - `superseded`: a draft replaced by a newer one for the same source thread.
1025
+ */
1026
+ status: 'draft' | 'scheduled' | 'sent' | 'canceled' | 'rejected' | 'failed' | 'superseded';
1027
+ /**
1028
+ * The streaming state of a reply.
1029
+ *
1030
+ * `streaming` while the body is still being generated (it fills in via realtime
1031
+ * updates); `complete` once finalized.
1032
+ *
1033
+ * `null` for ordinary messages.
1034
+ */
1035
+ streaming_state: string | null;
1036
+ /**
1037
+ * The email subject of a customer-reply `draft` on an email-bridged case.
1038
+ */
1039
+ subject: string | null;
1040
+ /**
1041
+ * Last update timestamp.
1042
+ */
1043
+ updated_at: string;
1044
+ /**
1045
+ * Who can see this message.
1046
+ *
1047
+ * - `internal`: a team-only note.
1048
+ * - `external`: sent to or received from an external party (e.g. the customer on a
1049
+ * support case).
1050
+ * - `system`: an event shown to both the team and the customer.
1051
+ *
1052
+ * On a customer-facing conversation, customer payloads only ever carry `external`
1053
+ * and `system` messages.
1054
+ */
1055
+ visibility: 'internal' | 'external' | 'system';
1056
+ }
1057
+ /**
1058
+ * A file, image, link, or resource attached to a message.
1059
+ */
1060
+ export interface MessageAttachment {
1061
+ /**
1062
+ * Attachment ID.
1063
+ */
1064
+ id: string;
1065
+ /**
1066
+ * The MIME content type for uploaded attachments.
1067
+ *
1068
+ * `null` for link/resource attachments.
1069
+ */
1070
+ content_type: string | null;
1071
+ /**
1072
+ * Creation timestamp.
1073
+ */
1074
+ created_at: string;
1075
+ /**
1076
+ * The original filename for uploaded attachments.
1077
+ *
1078
+ * `null` for link/resource attachments.
1079
+ */
1080
+ filename: string | null;
1081
+ /**
1082
+ * The kind of attachment, which determines how it is stored and which of the
1083
+ * fields below are populated.
1084
+ *
1085
+ * - `file`: an uploaded non-image file.
1086
+ * - `image`: an uploaded image.
1087
+ * - `link`: an external URL reference, with no stored file.
1088
+ * - `resource`: a reference to an in-app resource, such as an order.
1089
+ */
1090
+ kind: 'file' | 'image' | 'link' | 'resource';
1091
+ /**
1092
+ * Resource type identifier.
1093
+ */
1094
+ object: 'message_attachment';
1095
+ /**
1096
+ * Entity is a polymorphic reference to any resource in the system.
1097
+ */
1098
+ resource: CoreAPI.Entity | null;
1099
+ /**
1100
+ * The size in bytes for uploaded attachments.
1101
+ *
1102
+ * `null` when unknown or for link/resource attachments.
1103
+ */
1104
+ size_bytes: number | null;
1105
+ /**
1106
+ * A time-limited download URL for uploaded (file/image) attachments, or the link
1107
+ * URL.
1108
+ *
1109
+ * `null` for resource attachments.
1110
+ */
1111
+ url: string | null;
1112
+ }
1113
+ /**
1114
+ * A reusable roster: a named set of members (users and/or agents) that seeds new
1115
+ * conversations.
1116
+ *
1117
+ * Starting a conversation from a group snapshots its current members into that
1118
+ * conversation, so the same group can back many conversations (each with its own
1119
+ * title); later edits to the group never change conversations already created from
1120
+ * it.
1121
+ */
1122
+ export interface MessagingGroup {
1123
+ /**
1124
+ * Messaging group ID.
1125
+ */
1126
+ id: string;
1127
+ /**
1128
+ * Creation timestamp.
1129
+ */
1130
+ created_at: string;
1131
+ /**
1132
+ * List represents a paginated list of resources.
1133
+ */
1134
+ members: ListMessagingGroupMember | null;
1135
+ /**
1136
+ * The roster's display name.
1137
+ */
1138
+ name: string;
1139
+ /**
1140
+ * Resource type identifier.
1141
+ */
1142
+ object: 'messaging_group';
1143
+ /**
1144
+ * Last updated timestamp.
1145
+ */
1146
+ updated_at: string;
1147
+ }
1148
+ /**
1149
+ * A member of a reusable roster: either a user or an agent, represented by its
1150
+ * actor.
1151
+ */
1152
+ export interface MessagingGroupMember {
1153
+ /**
1154
+ * Membership ID (used to remove the member from the roster).
1155
+ */
1156
+ id: string;
1157
+ /**
1158
+ * Reference to an actor — the user, API key, agent, or group identity associated
1159
+ * with an action.
1160
+ */
1161
+ actor: RequestLogsAPI.Actor | null;
1162
+ /**
1163
+ * Resource type identifier.
1164
+ */
1165
+ object: 'messaging_group_member';
1166
+ }
1167
+ /**
1168
+ * A participant's read position in a conversation — the basis for read receipts
1169
+ * ("who has seen this").
1170
+ */
1171
+ export interface ReadCursor {
1172
+ /**
1173
+ * The id of the last message the participant has read.
1174
+ *
1175
+ * `null` if they have not read any message yet.
1176
+ */
1177
+ message_id: string | null;
1178
+ /**
1179
+ * Resource type identifier.
1180
+ */
1181
+ object: 'read_cursor';
1182
+ /**
1183
+ * When the participant last advanced their read cursor.
1184
+ *
1185
+ * `null` if they have not read any message yet.
1186
+ */
1187
+ read_at: string | null;
1188
+ /**
1189
+ * The sequence number of the last message the participant has read in the
1190
+ * conversation.
1191
+ *
1192
+ * A message is "seen" by this participant when its `sequence` is `<=` this value.
1193
+ * `0` means they have not read any message in the conversation yet.
1194
+ */
1195
+ sequence: number;
1196
+ }
1197
+ /**
1198
+ * Trigger-type-specific configuration.
1199
+ *
1200
+ * Which fields are populated depends on the agent's `trigger_type`:
1201
+ *
1202
+ * - `scheduled`: `cron_schedule` (and optionally `timezone`) is set.
1203
+ * - `event`: `event_filters` is set.
1204
+ * - `manual`: all fields are empty.
1205
+ */
1206
+ export interface TriggerConfig {
1207
+ /**
1208
+ * Cron expression for scheduled triggers (e.g. `0 9 * * *`).
1209
+ */
1210
+ cron_schedule: string | null;
1211
+ /**
1212
+ * Event types that trigger this agent (e.g.
1213
+ * `["email.received", "order.created"]`).
1214
+ */
1215
+ event_filters: Array<string>;
1216
+ /**
1217
+ * Resource type identifier.
1218
+ */
1219
+ object: 'trigger_config';
1220
+ /**
1221
+ * IANA timezone for the cron schedule (e.g. `America/New_York`).
1222
+ */
1223
+ timezone: string | null;
1224
+ }
1225
+ /**
1226
+ * Request to rename a conversation (owner/admin; groups only).
1227
+ */
1228
+ export interface UpdateConversationRequest {
1229
+ /**
1230
+ * New group title.
1231
+ *
1232
+ * Send `null` to clear the title; omit to leave it unchanged.
1233
+ */
1234
+ title?: string | null;
1235
+ }
1236
+ export interface ConversationCreateParams {
1237
+ /**
1238
+ * Body param: The kind of conversation to create.
1239
+ */
1240
+ type: 'direct_message' | 'group' | 'system';
1241
+ /**
1242
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1243
+ * are returned as `null`.
1244
+ */
1245
+ include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
1246
+ /**
1247
+ * Body param: Seed a group conversation from a reusable roster.
1248
+ *
1249
+ * The roster's current members are copied into this conversation (in addition to
1250
+ * any `participant_account_user_ids`); the conversation is independent afterward.
1251
+ * Ignored for direct messages.
1252
+ */
1253
+ group_id?: string;
1254
+ /**
1255
+ * Body param: The other participant(s).
1256
+ *
1257
+ * For a direct message, exactly one account_user ID. For a group, the members to
1258
+ * add — optional when `group_id` seeds the roster.
1259
+ */
1260
+ participant_account_user_ids?: Array<string>;
1261
+ /**
1262
+ * Body param: Title for a group conversation.
1263
+ *
1264
+ * Ignored for direct messages.
1265
+ */
1266
+ title?: string;
1267
+ /**
1268
+ * Body param: The id of the business record to anchor this conversation to.
1269
+ */
1270
+ topic_resource_id?: string;
1271
+ /**
1272
+ * Body param: The type of business record to anchor this conversation to.
1273
+ */
1274
+ topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'read_cursor' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
1275
+ }
1276
+ export interface ConversationListParams {
1277
+ /**
1278
+ * Support inbox: filter to cases owned by this assignee (a user or a team),
1279
+ * matched by id.
1280
+ */
1281
+ assignee_resource_id?: string;
1282
+ /**
1283
+ * Filter by conversation audience direction.
1284
+ */
1285
+ audience?: 'internal' | 'customer';
1286
+ /**
1287
+ * Opaque cursor token identifying where the page of results starts.
1288
+ *
1289
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
1290
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
1291
+ * page.
1292
+ */
1293
+ cursor?: string;
1294
+ /**
1295
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1296
+ * `null`.
1297
+ */
1298
+ include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
1299
+ /**
1300
+ * Support inbox: include archived (resolved-and-closed) cases.
1301
+ */
1302
+ include_archived?: boolean;
1303
+ /**
1304
+ * Maximum number of results to return in a single page.
1305
+ */
1306
+ limit?: number;
1307
+ /**
1308
+ * Free-text search term used to filter results.
1309
+ *
1310
+ * Which fields are matched against the term varies by endpoint.
1311
+ */
1312
+ q?: string;
1313
+ /**
1314
+ * Filter by conversation visibility.
1315
+ */
1316
+ status?: 'active' | 'hidden';
1317
+ /**
1318
+ * The id of the anchoring business record (with `topic_resource_type`).
1319
+ */
1320
+ topic_resource_id?: string;
1321
+ /**
1322
+ * Restrict to conversations anchored to a business record of this type (with
1323
+ * `topic_resource_id`).
1324
+ */
1325
+ topic_resource_type?: 'account' | 'actor' | 'entity' | 'record' | 'freight' | 'sales_order_totals' | 'sales_order_related' | 'order_contact' | 'user' | 'address' | 'api_key' | 'created_api_key' | 'refresh_token' | 'list' | 'sandbox' | 'registration_session' | 'pricing_plan' | 'account_plan' | 'plan_change' | 'enterprise_inquiry' | 'request_log' | 'audit_event' | 'audit_field_change' | 'role' | 'unit' | 'account_affiliation' | 'agent_definition' | 'available_tool' | 'agent_definition_tool' | 'agent_account_status' | 'agent_run' | 'agent_action' | 'agent_run_step' | 'agent_token_usage' | 'agent_memory' | 'notification' | 'notification_unread_count' | 'notification_send_result' | 'notification_unread_summary' | 'announcement' | 'conversation' | 'conversation_participant' | 'read_cursor' | 'chat_message' | 'notification_unread_summary_account' | 'messaging_block' | 'notification_preference' | 'message_attachment' | 'attachment_upload_target' | 'scheduled_message' | 'messaging_contact' | 'message_report' | 'tool_group' | 'model' | 'payment_term' | 'shipping_term' | 'quantity' | 'account_group' | 'support_route' | 'support_availability' | 'account_status' | 'geolocation' | 'account_user' | 'department' | 'account_integration' | 'account_price' | 'product_line' | 'item_category' | 'attribute' | 'rate' | 'account_group_product_line_access' | 'sales_target' | 'adjustment_type' | 'account_branding' | 'account_portal' | 'account_logo_url' | 'public_account' | 'property' | 'carrier' | 'service_level' | 'item' | 'item_inventory' | 'product' | 'batch' | 'batch_flow_node' | 'scanning_consumption' | 'open_batch_summary' | 'scanning_production_step_info' | 'scanning_station' | 'production_step' | 'production_run' | 'machine' | 'child_account' | 'unit_group' | 'unit_group_unit' | 'consumption' | 'customer_product_line_access' | 'customer' | 'frequently_ordered_product' | 'priority' | 'delivery' | 'delivery_line' | 'sales_order' | 'location' | 'location_type' | 'lot' | 'email_log' | 'email_domain' | 'email_inbox' | 'inventory_change_log' | 'invoice' | 'invoice_summary' | 'invoice_line' | 'invoice_allocation' | 'invoice_for_payment' | 'shipment' | 'shipment_summary' | 'shipment_line' | 'shipping_case' | 'shipping_case_label_url' | 'settlement' | 'settlement_summary' | 'role_permission' | 'registration_flow' | 'registration_flow_option' | 'transaction' | 'transaction_summary' | 'transaction_method' | 'transaction_type' | 'transaction_allocation' | 'usage_item' | 'account_usage_response' | 'subscription_info' | 'billing_portal_session_response' | 'switch_plan_response' | 'ensure_billing_customer_response' | 'spending_cap_response' | 'agent_spend_info' | 'webhook_response' | 'address_suggestion' | 'address_components' | 'address_details_result' | 'validated_address' | 'plan_limit' | 'plan_change_proration' | 'plan_change_line_item' | 'setup_billing_response' | 'confirm_payment_response' | 'oauth_response' | 'oauth_status_response' | 'stripe_publishable_key' | 'stripe_status' | 'healthcheck' | 'agent_definition_config' | 'trigger_config' | 'customer_contact_info' | 'customer_freight_preferences' | 'customer_defaults' | 'customer_notification_preferences' | 'order_discount' | 'sales_order_line' | 'sales_order_type' | 'sales_order_status' | 'material' | 'supplier_material' | 'part' | 'permission_group' | 'permission' | 'pick' | 'pick_line' | 'product_type' | 'production' | 'production_flow' | 'map' | 'purchase_order' | 'purchase_order_line' | 'supplier' | 'supplier_summary' | 'receivable_entry' | 'receiving_order' | 'receiving_order_line' | 'email_contact' | 'allocation_entry' | 'open_credit_entry' | 'volume_discount' | 'volume_discount_tier' | 'analyze_deliveries_response' | 'analyze_manufacturing_response' | 'analyze_manufacturing_batch_response' | 'analyze_quarterly_orders_response' | 'analyze_new_customers_response' | 'analyze_oee_response' | 'catalog_product_line' | 'catalog_category' | 'catalog_product' | 'catalog_property' | 'catalog_attribute' | 'dc_location' | 'edi_run' | 'inventory_item' | 'analyze_weeks_of_sales_response' | 'bulk_reconcile_items_response' | 'sys_property' | 'sys_property_type' | 'sys_property_value' | 'territory' | 'tenancy' | 'checkout_session' | 'estimate_rate_result' | 'rate_shop_option' | 'rate_shop_result' | 'owner' | 'created_by' | 'message' | 'account_photo_upload_result' | 'user_photo_upload_result' | 'user_photo_url' | 'batch_lot' | 'check_duplicate_result' | 'item_trend_point' | 'pack_pick_response' | 'pick_shipments_response' | 'tenancy_pending_registration' | 'invoice_allocation_entry' | 'allocation_customer' | 'checkout_sales_order_response' | 'create_production_run_response' | 'sales_order_price_quote' | 'hubspot_sync_job' | 'hubspot_sync_report' | 'hubspot_company_review' | 'hubspot_company_candidate' | 'contact_match' | 'reply_draft' | 'conversation_link' | 'messaging_group' | 'messaging_group_member';
1326
+ /**
1327
+ * Filter by conversation type.
1328
+ */
1329
+ type?: 'direct_message' | 'group' | 'system';
1330
+ /**
1331
+ * Support inbox: restrict to cases with no assignee.
1332
+ */
1333
+ unassigned?: boolean;
1334
+ /**
1335
+ * Support inbox: filter external cases to a single triage lane.
1336
+ */
1337
+ workflow_status?: 'new' | 'open' | 'waiting_internal' | 'waiting_external' | 'needs_approval' | 'resolved';
1338
+ }
1339
+ export interface ConversationRetrieveParams {
1340
+ /**
1341
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1342
+ * `null`.
1343
+ */
1344
+ include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
1345
+ }
1346
+ export interface ConversationUpdateParams {
1347
+ /**
1348
+ * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1349
+ * are returned as `null`.
1350
+ */
1351
+ include?: Array<'assignee' | 'group' | 'participants' | 'topic' | 'last_message' | 'last_message.sender' | 'last_message.author' | 'last_message.resource' | 'last_message.attachments' | 'last_message.attachments.resource'>;
1352
+ /**
1353
+ * Body param: New group title.
1354
+ *
1355
+ * Send `null` to clear the title; omit to leave it unchanged.
1356
+ */
1357
+ title?: string | null;
1358
+ }
1359
+ export declare namespace Conversations {
1360
+ export { type AgentAction as AgentAction, type AgentDefinition as AgentDefinition, type AgentDefinitionConfig as AgentDefinitionConfig, type AgentDefinitionTool as AgentDefinitionTool, type AgentRun as AgentRun, type AgentRunStep as AgentRunStep, type AvailableTool as AvailableTool, type Conversation as Conversation, type ConversationParticipant as ConversationParticipant, type CreateConversationRequest as CreateConversationRequest, type ListAgentAction as ListAgentAction, type ListAgentDefinitionTool as ListAgentDefinitionTool, type ListAgentRunStep as ListAgentRunStep, type ListConversation as ListConversation, type ListConversationParticipant as ListConversationParticipant, type ListMessageAttachment as ListMessageAttachment, type ListMessagingGroupMember as ListMessagingGroupMember, type Message as Message, type MessageAttachment as MessageAttachment, type MessagingGroup as MessagingGroup, type MessagingGroupMember as MessagingGroupMember, type ReadCursor as ReadCursor, type TriggerConfig as TriggerConfig, type UpdateConversationRequest as UpdateConversationRequest, type ConversationCreateParams as ConversationCreateParams, type ConversationListParams as ConversationListParams, type ConversationRetrieveParams as ConversationRetrieveParams, type ConversationUpdateParams as ConversationUpdateParams, };
1361
+ export { Actions as Actions, type AssignConversationRequest as AssignConversationRequest, type MarkConversationReadRequest as MarkConversationReadRequest, type MuteConversationRequest as MuteConversationRequest, type ReportConversationRequest as ReportConversationRequest, type SetLegalHoldRequest as SetLegalHoldRequest, type SetWorkflowStatusRequest as SetWorkflowStatusRequest, type ActionSetLegalHoldParams as ActionSetLegalHoldParams, type ActionRedactParams as ActionRedactParams, type ActionReadParams as ActionReadParams, type ActionArchiveParams as ActionArchiveParams, type ActionUnarchiveParams as ActionUnarchiveParams, type ActionLeaveParams as ActionLeaveParams, type ActionHideParams as ActionHideParams, type ActionUnhideParams as ActionUnhideParams, type ActionMuteParams as ActionMuteParams, type ActionUnmuteParams as ActionUnmuteParams, type ActionSetStatusParams as ActionSetStatusParams, type ActionAssignParams as ActionAssignParams, type ActionReportParams as ActionReportParams, };
1362
+ export { Links as Links, type AddConversationLinkRequest as AddConversationLinkRequest, type ConversationLink as ConversationLink, type ListConversationLink as ListConversationLink, type LinkDeleteResponse as LinkDeleteResponse, type LinkCreateParams as LinkCreateParams, type LinkDeleteParams as LinkDeleteParams, type LinkListParams as LinkListParams, };
1363
+ export { Messages as Messages, type ListMessage as ListMessage, type MessageAttachmentInput as MessageAttachmentInput, type SendMessageRequest as SendMessageRequest, type MessageCreateParams as MessageCreateParams, type MessageListParams as MessageListParams, };
1364
+ export { Participants as Participants, type AddParticipantRequest as AddParticipantRequest, type ParticipantDeleteResponse as ParticipantDeleteResponse, type ParticipantCreateParams as ParticipantCreateParams, type ParticipantDeleteParams as ParticipantDeleteParams, };
1365
+ export { Attachments as Attachments };
1366
+ }
1367
+ //# sourceMappingURL=conversations.d.mts.map