@augno/sdk 0.1.9 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1074) hide show
  1. package/CHANGELOG.md +4 -9
  2. package/README.md +27 -0
  3. package/api-promise.d.mts +0 -1
  4. package/api-promise.d.mts.map +1 -1
  5. package/api-promise.d.ts +0 -1
  6. package/api-promise.d.ts.map +1 -1
  7. package/api-promise.mjs +0 -1
  8. package/api-promise.mjs.map +1 -1
  9. package/client.d.mts +15 -3
  10. package/client.d.mts.map +1 -1
  11. package/client.d.ts +15 -3
  12. package/client.d.ts.map +1 -1
  13. package/client.js +18 -1
  14. package/client.js.map +1 -1
  15. package/client.mjs +18 -1
  16. package/client.mjs.map +1 -1
  17. package/core/api-promise.d.mts.map +1 -1
  18. package/core/api-promise.d.ts.map +1 -1
  19. package/core/api-promise.mjs.map +1 -1
  20. package/core/error.mjs.map +1 -1
  21. package/core/resource.d.mts.map +1 -1
  22. package/core/resource.d.ts.map +1 -1
  23. package/core/uploads.d.mts.map +1 -1
  24. package/core/uploads.d.ts.map +1 -1
  25. package/core/uploads.mjs.map +1 -1
  26. package/error.d.mts +0 -1
  27. package/error.d.mts.map +1 -1
  28. package/error.d.ts +0 -1
  29. package/error.d.ts.map +1 -1
  30. package/error.mjs +0 -1
  31. package/error.mjs.map +1 -1
  32. package/index.d.mts.map +1 -1
  33. package/index.d.ts.map +1 -1
  34. package/index.mjs.map +1 -1
  35. package/internal/headers.mjs.map +1 -1
  36. package/internal/parse.d.mts.map +1 -1
  37. package/internal/parse.d.ts.map +1 -1
  38. package/internal/parse.mjs.map +1 -1
  39. package/internal/qs/formats.d.mts.map +1 -1
  40. package/internal/qs/formats.d.ts.map +1 -1
  41. package/internal/qs/index.d.mts +2 -2
  42. package/internal/qs/index.d.mts.map +1 -1
  43. package/internal/qs/index.d.ts +2 -2
  44. package/internal/qs/index.d.ts.map +1 -1
  45. package/internal/qs/index.mjs.map +1 -1
  46. package/internal/qs/stringify.d.mts.map +1 -1
  47. package/internal/qs/stringify.d.ts.map +1 -1
  48. package/internal/qs/stringify.mjs.map +1 -1
  49. package/internal/qs/utils.d.mts.map +1 -1
  50. package/internal/qs/utils.d.ts.map +1 -1
  51. package/internal/qs/utils.mjs.map +1 -1
  52. package/internal/request-options.d.mts.map +1 -1
  53. package/internal/request-options.d.ts.map +1 -1
  54. package/internal/shims.d.mts +0 -6
  55. package/internal/shims.d.mts.map +1 -1
  56. package/internal/shims.d.ts +0 -6
  57. package/internal/shims.d.ts.map +1 -1
  58. package/internal/to-file.d.mts.map +1 -1
  59. package/internal/to-file.d.ts.map +1 -1
  60. package/internal/to-file.mjs.map +1 -1
  61. package/internal/types.d.mts +4 -4
  62. package/internal/types.d.mts.map +1 -1
  63. package/internal/types.d.ts +4 -4
  64. package/internal/types.d.ts.map +1 -1
  65. package/internal/uploads.d.mts.map +1 -1
  66. package/internal/uploads.d.ts.map +1 -1
  67. package/internal/uploads.mjs.map +1 -1
  68. package/internal/utils/base64.mjs.map +1 -1
  69. package/internal/utils/log.d.mts.map +1 -1
  70. package/internal/utils/log.d.ts.map +1 -1
  71. package/internal/utils/log.mjs.map +1 -1
  72. package/internal/utils/path.mjs.map +1 -1
  73. package/internal/utils/query.mjs.map +1 -1
  74. package/internal/utils/values.mjs.map +1 -1
  75. package/internal/utils.d.mts.map +1 -1
  76. package/internal/utils.d.ts.map +1 -1
  77. package/internal/utils.mjs.map +1 -1
  78. package/package.json +3 -3
  79. package/resource.d.mts +0 -1
  80. package/resource.d.mts.map +1 -1
  81. package/resource.d.ts +0 -1
  82. package/resource.d.ts.map +1 -1
  83. package/resource.mjs +0 -1
  84. package/resource.mjs.map +1 -1
  85. package/resources/auth/api-keys/actions.d.mts +28 -5
  86. package/resources/auth/api-keys/actions.d.mts.map +1 -1
  87. package/resources/auth/api-keys/actions.d.ts +28 -5
  88. package/resources/auth/api-keys/actions.d.ts.map +1 -1
  89. package/resources/auth/api-keys/actions.js +6 -1
  90. package/resources/auth/api-keys/actions.js.map +1 -1
  91. package/resources/auth/api-keys/actions.mjs +6 -1
  92. package/resources/auth/api-keys/actions.mjs.map +1 -1
  93. package/resources/auth/api-keys/api-keys.d.mts +144 -72
  94. package/resources/auth/api-keys/api-keys.d.mts.map +1 -1
  95. package/resources/auth/api-keys/api-keys.d.ts +144 -72
  96. package/resources/auth/api-keys/api-keys.d.ts.map +1 -1
  97. package/resources/auth/api-keys/api-keys.js +32 -22
  98. package/resources/auth/api-keys/api-keys.js.map +1 -1
  99. package/resources/auth/api-keys/api-keys.mjs +32 -22
  100. package/resources/auth/api-keys/api-keys.mjs.map +1 -1
  101. package/resources/auth/api-keys/index.d.mts +1 -1
  102. package/resources/auth/api-keys/index.d.mts.map +1 -1
  103. package/resources/auth/api-keys/index.d.ts +1 -1
  104. package/resources/auth/api-keys/index.d.ts.map +1 -1
  105. package/resources/auth/api-keys/index.mjs.map +1 -1
  106. package/resources/auth/api-keys.d.mts.map +1 -1
  107. package/resources/auth/api-keys.d.ts.map +1 -1
  108. package/resources/auth/api-keys.mjs.map +1 -1
  109. package/resources/auth/auth.d.mts +1 -1
  110. package/resources/auth/auth.d.mts.map +1 -1
  111. package/resources/auth/auth.d.ts +1 -1
  112. package/resources/auth/auth.d.ts.map +1 -1
  113. package/resources/auth/auth.mjs.map +1 -1
  114. package/resources/auth/index.d.mts +1 -1
  115. package/resources/auth/index.d.mts.map +1 -1
  116. package/resources/auth/index.d.ts +1 -1
  117. package/resources/auth/index.d.ts.map +1 -1
  118. package/resources/auth/index.mjs.map +1 -1
  119. package/resources/auth.d.mts.map +1 -1
  120. package/resources/auth.d.ts.map +1 -1
  121. package/resources/auth.mjs.map +1 -1
  122. package/resources/catalog/catalog.d.mts +9 -9
  123. package/resources/catalog/catalog.d.mts.map +1 -1
  124. package/resources/catalog/catalog.d.ts +9 -9
  125. package/resources/catalog/catalog.d.ts.map +1 -1
  126. package/resources/catalog/catalog.mjs.map +1 -1
  127. package/resources/catalog/index.d.mts +9 -9
  128. package/resources/catalog/index.d.mts.map +1 -1
  129. package/resources/catalog/index.d.ts +9 -9
  130. package/resources/catalog/index.d.ts.map +1 -1
  131. package/resources/catalog/index.mjs.map +1 -1
  132. package/resources/catalog/item-categories/index.d.mts +1 -1
  133. package/resources/catalog/item-categories/index.d.mts.map +1 -1
  134. package/resources/catalog/item-categories/index.d.ts +1 -1
  135. package/resources/catalog/item-categories/index.d.ts.map +1 -1
  136. package/resources/catalog/item-categories/index.mjs.map +1 -1
  137. package/resources/catalog/item-categories/item-categories.d.mts +107 -65
  138. package/resources/catalog/item-categories/item-categories.d.mts.map +1 -1
  139. package/resources/catalog/item-categories/item-categories.d.ts +107 -65
  140. package/resources/catalog/item-categories/item-categories.d.ts.map +1 -1
  141. package/resources/catalog/item-categories/item-categories.js +50 -30
  142. package/resources/catalog/item-categories/item-categories.js.map +1 -1
  143. package/resources/catalog/item-categories/item-categories.mjs +50 -30
  144. package/resources/catalog/item-categories/item-categories.mjs.map +1 -1
  145. package/resources/catalog/item-categories/properties.d.mts +13 -4
  146. package/resources/catalog/item-categories/properties.d.mts.map +1 -1
  147. package/resources/catalog/item-categories/properties.d.ts +13 -4
  148. package/resources/catalog/item-categories/properties.d.ts.map +1 -1
  149. package/resources/catalog/item-categories/properties.js +13 -4
  150. package/resources/catalog/item-categories/properties.js.map +1 -1
  151. package/resources/catalog/item-categories/properties.mjs +13 -4
  152. package/resources/catalog/item-categories/properties.mjs.map +1 -1
  153. package/resources/catalog/item-categories.d.mts.map +1 -1
  154. package/resources/catalog/item-categories.d.ts.map +1 -1
  155. package/resources/catalog/item-categories.mjs.map +1 -1
  156. package/resources/catalog/items/attributes.d.mts +7 -2
  157. package/resources/catalog/items/attributes.d.mts.map +1 -1
  158. package/resources/catalog/items/attributes.d.ts +7 -2
  159. package/resources/catalog/items/attributes.d.ts.map +1 -1
  160. package/resources/catalog/items/attributes.js +7 -2
  161. package/resources/catalog/items/attributes.js.map +1 -1
  162. package/resources/catalog/items/attributes.mjs +7 -2
  163. package/resources/catalog/items/attributes.mjs.map +1 -1
  164. package/resources/catalog/items/index.d.mts +1 -1
  165. package/resources/catalog/items/index.d.mts.map +1 -1
  166. package/resources/catalog/items/index.d.ts +1 -1
  167. package/resources/catalog/items/index.d.ts.map +1 -1
  168. package/resources/catalog/items/index.mjs.map +1 -1
  169. package/resources/catalog/items/items.d.mts +96 -52
  170. package/resources/catalog/items/items.d.mts.map +1 -1
  171. package/resources/catalog/items/items.d.ts +96 -52
  172. package/resources/catalog/items/items.d.ts.map +1 -1
  173. package/resources/catalog/items/items.js +32 -21
  174. package/resources/catalog/items/items.js.map +1 -1
  175. package/resources/catalog/items/items.mjs +32 -21
  176. package/resources/catalog/items/items.mjs.map +1 -1
  177. package/resources/catalog/items.d.mts.map +1 -1
  178. package/resources/catalog/items.d.ts.map +1 -1
  179. package/resources/catalog/items.mjs.map +1 -1
  180. package/resources/catalog/materials.d.mts +156 -94
  181. package/resources/catalog/materials.d.mts.map +1 -1
  182. package/resources/catalog/materials.d.ts +156 -94
  183. package/resources/catalog/materials.d.ts.map +1 -1
  184. package/resources/catalog/materials.js +44 -19
  185. package/resources/catalog/materials.js.map +1 -1
  186. package/resources/catalog/materials.mjs +44 -19
  187. package/resources/catalog/materials.mjs.map +1 -1
  188. package/resources/catalog/parts.d.mts +142 -74
  189. package/resources/catalog/parts.d.mts.map +1 -1
  190. package/resources/catalog/parts.d.ts +142 -74
  191. package/resources/catalog/parts.d.ts.map +1 -1
  192. package/resources/catalog/parts.js +49 -20
  193. package/resources/catalog/parts.js.map +1 -1
  194. package/resources/catalog/parts.mjs +49 -20
  195. package/resources/catalog/parts.mjs.map +1 -1
  196. package/resources/catalog/product-lines.d.mts +157 -70
  197. package/resources/catalog/product-lines.d.mts.map +1 -1
  198. package/resources/catalog/product-lines.d.ts +157 -70
  199. package/resources/catalog/product-lines.d.ts.map +1 -1
  200. package/resources/catalog/product-lines.js +43 -26
  201. package/resources/catalog/product-lines.js.map +1 -1
  202. package/resources/catalog/product-lines.mjs +43 -26
  203. package/resources/catalog/product-lines.mjs.map +1 -1
  204. package/resources/catalog/products.d.mts +205 -94
  205. package/resources/catalog/products.d.mts.map +1 -1
  206. package/resources/catalog/products.d.ts +205 -94
  207. package/resources/catalog/products.d.ts.map +1 -1
  208. package/resources/catalog/products.js +39 -20
  209. package/resources/catalog/products.js.map +1 -1
  210. package/resources/catalog/products.mjs +39 -20
  211. package/resources/catalog/products.mjs.map +1 -1
  212. package/resources/catalog/properties/attributes.d.mts +106 -44
  213. package/resources/catalog/properties/attributes.d.mts.map +1 -1
  214. package/resources/catalog/properties/attributes.d.ts +106 -44
  215. package/resources/catalog/properties/attributes.d.ts.map +1 -1
  216. package/resources/catalog/properties/attributes.js +41 -21
  217. package/resources/catalog/properties/attributes.js.map +1 -1
  218. package/resources/catalog/properties/attributes.mjs +41 -21
  219. package/resources/catalog/properties/attributes.mjs.map +1 -1
  220. package/resources/catalog/properties/index.d.mts +2 -2
  221. package/resources/catalog/properties/index.d.mts.map +1 -1
  222. package/resources/catalog/properties/index.d.ts +2 -2
  223. package/resources/catalog/properties/index.d.ts.map +1 -1
  224. package/resources/catalog/properties/index.mjs.map +1 -1
  225. package/resources/catalog/properties/properties.d.mts +80 -47
  226. package/resources/catalog/properties/properties.d.mts.map +1 -1
  227. package/resources/catalog/properties/properties.d.ts +80 -47
  228. package/resources/catalog/properties/properties.d.ts.map +1 -1
  229. package/resources/catalog/properties/properties.js +29 -18
  230. package/resources/catalog/properties/properties.js.map +1 -1
  231. package/resources/catalog/properties/properties.mjs +29 -18
  232. package/resources/catalog/properties/properties.mjs.map +1 -1
  233. package/resources/catalog/properties.d.mts.map +1 -1
  234. package/resources/catalog/properties.d.ts.map +1 -1
  235. package/resources/catalog/properties.mjs.map +1 -1
  236. package/resources/catalog/unit-groups/index.d.mts +2 -2
  237. package/resources/catalog/unit-groups/index.d.mts.map +1 -1
  238. package/resources/catalog/unit-groups/index.d.ts +2 -2
  239. package/resources/catalog/unit-groups/index.d.ts.map +1 -1
  240. package/resources/catalog/unit-groups/index.mjs.map +1 -1
  241. package/resources/catalog/unit-groups/unit-groups.d.mts +144 -86
  242. package/resources/catalog/unit-groups/unit-groups.d.mts.map +1 -1
  243. package/resources/catalog/unit-groups/unit-groups.d.ts +144 -86
  244. package/resources/catalog/unit-groups/unit-groups.d.ts.map +1 -1
  245. package/resources/catalog/unit-groups/unit-groups.js +44 -25
  246. package/resources/catalog/unit-groups/unit-groups.js.map +1 -1
  247. package/resources/catalog/unit-groups/unit-groups.mjs +44 -25
  248. package/resources/catalog/unit-groups/unit-groups.mjs.map +1 -1
  249. package/resources/catalog/unit-groups/units.d.mts +88 -54
  250. package/resources/catalog/unit-groups/units.d.mts.map +1 -1
  251. package/resources/catalog/unit-groups/units.d.ts +88 -54
  252. package/resources/catalog/unit-groups/units.d.ts.map +1 -1
  253. package/resources/catalog/unit-groups/units.js +44 -25
  254. package/resources/catalog/unit-groups/units.js.map +1 -1
  255. package/resources/catalog/unit-groups/units.mjs +44 -25
  256. package/resources/catalog/unit-groups/units.mjs.map +1 -1
  257. package/resources/catalog/unit-groups.d.mts.map +1 -1
  258. package/resources/catalog/unit-groups.d.ts.map +1 -1
  259. package/resources/catalog/unit-groups.mjs.map +1 -1
  260. package/resources/catalog/units.d.mts +145 -85
  261. package/resources/catalog/units.d.mts.map +1 -1
  262. package/resources/catalog/units.d.ts +145 -85
  263. package/resources/catalog/units.d.ts.map +1 -1
  264. package/resources/catalog/units.js +39 -26
  265. package/resources/catalog/units.js.map +1 -1
  266. package/resources/catalog/units.mjs +39 -26
  267. package/resources/catalog/units.mjs.map +1 -1
  268. package/resources/catalog.d.mts.map +1 -1
  269. package/resources/catalog.d.ts.map +1 -1
  270. package/resources/catalog.mjs.map +1 -1
  271. package/resources/core/addresses/actions.d.mts +12 -5
  272. package/resources/core/addresses/actions.d.mts.map +1 -1
  273. package/resources/core/addresses/actions.d.ts +12 -5
  274. package/resources/core/addresses/actions.d.ts.map +1 -1
  275. package/resources/core/addresses/actions.mjs.map +1 -1
  276. package/resources/core/addresses/addresses.d.mts +5 -2
  277. package/resources/core/addresses/addresses.d.mts.map +1 -1
  278. package/resources/core/addresses/addresses.d.ts +5 -2
  279. package/resources/core/addresses/addresses.d.ts.map +1 -1
  280. package/resources/core/addresses/addresses.js.map +1 -1
  281. package/resources/core/addresses/addresses.mjs.map +1 -1
  282. package/resources/core/addresses/index.d.mts.map +1 -1
  283. package/resources/core/addresses/index.d.ts.map +1 -1
  284. package/resources/core/addresses/index.mjs.map +1 -1
  285. package/resources/core/addresses.d.mts.map +1 -1
  286. package/resources/core/addresses.d.ts.map +1 -1
  287. package/resources/core/addresses.mjs.map +1 -1
  288. package/resources/core/audit-events.d.mts +96 -37
  289. package/resources/core/audit-events.d.mts.map +1 -1
  290. package/resources/core/audit-events.d.ts +96 -37
  291. package/resources/core/audit-events.d.ts.map +1 -1
  292. package/resources/core/audit-events.js +19 -10
  293. package/resources/core/audit-events.js.map +1 -1
  294. package/resources/core/audit-events.mjs +19 -10
  295. package/resources/core/audit-events.mjs.map +1 -1
  296. package/resources/core/core.d.mts +107 -4
  297. package/resources/core/core.d.mts.map +1 -1
  298. package/resources/core/core.d.ts +107 -4
  299. package/resources/core/core.d.ts.map +1 -1
  300. package/resources/core/core.js +19 -0
  301. package/resources/core/core.js.map +1 -1
  302. package/resources/core/core.mjs +19 -0
  303. package/resources/core/core.mjs.map +1 -1
  304. package/resources/core/email-logs.d.mts +37 -22
  305. package/resources/core/email-logs.d.mts.map +1 -1
  306. package/resources/core/email-logs.d.ts +37 -22
  307. package/resources/core/email-logs.d.ts.map +1 -1
  308. package/resources/core/email-logs.js +14 -10
  309. package/resources/core/email-logs.js.map +1 -1
  310. package/resources/core/email-logs.mjs +14 -10
  311. package/resources/core/email-logs.mjs.map +1 -1
  312. package/resources/core/index.d.mts +5 -5
  313. package/resources/core/index.d.mts.map +1 -1
  314. package/resources/core/index.d.ts +5 -5
  315. package/resources/core/index.d.ts.map +1 -1
  316. package/resources/core/index.js.map +1 -1
  317. package/resources/core/index.mjs.map +1 -1
  318. package/resources/core/request-logs.d.mts +107 -54
  319. package/resources/core/request-logs.d.mts.map +1 -1
  320. package/resources/core/request-logs.d.ts +107 -54
  321. package/resources/core/request-logs.d.ts.map +1 -1
  322. package/resources/core/request-logs.js +14 -10
  323. package/resources/core/request-logs.js.map +1 -1
  324. package/resources/core/request-logs.mjs +14 -10
  325. package/resources/core/request-logs.mjs.map +1 -1
  326. package/resources/core/sandboxes.d.mts +62 -33
  327. package/resources/core/sandboxes.d.mts.map +1 -1
  328. package/resources/core/sandboxes.d.ts +62 -33
  329. package/resources/core/sandboxes.d.ts.map +1 -1
  330. package/resources/core/sandboxes.js +28 -13
  331. package/resources/core/sandboxes.js.map +1 -1
  332. package/resources/core/sandboxes.mjs +28 -13
  333. package/resources/core/sandboxes.mjs.map +1 -1
  334. package/resources/core.d.mts.map +1 -1
  335. package/resources/core.d.ts.map +1 -1
  336. package/resources/core.mjs.map +1 -1
  337. package/resources/finance/finance.d.mts +69 -35
  338. package/resources/finance/finance.d.mts.map +1 -1
  339. package/resources/finance/finance.d.ts +69 -35
  340. package/resources/finance/finance.d.ts.map +1 -1
  341. package/resources/finance/finance.js +10 -10
  342. package/resources/finance/finance.js.map +1 -1
  343. package/resources/finance/finance.mjs +10 -10
  344. package/resources/finance/finance.mjs.map +1 -1
  345. package/resources/finance/index.d.mts +2 -2
  346. package/resources/finance/index.d.mts.map +1 -1
  347. package/resources/finance/index.d.ts +2 -2
  348. package/resources/finance/index.d.ts.map +1 -1
  349. package/resources/finance/index.mjs.map +1 -1
  350. package/resources/finance/payment-terms.d.mts +82 -43
  351. package/resources/finance/payment-terms.d.mts.map +1 -1
  352. package/resources/finance/payment-terms.d.ts +82 -43
  353. package/resources/finance/payment-terms.d.ts.map +1 -1
  354. package/resources/finance/payment-terms.js +43 -22
  355. package/resources/finance/payment-terms.js.map +1 -1
  356. package/resources/finance/payment-terms.mjs +43 -22
  357. package/resources/finance/payment-terms.mjs.map +1 -1
  358. package/resources/finance.d.mts.map +1 -1
  359. package/resources/finance.d.ts.map +1 -1
  360. package/resources/finance.mjs.map +1 -1
  361. package/resources/identity/account-users/account-users.d.mts +181 -82
  362. package/resources/identity/account-users/account-users.d.mts.map +1 -1
  363. package/resources/identity/account-users/account-users.d.ts +181 -82
  364. package/resources/identity/account-users/account-users.d.ts.map +1 -1
  365. package/resources/identity/account-users/account-users.js +55 -25
  366. package/resources/identity/account-users/account-users.js.map +1 -1
  367. package/resources/identity/account-users/account-users.mjs +55 -25
  368. package/resources/identity/account-users/account-users.mjs.map +1 -1
  369. package/resources/identity/account-users/actions.d.mts +22 -3
  370. package/resources/identity/account-users/actions.d.mts.map +1 -1
  371. package/resources/identity/account-users/actions.d.ts +22 -3
  372. package/resources/identity/account-users/actions.d.ts.map +1 -1
  373. package/resources/identity/account-users/actions.js +22 -3
  374. package/resources/identity/account-users/actions.js.map +1 -1
  375. package/resources/identity/account-users/actions.mjs +22 -3
  376. package/resources/identity/account-users/actions.mjs.map +1 -1
  377. package/resources/identity/account-users/index.d.mts +1 -1
  378. package/resources/identity/account-users/index.d.mts.map +1 -1
  379. package/resources/identity/account-users/index.d.ts +1 -1
  380. package/resources/identity/account-users/index.d.ts.map +1 -1
  381. package/resources/identity/account-users/index.mjs.map +1 -1
  382. package/resources/identity/account-users.d.mts.map +1 -1
  383. package/resources/identity/account-users.d.ts.map +1 -1
  384. package/resources/identity/account-users.mjs.map +1 -1
  385. package/resources/identity/identity.d.mts +2 -2
  386. package/resources/identity/identity.d.mts.map +1 -1
  387. package/resources/identity/identity.d.ts +2 -2
  388. package/resources/identity/identity.d.ts.map +1 -1
  389. package/resources/identity/identity.mjs.map +1 -1
  390. package/resources/identity/index.d.mts +2 -2
  391. package/resources/identity/index.d.mts.map +1 -1
  392. package/resources/identity/index.d.ts +2 -2
  393. package/resources/identity/index.d.ts.map +1 -1
  394. package/resources/identity/index.mjs.map +1 -1
  395. package/resources/identity/roles.d.mts +103 -60
  396. package/resources/identity/roles.d.mts.map +1 -1
  397. package/resources/identity/roles.d.ts +103 -60
  398. package/resources/identity/roles.d.ts.map +1 -1
  399. package/resources/identity/roles.js +47 -27
  400. package/resources/identity/roles.js.map +1 -1
  401. package/resources/identity/roles.mjs +47 -27
  402. package/resources/identity/roles.mjs.map +1 -1
  403. package/resources/identity.d.mts.map +1 -1
  404. package/resources/identity.d.ts.map +1 -1
  405. package/resources/identity.mjs.map +1 -1
  406. package/resources/index.d.mts +4 -2
  407. package/resources/index.d.mts.map +1 -1
  408. package/resources/index.d.ts +4 -2
  409. package/resources/index.d.ts.map +1 -1
  410. package/resources/index.js +5 -1
  411. package/resources/index.js.map +1 -1
  412. package/resources/index.mjs +2 -0
  413. package/resources/index.mjs.map +1 -1
  414. package/resources/messaging/announcements/actions.d.mts +76 -0
  415. package/resources/messaging/announcements/actions.d.mts.map +1 -0
  416. package/resources/messaging/announcements/actions.d.ts +76 -0
  417. package/resources/messaging/announcements/actions.d.ts.map +1 -0
  418. package/resources/messaging/announcements/actions.js +73 -0
  419. package/resources/messaging/announcements/actions.js.map +1 -0
  420. package/resources/messaging/announcements/actions.mjs +69 -0
  421. package/resources/messaging/announcements/actions.mjs.map +1 -0
  422. package/resources/messaging/announcements/announcements.d.mts +173 -0
  423. package/resources/messaging/announcements/announcements.d.mts.map +1 -0
  424. package/resources/messaging/announcements/announcements.d.ts +173 -0
  425. package/resources/messaging/announcements/announcements.d.ts.map +1 -0
  426. package/resources/messaging/announcements/announcements.js +52 -0
  427. package/resources/messaging/announcements/announcements.js.map +1 -0
  428. package/resources/messaging/announcements/announcements.mjs +47 -0
  429. package/resources/messaging/announcements/announcements.mjs.map +1 -0
  430. package/resources/messaging/announcements/index.d.mts +3 -0
  431. package/resources/messaging/announcements/index.d.mts.map +1 -0
  432. package/resources/messaging/announcements/index.d.ts +3 -0
  433. package/resources/messaging/announcements/index.d.ts.map +1 -0
  434. package/resources/messaging/announcements/index.js +9 -0
  435. package/resources/messaging/announcements/index.js.map +1 -0
  436. package/resources/messaging/announcements/index.mjs +4 -0
  437. package/resources/messaging/announcements/index.mjs.map +1 -0
  438. package/resources/messaging/announcements.d.mts +2 -0
  439. package/resources/messaging/announcements.d.mts.map +1 -0
  440. package/resources/messaging/announcements.d.ts +2 -0
  441. package/resources/messaging/announcements.d.ts.map +1 -0
  442. package/resources/messaging/announcements.js +6 -0
  443. package/resources/messaging/announcements.js.map +1 -0
  444. package/resources/messaging/announcements.mjs +3 -0
  445. package/resources/messaging/announcements.mjs.map +1 -0
  446. package/resources/messaging/blocks.d.mts +674 -0
  447. package/resources/messaging/blocks.d.mts.map +1 -0
  448. package/resources/messaging/blocks.d.ts +674 -0
  449. package/resources/messaging/blocks.d.ts.map +1 -0
  450. package/resources/messaging/blocks.js +61 -0
  451. package/resources/messaging/blocks.js.map +1 -0
  452. package/resources/messaging/blocks.mjs +57 -0
  453. package/resources/messaging/blocks.mjs.map +1 -0
  454. package/resources/messaging/conversations/actions.d.mts +422 -0
  455. package/resources/messaging/conversations/actions.d.mts.map +1 -0
  456. package/resources/messaging/conversations/actions.d.ts +422 -0
  457. package/resources/messaging/conversations/actions.d.ts.map +1 -0
  458. package/resources/messaging/conversations/actions.js +299 -0
  459. package/resources/messaging/conversations/actions.js.map +1 -0
  460. package/resources/messaging/conversations/actions.mjs +295 -0
  461. package/resources/messaging/conversations/actions.mjs.map +1 -0
  462. package/resources/messaging/conversations/attachments/actions.d.mts +87 -0
  463. package/resources/messaging/conversations/attachments/actions.d.mts.map +1 -0
  464. package/resources/messaging/conversations/attachments/actions.d.ts +87 -0
  465. package/resources/messaging/conversations/attachments/actions.d.ts.map +1 -0
  466. package/resources/messaging/conversations/attachments/actions.js +36 -0
  467. package/resources/messaging/conversations/attachments/actions.js.map +1 -0
  468. package/resources/messaging/conversations/attachments/actions.mjs +32 -0
  469. package/resources/messaging/conversations/attachments/actions.mjs.map +1 -0
  470. package/resources/messaging/conversations/attachments/attachments.d.mts +10 -0
  471. package/resources/messaging/conversations/attachments/attachments.d.mts.map +1 -0
  472. package/resources/messaging/conversations/attachments/attachments.d.ts +10 -0
  473. package/resources/messaging/conversations/attachments/attachments.d.ts.map +1 -0
  474. package/resources/messaging/conversations/attachments/attachments.js +17 -0
  475. package/resources/messaging/conversations/attachments/attachments.js.map +1 -0
  476. package/resources/messaging/conversations/attachments/attachments.mjs +12 -0
  477. package/resources/messaging/conversations/attachments/attachments.mjs.map +1 -0
  478. package/resources/messaging/conversations/attachments/index.d.mts +3 -0
  479. package/resources/messaging/conversations/attachments/index.d.mts.map +1 -0
  480. package/resources/messaging/conversations/attachments/index.d.ts +3 -0
  481. package/resources/messaging/conversations/attachments/index.d.ts.map +1 -0
  482. package/resources/messaging/conversations/attachments/index.js +9 -0
  483. package/resources/messaging/conversations/attachments/index.js.map +1 -0
  484. package/resources/messaging/conversations/attachments/index.mjs +4 -0
  485. package/resources/messaging/conversations/attachments/index.mjs.map +1 -0
  486. package/resources/messaging/conversations/attachments.d.mts +2 -0
  487. package/resources/messaging/conversations/attachments.d.mts.map +1 -0
  488. package/resources/messaging/conversations/attachments.d.ts +2 -0
  489. package/resources/messaging/conversations/attachments.d.ts.map +1 -0
  490. package/resources/messaging/conversations/attachments.js +6 -0
  491. package/resources/messaging/conversations/attachments.js.map +1 -0
  492. package/resources/messaging/conversations/attachments.mjs +3 -0
  493. package/resources/messaging/conversations/attachments.mjs.map +1 -0
  494. package/resources/messaging/conversations/conversations.d.mts +1328 -0
  495. package/resources/messaging/conversations/conversations.d.mts.map +1 -0
  496. package/resources/messaging/conversations/conversations.d.ts +1328 -0
  497. package/resources/messaging/conversations/conversations.d.ts.map +1 -0
  498. package/resources/messaging/conversations/conversations.js +109 -0
  499. package/resources/messaging/conversations/conversations.js.map +1 -0
  500. package/resources/messaging/conversations/conversations.mjs +104 -0
  501. package/resources/messaging/conversations/conversations.mjs.map +1 -0
  502. package/resources/messaging/conversations/index.d.mts +7 -0
  503. package/resources/messaging/conversations/index.d.mts.map +1 -0
  504. package/resources/messaging/conversations/index.d.ts +7 -0
  505. package/resources/messaging/conversations/index.d.ts.map +1 -0
  506. package/resources/messaging/conversations/index.js +17 -0
  507. package/resources/messaging/conversations/index.js.map +1 -0
  508. package/resources/messaging/conversations/index.mjs +8 -0
  509. package/resources/messaging/conversations/index.mjs.map +1 -0
  510. package/resources/messaging/conversations/links.d.mts +149 -0
  511. package/resources/messaging/conversations/links.d.mts.map +1 -0
  512. package/resources/messaging/conversations/links.d.ts +149 -0
  513. package/resources/messaging/conversations/links.d.ts.map +1 -0
  514. package/resources/messaging/conversations/links.js +72 -0
  515. package/resources/messaging/conversations/links.js.map +1 -0
  516. package/resources/messaging/conversations/links.mjs +68 -0
  517. package/resources/messaging/conversations/links.mjs.map +1 -0
  518. package/resources/messaging/conversations/messages.d.mts +332 -0
  519. package/resources/messaging/conversations/messages.d.mts.map +1 -0
  520. package/resources/messaging/conversations/messages.d.ts +332 -0
  521. package/resources/messaging/conversations/messages.d.ts.map +1 -0
  522. package/resources/messaging/conversations/messages.js +60 -0
  523. package/resources/messaging/conversations/messages.js.map +1 -0
  524. package/resources/messaging/conversations/messages.mjs +56 -0
  525. package/resources/messaging/conversations/messages.mjs.map +1 -0
  526. package/resources/messaging/conversations/participants/actions.d.mts +62 -0
  527. package/resources/messaging/conversations/participants/actions.d.mts.map +1 -0
  528. package/resources/messaging/conversations/participants/actions.d.ts +62 -0
  529. package/resources/messaging/conversations/participants/actions.d.ts.map +1 -0
  530. package/resources/messaging/conversations/participants/actions.js +35 -0
  531. package/resources/messaging/conversations/participants/actions.js.map +1 -0
  532. package/resources/messaging/conversations/participants/actions.mjs +31 -0
  533. package/resources/messaging/conversations/participants/actions.mjs.map +1 -0
  534. package/resources/messaging/conversations/participants/index.d.mts +3 -0
  535. package/resources/messaging/conversations/participants/index.d.mts.map +1 -0
  536. package/resources/messaging/conversations/participants/index.d.ts +3 -0
  537. package/resources/messaging/conversations/participants/index.d.ts.map +1 -0
  538. package/resources/messaging/conversations/participants/index.js +9 -0
  539. package/resources/messaging/conversations/participants/index.js.map +1 -0
  540. package/resources/messaging/conversations/participants/index.mjs +4 -0
  541. package/resources/messaging/conversations/participants/index.mjs.map +1 -0
  542. package/resources/messaging/conversations/participants/participants.d.mts +100 -0
  543. package/resources/messaging/conversations/participants/participants.d.mts.map +1 -0
  544. package/resources/messaging/conversations/participants/participants.d.ts +100 -0
  545. package/resources/messaging/conversations/participants/participants.d.ts.map +1 -0
  546. package/resources/messaging/conversations/participants/participants.js +64 -0
  547. package/resources/messaging/conversations/participants/participants.js.map +1 -0
  548. package/resources/messaging/conversations/participants/participants.mjs +59 -0
  549. package/resources/messaging/conversations/participants/participants.mjs.map +1 -0
  550. package/resources/messaging/conversations/participants.d.mts +2 -0
  551. package/resources/messaging/conversations/participants.d.mts.map +1 -0
  552. package/resources/messaging/conversations/participants.d.ts +2 -0
  553. package/resources/messaging/conversations/participants.d.ts.map +1 -0
  554. package/resources/messaging/conversations/participants.js +6 -0
  555. package/resources/messaging/conversations/participants.js.map +1 -0
  556. package/resources/messaging/conversations/participants.mjs +3 -0
  557. package/resources/messaging/conversations/participants.mjs.map +1 -0
  558. package/resources/messaging/conversations.d.mts +2 -0
  559. package/resources/messaging/conversations.d.mts.map +1 -0
  560. package/resources/messaging/conversations.d.ts +2 -0
  561. package/resources/messaging/conversations.d.ts.map +1 -0
  562. package/resources/messaging/conversations.js +6 -0
  563. package/resources/messaging/conversations.js.map +1 -0
  564. package/resources/messaging/conversations.mjs +3 -0
  565. package/resources/messaging/conversations.mjs.map +1 -0
  566. package/resources/messaging/email-domains/actions.d.mts +27 -0
  567. package/resources/messaging/email-domains/actions.d.mts.map +1 -0
  568. package/resources/messaging/email-domains/actions.d.ts +27 -0
  569. package/resources/messaging/email-domains/actions.d.ts.map +1 -0
  570. package/resources/messaging/email-domains/actions.js +32 -0
  571. package/resources/messaging/email-domains/actions.js.map +1 -0
  572. package/resources/messaging/email-domains/actions.mjs +28 -0
  573. package/resources/messaging/email-domains/actions.mjs.map +1 -0
  574. package/resources/messaging/email-domains/email-domains.d.mts +136 -0
  575. package/resources/messaging/email-domains/email-domains.d.mts.map +1 -0
  576. package/resources/messaging/email-domains/email-domains.d.ts +136 -0
  577. package/resources/messaging/email-domains/email-domains.d.ts.map +1 -0
  578. package/resources/messaging/email-domains/email-domains.js +70 -0
  579. package/resources/messaging/email-domains/email-domains.js.map +1 -0
  580. package/resources/messaging/email-domains/email-domains.mjs +65 -0
  581. package/resources/messaging/email-domains/email-domains.mjs.map +1 -0
  582. package/resources/messaging/email-domains/index.d.mts +3 -0
  583. package/resources/messaging/email-domains/index.d.mts.map +1 -0
  584. package/resources/messaging/email-domains/index.d.ts +3 -0
  585. package/resources/messaging/email-domains/index.d.ts.map +1 -0
  586. package/resources/messaging/email-domains/index.js +9 -0
  587. package/resources/messaging/email-domains/index.js.map +1 -0
  588. package/resources/messaging/email-domains/index.mjs +4 -0
  589. package/resources/messaging/email-domains/index.mjs.map +1 -0
  590. package/resources/messaging/email-domains.d.mts +2 -0
  591. package/resources/messaging/email-domains.d.mts.map +1 -0
  592. package/resources/messaging/email-domains.d.ts +2 -0
  593. package/resources/messaging/email-domains.d.ts.map +1 -0
  594. package/resources/messaging/email-domains.js +6 -0
  595. package/resources/messaging/email-domains.js.map +1 -0
  596. package/resources/messaging/email-domains.mjs +3 -0
  597. package/resources/messaging/email-domains.mjs.map +1 -0
  598. package/resources/messaging/email-inboxes.d.mts +327 -0
  599. package/resources/messaging/email-inboxes.d.mts.map +1 -0
  600. package/resources/messaging/email-inboxes.d.ts +327 -0
  601. package/resources/messaging/email-inboxes.d.ts.map +1 -0
  602. package/resources/messaging/email-inboxes.js +101 -0
  603. package/resources/messaging/email-inboxes.js.map +1 -0
  604. package/resources/messaging/email-inboxes.mjs +97 -0
  605. package/resources/messaging/email-inboxes.mjs.map +1 -0
  606. package/resources/messaging/groups/groups.d.mts +159 -0
  607. package/resources/messaging/groups/groups.d.mts.map +1 -0
  608. package/resources/messaging/groups/groups.d.ts +159 -0
  609. package/resources/messaging/groups/groups.d.ts.map +1 -0
  610. package/resources/messaging/groups/groups.js +107 -0
  611. package/resources/messaging/groups/groups.js.map +1 -0
  612. package/resources/messaging/groups/groups.mjs +102 -0
  613. package/resources/messaging/groups/groups.mjs.map +1 -0
  614. package/resources/messaging/groups/index.d.mts +3 -0
  615. package/resources/messaging/groups/index.d.mts.map +1 -0
  616. package/resources/messaging/groups/index.d.ts +3 -0
  617. package/resources/messaging/groups/index.d.ts.map +1 -0
  618. package/resources/messaging/groups/index.js +9 -0
  619. package/resources/messaging/groups/index.js.map +1 -0
  620. package/resources/messaging/groups/index.mjs +4 -0
  621. package/resources/messaging/groups/index.mjs.map +1 -0
  622. package/resources/messaging/groups/members.d.mts +83 -0
  623. package/resources/messaging/groups/members.d.mts.map +1 -0
  624. package/resources/messaging/groups/members.d.ts +83 -0
  625. package/resources/messaging/groups/members.d.ts.map +1 -0
  626. package/resources/messaging/groups/members.js +51 -0
  627. package/resources/messaging/groups/members.js.map +1 -0
  628. package/resources/messaging/groups/members.mjs +47 -0
  629. package/resources/messaging/groups/members.mjs.map +1 -0
  630. package/resources/messaging/groups.d.mts +2 -0
  631. package/resources/messaging/groups.d.mts.map +1 -0
  632. package/resources/messaging/groups.d.ts +2 -0
  633. package/resources/messaging/groups.d.ts.map +1 -0
  634. package/resources/messaging/groups.js +6 -0
  635. package/resources/messaging/groups.js.map +1 -0
  636. package/resources/messaging/groups.mjs +3 -0
  637. package/resources/messaging/groups.mjs.map +1 -0
  638. package/resources/messaging/index.d.mts +11 -0
  639. package/resources/messaging/index.d.mts.map +1 -0
  640. package/resources/messaging/index.d.ts +11 -0
  641. package/resources/messaging/index.d.ts.map +1 -0
  642. package/resources/messaging/index.js +25 -0
  643. package/resources/messaging/index.js.map +1 -0
  644. package/resources/messaging/index.mjs +12 -0
  645. package/resources/messaging/index.mjs.map +1 -0
  646. package/resources/messaging/messages/actions.d.mts +95 -0
  647. package/resources/messaging/messages/actions.d.mts.map +1 -0
  648. package/resources/messaging/messages/actions.d.ts +95 -0
  649. package/resources/messaging/messages/actions.d.ts.map +1 -0
  650. package/resources/messaging/messages/actions.js +79 -0
  651. package/resources/messaging/messages/actions.js.map +1 -0
  652. package/resources/messaging/messages/actions.mjs +75 -0
  653. package/resources/messaging/messages/actions.mjs.map +1 -0
  654. package/resources/messaging/messages/index.d.mts +3 -0
  655. package/resources/messaging/messages/index.d.mts.map +1 -0
  656. package/resources/messaging/messages/index.d.ts +3 -0
  657. package/resources/messaging/messages/index.d.ts.map +1 -0
  658. package/resources/messaging/messages/index.js +9 -0
  659. package/resources/messaging/messages/index.js.map +1 -0
  660. package/resources/messaging/messages/index.mjs +4 -0
  661. package/resources/messaging/messages/index.mjs.map +1 -0
  662. package/resources/messaging/messages/messages.d.mts +61 -0
  663. package/resources/messaging/messages/messages.d.mts.map +1 -0
  664. package/resources/messaging/messages/messages.d.ts +61 -0
  665. package/resources/messaging/messages/messages.d.ts.map +1 -0
  666. package/resources/messaging/messages/messages.js +40 -0
  667. package/resources/messaging/messages/messages.js.map +1 -0
  668. package/resources/messaging/messages/messages.mjs +35 -0
  669. package/resources/messaging/messages/messages.mjs.map +1 -0
  670. package/resources/messaging/messages.d.mts +2 -0
  671. package/resources/messaging/messages.d.mts.map +1 -0
  672. package/resources/messaging/messages.d.ts +2 -0
  673. package/resources/messaging/messages.d.ts.map +1 -0
  674. package/resources/messaging/messages.js +6 -0
  675. package/resources/messaging/messages.js.map +1 -0
  676. package/resources/messaging/messages.mjs +3 -0
  677. package/resources/messaging/messages.mjs.map +1 -0
  678. package/resources/messaging/messaging.d.mts +103 -0
  679. package/resources/messaging/messaging.d.mts.map +1 -0
  680. package/resources/messaging/messaging.d.ts +103 -0
  681. package/resources/messaging/messaging.d.ts.map +1 -0
  682. package/resources/messaging/messaging.js +65 -0
  683. package/resources/messaging/messaging.js.map +1 -0
  684. package/resources/messaging/messaging.mjs +60 -0
  685. package/resources/messaging/messaging.mjs.map +1 -0
  686. package/resources/messaging/notifications/actions.d.mts +92 -0
  687. package/resources/messaging/notifications/actions.d.mts.map +1 -0
  688. package/resources/messaging/notifications/actions.d.ts +92 -0
  689. package/resources/messaging/notifications/actions.d.ts.map +1 -0
  690. package/resources/messaging/notifications/actions.js +89 -0
  691. package/resources/messaging/notifications/actions.js.map +1 -0
  692. package/resources/messaging/notifications/actions.mjs +85 -0
  693. package/resources/messaging/notifications/actions.mjs.map +1 -0
  694. package/resources/messaging/notifications/index.d.mts +3 -0
  695. package/resources/messaging/notifications/index.d.mts.map +1 -0
  696. package/resources/messaging/notifications/index.d.ts +3 -0
  697. package/resources/messaging/notifications/index.d.ts.map +1 -0
  698. package/resources/messaging/notifications/index.js +9 -0
  699. package/resources/messaging/notifications/index.js.map +1 -0
  700. package/resources/messaging/notifications/index.mjs +4 -0
  701. package/resources/messaging/notifications/index.mjs.map +1 -0
  702. package/resources/messaging/notifications/notifications.d.mts +440 -0
  703. package/resources/messaging/notifications/notifications.d.mts.map +1 -0
  704. package/resources/messaging/notifications/notifications.d.ts +440 -0
  705. package/resources/messaging/notifications/notifications.d.ts.map +1 -0
  706. package/resources/messaging/notifications/notifications.js +104 -0
  707. package/resources/messaging/notifications/notifications.js.map +1 -0
  708. package/resources/messaging/notifications/notifications.mjs +99 -0
  709. package/resources/messaging/notifications/notifications.mjs.map +1 -0
  710. package/resources/messaging/notifications.d.mts +2 -0
  711. package/resources/messaging/notifications.d.mts.map +1 -0
  712. package/resources/messaging/notifications.d.ts +2 -0
  713. package/resources/messaging/notifications.d.ts.map +1 -0
  714. package/resources/messaging/notifications.js +6 -0
  715. package/resources/messaging/notifications.js.map +1 -0
  716. package/resources/messaging/notifications.mjs +3 -0
  717. package/resources/messaging/notifications.mjs.map +1 -0
  718. package/resources/messaging/preferences.d.mts +180 -0
  719. package/resources/messaging/preferences.d.mts.map +1 -0
  720. package/resources/messaging/preferences.d.ts +180 -0
  721. package/resources/messaging/preferences.d.ts.map +1 -0
  722. package/resources/messaging/preferences.js +47 -0
  723. package/resources/messaging/preferences.js.map +1 -0
  724. package/resources/messaging/preferences.mjs +43 -0
  725. package/resources/messaging/preferences.mjs.map +1 -0
  726. package/resources/messaging.d.mts +2 -0
  727. package/resources/messaging.d.mts.map +1 -0
  728. package/resources/messaging.d.ts +2 -0
  729. package/resources/messaging.d.ts.map +1 -0
  730. package/resources/messaging.js +6 -0
  731. package/resources/messaging.js.map +1 -0
  732. package/resources/messaging.mjs +3 -0
  733. package/resources/messaging.mjs.map +1 -0
  734. package/resources/operations/carriers/carriers.d.mts +102 -63
  735. package/resources/operations/carriers/carriers.d.mts.map +1 -1
  736. package/resources/operations/carriers/carriers.d.ts +102 -63
  737. package/resources/operations/carriers/carriers.d.ts.map +1 -1
  738. package/resources/operations/carriers/carriers.js +41 -21
  739. package/resources/operations/carriers/carriers.js.map +1 -1
  740. package/resources/operations/carriers/carriers.mjs +41 -21
  741. package/resources/operations/carriers/carriers.mjs.map +1 -1
  742. package/resources/operations/carriers/index.d.mts +2 -2
  743. package/resources/operations/carriers/index.d.mts.map +1 -1
  744. package/resources/operations/carriers/index.d.ts +2 -2
  745. package/resources/operations/carriers/index.d.ts.map +1 -1
  746. package/resources/operations/carriers/index.mjs.map +1 -1
  747. package/resources/operations/carriers/service-levels.d.mts +127 -68
  748. package/resources/operations/carriers/service-levels.d.mts.map +1 -1
  749. package/resources/operations/carriers/service-levels.d.ts +127 -68
  750. package/resources/operations/carriers/service-levels.d.ts.map +1 -1
  751. package/resources/operations/carriers/service-levels.js +49 -30
  752. package/resources/operations/carriers/service-levels.js.map +1 -1
  753. package/resources/operations/carriers/service-levels.mjs +49 -30
  754. package/resources/operations/carriers/service-levels.mjs.map +1 -1
  755. package/resources/operations/carriers.d.mts.map +1 -1
  756. package/resources/operations/carriers.d.ts.map +1 -1
  757. package/resources/operations/carriers.mjs.map +1 -1
  758. package/resources/operations/index.d.mts +4 -4
  759. package/resources/operations/index.d.mts.map +1 -1
  760. package/resources/operations/index.d.ts +4 -4
  761. package/resources/operations/index.d.ts.map +1 -1
  762. package/resources/operations/index.mjs.map +1 -1
  763. package/resources/operations/location-types.d.mts +37 -18
  764. package/resources/operations/location-types.d.mts.map +1 -1
  765. package/resources/operations/location-types.d.ts +37 -18
  766. package/resources/operations/location-types.d.ts.map +1 -1
  767. package/resources/operations/location-types.js +16 -12
  768. package/resources/operations/location-types.js.map +1 -1
  769. package/resources/operations/location-types.mjs +16 -12
  770. package/resources/operations/location-types.mjs.map +1 -1
  771. package/resources/operations/locations.d.mts +142 -66
  772. package/resources/operations/locations.d.mts.map +1 -1
  773. package/resources/operations/locations.d.ts +142 -66
  774. package/resources/operations/locations.d.ts.map +1 -1
  775. package/resources/operations/locations.js +34 -20
  776. package/resources/operations/locations.js.map +1 -1
  777. package/resources/operations/locations.mjs +34 -20
  778. package/resources/operations/locations.mjs.map +1 -1
  779. package/resources/operations/operations.d.mts +4 -4
  780. package/resources/operations/operations.d.mts.map +1 -1
  781. package/resources/operations/operations.d.ts +4 -4
  782. package/resources/operations/operations.d.ts.map +1 -1
  783. package/resources/operations/operations.mjs.map +1 -1
  784. package/resources/operations/scanning-stations.d.mts +155 -71
  785. package/resources/operations/scanning-stations.d.mts.map +1 -1
  786. package/resources/operations/scanning-stations.d.ts +155 -71
  787. package/resources/operations/scanning-stations.d.ts.map +1 -1
  788. package/resources/operations/scanning-stations.js +42 -23
  789. package/resources/operations/scanning-stations.js.map +1 -1
  790. package/resources/operations/scanning-stations.mjs +42 -23
  791. package/resources/operations/scanning-stations.mjs.map +1 -1
  792. package/resources/operations/shipping-terms.d.mts +127 -81
  793. package/resources/operations/shipping-terms.d.mts.map +1 -1
  794. package/resources/operations/shipping-terms.d.ts +127 -81
  795. package/resources/operations/shipping-terms.d.ts.map +1 -1
  796. package/resources/operations/shipping-terms.js +38 -26
  797. package/resources/operations/shipping-terms.js.map +1 -1
  798. package/resources/operations/shipping-terms.mjs +38 -26
  799. package/resources/operations/shipping-terms.mjs.map +1 -1
  800. package/resources/operations.d.mts.map +1 -1
  801. package/resources/operations.d.ts.map +1 -1
  802. package/resources/operations.mjs.map +1 -1
  803. package/resources/sales/account-groups.d.mts +121 -80
  804. package/resources/sales/account-groups.d.mts.map +1 -1
  805. package/resources/sales/account-groups.d.ts +121 -80
  806. package/resources/sales/account-groups.d.ts.map +1 -1
  807. package/resources/sales/account-groups.js +40 -21
  808. package/resources/sales/account-groups.js.map +1 -1
  809. package/resources/sales/account-groups.mjs +40 -21
  810. package/resources/sales/account-groups.mjs.map +1 -1
  811. package/resources/sales/account-statuses.d.mts +42 -24
  812. package/resources/sales/account-statuses.d.mts.map +1 -1
  813. package/resources/sales/account-statuses.d.ts +42 -24
  814. package/resources/sales/account-statuses.d.ts.map +1 -1
  815. package/resources/sales/account-statuses.js +16 -13
  816. package/resources/sales/account-statuses.js.map +1 -1
  817. package/resources/sales/account-statuses.mjs +16 -13
  818. package/resources/sales/account-statuses.mjs.map +1 -1
  819. package/resources/sales/addresses.d.mts +102 -40
  820. package/resources/sales/addresses.d.mts.map +1 -1
  821. package/resources/sales/addresses.d.ts +102 -40
  822. package/resources/sales/addresses.d.ts.map +1 -1
  823. package/resources/sales/addresses.js +44 -19
  824. package/resources/sales/addresses.js.map +1 -1
  825. package/resources/sales/addresses.mjs +44 -19
  826. package/resources/sales/addresses.mjs.map +1 -1
  827. package/resources/sales/contacts/actions.d.mts +120 -0
  828. package/resources/sales/contacts/actions.d.mts.map +1 -0
  829. package/resources/sales/contacts/actions.d.ts +120 -0
  830. package/resources/sales/contacts/actions.d.ts.map +1 -0
  831. package/resources/sales/contacts/actions.js +38 -0
  832. package/resources/sales/contacts/actions.js.map +1 -0
  833. package/resources/sales/contacts/actions.mjs +34 -0
  834. package/resources/sales/contacts/actions.mjs.map +1 -0
  835. package/resources/sales/contacts/contacts.d.mts +10 -0
  836. package/resources/sales/contacts/contacts.d.mts.map +1 -0
  837. package/resources/sales/contacts/contacts.d.ts +10 -0
  838. package/resources/sales/contacts/contacts.d.ts.map +1 -0
  839. package/resources/sales/contacts/contacts.js +17 -0
  840. package/resources/sales/contacts/contacts.js.map +1 -0
  841. package/resources/sales/contacts/contacts.mjs +12 -0
  842. package/resources/sales/contacts/contacts.mjs.map +1 -0
  843. package/resources/sales/contacts/index.d.mts +3 -0
  844. package/resources/sales/contacts/index.d.mts.map +1 -0
  845. package/resources/sales/contacts/index.d.ts +3 -0
  846. package/resources/sales/contacts/index.d.ts.map +1 -0
  847. package/resources/sales/contacts/index.js +9 -0
  848. package/resources/sales/contacts/index.js.map +1 -0
  849. package/resources/sales/contacts/index.mjs +4 -0
  850. package/resources/sales/contacts/index.mjs.map +1 -0
  851. package/resources/sales/contacts.d.mts +2 -0
  852. package/resources/sales/contacts.d.mts.map +1 -0
  853. package/resources/sales/contacts.d.ts +2 -0
  854. package/resources/sales/contacts.d.ts.map +1 -0
  855. package/resources/sales/contacts.js +6 -0
  856. package/resources/sales/contacts.js.map +1 -0
  857. package/resources/sales/contacts.mjs +3 -0
  858. package/resources/sales/contacts.mjs.map +1 -0
  859. package/resources/sales/customers/actions.d.mts +17 -5
  860. package/resources/sales/customers/actions.d.mts.map +1 -1
  861. package/resources/sales/customers/actions.d.ts +17 -5
  862. package/resources/sales/customers/actions.d.ts.map +1 -1
  863. package/resources/sales/customers/actions.js +8 -2
  864. package/resources/sales/customers/actions.js.map +1 -1
  865. package/resources/sales/customers/actions.mjs +8 -2
  866. package/resources/sales/customers/actions.mjs.map +1 -1
  867. package/resources/sales/customers/customers.d.mts +483 -722
  868. package/resources/sales/customers/customers.d.mts.map +1 -1
  869. package/resources/sales/customers/customers.d.ts +483 -722
  870. package/resources/sales/customers/customers.d.ts.map +1 -1
  871. package/resources/sales/customers/customers.js +68 -30
  872. package/resources/sales/customers/customers.js.map +1 -1
  873. package/resources/sales/customers/customers.mjs +68 -30
  874. package/resources/sales/customers/customers.mjs.map +1 -1
  875. package/resources/sales/customers/index.d.mts +1 -1
  876. package/resources/sales/customers/index.d.mts.map +1 -1
  877. package/resources/sales/customers/index.d.ts +1 -1
  878. package/resources/sales/customers/index.d.ts.map +1 -1
  879. package/resources/sales/customers/index.js.map +1 -1
  880. package/resources/sales/customers/index.mjs.map +1 -1
  881. package/resources/sales/customers.d.mts.map +1 -1
  882. package/resources/sales/customers.d.ts.map +1 -1
  883. package/resources/sales/customers.mjs.map +1 -1
  884. package/resources/sales/index.d.mts +7 -6
  885. package/resources/sales/index.d.mts.map +1 -1
  886. package/resources/sales/index.d.ts +7 -6
  887. package/resources/sales/index.d.ts.map +1 -1
  888. package/resources/sales/index.js +5 -3
  889. package/resources/sales/index.js.map +1 -1
  890. package/resources/sales/index.mjs +1 -0
  891. package/resources/sales/index.mjs.map +1 -1
  892. package/resources/sales/priorities.d.mts +36 -22
  893. package/resources/sales/priorities.d.mts.map +1 -1
  894. package/resources/sales/priorities.d.ts +36 -22
  895. package/resources/sales/priorities.d.ts.map +1 -1
  896. package/resources/sales/priorities.js +14 -10
  897. package/resources/sales/priorities.js.map +1 -1
  898. package/resources/sales/priorities.mjs +14 -10
  899. package/resources/sales/priorities.mjs.map +1 -1
  900. package/resources/sales/sales-orders.d.mts +882 -9
  901. package/resources/sales/sales-orders.d.mts.map +1 -1
  902. package/resources/sales/sales-orders.d.ts +882 -9
  903. package/resources/sales/sales-orders.d.ts.map +1 -1
  904. package/resources/sales/sales-orders.js +50 -3
  905. package/resources/sales/sales-orders.js.map +1 -1
  906. package/resources/sales/sales-orders.mjs +50 -3
  907. package/resources/sales/sales-orders.mjs.map +1 -1
  908. package/resources/sales/sales.d.mts +12 -8
  909. package/resources/sales/sales.d.mts.map +1 -1
  910. package/resources/sales/sales.d.ts +12 -8
  911. package/resources/sales/sales.d.ts.map +1 -1
  912. package/resources/sales/sales.js +4 -0
  913. package/resources/sales/sales.js.map +1 -1
  914. package/resources/sales/sales.mjs +4 -0
  915. package/resources/sales/sales.mjs.map +1 -1
  916. package/resources/sales.d.mts.map +1 -1
  917. package/resources/sales.d.ts.map +1 -1
  918. package/resources/sales.mjs.map +1 -1
  919. package/resources/settings/index.d.mts +3 -0
  920. package/resources/settings/index.d.mts.map +1 -0
  921. package/resources/settings/index.d.ts +3 -0
  922. package/resources/settings/index.d.ts.map +1 -0
  923. package/resources/settings/index.js +9 -0
  924. package/resources/settings/index.js.map +1 -0
  925. package/resources/settings/index.mjs +4 -0
  926. package/resources/settings/index.mjs.map +1 -0
  927. package/resources/settings/integrations.d.mts +246 -0
  928. package/resources/settings/integrations.d.mts.map +1 -0
  929. package/resources/settings/integrations.d.ts +246 -0
  930. package/resources/settings/integrations.d.ts.map +1 -0
  931. package/resources/settings/integrations.js +88 -0
  932. package/resources/settings/integrations.js.map +1 -0
  933. package/resources/settings/integrations.mjs +84 -0
  934. package/resources/settings/integrations.mjs.map +1 -0
  935. package/resources/settings/settings.d.mts +10 -0
  936. package/resources/settings/settings.d.mts.map +1 -0
  937. package/resources/settings/settings.d.ts +10 -0
  938. package/resources/settings/settings.d.ts.map +1 -0
  939. package/resources/settings/settings.js +17 -0
  940. package/resources/settings/settings.js.map +1 -0
  941. package/resources/settings/settings.mjs +12 -0
  942. package/resources/settings/settings.mjs.map +1 -0
  943. package/resources/settings.d.mts +2 -0
  944. package/resources/settings.d.mts.map +1 -0
  945. package/resources/settings.d.ts +2 -0
  946. package/resources/settings.d.ts.map +1 -0
  947. package/resources/settings.js +6 -0
  948. package/resources/settings.js.map +1 -0
  949. package/resources/settings.mjs +3 -0
  950. package/resources/settings.mjs.map +1 -0
  951. package/resources.d.mts.map +1 -1
  952. package/resources.d.ts.map +1 -1
  953. package/resources.mjs.map +1 -1
  954. package/src/client.ts +35 -5
  955. package/src/resources/auth/api-keys/actions.ts +30 -5
  956. package/src/resources/auth/api-keys/api-keys.ts +152 -80
  957. package/src/resources/auth/api-keys/index.ts +1 -1
  958. package/src/resources/auth/auth.ts +1 -1
  959. package/src/resources/auth/index.ts +1 -1
  960. package/src/resources/catalog/catalog.ts +18 -18
  961. package/src/resources/catalog/index.ts +18 -18
  962. package/src/resources/catalog/item-categories/index.ts +2 -2
  963. package/src/resources/catalog/item-categories/item-categories.ts +128 -86
  964. package/src/resources/catalog/item-categories/properties.ts +13 -4
  965. package/src/resources/catalog/items/attributes.ts +7 -2
  966. package/src/resources/catalog/items/index.ts +2 -2
  967. package/src/resources/catalog/items/items.ts +119 -75
  968. package/src/resources/catalog/materials.ts +181 -119
  969. package/src/resources/catalog/parts.ts +160 -92
  970. package/src/resources/catalog/product-lines.ts +172 -85
  971. package/src/resources/catalog/products.ts +223 -112
  972. package/src/resources/catalog/properties/attributes.ts +120 -58
  973. package/src/resources/catalog/properties/index.ts +4 -4
  974. package/src/resources/catalog/properties/properties.ts +94 -61
  975. package/src/resources/catalog/unit-groups/index.ts +4 -4
  976. package/src/resources/catalog/unit-groups/unit-groups.ts +157 -99
  977. package/src/resources/catalog/unit-groups/units.ts +107 -73
  978. package/src/resources/catalog/units.ts +158 -98
  979. package/src/resources/core/addresses/actions.ts +12 -5
  980. package/src/resources/core/addresses/addresses.ts +5 -2
  981. package/src/resources/core/audit-events.ts +251 -56
  982. package/src/resources/core/core.ts +605 -5
  983. package/src/resources/core/email-logs.ts +45 -30
  984. package/src/resources/core/index.ts +6 -6
  985. package/src/resources/core/request-logs.ts +125 -70
  986. package/src/resources/core/sandboxes.ts +67 -38
  987. package/src/resources/finance/finance.ts +78 -44
  988. package/src/resources/finance/index.ts +4 -4
  989. package/src/resources/finance/payment-terms.ts +95 -56
  990. package/src/resources/identity/account-users/account-users.ts +196 -97
  991. package/src/resources/identity/account-users/actions.ts +22 -3
  992. package/src/resources/identity/account-users/index.ts +2 -2
  993. package/src/resources/identity/identity.ts +4 -4
  994. package/src/resources/identity/index.ts +4 -4
  995. package/src/resources/identity/roles.ts +113 -70
  996. package/src/resources/index.ts +5 -3
  997. package/src/resources/messaging/announcements/actions.ts +119 -0
  998. package/src/resources/messaging/announcements/announcements.ts +234 -0
  999. package/src/resources/messaging/announcements/index.ts +10 -0
  1000. package/src/resources/messaging/announcements.ts +3 -0
  1001. package/src/resources/messaging/blocks.ts +826 -0
  1002. package/src/resources/messaging/conversations/actions.ts +766 -0
  1003. package/src/resources/messaging/conversations/attachments/actions.ts +116 -0
  1004. package/src/resources/messaging/conversations/attachments/attachments.ts +25 -0
  1005. package/src/resources/messaging/conversations/attachments/index.ts +9 -0
  1006. package/src/resources/messaging/conversations/attachments.ts +3 -0
  1007. package/src/resources/messaging/conversations/conversations.ts +2452 -0
  1008. package/src/resources/messaging/conversations/index.ts +80 -0
  1009. package/src/resources/messaging/conversations/links.ts +690 -0
  1010. package/src/resources/messaging/conversations/messages.ts +906 -0
  1011. package/src/resources/messaging/conversations/participants/actions.ts +92 -0
  1012. package/src/resources/messaging/conversations/participants/index.ts +10 -0
  1013. package/src/resources/messaging/conversations/participants/participants.ts +150 -0
  1014. package/src/resources/messaging/conversations/participants.ts +3 -0
  1015. package/src/resources/messaging/conversations.ts +3 -0
  1016. package/src/resources/messaging/email-domains/actions.ts +32 -0
  1017. package/src/resources/messaging/email-domains/email-domains.ts +170 -0
  1018. package/src/resources/messaging/email-domains/index.ts +10 -0
  1019. package/src/resources/messaging/email-domains.ts +3 -0
  1020. package/src/resources/messaging/email-inboxes.ts +408 -0
  1021. package/src/resources/messaging/groups/groups.ts +208 -0
  1022. package/src/resources/messaging/groups/index.ts +17 -0
  1023. package/src/resources/messaging/groups/members.ts +112 -0
  1024. package/src/resources/messaging/groups.ts +3 -0
  1025. package/src/resources/messaging/index.ts +115 -0
  1026. package/src/resources/messaging/messages/actions.ts +184 -0
  1027. package/src/resources/messaging/messages/index.ts +10 -0
  1028. package/src/resources/messaging/messages/messages.ts +107 -0
  1029. package/src/resources/messaging/messages.ts +3 -0
  1030. package/src/resources/messaging/messaging.ts +351 -0
  1031. package/src/resources/messaging/notifications/actions.ts +139 -0
  1032. package/src/resources/messaging/notifications/index.ts +24 -0
  1033. package/src/resources/messaging/notifications/notifications.ts +1051 -0
  1034. package/src/resources/messaging/notifications.ts +3 -0
  1035. package/src/resources/messaging/preferences.ts +215 -0
  1036. package/src/resources/messaging.ts +3 -0
  1037. package/src/resources/operations/carriers/carriers.ts +110 -71
  1038. package/src/resources/operations/carriers/index.ts +4 -4
  1039. package/src/resources/operations/carriers/service-levels.ts +148 -89
  1040. package/src/resources/operations/index.ts +8 -8
  1041. package/src/resources/operations/location-types.ts +42 -23
  1042. package/src/resources/operations/locations.ts +153 -77
  1043. package/src/resources/operations/operations.ts +8 -8
  1044. package/src/resources/operations/scanning-stations.ts +173 -89
  1045. package/src/resources/operations/shipping-terms.ts +144 -98
  1046. package/src/resources/sales/account-groups.ts +132 -91
  1047. package/src/resources/sales/account-statuses.ts +49 -31
  1048. package/src/resources/sales/addresses.ts +110 -48
  1049. package/src/resources/sales/contacts/actions.ts +150 -0
  1050. package/src/resources/sales/contacts/contacts.ts +27 -0
  1051. package/src/resources/sales/contacts/index.ts +10 -0
  1052. package/src/resources/sales/contacts.ts +3 -0
  1053. package/src/resources/sales/customers/actions.ts +19 -4
  1054. package/src/resources/sales/customers/customers.ts +547 -884
  1055. package/src/resources/sales/customers/index.ts +2 -15
  1056. package/src/resources/sales/index.ts +24 -19
  1057. package/src/resources/sales/priorities.ts +44 -30
  1058. package/src/resources/sales/sales-orders.ts +1115 -22
  1059. package/src/resources/sales/sales.ts +46 -32
  1060. package/src/resources/settings/index.ts +13 -0
  1061. package/src/resources/settings/integrations.ts +299 -0
  1062. package/src/resources/settings/settings.ts +33 -0
  1063. package/src/resources/settings.ts +3 -0
  1064. package/src/version.ts +1 -1
  1065. package/uploads.d.mts +0 -1
  1066. package/uploads.d.mts.map +1 -1
  1067. package/uploads.d.ts +0 -1
  1068. package/uploads.d.ts.map +1 -1
  1069. package/uploads.mjs +0 -1
  1070. package/uploads.mjs.map +1 -1
  1071. package/version.d.mts +1 -1
  1072. package/version.d.ts +1 -1
  1073. package/version.js +1 -1
  1074. package/version.mjs +1 -1
@@ -1,4 +1,5 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
+ import * as BlocksAPI from "../../messaging/blocks.mjs";
2
3
  import * as AccountGroupsAPI from "../account-groups.mjs";
3
4
  import * as AddressesAPI from "../addresses.mjs";
4
5
  import * as PrioritiesAPI from "../priorities.mjs";
@@ -14,28 +15,21 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
14
15
  export declare class Customers extends APIResource {
15
16
  actions: ActionsAPI.Actions;
16
17
  /**
17
- * Creates a customer account. Auto-generates a customer number if one is not
18
- * provided.
18
+ * Returns a paginated list of customers for the current account.
19
+ *
20
+ * This endpoint requires the permission: `customers:read`.
19
21
  *
20
22
  * @example
21
23
  * ```ts
22
- * const customer = await client.sales.customers.create({
23
- * bill_to_address: { name: 'Acme Inc.', country: 'US' },
24
- * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
25
- * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
26
- * default_payment_term_id:
27
- * 'pytm_018694d6601ea771cd1b52e890',
28
- * default_shipping_term_id:
29
- * 'shtm_014341ab4bb5bf94d5b6936f86',
30
- * name: 'Acme Inc.',
31
- * ship_to_address: { name: 'Acme Inc.', country: 'US' },
32
- * });
24
+ * const listCustomer = await client.sales.customers.list();
33
25
  * ```
34
26
  */
35
- create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer>;
27
+ list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<ListCustomer>;
36
28
  /**
37
29
  * Returns a customer by ID.
38
30
  *
31
+ * This endpoint requires the permissions: `customers:read`, `suppliers:read`.
32
+ *
39
33
  * @example
40
34
  * ```ts
41
35
  * const customer = await client.sales.customers.retrieve(
@@ -45,29 +39,74 @@ export declare class Customers extends APIResource {
45
39
  */
46
40
  retrieve(id: string, query?: CustomerRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
47
41
  /**
48
- * Partially updates a customer account. When a Stripe integration is active,
49
- * customer changes are synced to Stripe.
42
+ * Creates a customer account with its default addresses, fulfillment settings, and
43
+ * order policies.
44
+ *
45
+ * If `number` is omitted, the next sequential customer number is assigned
46
+ * automatically.
47
+ *
48
+ * This endpoint requires the permission: `customers:create`.
50
49
  *
51
50
  * @example
52
51
  * ```ts
53
- * const customer = await client.sales.customers.update(
54
- * 'ac_0170df1ac58e4d24c66fc89f5f',
55
- * );
52
+ * const customer = await client.sales.customers.create({
53
+ * bill_to_address: {
54
+ * name: 'Acme Inc.',
55
+ * street_line_1: '123 Main St',
56
+ * locality: 'New York',
57
+ * state: 'NY',
58
+ * postal_code: '10001',
59
+ * country: 'US',
60
+ * },
61
+ * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
62
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
63
+ * default_payment_term_id:
64
+ * 'pytm_018694d6601ea771cd1b52e890',
65
+ * default_shipping_term_id:
66
+ * 'shtm_014341ab4bb5bf94d5b6936f86',
67
+ * name: 'Acme Inc.',
68
+ * ship_to_address: {
69
+ * name: 'Acme Inc.',
70
+ * street_line_1: '123 Main St',
71
+ * locality: 'New York',
72
+ * state: 'NY',
73
+ * postal_code: '10001',
74
+ * country: 'US',
75
+ * },
76
+ * note: 'Key enterprise account',
77
+ * });
56
78
  * ```
57
79
  */
58
- update(id: string, params?: CustomerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
80
+ create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer>;
59
81
  /**
60
- * Returns a paginated list of customers for the current account.
82
+ * Partially updates a customer account.
83
+ *
84
+ * Only the fields provided in the request are changed. Nullable fields can be set
85
+ * to `null` to clear their current value.
86
+ *
87
+ * This endpoint requires the permission: `customers:update`.
61
88
  *
62
89
  * @example
63
90
  * ```ts
64
- * const listCustomer = await client.sales.customers.list();
91
+ * const customer = await client.sales.customers.update(
92
+ * 'ac_0170df1ac58e4d24c66fc89f5f',
93
+ * {
94
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
95
+ * freight_policy: 'billed_freight',
96
+ * name: 'Acme Corp Updated',
97
+ * note: 'Updated account notes',
98
+ * },
99
+ * );
65
100
  * ```
66
101
  */
67
- list(query?: CustomerListParams | null | undefined, options?: RequestOptions): APIPromise<ListCustomer>;
102
+ update(id: string, params?: CustomerUpdateParams | null | undefined, options?: RequestOptions): APIPromise<Customer>;
68
103
  /**
69
- * Deletes a customer and associated account relations, addresses, and account
70
- * users.
104
+ * Deletes a customer.
105
+ *
106
+ * Fails with a conflict error if any sales orders still reference the customer;
107
+ * delete or reassign those orders, or merge the customer into another first.
108
+ *
109
+ * This endpoint requires the permission: `customers:delete`.
71
110
  *
72
111
  * @example
73
112
  * ```ts
@@ -79,64 +118,11 @@ export declare class Customers extends APIResource {
79
118
  delete(id: string, options?: RequestOptions): APIPromise<CustomerDeleteResponse>;
80
119
  }
81
120
  /**
82
- * Account user with profile, role, and department.
83
- */
84
- export interface AccountUser {
85
- /**
86
- * Account user ID.
87
- */
88
- id: string;
89
- /**
90
- * When the account user was created.
91
- */
92
- created_at: string;
93
- /**
94
- * Department resource.
95
- */
96
- department: Department | null;
97
- /**
98
- * Email address.
99
- */
100
- email: string | null;
101
- /**
102
- * Profile image URL.
103
- */
104
- image_url: string | null;
105
- /**
106
- * When the user last used this account.
107
- */
108
- last_used_at: string | null;
109
- /**
110
- * Display name.
111
- */
112
- name: string | null;
113
- /**
114
- * Resource type identifier.
115
- */
116
- object: 'account_user';
117
- /**
118
- * Role resource.
119
- */
120
- role: APIKeysAPI.Role | null;
121
- /**
122
- * Account user status.
123
- */
124
- status: 'active' | 'disabled' | 'removed';
125
- /**
126
- * When the account user was last updated.
127
- */
128
- updated_at: string;
129
- /**
130
- * Underlying user ID.
131
- */
132
- user_id: string;
133
- /**
134
- * Username.
135
- */
136
- username: string | null;
137
- }
138
- /**
139
- * Carrier resource.
121
+ * A shipping carrier configured for fulfilling orders.
122
+ *
123
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
124
+ * through Shippo for live rating and label purchase; other carriers represent
125
+ * self-managed shipping methods such as will call or local delivery.
140
126
  */
141
127
  export interface Carrier {
142
128
  /**
@@ -144,11 +130,19 @@ export interface Carrier {
144
130
  */
145
131
  id: string;
146
132
  /**
147
- * Account number.
133
+ * Your account number with this carrier, used to connect UPS and USPS accounts.
148
134
  */
149
135
  account_number: string | null;
150
136
  /**
151
- * Carrier code.
137
+ * Well-known carrier identifier, set only for recognized carriers and absent for
138
+ * custom ones.
139
+ *
140
+ * - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
141
+ * rating and labels).
142
+ * - `will_call`: customer picks the order up; no carrier shipment.
143
+ * - `delivery`: delivered by your own vehicles/drivers.
144
+ * - `ltl`, `ltl1`: less-than-truckload freight carriers.
145
+ * - `freight_collect`: freight billed to and arranged by the receiver.
152
146
  */
153
147
  code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
154
148
  /**
@@ -156,7 +150,8 @@ export interface Carrier {
156
150
  */
157
151
  created_at: string;
158
152
  /**
159
- * Customer portal visibility.
153
+ * Whether customers can see and select this carrier at checkout in the customer
154
+ * portal.
160
155
  */
161
156
  customer_portal_visibility: 'visible' | 'hidden';
162
157
  /**
@@ -164,7 +159,7 @@ export interface Carrier {
164
159
  */
165
160
  deleted_at: string | null;
166
161
  /**
167
- * Display name.
162
+ * Human-readable name for the carrier, unique among your account's carriers.
168
163
  */
169
164
  name: string;
170
165
  /**
@@ -184,57 +179,22 @@ export interface Carrier {
184
179
  */
185
180
  updated_at: string;
186
181
  }
187
- /**
188
- * Material consumed by a production step.
189
- */
190
- export interface Consumption {
191
- /**
192
- * Consumption ID.
193
- */
194
- id: string;
195
- /**
196
- * Item is an inventory item (product, material, or part).
197
- */
198
- consumed_item: ItemsAPI.Item | null;
199
- /**
200
- * Creation timestamp.
201
- */
202
- created_at: string;
203
- /**
204
- * Instructions for how this material is consumed.
205
- */
206
- instructions: string | null;
207
- /**
208
- * Resource type identifier.
209
- */
210
- object: 'consumption';
211
- /**
212
- * Value with an associated unit.
213
- */
214
- quantity: ItemsAPI.Quantity | null;
215
- /**
216
- * Last updated timestamp.
217
- */
218
- updated_at: string;
219
- /**
220
- * Value with an associated unit.
221
- */
222
- waste_quantity: ItemsAPI.Quantity | null;
223
- }
224
182
  /**
225
183
  * Request to create a customer.
226
184
  */
227
185
  export interface CreateCustomerRequest {
228
186
  /**
229
- * Request to create an address.
187
+ * Address details used to create an address, either directly or inline on another
188
+ * resource.
230
189
  */
231
190
  bill_to_address: AddressesAPI.AddressInput;
232
191
  /**
233
- * Customer type group ID.
192
+ * ID of the account group of type `type_group` that categorizes this customer (for
193
+ * example "Distributors").
234
194
  */
235
195
  customer_type_group_id: string;
236
196
  /**
237
- * Default carrier ID.
197
+ * ID of the default carrier for this customer's shipments.
238
198
  */
239
199
  default_carrier_id: string;
240
200
  /**
@@ -246,36 +206,45 @@ export interface CreateCustomerRequest {
246
206
  */
247
207
  default_shipping_term_id: string;
248
208
  /**
249
- * Display name.
209
+ * The customer's business name, as shown throughout the app and on documents.
250
210
  */
251
211
  name: string;
252
212
  /**
253
- * Request to create an address.
213
+ * Address details used to create an address, either directly or inline on another
214
+ * resource.
254
215
  */
255
216
  ship_to_address: AddressesAPI.AddressInput;
256
217
  /**
257
- * Carrier billing account number.
218
+ * Carrier billing account number charged when `carrier_billing_type` is
219
+ * `third_party`.
258
220
  */
259
221
  carrier_billing_account?: string;
260
222
  /**
261
- * Carrier billing type.
223
+ * Who pays the carrier for shipments.
224
+ *
225
+ * - `sender`: the shipper (you) pays the carrier.
226
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
262
227
  */
263
228
  carrier_billing_type?: 'sender' | 'third_party';
264
229
  /**
265
- * Commission policy.
230
+ * How sales commission applies to this customer's orders.
231
+ *
232
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
233
+ * - `commission_applied`: sales commission is calculated on this customer's
234
+ * orders.
266
235
  */
267
236
  commission_policy?: 'commission_applied' | 'commission_exempt';
268
237
  /**
269
- * QuantityInput represents a value with an associated unit for create/update
270
- * requests.
238
+ * A value with an associated unit, used in create and update requests.
271
239
  */
272
240
  credit_limit?: QuantityInput;
273
241
  /**
274
- * Price group IDs.
242
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
243
+ * used to apply pricing rules.
275
244
  */
276
245
  customer_price_group_ids?: Array<string>;
277
246
  /**
278
- * Default priority code.
247
+ * Priority applied to new orders for this customer.
279
248
  */
280
249
  default_priority?: 'low' | 'normal' | 'high';
281
250
  /**
@@ -283,11 +252,12 @@ export interface CreateCustomerRequest {
283
252
  */
284
253
  default_sales_rep_id?: string;
285
254
  /**
286
- * Default service level ID.
255
+ * ID of the default carrier service level.
287
256
  */
288
257
  default_service_level_id?: string;
289
258
  /**
290
- * EDI status.
259
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
260
+ * documents with this customer.
291
261
  */
292
262
  edi_status?: 'enabled' | 'disabled';
293
263
  /**
@@ -295,15 +265,23 @@ export interface CreateCustomerRequest {
295
265
  */
296
266
  email?: string;
297
267
  /**
298
- * Freight policy.
268
+ * Whether this customer is billed for freight on their orders.
269
+ *
270
+ * - `free_freight`: the customer is not billed for freight.
271
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
272
+ * order.
299
273
  */
300
274
  freight_policy?: 'free_freight' | 'billed_freight';
301
275
  /**
302
- * Note.
276
+ * Free-form note about the customer.
303
277
  */
304
278
  note?: string;
305
279
  /**
306
- * Customer number. Auto-generated if omitted.
280
+ * Human-readable customer number used to identify the account, distinct from the
281
+ * `id`.
282
+ *
283
+ * Must be unique within your account. If omitted, the next sequential number is
284
+ * assigned automatically.
307
285
  */
308
286
  number?: string;
309
287
  /**
@@ -311,7 +289,12 @@ export interface CreateCustomerRequest {
311
289
  */
312
290
  phone?: string;
313
291
  /**
314
- * Account status code.
292
+ * Account status code, controlling whether the customer can transact.
293
+ *
294
+ * - `normal`: standard active account with no restrictions.
295
+ * - `preferred`: active account flagged as preferred.
296
+ * - `hold_shipment`: orders can be placed, but shipments are held.
297
+ * - `hold_all`: all activity is on hold.
315
298
  */
316
299
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
317
300
  /**
@@ -320,7 +303,8 @@ export interface CreateCustomerRequest {
320
303
  url?: string;
321
304
  }
322
305
  /**
323
- * Customer account.
306
+ * A business you sell to, with its contact details, default fulfillment settings,
307
+ * and order policies.
324
308
  */
325
309
  export interface Customer {
326
310
  /**
@@ -328,7 +312,8 @@ export interface Customer {
328
312
  */
329
313
  id: string;
330
314
  /**
331
- * Address with associated geolocation.
315
+ * A saved address that can be used for billing and shipping on sales orders,
316
+ * invoices, and shipments.
332
317
  */
333
318
  bill_to_address: APIKeysAPI.Address | null;
334
319
  /**
@@ -336,7 +321,11 @@ export interface Customer {
336
321
  */
337
322
  child_accounts: ListCustomer | null;
338
323
  /**
339
- * Commission policy.
324
+ * How sales commission applies to this customer's orders.
325
+ *
326
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
327
+ * - `commission_applied`: sales commission is calculated on this customer's
328
+ * orders.
340
329
  */
341
330
  commission_policy: 'commission_applied' | 'commission_exempt';
342
331
  /**
@@ -356,7 +345,8 @@ export interface Customer {
356
345
  */
357
346
  defaults: CustomerDefaults | null;
358
347
  /**
359
- * EDI status.
348
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
349
+ * documents with this customer.
360
350
  */
361
351
  edi_status: 'enabled' | 'disabled';
362
352
  /**
@@ -364,11 +354,11 @@ export interface Customer {
364
354
  */
365
355
  freight_preferences: CustomerFreightPreferences | null;
366
356
  /**
367
- * Display name.
357
+ * The customer's business name, as shown throughout the app and on documents.
368
358
  */
369
359
  name: string;
370
360
  /**
371
- * Note.
361
+ * Free-form note about the customer.
372
362
  */
373
363
  note: string | null;
374
364
  /**
@@ -376,7 +366,8 @@ export interface Customer {
376
366
  */
377
367
  notification_preferences: CustomerNotificationPreferences | null;
378
368
  /**
379
- * Customer number.
369
+ * Human-readable customer number used to identify the account, distinct from the
370
+ * `id`.
380
371
  */
381
372
  number: string;
382
373
  /**
@@ -384,7 +375,8 @@ export interface Customer {
384
375
  */
385
376
  object: 'customer';
386
377
  /**
387
- * Customer account.
378
+ * A business you sell to, with its contact details, default fulfillment settings,
379
+ * and order policies.
388
380
  */
389
381
  parent_account: Customer | null;
390
382
  /**
@@ -392,19 +384,30 @@ export interface Customer {
392
384
  */
393
385
  price_groups: AccountGroupsAPI.ListAccountGroup | null;
394
386
  /**
395
- * Customer relationship type.
387
+ * The customer's position in the account hierarchy.
388
+ *
389
+ * - `standalone`: no parent or child accounts.
390
+ * - `parent`: has one or more child accounts (see `child_accounts`).
391
+ * - `child`: belongs to a parent account (see `parent_account`).
396
392
  */
397
393
  relationship_type: 'standalone' | 'parent' | 'child';
398
394
  /**
399
- * Address with associated geolocation.
395
+ * A saved address that can be used for billing and shipping on sales orders,
396
+ * invoices, and shipments.
400
397
  */
401
398
  ship_to_address: APIKeysAPI.Address | null;
402
399
  /**
403
- * Account status code.
400
+ * Account status code, controlling whether the customer can transact.
401
+ *
402
+ * - `normal`: standard active account with no restrictions.
403
+ * - `preferred`: active account flagged as preferred.
404
+ * - `hold_shipment`: orders can be placed, but shipments are held.
405
+ * - `hold_all`: all activity is on hold.
404
406
  */
405
407
  status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
406
408
  /**
407
- * Account group resource.
409
+ * A named grouping of customer accounts, used for pricing rules or to categorize
410
+ * accounts.
408
411
  */
409
412
  type: AccountGroupsAPI.AccountGroup | null;
410
413
  /**
@@ -442,19 +445,24 @@ export interface CustomerDefaults {
442
445
  */
443
446
  object: 'customer_defaults';
444
447
  /**
445
- * Payment term resource.
448
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
449
+ * customers, sales orders, purchase orders, and invoices.
446
450
  */
447
451
  payment_term: PaymentTerm | null;
448
452
  /**
449
- * Priority level used by sales orders and picks.
453
+ * Priority level used to order work on sales orders, purchase orders, and picks.
450
454
  */
451
455
  priority: PrioritiesAPI.Priority | null;
452
456
  /**
453
- * Account user with profile, role, and department.
457
+ * A user's membership in an account, carrying the account-specific status, role,
458
+ * and department.
459
+ *
460
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
461
+ * sub-resource, which is shared across every account the user belongs to.
454
462
  */
455
- sales_rep: AccountUser | null;
463
+ sales_rep: BlocksAPI.AccountUser | null;
456
464
  /**
457
- * ShippingTerm resource.
465
+ * A shipping term defining how freight charges are calculated for an order.
458
466
  */
459
467
  shipping_term: ShippingTerm | null;
460
468
  }
@@ -463,15 +471,22 @@ export interface CustomerDefaults {
463
471
  */
464
472
  export interface CustomerFreightPreferences {
465
473
  /**
466
- * Carrier billing account number.
474
+ * Carrier billing account number charged when `billing_type` is `third_party`.
467
475
  */
468
476
  billing_account: string | null;
469
477
  /**
470
- * Carrier billing type.
478
+ * Who pays the carrier for shipments.
479
+ *
480
+ * - `sender`: the shipper (you) pays the carrier.
481
+ * - `third_party`: a third party is billed, using `billing_account`.
471
482
  */
472
483
  billing_type: 'sender' | 'third_party' | null;
473
484
  /**
474
- * Carrier resource.
485
+ * A shipping carrier configured for fulfilling orders.
486
+ *
487
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
488
+ * through Shippo for live rating and label purchase; other carriers represent
489
+ * self-managed shipping methods such as will call or local delivery.
475
490
  */
476
491
  carrier: Carrier | null;
477
492
  /**
@@ -483,7 +498,11 @@ export interface CustomerFreightPreferences {
483
498
  */
484
499
  service_level: ServiceLevel | null;
485
500
  /**
486
- * Freight policy.
501
+ * Freight policy applied to this customer's orders.
502
+ *
503
+ * - `free_freight`: the customer is not billed for freight.
504
+ * - `billed_freight`: freight is billed to the customer, unless overridden
505
+ * elsewhere.
487
506
  */
488
507
  status: 'free_freight' | 'billed_freight';
489
508
  }
@@ -500,64 +519,6 @@ export interface CustomerNotificationPreferences {
500
519
  */
501
520
  object: 'customer_notification_preferences';
502
521
  }
503
- /**
504
- * Department resource.
505
- */
506
- export interface Department {
507
- /**
508
- * Department ID.
509
- */
510
- id: string;
511
- /**
512
- * Creation timestamp.
513
- */
514
- created_at: string;
515
- /**
516
- * Location resource.
517
- */
518
- location: Location | null;
519
- /**
520
- * List represents a paginated list of resources.
521
- */
522
- machines: ListMachine | null;
523
- /**
524
- * Display name.
525
- */
526
- name: string;
527
- /**
528
- * Notes about the department.
529
- */
530
- notes: string | null;
531
- /**
532
- * Resource type identifier.
533
- */
534
- object: 'department';
535
- /**
536
- * List represents a paginated list of resources.
537
- */
538
- scanning_stations: ListScanningStation | null;
539
- /**
540
- * Last update timestamp.
541
- */
542
- updated_at: string;
543
- }
544
- /**
545
- * List represents a paginated list of resources.
546
- */
547
- export interface ListConsumption {
548
- /**
549
- * Resources in this page.
550
- */
551
- data: Array<Consumption>;
552
- /**
553
- * Resource type identifier.
554
- */
555
- object: 'list';
556
- /**
557
- * PageInfo contains URL-based pagination metadata.
558
- */
559
- page_info: APIKeysAPI.PageInfo;
560
- }
561
522
  /**
562
523
  * List represents a paginated list of resources.
563
524
  */
@@ -578,11 +539,11 @@ export interface ListCustomer {
578
539
  /**
579
540
  * List represents a paginated list of resources.
580
541
  */
581
- export interface ListLocation {
542
+ export interface ListServiceLevel {
582
543
  /**
583
544
  * Resources in this page.
584
545
  */
585
- data: Array<Location>;
546
+ data: Array<ServiceLevel>;
586
547
  /**
587
548
  * Resource type identifier.
588
549
  */
@@ -593,550 +554,391 @@ export interface ListLocation {
593
554
  page_info: APIKeysAPI.PageInfo;
594
555
  }
595
556
  /**
596
- * List represents a paginated list of resources.
557
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
558
+ * customers, sales orders, purchase orders, and invoices.
597
559
  */
598
- export interface ListMachine {
599
- /**
600
- * Resources in this page.
601
- */
602
- data: Array<Machine>;
560
+ export interface PaymentTerm {
603
561
  /**
604
- * Resource type identifier.
562
+ * Payment term ID.
605
563
  */
606
- object: 'list';
564
+ id: string;
607
565
  /**
608
- * PageInfo contains URL-based pagination metadata.
566
+ * Creation timestamp.
609
567
  */
610
- page_info: APIKeysAPI.PageInfo;
611
- }
612
- /**
613
- * List represents a paginated list of resources.
614
- */
615
- export interface ListProductionStep {
568
+ created_at: string;
616
569
  /**
617
- * Resources in this page.
570
+ * Display name (e.g. `Net 30`).
618
571
  */
619
- data: Array<ProductionStep>;
572
+ name: string;
620
573
  /**
621
574
  * Resource type identifier.
622
575
  */
623
- object: 'list';
624
- /**
625
- * PageInfo contains URL-based pagination metadata.
626
- */
627
- page_info: APIKeysAPI.PageInfo;
628
- }
629
- /**
630
- * List represents a paginated list of resources.
631
- */
632
- export interface ListScanningStation {
576
+ object: 'payment_term';
633
577
  /**
634
- * Resources in this page.
578
+ * Owner describes the provenance of a resource.
635
579
  */
636
- data: Array<ScanningStation>;
580
+ owner: APIKeysAPI.Owner | null;
637
581
  /**
638
- * Resource type identifier.
582
+ * Lifecycle status of the payment term.
639
583
  */
640
- object: 'list';
584
+ status: 'active' | 'inactive';
641
585
  /**
642
- * PageInfo contains URL-based pagination metadata.
586
+ * Last-updated timestamp.
643
587
  */
644
- page_info: APIKeysAPI.PageInfo;
588
+ updated_at: string;
645
589
  }
646
590
  /**
647
- * List represents a paginated list of resources.
591
+ * A value with an associated unit, used in create and update requests.
648
592
  */
649
- export interface ListServiceLevel {
650
- /**
651
- * Resources in this page.
652
- */
653
- data: Array<ServiceLevel>;
593
+ export interface QuantityInput {
654
594
  /**
655
- * Resource type identifier.
595
+ * ID of the unit of measure for the value.
656
596
  */
657
- object: 'list';
597
+ unit_id: string;
658
598
  /**
659
- * PageInfo contains URL-based pagination metadata.
599
+ * Decimal value, as a string to preserve precision.
660
600
  */
661
- page_info: APIKeysAPI.PageInfo;
601
+ value: string;
662
602
  }
663
603
  /**
664
- * Location resource.
604
+ * Shipping service level for a carrier.
665
605
  */
666
- export interface Location {
606
+ export interface ServiceLevel {
667
607
  /**
668
- * Location ID.
608
+ * Service level ID.
669
609
  */
670
610
  id: string;
671
- /**
672
- * List represents a paginated list of resources.
673
- */
674
- children: ListLocation | null;
675
611
  /**
676
612
  * Creation timestamp.
677
613
  */
678
614
  created_at: string;
679
615
  /**
680
- * Display name.
616
+ * Whether customers can see and select this service level at checkout in the
617
+ * customer portal.
618
+ */
619
+ customer_portal_visibility: 'visible' | 'hidden';
620
+ /**
621
+ * Whether this is the carrier's default service level, pre-selected when the
622
+ * carrier is chosen.
623
+ *
624
+ * Each carrier has at most one default; setting a new default clears the previous
625
+ * one.
626
+ */
627
+ is_default: boolean;
628
+ /**
629
+ * Human-readable name for the service level, shown to customers at checkout when
630
+ * the service level is visible.
681
631
  */
682
632
  name: string;
683
633
  /**
684
634
  * Resource type identifier.
685
635
  */
686
- object: 'location';
636
+ object: 'service_level';
687
637
  /**
688
- * Location resource.
638
+ * Owner describes the provenance of a resource.
689
639
  */
690
- parent: Location | null;
640
+ owner: APIKeysAPI.Owner | null;
691
641
  /**
692
- * Location type code.
642
+ * Carrier-specific code identifying this service level (e.g. `fedex_ground`,
643
+ * `ups_next_day_air`).
644
+ *
645
+ * Values are carrier-defined, so any non-empty string is accepted.
693
646
  */
694
- type: 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
647
+ service_level_token: string;
695
648
  /**
696
- * Last-updated timestamp.
649
+ * Last updated timestamp.
697
650
  */
698
651
  updated_at: string;
699
652
  }
700
653
  /**
701
- * Machine within an account.
654
+ * A shipping term defining how freight charges are calculated for an order.
702
655
  */
703
- export interface Machine {
656
+ export interface ShippingTerm {
704
657
  /**
705
- * Machine ID.
658
+ * Shipping term ID.
706
659
  */
707
660
  id: string;
708
661
  /**
709
- * Creation timestamp.
662
+ * When this shipping term was created.
710
663
  */
711
664
  created_at: string;
712
665
  /**
713
- * Department resource.
666
+ * Value with an associated unit.
667
+ */
668
+ flat_rate: ItemsAPI.Quantity | null;
669
+ /**
670
+ * List represents a paginated list of resources.
714
671
  */
715
- department: Department | null;
672
+ free_shipping_service_levels: ListServiceLevel | null;
716
673
  /**
717
- * Display name.
674
+ * Value with an associated unit.
718
675
  */
719
- name: string;
676
+ minimum_order_value: ItemsAPI.Quantity | null;
720
677
  /**
721
- * Notes.
678
+ * Human-readable name for the shipping term, used to identify it when assigning
679
+ * shipping terms to customers and orders.
722
680
  */
723
- notes: string | null;
681
+ name: string;
724
682
  /**
725
683
  * Resource type identifier.
726
684
  */
727
- object: 'machine';
685
+ object: 'shipping_term';
728
686
  /**
729
- * Serial number.
687
+ * Owner describes the provenance of a resource.
730
688
  */
731
- serial_number: string;
689
+ owner: APIKeysAPI.Owner | null;
732
690
  /**
733
- * Last updated timestamp.
691
+ * Freight pricing model applied by this shipping term.
692
+ *
693
+ * - `free_freight`: no shipping cost to the buyer.
694
+ * - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
695
+ * `flat_rate`).
696
+ * - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
697
+ * rate.
734
698
  */
735
- updated_at: string;
736
- }
737
- /**
738
- * Payment term resource.
739
- */
740
- export interface PaymentTerm {
741
- /**
742
- * Payment term ID.
743
- */
744
- id: string;
745
- /**
746
- * Creation timestamp.
747
- */
748
- created_at: string;
749
- /**
750
- * Display name.
751
- */
752
- name: string;
753
- /**
754
- * Resource type identifier.
755
- */
756
- object: 'payment_term';
757
- /**
758
- * Owner describes the provenance of a resource.
759
- */
760
- owner: APIKeysAPI.Owner | null;
761
- /**
762
- * Payment term status.
763
- */
764
- status: 'active' | 'inactive';
699
+ type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
765
700
  /**
766
- * Last-updated timestamp.
701
+ * When this shipping term was last updated.
767
702
  */
768
703
  updated_at: string;
769
704
  }
770
705
  /**
771
- * Production output of a production step.
706
+ * Request to partially update a customer.
772
707
  */
773
- export interface ProductionOutput {
774
- /**
775
- * Production ID.
776
- */
777
- id: string;
708
+ export interface UpdateCustomerRequest {
778
709
  /**
779
- * Creation timestamp.
710
+ * ID of an existing address to use as the default billing address.
780
711
  */
781
- created_at: string;
712
+ bill_to_address_id?: string | null;
782
713
  /**
783
- * Resource type identifier.
714
+ * Carrier billing account number charged when `carrier_billing_type` is
715
+ * `third_party`.
784
716
  */
785
- object: 'production';
717
+ carrier_billing_account?: string | null;
786
718
  /**
787
- * Item is an inventory item (product, material, or part).
719
+ * Who pays the carrier for shipments.
720
+ *
721
+ * - `sender`: the shipper (you) pays the carrier.
722
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
788
723
  */
789
- produced_item: ItemsAPI.Item | null;
724
+ carrier_billing_type?: 'sender' | 'third_party';
790
725
  /**
791
- * Value with an associated unit.
726
+ * How sales commission applies to this customer's orders.
727
+ *
728
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
729
+ * - `commission_applied`: sales commission is calculated on this customer's
730
+ * orders.
792
731
  */
793
- quantity: ItemsAPI.Quantity | null;
732
+ commission_policy?: 'commission_applied' | 'commission_exempt';
794
733
  /**
795
- * Last updated timestamp.
734
+ * A value with an associated unit, used in create and update requests.
796
735
  */
797
- updated_at: string;
798
- }
799
- /**
800
- * Production step with all nested data.
801
- */
802
- export interface ProductionStep {
736
+ credit_limit?: QuantityInput | null;
803
737
  /**
804
- * Production step ID.
738
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
739
+ * used to apply pricing rules.
740
+ *
741
+ * When provided, replaces the customer's full set of existing price groups.
805
742
  */
806
- id: string;
743
+ customer_price_group_ids?: Array<string>;
807
744
  /**
808
- * Allowances as a decimal string.
745
+ * ID of the account group of type `type_group` that categorizes this customer (for
746
+ * example "Distributors").
809
747
  */
810
- allowances: string;
748
+ customer_type_group_id?: string;
811
749
  /**
812
- * List represents a paginated list of resources.
750
+ * ID of the default carrier for this customer's shipments.
813
751
  */
814
- consumptions: ListConsumption | null;
752
+ default_carrier_id?: string;
815
753
  /**
816
- * Creation timestamp.
754
+ * Default payment term ID.
817
755
  */
818
- created_at: string;
756
+ default_payment_term_id?: string;
819
757
  /**
820
- * Department resource.
758
+ * Priority applied to new orders for this customer.
821
759
  */
822
- department: Department | null;
760
+ default_priority?: 'low' | 'normal' | 'high';
823
761
  /**
824
- * List represents a paginated list of resources.
762
+ * The ID of the account user to assign as the default sales rep.
825
763
  */
826
- in_steps: ListProductionStep | null;
764
+ default_sales_rep_id?: string | null;
827
765
  /**
828
- * Rate resource.
766
+ * ID of the default carrier service level.
829
767
  */
830
- labor_rate: ItemsAPI.Rate | null;
768
+ default_service_level_id?: string | null;
831
769
  /**
832
- * Rate resource.
770
+ * Default shipping term ID.
833
771
  */
834
- labor_time: ItemsAPI.Rate | null;
772
+ default_shipping_term_id?: string;
835
773
  /**
836
- * Leveling factor as a decimal string.
774
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
775
+ * documents with this customer.
837
776
  */
838
- leveling_factor: string;
777
+ edi_status?: 'enabled' | 'disabled';
839
778
  /**
840
- * List represents a paginated list of resources.
779
+ * Email address.
841
780
  */
842
- machines: ListMachine | null;
781
+ email?: string | null;
843
782
  /**
844
- * Display name.
783
+ * Whether this customer is billed for freight on their orders.
784
+ *
785
+ * - `free_freight`: the customer is not billed for freight.
786
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
787
+ * order.
845
788
  */
846
- name: string;
789
+ freight_policy?: 'free_freight' | 'billed_freight';
847
790
  /**
848
- * Notes.
791
+ * The customer's business name, as shown throughout the app and on documents.
849
792
  */
850
- notes: string | null;
793
+ name?: string;
851
794
  /**
852
- * Resource type identifier.
795
+ * Free-form note about the customer.
853
796
  */
854
- object: 'production_step';
797
+ note?: string | null;
855
798
  /**
856
- * List represents a paginated list of resources.
799
+ * Human-readable customer number used to identify the account, distinct from the
800
+ * `id`.
801
+ *
802
+ * Must be unique within your account.
857
803
  */
858
- out_steps: ListProductionStep | null;
804
+ number?: string;
859
805
  /**
860
- * Rate resource.
806
+ * Phone number.
861
807
  */
862
- overhead_rate: ItemsAPI.Rate | null;
808
+ phone?: string | null;
863
809
  /**
864
- * Production output of a production step.
810
+ * ID of an existing address to use as the default shipping address.
865
811
  */
866
- production: ProductionOutput | null;
812
+ ship_to_address_id?: string | null;
867
813
  /**
868
- * Scanning station resource.
814
+ * Account status code, controlling whether the customer can transact.
815
+ *
816
+ * - `normal`: standard active account with no restrictions.
817
+ * - `preferred`: active account flagged as preferred.
818
+ * - `hold_shipment`: orders can be placed, but shipments are held.
819
+ * - `hold_all`: all activity is on hold.
869
820
  */
870
- scanning_station: ScanningStation | null;
821
+ status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
871
822
  /**
872
- * Last updated timestamp.
823
+ * Website URL.
873
824
  */
874
- updated_at: string;
825
+ url?: string | null;
875
826
  }
876
- /**
877
- * QuantityInput represents a value with an associated unit for create/update
878
- * requests.
879
- */
880
- export interface QuantityInput {
881
- /**
882
- * The unit ID for the value.
883
- */
884
- unit_id: string;
885
- /**
886
- * The decimal value.
887
- */
888
- value: string;
827
+ export interface CustomerDeleteResponse {
889
828
  }
890
- /**
891
- * Scanning station resource.
892
- */
893
- export interface ScanningStation {
894
- /**
895
- * Scanning station ID.
896
- */
897
- id: string;
898
- /**
899
- * Creation timestamp.
900
- */
901
- created_at: string;
902
- /**
903
- * Department resource.
904
- */
905
- department: Department | null;
906
- /**
907
- * Label size code.
908
- */
909
- label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
910
- /**
911
- * Label type code.
912
- */
913
- label_type: 'tag' | 'traveler' | null;
914
- /**
915
- * Display name.
916
- */
917
- name: string;
918
- /**
919
- * Notes.
920
- */
921
- notes: string | null;
922
- /**
923
- * Resource type identifier.
924
- */
925
- object: 'scanning_station';
926
- /**
927
- * Operator requirement behavior for this station.
928
- */
929
- operator_requirement: 'none' | 'material_check';
930
- /**
931
- * List represents a paginated list of resources.
932
- */
933
- production_steps: ListProductionStep | null;
934
- /**
935
- * Scanning station type.
936
- */
937
- type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
829
+ export interface CustomerListParams {
938
830
  /**
939
- * Last updated timestamp.
831
+ * Filter by default carrier IDs.
940
832
  */
941
- updated_at: string;
942
- }
943
- /**
944
- * Shipping service level for a carrier.
945
- */
946
- export interface ServiceLevel {
833
+ carrier_ids?: Array<string>;
947
834
  /**
948
- * Service level ID.
835
+ * Filter to customers with any address in this city (exact match).
836
+ *
837
+ * When combined with `state` or `postal_code`, a single address must match all
838
+ * provided values.
949
839
  */
950
- id: string;
840
+ city?: string;
951
841
  /**
952
- * Creation timestamp.
842
+ * Filter by commission policy.
953
843
  */
954
- created_at: string;
844
+ commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
955
845
  /**
956
- * Customer portal visibility.
846
+ * Opaque cursor token identifying where the page of results starts.
847
+ *
848
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
849
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
850
+ * page.
957
851
  */
958
- customer_portal_visibility: 'visible' | 'hidden';
852
+ cursor?: string;
959
853
  /**
960
- * Default service level for the carrier.
854
+ * Filter by customer type group IDs (the account group of type `type_group`
855
+ * returned in the customer's `type` field).
961
856
  */
962
- is_default: boolean;
857
+ customer_group_ids?: Array<string>;
963
858
  /**
964
- * Display name.
859
+ * Filter to customers created at or before this timestamp (inclusive).
965
860
  */
966
- name: string;
861
+ end_date?: string;
967
862
  /**
968
- * Resource type identifier.
863
+ * Filter by freight policy.
969
864
  */
970
- object: 'service_level';
865
+ freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
971
866
  /**
972
- * Owner describes the provenance of a resource.
867
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
868
+ * `null`.
973
869
  */
974
- owner: APIKeysAPI.Owner | null;
870
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.carrier.service_levels' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit' | 'credit_limit.unit'>;
975
871
  /**
976
- * Service level token.
872
+ * Maximum number of results to return in a single page.
977
873
  */
978
- service_level_token: string;
874
+ limit?: number;
979
875
  /**
980
- * Last updated timestamp.
876
+ * Filter by whether the customer has child accounts.
981
877
  */
982
- updated_at: string;
983
- }
984
- /**
985
- * ShippingTerm resource.
986
- */
987
- export interface ShippingTerm {
878
+ parent_account_status?: 'parent' | 'non_parent';
988
879
  /**
989
- * Shipping term ID.
880
+ * Filter by default payment term IDs.
990
881
  */
991
- id: string;
882
+ payment_term_ids?: Array<string>;
992
883
  /**
993
- * When this shipping term was created.
884
+ * Filter to customers with any address in this postal code (exact match).
994
885
  */
995
- created_at: string;
886
+ postal_code?: string;
996
887
  /**
997
- * Value with an associated unit.
888
+ * Filter to customers that belong to any of these pricing groups.
998
889
  */
999
- flat_rate: ItemsAPI.Quantity | null;
890
+ pricing_group_ids?: Array<string>;
1000
891
  /**
1001
- * List represents a paginated list of resources.
892
+ * Free-text search term used to filter results.
893
+ *
894
+ * Which fields are matched against the term varies by endpoint.
1002
895
  */
1003
- free_shipping_service_levels: ListServiceLevel | null;
896
+ q?: string;
1004
897
  /**
1005
- * Value with an associated unit.
898
+ * Filter by default sales rep IDs.
1006
899
  */
1007
- minimum_order_value: ItemsAPI.Quantity | null;
900
+ sales_rep_ids?: Array<string>;
1008
901
  /**
1009
- * Display name.
902
+ * Filter by default service level IDs.
1010
903
  */
1011
- name: string;
904
+ service_level_ids?: Array<string>;
1012
905
  /**
1013
- * Resource type identifier.
906
+ * Filter by default shipping term IDs.
1014
907
  */
1015
- object: 'shipping_term';
908
+ shipping_term_ids?: Array<string>;
1016
909
  /**
1017
- * Owner describes the provenance of a resource.
910
+ * Filter to customers created at or after this timestamp (inclusive).
1018
911
  */
1019
- owner: APIKeysAPI.Owner | null;
912
+ start_date?: string;
1020
913
  /**
1021
- * Shipping term type.
914
+ * Filter to customers with any address in this state (exact match).
1022
915
  */
1023
- type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
916
+ state?: string;
1024
917
  /**
1025
- * When this shipping term was last updated.
918
+ * Filter by account status codes.
1026
919
  */
1027
- updated_at: string;
920
+ status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1028
921
  }
1029
- /**
1030
- * Request to partially update a customer.
1031
- */
1032
- export interface UpdateCustomerRequest {
1033
- /**
1034
- * Bill-to address ID.
1035
- */
1036
- bill_to_address_id?: string | null;
1037
- /**
1038
- * Carrier billing account number.
1039
- */
1040
- carrier_billing_account?: string | null;
1041
- /**
1042
- * Carrier billing type.
1043
- */
1044
- carrier_billing_type?: 'sender' | 'third_party';
1045
- /**
1046
- * Commission policy.
1047
- */
1048
- commission_policy?: 'commission_applied' | 'commission_exempt';
1049
- /**
1050
- * QuantityInput represents a value with an associated unit for create/update
1051
- * requests.
1052
- */
1053
- credit_limit?: QuantityInput | null;
1054
- /**
1055
- * Price group IDs. Replaces all existing price groups when provided.
1056
- */
1057
- customer_price_group_ids?: Array<string>;
1058
- /**
1059
- * Customer type group ID.
1060
- */
1061
- customer_type_group_id?: string;
1062
- /**
1063
- * Default carrier ID.
1064
- */
1065
- default_carrier_id?: string;
1066
- /**
1067
- * Default payment term ID.
1068
- */
1069
- default_payment_term_id?: string;
1070
- /**
1071
- * Default priority code.
1072
- */
1073
- default_priority?: 'low' | 'normal' | 'high';
1074
- /**
1075
- * The ID of the account user to assign as the default sales rep.
1076
- */
1077
- default_sales_rep_id?: string | null;
1078
- /**
1079
- * Default service level ID.
1080
- */
1081
- default_service_level_id?: string | null;
1082
- /**
1083
- * Default shipping term ID.
1084
- */
1085
- default_shipping_term_id?: string;
1086
- /**
1087
- * EDI status.
1088
- */
1089
- edi_status?: 'enabled' | 'disabled';
1090
- /**
1091
- * Email address. Send null to clear.
1092
- */
1093
- email?: string | null;
1094
- /**
1095
- * Freight policy.
1096
- */
1097
- freight_policy?: 'free_freight' | 'billed_freight';
1098
- /**
1099
- * Customer name.
1100
- */
1101
- name?: string;
1102
- /**
1103
- * Note.
1104
- */
1105
- note?: string | null;
1106
- /**
1107
- * Customer number.
1108
- */
1109
- number?: string;
1110
- /**
1111
- * Phone number. Send null to clear.
1112
- */
1113
- phone?: string | null;
1114
- /**
1115
- * Ship-to address ID.
1116
- */
1117
- ship_to_address_id?: string | null;
1118
- /**
1119
- * Account status code.
1120
- */
1121
- status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
922
+ export interface CustomerRetrieveParams {
1122
923
  /**
1123
- * Website URL. Send null to clear.
924
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
925
+ * `null`.
1124
926
  */
1125
- url?: string | null;
1126
- }
1127
- export interface CustomerDeleteResponse {
927
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.carrier.service_levels' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit' | 'credit_limit.unit'>;
1128
928
  }
1129
929
  export interface CustomerCreateParams {
1130
930
  /**
1131
- * Body param: Request to create an address.
931
+ * Body param: Address details used to create an address, either directly or inline
932
+ * on another resource.
1132
933
  */
1133
934
  bill_to_address: AddressesAPI.AddressInput;
1134
935
  /**
1135
- * Body param: Customer type group ID.
936
+ * Body param: ID of the account group of type `type_group` that categorizes this
937
+ * customer (for example "Distributors").
1136
938
  */
1137
939
  customer_type_group_id: string;
1138
940
  /**
1139
- * Body param: Default carrier ID.
941
+ * Body param: ID of the default carrier for this customer's shipments.
1140
942
  */
1141
943
  default_carrier_id: string;
1142
944
  /**
@@ -1148,41 +950,51 @@ export interface CustomerCreateParams {
1148
950
  */
1149
951
  default_shipping_term_id: string;
1150
952
  /**
1151
- * Body param: Display name.
953
+ * Body param: The customer's business name, as shown throughout the app and on
954
+ * documents.
1152
955
  */
1153
956
  name: string;
1154
957
  /**
1155
- * Body param: Request to create an address.
958
+ * Body param: Address details used to create an address, either directly or inline
959
+ * on another resource.
1156
960
  */
1157
961
  ship_to_address: AddressesAPI.AddressInput;
1158
962
  /**
1159
963
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1160
964
  * are returned as `null`.
1161
965
  */
1162
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
966
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.carrier.service_levels' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit' | 'credit_limit.unit'>;
1163
967
  /**
1164
- * Body param: Carrier billing account number.
968
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
969
+ * is `third_party`.
1165
970
  */
1166
971
  carrier_billing_account?: string;
1167
972
  /**
1168
- * Body param: Carrier billing type.
973
+ * Body param: Who pays the carrier for shipments.
974
+ *
975
+ * - `sender`: the shipper (you) pays the carrier.
976
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1169
977
  */
1170
978
  carrier_billing_type?: 'sender' | 'third_party';
1171
979
  /**
1172
- * Body param: Commission policy.
980
+ * Body param: How sales commission applies to this customer's orders.
981
+ *
982
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
983
+ * - `commission_applied`: sales commission is calculated on this customer's
984
+ * orders.
1173
985
  */
1174
986
  commission_policy?: 'commission_applied' | 'commission_exempt';
1175
987
  /**
1176
- * Body param: QuantityInput represents a value with an associated unit for
1177
- * create/update requests.
988
+ * Body param: A value with an associated unit, used in create and update requests.
1178
989
  */
1179
990
  credit_limit?: QuantityInput;
1180
991
  /**
1181
- * Body param: Price group IDs.
992
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
993
+ * customer, used to apply pricing rules.
1182
994
  */
1183
995
  customer_price_group_ids?: Array<string>;
1184
996
  /**
1185
- * Body param: Default priority code.
997
+ * Body param: Priority applied to new orders for this customer.
1186
998
  */
1187
999
  default_priority?: 'low' | 'normal' | 'high';
1188
1000
  /**
@@ -1190,11 +1002,12 @@ export interface CustomerCreateParams {
1190
1002
  */
1191
1003
  default_sales_rep_id?: string;
1192
1004
  /**
1193
- * Body param: Default service level ID.
1005
+ * Body param: ID of the default carrier service level.
1194
1006
  */
1195
1007
  default_service_level_id?: string;
1196
1008
  /**
1197
- * Body param: EDI status.
1009
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1010
+ * orders and documents with this customer.
1198
1011
  */
1199
1012
  edi_status?: 'enabled' | 'disabled';
1200
1013
  /**
@@ -1202,15 +1015,23 @@ export interface CustomerCreateParams {
1202
1015
  */
1203
1016
  email?: string;
1204
1017
  /**
1205
- * Body param: Freight policy.
1018
+ * Body param: Whether this customer is billed for freight on their orders.
1019
+ *
1020
+ * - `free_freight`: the customer is not billed for freight.
1021
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1022
+ * order.
1206
1023
  */
1207
1024
  freight_policy?: 'free_freight' | 'billed_freight';
1208
1025
  /**
1209
- * Body param: Note.
1026
+ * Body param: Free-form note about the customer.
1210
1027
  */
1211
1028
  note?: string;
1212
1029
  /**
1213
- * Body param: Customer number. Auto-generated if omitted.
1030
+ * Body param: Human-readable customer number used to identify the account,
1031
+ * distinct from the `id`.
1032
+ *
1033
+ * Must be unique within your account. If omitted, the next sequential number is
1034
+ * assigned automatically.
1214
1035
  */
1215
1036
  number?: string;
1216
1037
  /**
@@ -1218,7 +1039,12 @@ export interface CustomerCreateParams {
1218
1039
  */
1219
1040
  phone?: string;
1220
1041
  /**
1221
- * Body param: Account status code.
1042
+ * Body param: Account status code, controlling whether the customer can transact.
1043
+ *
1044
+ * - `normal`: standard active account with no restrictions.
1045
+ * - `preferred`: active account flagged as preferred.
1046
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1047
+ * - `hold_all`: all activity is on hold.
1222
1048
  */
1223
1049
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1224
1050
  /**
@@ -1226,50 +1052,54 @@ export interface CustomerCreateParams {
1226
1052
  */
1227
1053
  url?: string;
1228
1054
  }
1229
- export interface CustomerRetrieveParams {
1230
- /**
1231
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1232
- * `null`.
1233
- */
1234
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1235
- }
1236
1055
  export interface CustomerUpdateParams {
1237
1056
  /**
1238
1057
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
1239
1058
  * are returned as `null`.
1240
1059
  */
1241
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1060
+ include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.carrier.service_levels' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.sales_rep.user' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit' | 'credit_limit.unit'>;
1242
1061
  /**
1243
- * Body param: Bill-to address ID.
1062
+ * Body param: ID of an existing address to use as the default billing address.
1244
1063
  */
1245
1064
  bill_to_address_id?: string | null;
1246
1065
  /**
1247
- * Body param: Carrier billing account number.
1066
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1067
+ * is `third_party`.
1248
1068
  */
1249
1069
  carrier_billing_account?: string | null;
1250
1070
  /**
1251
- * Body param: Carrier billing type.
1071
+ * Body param: Who pays the carrier for shipments.
1072
+ *
1073
+ * - `sender`: the shipper (you) pays the carrier.
1074
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1252
1075
  */
1253
1076
  carrier_billing_type?: 'sender' | 'third_party';
1254
1077
  /**
1255
- * Body param: Commission policy.
1078
+ * Body param: How sales commission applies to this customer's orders.
1079
+ *
1080
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1081
+ * - `commission_applied`: sales commission is calculated on this customer's
1082
+ * orders.
1256
1083
  */
1257
1084
  commission_policy?: 'commission_applied' | 'commission_exempt';
1258
1085
  /**
1259
- * Body param: QuantityInput represents a value with an associated unit for
1260
- * create/update requests.
1086
+ * Body param: A value with an associated unit, used in create and update requests.
1261
1087
  */
1262
1088
  credit_limit?: QuantityInput | null;
1263
1089
  /**
1264
- * Body param: Price group IDs. Replaces all existing price groups when provided.
1090
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1091
+ * customer, used to apply pricing rules.
1092
+ *
1093
+ * When provided, replaces the customer's full set of existing price groups.
1265
1094
  */
1266
1095
  customer_price_group_ids?: Array<string>;
1267
1096
  /**
1268
- * Body param: Customer type group ID.
1097
+ * Body param: ID of the account group of type `type_group` that categorizes this
1098
+ * customer (for example "Distributors").
1269
1099
  */
1270
1100
  customer_type_group_id?: string;
1271
1101
  /**
1272
- * Body param: Default carrier ID.
1102
+ * Body param: ID of the default carrier for this customer's shipments.
1273
1103
  */
1274
1104
  default_carrier_id?: string;
1275
1105
  /**
@@ -1277,7 +1107,7 @@ export interface CustomerUpdateParams {
1277
1107
  */
1278
1108
  default_payment_term_id?: string;
1279
1109
  /**
1280
- * Body param: Default priority code.
1110
+ * Body param: Priority applied to new orders for this customer.
1281
1111
  */
1282
1112
  default_priority?: 'low' | 'normal' | 'high';
1283
1113
  /**
@@ -1285,7 +1115,7 @@ export interface CustomerUpdateParams {
1285
1115
  */
1286
1116
  default_sales_rep_id?: string | null;
1287
1117
  /**
1288
- * Body param: Default service level ID.
1118
+ * Body param: ID of the default carrier service level.
1289
1119
  */
1290
1120
  default_service_level_id?: string | null;
1291
1121
  /**
@@ -1293,131 +1123,62 @@ export interface CustomerUpdateParams {
1293
1123
  */
1294
1124
  default_shipping_term_id?: string;
1295
1125
  /**
1296
- * Body param: EDI status.
1126
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1127
+ * orders and documents with this customer.
1297
1128
  */
1298
1129
  edi_status?: 'enabled' | 'disabled';
1299
1130
  /**
1300
- * Body param: Email address. Send null to clear.
1131
+ * Body param: Email address.
1301
1132
  */
1302
1133
  email?: string | null;
1303
1134
  /**
1304
- * Body param: Freight policy.
1135
+ * Body param: Whether this customer is billed for freight on their orders.
1136
+ *
1137
+ * - `free_freight`: the customer is not billed for freight.
1138
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1139
+ * order.
1305
1140
  */
1306
1141
  freight_policy?: 'free_freight' | 'billed_freight';
1307
1142
  /**
1308
- * Body param: Customer name.
1143
+ * Body param: The customer's business name, as shown throughout the app and on
1144
+ * documents.
1309
1145
  */
1310
1146
  name?: string;
1311
1147
  /**
1312
- * Body param: Note.
1148
+ * Body param: Free-form note about the customer.
1313
1149
  */
1314
1150
  note?: string | null;
1315
1151
  /**
1316
- * Body param: Customer number.
1152
+ * Body param: Human-readable customer number used to identify the account,
1153
+ * distinct from the `id`.
1154
+ *
1155
+ * Must be unique within your account.
1317
1156
  */
1318
1157
  number?: string;
1319
1158
  /**
1320
- * Body param: Phone number. Send null to clear.
1159
+ * Body param: Phone number.
1321
1160
  */
1322
1161
  phone?: string | null;
1323
1162
  /**
1324
- * Body param: Ship-to address ID.
1163
+ * Body param: ID of an existing address to use as the default shipping address.
1325
1164
  */
1326
1165
  ship_to_address_id?: string | null;
1327
1166
  /**
1328
- * Body param: Account status code.
1167
+ * Body param: Account status code, controlling whether the customer can transact.
1168
+ *
1169
+ * - `normal`: standard active account with no restrictions.
1170
+ * - `preferred`: active account flagged as preferred.
1171
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1172
+ * - `hold_all`: all activity is on hold.
1329
1173
  */
1330
1174
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1331
1175
  /**
1332
- * Body param: Website URL. Send null to clear.
1176
+ * Body param: Website URL.
1333
1177
  */
1334
1178
  url?: string | null;
1335
1179
  }
1336
- export interface CustomerListParams {
1337
- /**
1338
- * Filter by carrier IDs.
1339
- */
1340
- carrier_ids?: Array<string>;
1341
- /**
1342
- * Filter by city.
1343
- */
1344
- city?: string;
1345
- /**
1346
- * Filter by commission status codes.
1347
- */
1348
- commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1349
- /**
1350
- * Cursor token used to retrieve the next or previous page of results.
1351
- */
1352
- cursor?: string;
1353
- /**
1354
- * Filter by customer group IDs.
1355
- */
1356
- customer_group_ids?: Array<string>;
1357
- /**
1358
- * Filter by end date (created before).
1359
- */
1360
- end_date?: string;
1361
- /**
1362
- * Filter by freight status codes.
1363
- */
1364
- freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1365
- /**
1366
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1367
- * `null`.
1368
- */
1369
- include?: Array<'bill_to_address' | 'ship_to_address' | 'type' | 'parent_account' | 'freight_preferences.carrier' | 'freight_preferences.service_level' | 'defaults.payment_term' | 'defaults.shipping_term' | 'defaults.sales_rep' | 'defaults.priority' | 'contact_info' | 'freight_preferences' | 'defaults' | 'notification_preferences' | 'price_groups' | 'child_accounts' | 'credit_limit'>;
1370
- /**
1371
- * Maximum number of results per page (default: 100, max: 1000).
1372
- */
1373
- limit?: number;
1374
- /**
1375
- * Filter by whether the customer has child accounts.
1376
- */
1377
- parent_account_status?: 'parent' | 'non_parent';
1378
- /**
1379
- * Filter by payment term IDs.
1380
- */
1381
- payment_term_ids?: Array<string>;
1382
- /**
1383
- * Filter by postal code.
1384
- */
1385
- postal_code?: string;
1386
- /**
1387
- * Filter by pricing group IDs.
1388
- */
1389
- pricing_group_ids?: Array<string>;
1390
- /**
1391
- * Search query used to filter results.
1392
- */
1393
- q?: string;
1394
- /**
1395
- * Filter by sales rep IDs.
1396
- */
1397
- sales_rep_ids?: Array<string>;
1398
- /**
1399
- * Filter by service level IDs.
1400
- */
1401
- service_level_ids?: Array<string>;
1402
- /**
1403
- * Filter by shipping term IDs.
1404
- */
1405
- shipping_term_ids?: Array<string>;
1406
- /**
1407
- * Filter by start date (created after).
1408
- */
1409
- start_date?: string;
1410
- /**
1411
- * Filter by state.
1412
- */
1413
- state?: string;
1414
- /**
1415
- * Filter by status codes.
1416
- */
1417
- status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1418
- }
1419
1180
  export declare namespace Customers {
1420
- export { type AccountUser as AccountUser, type Carrier as Carrier, type Consumption as Consumption, type CreateCustomerRequest as CreateCustomerRequest, type Customer as Customer, type CustomerContactInfo as CustomerContactInfo, type CustomerDefaults as CustomerDefaults, type CustomerFreightPreferences as CustomerFreightPreferences, type CustomerNotificationPreferences as CustomerNotificationPreferences, type Department as Department, type ListConsumption as ListConsumption, type ListCustomer as ListCustomer, type ListLocation as ListLocation, type ListMachine as ListMachine, type ListProductionStep as ListProductionStep, type ListScanningStation as ListScanningStation, type ListServiceLevel as ListServiceLevel, type Location as Location, type Machine as Machine, type PaymentTerm as PaymentTerm, type ProductionOutput as ProductionOutput, type ProductionStep as ProductionStep, type QuantityInput as QuantityInput, type ScanningStation as ScanningStation, type ServiceLevel as ServiceLevel, type ShippingTerm as ShippingTerm, type UpdateCustomerRequest as UpdateCustomerRequest, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerCreateParams as CustomerCreateParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerUpdateParams as CustomerUpdateParams, type CustomerListParams as CustomerListParams, };
1181
+ export { type Carrier as Carrier, type CreateCustomerRequest as CreateCustomerRequest, type Customer as Customer, type CustomerContactInfo as CustomerContactInfo, type CustomerDefaults as CustomerDefaults, type CustomerFreightPreferences as CustomerFreightPreferences, type CustomerNotificationPreferences as CustomerNotificationPreferences, type ListCustomer as ListCustomer, type ListServiceLevel as ListServiceLevel, type PaymentTerm as PaymentTerm, type QuantityInput as QuantityInput, type ServiceLevel as ServiceLevel, type ShippingTerm as ShippingTerm, type UpdateCustomerRequest as UpdateCustomerRequest, type CustomerDeleteResponse as CustomerDeleteResponse, type CustomerListParams as CustomerListParams, type CustomerRetrieveParams as CustomerRetrieveParams, type CustomerCreateParams as CustomerCreateParams, type CustomerUpdateParams as CustomerUpdateParams, };
1421
1182
  export { Actions as Actions, type MergeCustomersRequest as MergeCustomersRequest, type ActionMergeParams as ActionMergeParams, };
1422
1183
  }
1423
1184
  //# sourceMappingURL=customers.d.mts.map