@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,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as BlocksAPI from '../../messaging/blocks';
4
5
  import * as AccountGroupsAPI from '../account-groups';
5
6
  import * as AddressesAPI from '../addresses';
6
7
  import * as PrioritiesAPI from '../priorities';
@@ -19,32 +20,27 @@ export class Customers extends APIResource {
19
20
  actions: ActionsAPI.Actions = new ActionsAPI.Actions(this._client);
20
21
 
21
22
  /**
22
- * Creates a customer account. Auto-generates a customer number if one is not
23
- * provided.
23
+ * Returns a paginated list of customers for the current account.
24
+ *
25
+ * This endpoint requires the permission: `customers:read`.
24
26
  *
25
27
  * @example
26
28
  * ```ts
27
- * const customer = await client.sales.customers.create({
28
- * bill_to_address: { name: 'Acme Inc.', country: 'US' },
29
- * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
30
- * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
31
- * default_payment_term_id:
32
- * 'pytm_018694d6601ea771cd1b52e890',
33
- * default_shipping_term_id:
34
- * 'shtm_014341ab4bb5bf94d5b6936f86',
35
- * name: 'Acme Inc.',
36
- * ship_to_address: { name: 'Acme Inc.', country: 'US' },
37
- * });
29
+ * const listCustomer = await client.sales.customers.list();
38
30
  * ```
39
31
  */
40
- create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
41
- const { include, ...body } = params;
42
- return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
32
+ list(
33
+ query: CustomerListParams | null | undefined = {},
34
+ options?: RequestOptions,
35
+ ): APIPromise<ListCustomer> {
36
+ return this._client.get('/v1/sales/customers', { query, ...options });
43
37
  }
44
38
 
45
39
  /**
46
40
  * Returns a customer by ID.
47
41
  *
42
+ * This endpoint requires the permissions: `customers:read`, `suppliers:read`.
43
+ *
48
44
  * @example
49
45
  * ```ts
50
46
  * const customer = await client.sales.customers.retrieve(
@@ -61,13 +57,67 @@ export class Customers extends APIResource {
61
57
  }
62
58
 
63
59
  /**
64
- * Partially updates a customer account. When a Stripe integration is active,
65
- * customer changes are synced to Stripe.
60
+ * Creates a customer account with its default addresses, fulfillment settings, and
61
+ * order policies.
62
+ *
63
+ * If `number` is omitted, the next sequential customer number is assigned
64
+ * automatically.
65
+ *
66
+ * This endpoint requires the permission: `customers:create`.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const customer = await client.sales.customers.create({
71
+ * bill_to_address: {
72
+ * name: 'Acme Inc.',
73
+ * street_line_1: '123 Main St',
74
+ * locality: 'New York',
75
+ * state: 'NY',
76
+ * postal_code: '10001',
77
+ * country: 'US',
78
+ * },
79
+ * customer_type_group_id: 'acgp_018e88072d1320808dc979cfac',
80
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
81
+ * default_payment_term_id:
82
+ * 'pytm_018694d6601ea771cd1b52e890',
83
+ * default_shipping_term_id:
84
+ * 'shtm_014341ab4bb5bf94d5b6936f86',
85
+ * name: 'Acme Inc.',
86
+ * ship_to_address: {
87
+ * name: 'Acme Inc.',
88
+ * street_line_1: '123 Main St',
89
+ * locality: 'New York',
90
+ * state: 'NY',
91
+ * postal_code: '10001',
92
+ * country: 'US',
93
+ * },
94
+ * note: 'Key enterprise account',
95
+ * });
96
+ * ```
97
+ */
98
+ create(params: CustomerCreateParams, options?: RequestOptions): APIPromise<Customer> {
99
+ const { include, ...body } = params;
100
+ return this._client.post('/v1/sales/customers', { query: { include }, body, ...options });
101
+ }
102
+
103
+ /**
104
+ * Partially updates a customer account.
105
+ *
106
+ * Only the fields provided in the request are changed. Nullable fields can be set
107
+ * to `null` to clear their current value.
108
+ *
109
+ * This endpoint requires the permission: `customers:update`.
66
110
  *
67
111
  * @example
68
112
  * ```ts
69
113
  * const customer = await client.sales.customers.update(
70
114
  * 'ac_0170df1ac58e4d24c66fc89f5f',
115
+ * {
116
+ * default_carrier_id: 'cr_01784fd54c9ba197bb4e42f0e6',
117
+ * freight_policy: 'billed_freight',
118
+ * name: 'Acme Corp Updated',
119
+ * note: 'Updated account notes',
120
+ * },
71
121
  * );
72
122
  * ```
73
123
  */
@@ -81,23 +131,12 @@ export class Customers extends APIResource {
81
131
  }
82
132
 
83
133
  /**
84
- * Returns a paginated list of customers for the current account.
134
+ * Deletes a customer.
85
135
  *
86
- * @example
87
- * ```ts
88
- * const listCustomer = await client.sales.customers.list();
89
- * ```
90
- */
91
- list(
92
- query: CustomerListParams | null | undefined = {},
93
- options?: RequestOptions,
94
- ): APIPromise<ListCustomer> {
95
- return this._client.get('/v1/sales/customers', { query, ...options });
96
- }
97
-
98
- /**
99
- * Deletes a customer and associated account relations, addresses, and account
100
- * users.
136
+ * Fails with a conflict error if any sales orders still reference the customer;
137
+ * delete or reassign those orders, or merge the customer into another first.
138
+ *
139
+ * This endpoint requires the permission: `customers:delete`.
101
140
  *
102
141
  * @example
103
142
  * ```ts
@@ -112,77 +151,11 @@ export class Customers extends APIResource {
112
151
  }
113
152
 
114
153
  /**
115
- * Account user with profile, role, and department.
116
- */
117
- export interface AccountUser {
118
- /**
119
- * Account user ID.
120
- */
121
- id: string;
122
-
123
- /**
124
- * When the account user was created.
125
- */
126
- created_at: string;
127
-
128
- /**
129
- * Department resource.
130
- */
131
- department: Department | null;
132
-
133
- /**
134
- * Email address.
135
- */
136
- email: string | null;
137
-
138
- /**
139
- * Profile image URL.
140
- */
141
- image_url: string | null;
142
-
143
- /**
144
- * When the user last used this account.
145
- */
146
- last_used_at: string | null;
147
-
148
- /**
149
- * Display name.
150
- */
151
- name: string | null;
152
-
153
- /**
154
- * Resource type identifier.
155
- */
156
- object: 'account_user';
157
-
158
- /**
159
- * Role resource.
160
- */
161
- role: APIKeysAPI.Role | null;
162
-
163
- /**
164
- * Account user status.
165
- */
166
- status: 'active' | 'disabled' | 'removed';
167
-
168
- /**
169
- * When the account user was last updated.
170
- */
171
- updated_at: string;
172
-
173
- /**
174
- * Underlying user ID.
175
- */
176
- user_id: string;
177
-
178
- /**
179
- * Username.
180
- */
181
- username: string | null;
182
- }
183
-
184
- /**
185
- * Carrier resource.
154
+ * A shipping carrier configured for fulfilling orders.
155
+ *
156
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
157
+ * through Shippo for live rating and label purchase; other carriers represent
158
+ * self-managed shipping methods such as will call or local delivery.
186
159
  */
187
160
  export interface Carrier {
188
161
  /**
@@ -191,12 +164,20 @@ export interface Carrier {
191
164
  id: string;
192
165
 
193
166
  /**
194
- * Account number.
167
+ * Your account number with this carrier, used to connect UPS and USPS accounts.
195
168
  */
196
169
  account_number: string | null;
197
170
 
198
171
  /**
199
- * Carrier code.
172
+ * Well-known carrier identifier, set only for recognized carriers and absent for
173
+ * custom ones.
174
+ *
175
+ * - `fedex`, `ups`, `usps`: integrated carriers managed through Shippo (live
176
+ * rating and labels).
177
+ * - `will_call`: customer picks the order up; no carrier shipment.
178
+ * - `delivery`: delivered by your own vehicles/drivers.
179
+ * - `ltl`, `ltl1`: less-than-truckload freight carriers.
180
+ * - `freight_collect`: freight billed to and arranged by the receiver.
200
181
  */
201
182
  code: 'fedex' | 'ups' | 'usps' | 'will_call' | 'delivery' | 'ltl' | 'ltl1' | 'freight_collect' | null;
202
183
 
@@ -206,7 +187,8 @@ export interface Carrier {
206
187
  created_at: string;
207
188
 
208
189
  /**
209
- * Customer portal visibility.
190
+ * Whether customers can see and select this carrier at checkout in the customer
191
+ * portal.
210
192
  */
211
193
  customer_portal_visibility: 'visible' | 'hidden';
212
194
 
@@ -216,7 +198,7 @@ export interface Carrier {
216
198
  deleted_at: string | null;
217
199
 
218
200
  /**
219
- * Display name.
201
+ * Human-readable name for the carrier, unique among your account's carriers.
220
202
  */
221
203
  name: string;
222
204
 
@@ -241,67 +223,24 @@ export interface Carrier {
241
223
  updated_at: string;
242
224
  }
243
225
 
244
- /**
245
- * Material consumed by a production step.
246
- */
247
- export interface Consumption {
248
- /**
249
- * Consumption ID.
250
- */
251
- id: string;
252
-
253
- /**
254
- * Item is an inventory item (product, material, or part).
255
- */
256
- consumed_item: ItemsAPI.Item | null;
257
-
258
- /**
259
- * Creation timestamp.
260
- */
261
- created_at: string;
262
-
263
- /**
264
- * Instructions for how this material is consumed.
265
- */
266
- instructions: string | null;
267
-
268
- /**
269
- * Resource type identifier.
270
- */
271
- object: 'consumption';
272
-
273
- /**
274
- * Value with an associated unit.
275
- */
276
- quantity: ItemsAPI.Quantity | null;
277
-
278
- /**
279
- * Last updated timestamp.
280
- */
281
- updated_at: string;
282
-
283
- /**
284
- * Value with an associated unit.
285
- */
286
- waste_quantity: ItemsAPI.Quantity | null;
287
- }
288
-
289
226
  /**
290
227
  * Request to create a customer.
291
228
  */
292
229
  export interface CreateCustomerRequest {
293
230
  /**
294
- * Request to create an address.
231
+ * Address details used to create an address, either directly or inline on another
232
+ * resource.
295
233
  */
296
234
  bill_to_address: AddressesAPI.AddressInput;
297
235
 
298
236
  /**
299
- * Customer type group ID.
237
+ * ID of the account group of type `type_group` that categorizes this customer (for
238
+ * example "Distributors").
300
239
  */
301
240
  customer_type_group_id: string;
302
241
 
303
242
  /**
304
- * Default carrier ID.
243
+ * ID of the default carrier for this customer's shipments.
305
244
  */
306
245
  default_carrier_id: string;
307
246
 
@@ -316,43 +255,52 @@ export interface CreateCustomerRequest {
316
255
  default_shipping_term_id: string;
317
256
 
318
257
  /**
319
- * Display name.
258
+ * The customer's business name, as shown throughout the app and on documents.
320
259
  */
321
260
  name: string;
322
261
 
323
262
  /**
324
- * Request to create an address.
263
+ * Address details used to create an address, either directly or inline on another
264
+ * resource.
325
265
  */
326
266
  ship_to_address: AddressesAPI.AddressInput;
327
267
 
328
268
  /**
329
- * Carrier billing account number.
269
+ * Carrier billing account number charged when `carrier_billing_type` is
270
+ * `third_party`.
330
271
  */
331
272
  carrier_billing_account?: string;
332
273
 
333
274
  /**
334
- * Carrier billing type.
275
+ * Who pays the carrier for shipments.
276
+ *
277
+ * - `sender`: the shipper (you) pays the carrier.
278
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
335
279
  */
336
280
  carrier_billing_type?: 'sender' | 'third_party';
337
281
 
338
282
  /**
339
- * Commission policy.
283
+ * How sales commission applies to this customer's orders.
284
+ *
285
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
286
+ * - `commission_applied`: sales commission is calculated on this customer's
287
+ * orders.
340
288
  */
341
289
  commission_policy?: 'commission_applied' | 'commission_exempt';
342
290
 
343
291
  /**
344
- * QuantityInput represents a value with an associated unit for create/update
345
- * requests.
292
+ * A value with an associated unit, used in create and update requests.
346
293
  */
347
294
  credit_limit?: QuantityInput;
348
295
 
349
296
  /**
350
- * Price group IDs.
297
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
298
+ * used to apply pricing rules.
351
299
  */
352
300
  customer_price_group_ids?: Array<string>;
353
301
 
354
302
  /**
355
- * Default priority code.
303
+ * Priority applied to new orders for this customer.
356
304
  */
357
305
  default_priority?: 'low' | 'normal' | 'high';
358
306
 
@@ -362,12 +310,13 @@ export interface CreateCustomerRequest {
362
310
  default_sales_rep_id?: string;
363
311
 
364
312
  /**
365
- * Default service level ID.
313
+ * ID of the default carrier service level.
366
314
  */
367
315
  default_service_level_id?: string;
368
316
 
369
317
  /**
370
- * EDI status.
318
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
319
+ * documents with this customer.
371
320
  */
372
321
  edi_status?: 'enabled' | 'disabled';
373
322
 
@@ -377,17 +326,25 @@ export interface CreateCustomerRequest {
377
326
  email?: string;
378
327
 
379
328
  /**
380
- * Freight policy.
329
+ * Whether this customer is billed for freight on their orders.
330
+ *
331
+ * - `free_freight`: the customer is not billed for freight.
332
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
333
+ * order.
381
334
  */
382
335
  freight_policy?: 'free_freight' | 'billed_freight';
383
336
 
384
337
  /**
385
- * Note.
338
+ * Free-form note about the customer.
386
339
  */
387
340
  note?: string;
388
341
 
389
342
  /**
390
- * Customer number. Auto-generated if omitted.
343
+ * Human-readable customer number used to identify the account, distinct from the
344
+ * `id`.
345
+ *
346
+ * Must be unique within your account. If omitted, the next sequential number is
347
+ * assigned automatically.
391
348
  */
392
349
  number?: string;
393
350
 
@@ -397,7 +354,12 @@ export interface CreateCustomerRequest {
397
354
  phone?: string;
398
355
 
399
356
  /**
400
- * Account status code.
357
+ * Account status code, controlling whether the customer can transact.
358
+ *
359
+ * - `normal`: standard active account with no restrictions.
360
+ * - `preferred`: active account flagged as preferred.
361
+ * - `hold_shipment`: orders can be placed, but shipments are held.
362
+ * - `hold_all`: all activity is on hold.
401
363
  */
402
364
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
403
365
 
@@ -408,7 +370,8 @@ export interface CreateCustomerRequest {
408
370
  }
409
371
 
410
372
  /**
411
- * Customer account.
373
+ * A business you sell to, with its contact details, default fulfillment settings,
374
+ * and order policies.
412
375
  */
413
376
  export interface Customer {
414
377
  /**
@@ -417,7 +380,8 @@ export interface Customer {
417
380
  id: string;
418
381
 
419
382
  /**
420
- * Address with associated geolocation.
383
+ * A saved address that can be used for billing and shipping on sales orders,
384
+ * invoices, and shipments.
421
385
  */
422
386
  bill_to_address: APIKeysAPI.Address | null;
423
387
 
@@ -427,7 +391,11 @@ export interface Customer {
427
391
  child_accounts: ListCustomer | null;
428
392
 
429
393
  /**
430
- * Commission policy.
394
+ * How sales commission applies to this customer's orders.
395
+ *
396
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
397
+ * - `commission_applied`: sales commission is calculated on this customer's
398
+ * orders.
431
399
  */
432
400
  commission_policy: 'commission_applied' | 'commission_exempt';
433
401
 
@@ -452,7 +420,8 @@ export interface Customer {
452
420
  defaults: CustomerDefaults | null;
453
421
 
454
422
  /**
455
- * EDI status.
423
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
424
+ * documents with this customer.
456
425
  */
457
426
  edi_status: 'enabled' | 'disabled';
458
427
 
@@ -462,12 +431,12 @@ export interface Customer {
462
431
  freight_preferences: CustomerFreightPreferences | null;
463
432
 
464
433
  /**
465
- * Display name.
434
+ * The customer's business name, as shown throughout the app and on documents.
466
435
  */
467
436
  name: string;
468
437
 
469
438
  /**
470
- * Note.
439
+ * Free-form note about the customer.
471
440
  */
472
441
  note: string | null;
473
442
 
@@ -477,7 +446,8 @@ export interface Customer {
477
446
  notification_preferences: CustomerNotificationPreferences | null;
478
447
 
479
448
  /**
480
- * Customer number.
449
+ * Human-readable customer number used to identify the account, distinct from the
450
+ * `id`.
481
451
  */
482
452
  number: string;
483
453
 
@@ -487,7 +457,8 @@ export interface Customer {
487
457
  object: 'customer';
488
458
 
489
459
  /**
490
- * Customer account.
460
+ * A business you sell to, with its contact details, default fulfillment settings,
461
+ * and order policies.
491
462
  */
492
463
  parent_account: Customer | null;
493
464
 
@@ -497,22 +468,33 @@ export interface Customer {
497
468
  price_groups: AccountGroupsAPI.ListAccountGroup | null;
498
469
 
499
470
  /**
500
- * Customer relationship type.
471
+ * The customer's position in the account hierarchy.
472
+ *
473
+ * - `standalone`: no parent or child accounts.
474
+ * - `parent`: has one or more child accounts (see `child_accounts`).
475
+ * - `child`: belongs to a parent account (see `parent_account`).
501
476
  */
502
477
  relationship_type: 'standalone' | 'parent' | 'child';
503
478
 
504
479
  /**
505
- * Address with associated geolocation.
480
+ * A saved address that can be used for billing and shipping on sales orders,
481
+ * invoices, and shipments.
506
482
  */
507
483
  ship_to_address: APIKeysAPI.Address | null;
508
484
 
509
485
  /**
510
- * Account status code.
486
+ * Account status code, controlling whether the customer can transact.
487
+ *
488
+ * - `normal`: standard active account with no restrictions.
489
+ * - `preferred`: active account flagged as preferred.
490
+ * - `hold_shipment`: orders can be placed, but shipments are held.
491
+ * - `hold_all`: all activity is on hold.
511
492
  */
512
493
  status: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
513
494
 
514
495
  /**
515
- * Account group resource.
496
+ * A named grouping of customer accounts, used for pricing rules or to categorize
497
+ * accounts.
516
498
  */
517
499
  type: AccountGroupsAPI.AccountGroup | null;
518
500
 
@@ -557,22 +539,27 @@ export interface CustomerDefaults {
557
539
  object: 'customer_defaults';
558
540
 
559
541
  /**
560
- * Payment term resource.
542
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
543
+ * customers, sales orders, purchase orders, and invoices.
561
544
  */
562
545
  payment_term: PaymentTerm | null;
563
546
 
564
547
  /**
565
- * Priority level used by sales orders and picks.
548
+ * Priority level used to order work on sales orders, purchase orders, and picks.
566
549
  */
567
550
  priority: PrioritiesAPI.Priority | null;
568
551
 
569
552
  /**
570
- * Account user with profile, role, and department.
553
+ * A user's membership in an account, carrying the account-specific status, role,
554
+ * and department.
555
+ *
556
+ * Profile fields (name, email, username, image URL) live on the expandable `user`
557
+ * sub-resource, which is shared across every account the user belongs to.
571
558
  */
572
- sales_rep: AccountUser | null;
559
+ sales_rep: BlocksAPI.AccountUser | null;
573
560
 
574
561
  /**
575
- * ShippingTerm resource.
562
+ * A shipping term defining how freight charges are calculated for an order.
576
563
  */
577
564
  shipping_term: ShippingTerm | null;
578
565
  }
@@ -582,17 +569,24 @@ export interface CustomerDefaults {
582
569
  */
583
570
  export interface CustomerFreightPreferences {
584
571
  /**
585
- * Carrier billing account number.
572
+ * Carrier billing account number charged when `billing_type` is `third_party`.
586
573
  */
587
574
  billing_account: string | null;
588
575
 
589
576
  /**
590
- * Carrier billing type.
577
+ * Who pays the carrier for shipments.
578
+ *
579
+ * - `sender`: the shipper (you) pays the carrier.
580
+ * - `third_party`: a third party is billed, using `billing_account`.
591
581
  */
592
582
  billing_type: 'sender' | 'third_party' | null;
593
583
 
594
584
  /**
595
- * Carrier resource.
585
+ * A shipping carrier configured for fulfilling orders.
586
+ *
587
+ * Carriers with a Shippo-supported `code` (`fedex`, `ups`, `usps`) are connected
588
+ * through Shippo for live rating and label purchase; other carriers represent
589
+ * self-managed shipping methods such as will call or local delivery.
596
590
  */
597
591
  carrier: Carrier | null;
598
592
 
@@ -607,7 +601,11 @@ export interface CustomerFreightPreferences {
607
601
  service_level: ServiceLevel | null;
608
602
 
609
603
  /**
610
- * Freight policy.
604
+ * Freight policy applied to this customer's orders.
605
+ *
606
+ * - `free_freight`: the customer is not billed for freight.
607
+ * - `billed_freight`: freight is billed to the customer, unless overridden
608
+ * elsewhere.
611
609
  */
612
610
  status: 'free_freight' | 'billed_freight';
613
611
  }
@@ -628,63 +626,33 @@ export interface CustomerNotificationPreferences {
628
626
  }
629
627
 
630
628
  /**
631
- * Department resource.
629
+ * List represents a paginated list of resources.
632
630
  */
633
- export interface Department {
634
- /**
635
- * Department ID.
636
- */
637
- id: string;
638
-
639
- /**
640
- * Creation timestamp.
641
- */
642
- created_at: string;
643
-
644
- /**
645
- * Location resource.
646
- */
647
- location: Location | null;
648
-
649
- /**
650
- * List represents a paginated list of resources.
651
- */
652
- machines: ListMachine | null;
653
-
654
- /**
655
- * Display name.
656
- */
657
- name: string;
658
-
631
+ export interface ListCustomer {
659
632
  /**
660
- * Notes about the department.
633
+ * Resources in this page.
661
634
  */
662
- notes: string | null;
635
+ data: Array<Customer>;
663
636
 
664
637
  /**
665
638
  * Resource type identifier.
666
639
  */
667
- object: 'department';
668
-
669
- /**
670
- * List represents a paginated list of resources.
671
- */
672
- scanning_stations: ListScanningStation | null;
640
+ object: 'list';
673
641
 
674
642
  /**
675
- * Last update timestamp.
643
+ * PageInfo contains URL-based pagination metadata.
676
644
  */
677
- updated_at: string;
645
+ page_info: APIKeysAPI.PageInfo;
678
646
  }
679
647
 
680
648
  /**
681
649
  * List represents a paginated list of resources.
682
650
  */
683
- export interface ListConsumption {
651
+ export interface ListServiceLevel {
684
652
  /**
685
653
  * Resources in this page.
686
654
  */
687
- data: Array<Consumption>;
655
+ data: Array<ServiceLevel>;
688
656
 
689
657
  /**
690
658
  * Resource type identifier.
@@ -698,238 +666,100 @@ export interface ListConsumption {
698
666
  }
699
667
 
700
668
  /**
701
- * List represents a paginated list of resources.
669
+ * A payment term describing when payment is due (e.g. `Net 30`), assignable to
670
+ * customers, sales orders, purchase orders, and invoices.
702
671
  */
703
- export interface ListCustomer {
672
+ export interface PaymentTerm {
704
673
  /**
705
- * Resources in this page.
674
+ * Payment term ID.
706
675
  */
707
- data: Array<Customer>;
676
+ id: string;
708
677
 
709
678
  /**
710
- * Resource type identifier.
679
+ * Creation timestamp.
711
680
  */
712
- object: 'list';
681
+ created_at: string;
713
682
 
714
683
  /**
715
- * PageInfo contains URL-based pagination metadata.
684
+ * Display name (e.g. `Net 30`).
716
685
  */
717
- page_info: APIKeysAPI.PageInfo;
718
- }
686
+ name: string;
719
687
 
720
- /**
721
- * List represents a paginated list of resources.
722
- */
723
- export interface ListLocation {
724
688
  /**
725
- * Resources in this page.
689
+ * Resource type identifier.
726
690
  */
727
- data: Array<Location>;
691
+ object: 'payment_term';
728
692
 
729
693
  /**
730
- * Resource type identifier.
694
+ * Owner describes the provenance of a resource.
731
695
  */
732
- object: 'list';
696
+ owner: APIKeysAPI.Owner | null;
733
697
 
734
698
  /**
735
- * PageInfo contains URL-based pagination metadata.
699
+ * Lifecycle status of the payment term.
736
700
  */
737
- page_info: APIKeysAPI.PageInfo;
738
- }
701
+ status: 'active' | 'inactive';
739
702
 
740
- /**
741
- * List represents a paginated list of resources.
742
- */
743
- export interface ListMachine {
744
703
  /**
745
- * Resources in this page.
704
+ * Last-updated timestamp.
746
705
  */
747
- data: Array<Machine>;
706
+ updated_at: string;
707
+ }
748
708
 
709
+ /**
710
+ * A value with an associated unit, used in create and update requests.
711
+ */
712
+ export interface QuantityInput {
749
713
  /**
750
- * Resource type identifier.
714
+ * ID of the unit of measure for the value.
751
715
  */
752
- object: 'list';
716
+ unit_id: string;
753
717
 
754
718
  /**
755
- * PageInfo contains URL-based pagination metadata.
719
+ * Decimal value, as a string to preserve precision.
756
720
  */
757
- page_info: APIKeysAPI.PageInfo;
721
+ value: string;
758
722
  }
759
723
 
760
724
  /**
761
- * List represents a paginated list of resources.
725
+ * Shipping service level for a carrier.
762
726
  */
763
- export interface ListProductionStep {
727
+ export interface ServiceLevel {
764
728
  /**
765
- * Resources in this page.
729
+ * Service level ID.
766
730
  */
767
- data: Array<ProductionStep>;
731
+ id: string;
768
732
 
769
733
  /**
770
- * Resource type identifier.
734
+ * Creation timestamp.
771
735
  */
772
- object: 'list';
736
+ created_at: string;
773
737
 
774
738
  /**
775
- * PageInfo contains URL-based pagination metadata.
739
+ * Whether customers can see and select this service level at checkout in the
740
+ * customer portal.
776
741
  */
777
- page_info: APIKeysAPI.PageInfo;
778
- }
742
+ customer_portal_visibility: 'visible' | 'hidden';
779
743
 
780
- /**
781
- * List represents a paginated list of resources.
782
- */
783
- export interface ListScanningStation {
784
744
  /**
785
- * Resources in this page.
745
+ * Whether this is the carrier's default service level, pre-selected when the
746
+ * carrier is chosen.
747
+ *
748
+ * Each carrier has at most one default; setting a new default clears the previous
749
+ * one.
786
750
  */
787
- data: Array<ScanningStation>;
751
+ is_default: boolean;
788
752
 
789
753
  /**
790
- * Resource type identifier.
791
- */
792
- object: 'list';
793
-
794
- /**
795
- * PageInfo contains URL-based pagination metadata.
796
- */
797
- page_info: APIKeysAPI.PageInfo;
798
- }
799
-
800
- /**
801
- * List represents a paginated list of resources.
802
- */
803
- export interface ListServiceLevel {
804
- /**
805
- * Resources in this page.
806
- */
807
- data: Array<ServiceLevel>;
808
-
809
- /**
810
- * Resource type identifier.
811
- */
812
- object: 'list';
813
-
814
- /**
815
- * PageInfo contains URL-based pagination metadata.
816
- */
817
- page_info: APIKeysAPI.PageInfo;
818
- }
819
-
820
- /**
821
- * Location resource.
822
- */
823
- export interface Location {
824
- /**
825
- * Location ID.
826
- */
827
- id: string;
828
-
829
- /**
830
- * List represents a paginated list of resources.
831
- */
832
- children: ListLocation | null;
833
-
834
- /**
835
- * Creation timestamp.
836
- */
837
- created_at: string;
838
-
839
- /**
840
- * Display name.
841
- */
842
- name: string;
843
-
844
- /**
845
- * Resource type identifier.
846
- */
847
- object: 'location';
848
-
849
- /**
850
- * Location resource.
851
- */
852
- parent: Location | null;
853
-
854
- /**
855
- * Location type code.
856
- */
857
- type: 'building' | 'section' | 'aisle' | 'rack' | 'shelf' | 'bin';
858
-
859
- /**
860
- * Last-updated timestamp.
861
- */
862
- updated_at: string;
863
- }
864
-
865
- /**
866
- * Machine within an account.
867
- */
868
- export interface Machine {
869
- /**
870
- * Machine ID.
871
- */
872
- id: string;
873
-
874
- /**
875
- * Creation timestamp.
876
- */
877
- created_at: string;
878
-
879
- /**
880
- * Department resource.
881
- */
882
- department: Department | null;
883
-
884
- /**
885
- * Display name.
886
- */
887
- name: string;
888
-
889
- /**
890
- * Notes.
891
- */
892
- notes: string | null;
893
-
894
- /**
895
- * Resource type identifier.
896
- */
897
- object: 'machine';
898
-
899
- /**
900
- * Serial number.
901
- */
902
- serial_number: string;
903
-
904
- /**
905
- * Last updated timestamp.
906
- */
907
- updated_at: string;
908
- }
909
-
910
- /**
911
- * Payment term resource.
912
- */
913
- export interface PaymentTerm {
914
- /**
915
- * Payment term ID.
916
- */
917
- id: string;
918
-
919
- /**
920
- * Creation timestamp.
921
- */
922
- created_at: string;
923
-
924
- /**
925
- * Display name.
754
+ * Human-readable name for the service level, shown to customers at checkout when
755
+ * the service level is visible.
926
756
  */
927
757
  name: string;
928
758
 
929
759
  /**
930
760
  * Resource type identifier.
931
761
  */
932
- object: 'payment_term';
762
+ object: 'service_level';
933
763
 
934
764
  /**
935
765
  * Owner describes the provenance of a resource.
@@ -937,44 +767,12 @@ export interface PaymentTerm {
937
767
  owner: APIKeysAPI.Owner | null;
938
768
 
939
769
  /**
940
- * Payment term status.
941
- */
942
- status: 'active' | 'inactive';
943
-
944
- /**
945
- * Last-updated timestamp.
946
- */
947
- updated_at: string;
948
- }
949
-
950
- /**
951
- * Production output of a production step.
952
- */
953
- export interface ProductionOutput {
954
- /**
955
- * Production ID.
956
- */
957
- id: string;
958
-
959
- /**
960
- * Creation timestamp.
961
- */
962
- created_at: string;
963
-
964
- /**
965
- * Resource type identifier.
966
- */
967
- object: 'production';
968
-
969
- /**
970
- * Item is an inventory item (product, material, or part).
971
- */
972
- produced_item: ItemsAPI.Item | null;
973
-
974
- /**
975
- * Value with an associated unit.
770
+ * Carrier-specific code identifying this service level (e.g. `fedex_ground`,
771
+ * `ups_next_day_air`).
772
+ *
773
+ * Values are carrier-defined, so any non-empty string is accepted.
976
774
  */
977
- quantity: ItemsAPI.Quantity | null;
775
+ service_level_token: string;
978
776
 
979
777
  /**
980
778
  * Last updated timestamp.
@@ -983,422 +781,392 @@ export interface ProductionOutput {
983
781
  }
984
782
 
985
783
  /**
986
- * Production step with all nested data.
784
+ * A shipping term defining how freight charges are calculated for an order.
987
785
  */
988
- export interface ProductionStep {
786
+ export interface ShippingTerm {
989
787
  /**
990
- * Production step ID.
788
+ * Shipping term ID.
991
789
  */
992
790
  id: string;
993
791
 
994
792
  /**
995
- * Allowances as a decimal string.
996
- */
997
- allowances: string;
998
-
999
- /**
1000
- * List represents a paginated list of resources.
1001
- */
1002
- consumptions: ListConsumption | null;
1003
-
1004
- /**
1005
- * Creation timestamp.
793
+ * When this shipping term was created.
1006
794
  */
1007
795
  created_at: string;
1008
796
 
1009
797
  /**
1010
- * Department resource.
798
+ * Value with an associated unit.
1011
799
  */
1012
- department: Department | null;
800
+ flat_rate: ItemsAPI.Quantity | null;
1013
801
 
1014
802
  /**
1015
803
  * List represents a paginated list of resources.
1016
804
  */
1017
- in_steps: ListProductionStep | null;
1018
-
1019
- /**
1020
- * Rate resource.
1021
- */
1022
- labor_rate: ItemsAPI.Rate | null;
1023
-
1024
- /**
1025
- * Rate resource.
1026
- */
1027
- labor_time: ItemsAPI.Rate | null;
1028
-
1029
- /**
1030
- * Leveling factor as a decimal string.
1031
- */
1032
- leveling_factor: string;
805
+ free_shipping_service_levels: ListServiceLevel | null;
1033
806
 
1034
807
  /**
1035
- * List represents a paginated list of resources.
808
+ * Value with an associated unit.
1036
809
  */
1037
- machines: ListMachine | null;
810
+ minimum_order_value: ItemsAPI.Quantity | null;
1038
811
 
1039
812
  /**
1040
- * Display name.
813
+ * Human-readable name for the shipping term, used to identify it when assigning
814
+ * shipping terms to customers and orders.
1041
815
  */
1042
816
  name: string;
1043
817
 
1044
- /**
1045
- * Notes.
1046
- */
1047
- notes: string | null;
1048
-
1049
818
  /**
1050
819
  * Resource type identifier.
1051
820
  */
1052
- object: 'production_step';
1053
-
1054
- /**
1055
- * List represents a paginated list of resources.
1056
- */
1057
- out_steps: ListProductionStep | null;
1058
-
1059
- /**
1060
- * Rate resource.
1061
- */
1062
- overhead_rate: ItemsAPI.Rate | null;
821
+ object: 'shipping_term';
1063
822
 
1064
823
  /**
1065
- * Production output of a production step.
824
+ * Owner describes the provenance of a resource.
1066
825
  */
1067
- production: ProductionOutput | null;
826
+ owner: APIKeysAPI.Owner | null;
1068
827
 
1069
828
  /**
1070
- * Scanning station resource.
829
+ * Freight pricing model applied by this shipping term.
830
+ *
831
+ * - `free_freight`: no shipping cost to the buyer.
832
+ * - `flat_rate_freight`: a fixed shipping cost regardless of order details (see
833
+ * `flat_rate`).
834
+ * - `carrier_rate_freight`: shipping cost is determined by the carrier's quoted
835
+ * rate.
1071
836
  */
1072
- scanning_station: ScanningStation | null;
837
+ type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
1073
838
 
1074
839
  /**
1075
- * Last updated timestamp.
840
+ * When this shipping term was last updated.
1076
841
  */
1077
842
  updated_at: string;
1078
843
  }
1079
844
 
1080
845
  /**
1081
- * QuantityInput represents a value with an associated unit for create/update
1082
- * requests.
1083
- */
1084
- export interface QuantityInput {
1085
- /**
1086
- * The unit ID for the value.
1087
- */
1088
- unit_id: string;
1089
-
1090
- /**
1091
- * The decimal value.
1092
- */
1093
- value: string;
1094
- }
1095
-
1096
- /**
1097
- * Scanning station resource.
846
+ * Request to partially update a customer.
1098
847
  */
1099
- export interface ScanningStation {
1100
- /**
1101
- * Scanning station ID.
1102
- */
1103
- id: string;
1104
-
1105
- /**
1106
- * Creation timestamp.
1107
- */
1108
- created_at: string;
1109
-
1110
- /**
1111
- * Department resource.
1112
- */
1113
- department: Department | null;
1114
-
1115
- /**
1116
- * Label size code.
1117
- */
1118
- label_size: '1x1' | '1x3' | '1x4' | '2x4' | null;
1119
-
1120
- /**
1121
- * Label type code.
1122
- */
1123
- label_type: 'tag' | 'traveler' | null;
1124
-
1125
- /**
1126
- * Display name.
1127
- */
1128
- name: string;
1129
-
1130
- /**
1131
- * Notes.
1132
- */
1133
- notes: string | null;
1134
-
1135
- /**
1136
- * Resource type identifier.
1137
- */
1138
- object: 'scanning_station';
1139
-
1140
- /**
1141
- * Operator requirement behavior for this station.
1142
- */
1143
- operator_requirement: 'none' | 'material_check';
1144
-
1145
- /**
1146
- * List represents a paginated list of resources.
1147
- */
1148
- production_steps: ListProductionStep | null;
1149
-
1150
- /**
1151
- * Scanning station type.
1152
- */
1153
- type: 'init_batch' | 'merge_batch' | 'move_batch' | 'split_batch';
1154
-
848
+ export interface UpdateCustomerRequest {
1155
849
  /**
1156
- * Last updated timestamp.
850
+ * ID of an existing address to use as the default billing address.
1157
851
  */
1158
- updated_at: string;
1159
- }
852
+ bill_to_address_id?: string | null;
1160
853
 
1161
- /**
1162
- * Shipping service level for a carrier.
1163
- */
1164
- export interface ServiceLevel {
1165
854
  /**
1166
- * Service level ID.
855
+ * Carrier billing account number charged when `carrier_billing_type` is
856
+ * `third_party`.
1167
857
  */
1168
- id: string;
858
+ carrier_billing_account?: string | null;
1169
859
 
1170
860
  /**
1171
- * Creation timestamp.
861
+ * Who pays the carrier for shipments.
862
+ *
863
+ * - `sender`: the shipper (you) pays the carrier.
864
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1172
865
  */
1173
- created_at: string;
866
+ carrier_billing_type?: 'sender' | 'third_party';
1174
867
 
1175
868
  /**
1176
- * Customer portal visibility.
869
+ * How sales commission applies to this customer's orders.
870
+ *
871
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
872
+ * - `commission_applied`: sales commission is calculated on this customer's
873
+ * orders.
1177
874
  */
1178
- customer_portal_visibility: 'visible' | 'hidden';
875
+ commission_policy?: 'commission_applied' | 'commission_exempt';
1179
876
 
1180
877
  /**
1181
- * Default service level for the carrier.
878
+ * A value with an associated unit, used in create and update requests.
1182
879
  */
1183
- is_default: boolean;
880
+ credit_limit?: QuantityInput | null;
1184
881
 
1185
882
  /**
1186
- * Display name.
883
+ * IDs of the account groups of type `pricing_group` to assign to this customer,
884
+ * used to apply pricing rules.
885
+ *
886
+ * When provided, replaces the customer's full set of existing price groups.
1187
887
  */
1188
- name: string;
888
+ customer_price_group_ids?: Array<string>;
1189
889
 
1190
890
  /**
1191
- * Resource type identifier.
891
+ * ID of the account group of type `type_group` that categorizes this customer (for
892
+ * example "Distributors").
1192
893
  */
1193
- object: 'service_level';
894
+ customer_type_group_id?: string;
1194
895
 
1195
896
  /**
1196
- * Owner describes the provenance of a resource.
897
+ * ID of the default carrier for this customer's shipments.
1197
898
  */
1198
- owner: APIKeysAPI.Owner | null;
899
+ default_carrier_id?: string;
1199
900
 
1200
901
  /**
1201
- * Service level token.
902
+ * Default payment term ID.
1202
903
  */
1203
- service_level_token: string;
904
+ default_payment_term_id?: string;
1204
905
 
1205
906
  /**
1206
- * Last updated timestamp.
907
+ * Priority applied to new orders for this customer.
1207
908
  */
1208
- updated_at: string;
1209
- }
909
+ default_priority?: 'low' | 'normal' | 'high';
1210
910
 
1211
- /**
1212
- * ShippingTerm resource.
1213
- */
1214
- export interface ShippingTerm {
1215
911
  /**
1216
- * Shipping term ID.
912
+ * The ID of the account user to assign as the default sales rep.
1217
913
  */
1218
- id: string;
914
+ default_sales_rep_id?: string | null;
1219
915
 
1220
916
  /**
1221
- * When this shipping term was created.
917
+ * ID of the default carrier service level.
1222
918
  */
1223
- created_at: string;
919
+ default_service_level_id?: string | null;
1224
920
 
1225
921
  /**
1226
- * Value with an associated unit.
922
+ * Default shipping term ID.
1227
923
  */
1228
- flat_rate: ItemsAPI.Quantity | null;
924
+ default_shipping_term_id?: string;
1229
925
 
1230
926
  /**
1231
- * List represents a paginated list of resources.
927
+ * Whether EDI (Electronic Data Interchange) is enabled for exchanging orders and
928
+ * documents with this customer.
1232
929
  */
1233
- free_shipping_service_levels: ListServiceLevel | null;
930
+ edi_status?: 'enabled' | 'disabled';
1234
931
 
1235
932
  /**
1236
- * Value with an associated unit.
933
+ * Email address.
1237
934
  */
1238
- minimum_order_value: ItemsAPI.Quantity | null;
935
+ email?: string | null;
1239
936
 
1240
937
  /**
1241
- * Display name.
938
+ * Whether this customer is billed for freight on their orders.
939
+ *
940
+ * - `free_freight`: the customer is not billed for freight.
941
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
942
+ * order.
1242
943
  */
1243
- name: string;
944
+ freight_policy?: 'free_freight' | 'billed_freight';
1244
945
 
1245
946
  /**
1246
- * Resource type identifier.
947
+ * The customer's business name, as shown throughout the app and on documents.
1247
948
  */
1248
- object: 'shipping_term';
949
+ name?: string;
1249
950
 
1250
951
  /**
1251
- * Owner describes the provenance of a resource.
952
+ * Free-form note about the customer.
1252
953
  */
1253
- owner: APIKeysAPI.Owner | null;
954
+ note?: string | null;
1254
955
 
1255
956
  /**
1256
- * Shipping term type.
957
+ * Human-readable customer number used to identify the account, distinct from the
958
+ * `id`.
959
+ *
960
+ * Must be unique within your account.
1257
961
  */
1258
- type: 'free_freight' | 'flat_rate_freight' | 'carrier_rate_freight';
962
+ number?: string;
1259
963
 
1260
964
  /**
1261
- * When this shipping term was last updated.
965
+ * Phone number.
1262
966
  */
1263
- updated_at: string;
1264
- }
967
+ phone?: string | null;
1265
968
 
1266
- /**
1267
- * Request to partially update a customer.
1268
- */
1269
- export interface UpdateCustomerRequest {
1270
969
  /**
1271
- * Bill-to address ID.
970
+ * ID of an existing address to use as the default shipping address.
1272
971
  */
1273
- bill_to_address_id?: string | null;
972
+ ship_to_address_id?: string | null;
1274
973
 
1275
974
  /**
1276
- * Carrier billing account number.
975
+ * Account status code, controlling whether the customer can transact.
976
+ *
977
+ * - `normal`: standard active account with no restrictions.
978
+ * - `preferred`: active account flagged as preferred.
979
+ * - `hold_shipment`: orders can be placed, but shipments are held.
980
+ * - `hold_all`: all activity is on hold.
1277
981
  */
1278
- carrier_billing_account?: string | null;
982
+ status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1279
983
 
1280
984
  /**
1281
- * Carrier billing type.
985
+ * Website URL.
1282
986
  */
1283
- carrier_billing_type?: 'sender' | 'third_party';
987
+ url?: string | null;
988
+ }
989
+
990
+ export interface CustomerDeleteResponse {}
1284
991
 
992
+ export interface CustomerListParams {
1285
993
  /**
1286
- * Commission policy.
994
+ * Filter by default carrier IDs.
1287
995
  */
1288
- commission_policy?: 'commission_applied' | 'commission_exempt';
996
+ carrier_ids?: Array<string>;
1289
997
 
1290
998
  /**
1291
- * QuantityInput represents a value with an associated unit for create/update
1292
- * requests.
999
+ * Filter to customers with any address in this city (exact match).
1000
+ *
1001
+ * When combined with `state` or `postal_code`, a single address must match all
1002
+ * provided values.
1293
1003
  */
1294
- credit_limit?: QuantityInput | null;
1004
+ city?: string;
1295
1005
 
1296
1006
  /**
1297
- * Price group IDs. Replaces all existing price groups when provided.
1007
+ * Filter by commission policy.
1298
1008
  */
1299
- customer_price_group_ids?: Array<string>;
1009
+ commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1300
1010
 
1301
1011
  /**
1302
- * Customer type group ID.
1012
+ * Opaque cursor token identifying where the page of results starts.
1013
+ *
1014
+ * Use the `cursor` value embedded in a previous response's `next_page_url` or
1015
+ * `previous_page_url` to fetch the adjacent page. Omit to start from the first
1016
+ * page.
1303
1017
  */
1304
- customer_type_group_id?: string;
1018
+ cursor?: string;
1305
1019
 
1306
1020
  /**
1307
- * Default carrier ID.
1021
+ * Filter by customer type group IDs (the account group of type `type_group`
1022
+ * returned in the customer's `type` field).
1308
1023
  */
1309
- default_carrier_id?: string;
1024
+ customer_group_ids?: Array<string>;
1310
1025
 
1311
1026
  /**
1312
- * Default payment term ID.
1027
+ * Filter to customers created at or before this timestamp (inclusive).
1313
1028
  */
1314
- default_payment_term_id?: string;
1029
+ end_date?: string;
1315
1030
 
1316
1031
  /**
1317
- * Default priority code.
1032
+ * Filter by freight policy.
1318
1033
  */
1319
- default_priority?: 'low' | 'normal' | 'high';
1034
+ freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1320
1035
 
1321
1036
  /**
1322
- * The ID of the account user to assign as the default sales rep.
1037
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1038
+ * `null`.
1323
1039
  */
1324
- default_sales_rep_id?: string | null;
1040
+ include?: Array<
1041
+ | 'bill_to_address'
1042
+ | 'ship_to_address'
1043
+ | 'type'
1044
+ | 'parent_account'
1045
+ | 'freight_preferences.carrier'
1046
+ | 'freight_preferences.carrier.service_levels'
1047
+ | 'freight_preferences.service_level'
1048
+ | 'defaults.payment_term'
1049
+ | 'defaults.shipping_term'
1050
+ | 'defaults.sales_rep'
1051
+ | 'defaults.sales_rep.user'
1052
+ | 'defaults.priority'
1053
+ | 'contact_info'
1054
+ | 'freight_preferences'
1055
+ | 'defaults'
1056
+ | 'notification_preferences'
1057
+ | 'price_groups'
1058
+ | 'child_accounts'
1059
+ | 'credit_limit'
1060
+ | 'credit_limit.unit'
1061
+ >;
1325
1062
 
1326
1063
  /**
1327
- * Default service level ID.
1064
+ * Maximum number of results to return in a single page.
1328
1065
  */
1329
- default_service_level_id?: string | null;
1066
+ limit?: number;
1330
1067
 
1331
1068
  /**
1332
- * Default shipping term ID.
1069
+ * Filter by whether the customer has child accounts.
1333
1070
  */
1334
- default_shipping_term_id?: string;
1071
+ parent_account_status?: 'parent' | 'non_parent';
1335
1072
 
1336
1073
  /**
1337
- * EDI status.
1074
+ * Filter by default payment term IDs.
1338
1075
  */
1339
- edi_status?: 'enabled' | 'disabled';
1076
+ payment_term_ids?: Array<string>;
1340
1077
 
1341
1078
  /**
1342
- * Email address. Send null to clear.
1079
+ * Filter to customers with any address in this postal code (exact match).
1343
1080
  */
1344
- email?: string | null;
1081
+ postal_code?: string;
1345
1082
 
1346
1083
  /**
1347
- * Freight policy.
1084
+ * Filter to customers that belong to any of these pricing groups.
1348
1085
  */
1349
- freight_policy?: 'free_freight' | 'billed_freight';
1086
+ pricing_group_ids?: Array<string>;
1350
1087
 
1351
1088
  /**
1352
- * Customer name.
1089
+ * Free-text search term used to filter results.
1090
+ *
1091
+ * Which fields are matched against the term varies by endpoint.
1353
1092
  */
1354
- name?: string;
1093
+ q?: string;
1355
1094
 
1356
1095
  /**
1357
- * Note.
1096
+ * Filter by default sales rep IDs.
1358
1097
  */
1359
- note?: string | null;
1098
+ sales_rep_ids?: Array<string>;
1360
1099
 
1361
1100
  /**
1362
- * Customer number.
1101
+ * Filter by default service level IDs.
1363
1102
  */
1364
- number?: string;
1103
+ service_level_ids?: Array<string>;
1365
1104
 
1366
1105
  /**
1367
- * Phone number. Send null to clear.
1106
+ * Filter by default shipping term IDs.
1368
1107
  */
1369
- phone?: string | null;
1108
+ shipping_term_ids?: Array<string>;
1370
1109
 
1371
1110
  /**
1372
- * Ship-to address ID.
1111
+ * Filter to customers created at or after this timestamp (inclusive).
1373
1112
  */
1374
- ship_to_address_id?: string | null;
1113
+ start_date?: string;
1375
1114
 
1376
1115
  /**
1377
- * Account status code.
1116
+ * Filter to customers with any address in this state (exact match).
1378
1117
  */
1379
- status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1118
+ state?: string;
1380
1119
 
1381
1120
  /**
1382
- * Website URL. Send null to clear.
1121
+ * Filter by account status codes.
1383
1122
  */
1384
- url?: string | null;
1123
+ status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1385
1124
  }
1386
1125
 
1387
- export interface CustomerDeleteResponse {}
1126
+ export interface CustomerRetrieveParams {
1127
+ /**
1128
+ * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1129
+ * `null`.
1130
+ */
1131
+ include?: Array<
1132
+ | 'bill_to_address'
1133
+ | 'ship_to_address'
1134
+ | 'type'
1135
+ | 'parent_account'
1136
+ | 'freight_preferences.carrier'
1137
+ | 'freight_preferences.carrier.service_levels'
1138
+ | 'freight_preferences.service_level'
1139
+ | 'defaults.payment_term'
1140
+ | 'defaults.shipping_term'
1141
+ | 'defaults.sales_rep'
1142
+ | 'defaults.sales_rep.user'
1143
+ | 'defaults.priority'
1144
+ | 'contact_info'
1145
+ | 'freight_preferences'
1146
+ | 'defaults'
1147
+ | 'notification_preferences'
1148
+ | 'price_groups'
1149
+ | 'child_accounts'
1150
+ | 'credit_limit'
1151
+ | 'credit_limit.unit'
1152
+ >;
1153
+ }
1388
1154
 
1389
1155
  export interface CustomerCreateParams {
1390
1156
  /**
1391
- * Body param: Request to create an address.
1157
+ * Body param: Address details used to create an address, either directly or inline
1158
+ * on another resource.
1392
1159
  */
1393
1160
  bill_to_address: AddressesAPI.AddressInput;
1394
1161
 
1395
1162
  /**
1396
- * Body param: Customer type group ID.
1163
+ * Body param: ID of the account group of type `type_group` that categorizes this
1164
+ * customer (for example "Distributors").
1397
1165
  */
1398
1166
  customer_type_group_id: string;
1399
1167
 
1400
1168
  /**
1401
- * Body param: Default carrier ID.
1169
+ * Body param: ID of the default carrier for this customer's shipments.
1402
1170
  */
1403
1171
  default_carrier_id: string;
1404
1172
 
@@ -1413,12 +1181,14 @@ export interface CustomerCreateParams {
1413
1181
  default_shipping_term_id: string;
1414
1182
 
1415
1183
  /**
1416
- * Body param: Display name.
1184
+ * Body param: The customer's business name, as shown throughout the app and on
1185
+ * documents.
1417
1186
  */
1418
1187
  name: string;
1419
1188
 
1420
1189
  /**
1421
- * Body param: Request to create an address.
1190
+ * Body param: Address details used to create an address, either directly or inline
1191
+ * on another resource.
1422
1192
  */
1423
1193
  ship_to_address: AddressesAPI.AddressInput;
1424
1194
 
@@ -1432,10 +1202,12 @@ export interface CustomerCreateParams {
1432
1202
  | 'type'
1433
1203
  | 'parent_account'
1434
1204
  | 'freight_preferences.carrier'
1205
+ | 'freight_preferences.carrier.service_levels'
1435
1206
  | 'freight_preferences.service_level'
1436
1207
  | 'defaults.payment_term'
1437
1208
  | 'defaults.shipping_term'
1438
1209
  | 'defaults.sales_rep'
1210
+ | 'defaults.sales_rep.user'
1439
1211
  | 'defaults.priority'
1440
1212
  | 'contact_info'
1441
1213
  | 'freight_preferences'
@@ -1444,36 +1216,45 @@ export interface CustomerCreateParams {
1444
1216
  | 'price_groups'
1445
1217
  | 'child_accounts'
1446
1218
  | 'credit_limit'
1219
+ | 'credit_limit.unit'
1447
1220
  >;
1448
1221
 
1449
1222
  /**
1450
- * Body param: Carrier billing account number.
1223
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1224
+ * is `third_party`.
1451
1225
  */
1452
1226
  carrier_billing_account?: string;
1453
1227
 
1454
1228
  /**
1455
- * Body param: Carrier billing type.
1229
+ * Body param: Who pays the carrier for shipments.
1230
+ *
1231
+ * - `sender`: the shipper (you) pays the carrier.
1232
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1456
1233
  */
1457
1234
  carrier_billing_type?: 'sender' | 'third_party';
1458
1235
 
1459
1236
  /**
1460
- * Body param: Commission policy.
1237
+ * Body param: How sales commission applies to this customer's orders.
1238
+ *
1239
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1240
+ * - `commission_applied`: sales commission is calculated on this customer's
1241
+ * orders.
1461
1242
  */
1462
1243
  commission_policy?: 'commission_applied' | 'commission_exempt';
1463
1244
 
1464
1245
  /**
1465
- * Body param: QuantityInput represents a value with an associated unit for
1466
- * create/update requests.
1246
+ * Body param: A value with an associated unit, used in create and update requests.
1467
1247
  */
1468
1248
  credit_limit?: QuantityInput;
1469
1249
 
1470
1250
  /**
1471
- * Body param: Price group IDs.
1251
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1252
+ * customer, used to apply pricing rules.
1472
1253
  */
1473
1254
  customer_price_group_ids?: Array<string>;
1474
1255
 
1475
1256
  /**
1476
- * Body param: Default priority code.
1257
+ * Body param: Priority applied to new orders for this customer.
1477
1258
  */
1478
1259
  default_priority?: 'low' | 'normal' | 'high';
1479
1260
 
@@ -1483,12 +1264,13 @@ export interface CustomerCreateParams {
1483
1264
  default_sales_rep_id?: string;
1484
1265
 
1485
1266
  /**
1486
- * Body param: Default service level ID.
1267
+ * Body param: ID of the default carrier service level.
1487
1268
  */
1488
1269
  default_service_level_id?: string;
1489
1270
 
1490
1271
  /**
1491
- * Body param: EDI status.
1272
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1273
+ * orders and documents with this customer.
1492
1274
  */
1493
1275
  edi_status?: 'enabled' | 'disabled';
1494
1276
 
@@ -1498,17 +1280,25 @@ export interface CustomerCreateParams {
1498
1280
  email?: string;
1499
1281
 
1500
1282
  /**
1501
- * Body param: Freight policy.
1283
+ * Body param: Whether this customer is billed for freight on their orders.
1284
+ *
1285
+ * - `free_freight`: the customer is not billed for freight.
1286
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1287
+ * order.
1502
1288
  */
1503
1289
  freight_policy?: 'free_freight' | 'billed_freight';
1504
1290
 
1505
1291
  /**
1506
- * Body param: Note.
1292
+ * Body param: Free-form note about the customer.
1507
1293
  */
1508
1294
  note?: string;
1509
1295
 
1510
1296
  /**
1511
- * Body param: Customer number. Auto-generated if omitted.
1297
+ * Body param: Human-readable customer number used to identify the account,
1298
+ * distinct from the `id`.
1299
+ *
1300
+ * Must be unique within your account. If omitted, the next sequential number is
1301
+ * assigned automatically.
1512
1302
  */
1513
1303
  number?: string;
1514
1304
 
@@ -1518,7 +1308,12 @@ export interface CustomerCreateParams {
1518
1308
  phone?: string;
1519
1309
 
1520
1310
  /**
1521
- * Body param: Account status code.
1311
+ * Body param: Account status code, controlling whether the customer can transact.
1312
+ *
1313
+ * - `normal`: standard active account with no restrictions.
1314
+ * - `preferred`: active account flagged as preferred.
1315
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1316
+ * - `hold_all`: all activity is on hold.
1522
1317
  */
1523
1318
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1524
1319
 
@@ -1528,32 +1323,6 @@ export interface CustomerCreateParams {
1528
1323
  url?: string;
1529
1324
  }
1530
1325
 
1531
- export interface CustomerRetrieveParams {
1532
- /**
1533
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1534
- * `null`.
1535
- */
1536
- include?: Array<
1537
- | 'bill_to_address'
1538
- | 'ship_to_address'
1539
- | 'type'
1540
- | 'parent_account'
1541
- | 'freight_preferences.carrier'
1542
- | 'freight_preferences.service_level'
1543
- | 'defaults.payment_term'
1544
- | 'defaults.shipping_term'
1545
- | 'defaults.sales_rep'
1546
- | 'defaults.priority'
1547
- | 'contact_info'
1548
- | 'freight_preferences'
1549
- | 'defaults'
1550
- | 'notification_preferences'
1551
- | 'price_groups'
1552
- | 'child_accounts'
1553
- | 'credit_limit'
1554
- >;
1555
- }
1556
-
1557
1326
  export interface CustomerUpdateParams {
1558
1327
  /**
1559
1328
  * Query param: Sub-objects to expand in the response. When omitted, sub-objects
@@ -1565,10 +1334,12 @@ export interface CustomerUpdateParams {
1565
1334
  | 'type'
1566
1335
  | 'parent_account'
1567
1336
  | 'freight_preferences.carrier'
1337
+ | 'freight_preferences.carrier.service_levels'
1568
1338
  | 'freight_preferences.service_level'
1569
1339
  | 'defaults.payment_term'
1570
1340
  | 'defaults.shipping_term'
1571
1341
  | 'defaults.sales_rep'
1342
+ | 'defaults.sales_rep.user'
1572
1343
  | 'defaults.priority'
1573
1344
  | 'contact_info'
1574
1345
  | 'freight_preferences'
@@ -1577,46 +1348,58 @@ export interface CustomerUpdateParams {
1577
1348
  | 'price_groups'
1578
1349
  | 'child_accounts'
1579
1350
  | 'credit_limit'
1351
+ | 'credit_limit.unit'
1580
1352
  >;
1581
1353
 
1582
1354
  /**
1583
- * Body param: Bill-to address ID.
1355
+ * Body param: ID of an existing address to use as the default billing address.
1584
1356
  */
1585
1357
  bill_to_address_id?: string | null;
1586
1358
 
1587
1359
  /**
1588
- * Body param: Carrier billing account number.
1360
+ * Body param: Carrier billing account number charged when `carrier_billing_type`
1361
+ * is `third_party`.
1589
1362
  */
1590
1363
  carrier_billing_account?: string | null;
1591
1364
 
1592
1365
  /**
1593
- * Body param: Carrier billing type.
1366
+ * Body param: Who pays the carrier for shipments.
1367
+ *
1368
+ * - `sender`: the shipper (you) pays the carrier.
1369
+ * - `third_party`: a third party is billed, using `carrier_billing_account`.
1594
1370
  */
1595
1371
  carrier_billing_type?: 'sender' | 'third_party';
1596
1372
 
1597
1373
  /**
1598
- * Body param: Commission policy.
1374
+ * Body param: How sales commission applies to this customer's orders.
1375
+ *
1376
+ * - `commission_exempt`: this customer's orders are exempt from sales commission.
1377
+ * - `commission_applied`: sales commission is calculated on this customer's
1378
+ * orders.
1599
1379
  */
1600
1380
  commission_policy?: 'commission_applied' | 'commission_exempt';
1601
1381
 
1602
1382
  /**
1603
- * Body param: QuantityInput represents a value with an associated unit for
1604
- * create/update requests.
1383
+ * Body param: A value with an associated unit, used in create and update requests.
1605
1384
  */
1606
1385
  credit_limit?: QuantityInput | null;
1607
1386
 
1608
1387
  /**
1609
- * Body param: Price group IDs. Replaces all existing price groups when provided.
1388
+ * Body param: IDs of the account groups of type `pricing_group` to assign to this
1389
+ * customer, used to apply pricing rules.
1390
+ *
1391
+ * When provided, replaces the customer's full set of existing price groups.
1610
1392
  */
1611
1393
  customer_price_group_ids?: Array<string>;
1612
1394
 
1613
1395
  /**
1614
- * Body param: Customer type group ID.
1396
+ * Body param: ID of the account group of type `type_group` that categorizes this
1397
+ * customer (for example "Distributors").
1615
1398
  */
1616
1399
  customer_type_group_id?: string;
1617
1400
 
1618
1401
  /**
1619
- * Body param: Default carrier ID.
1402
+ * Body param: ID of the default carrier for this customer's shipments.
1620
1403
  */
1621
1404
  default_carrier_id?: string;
1622
1405
 
@@ -1626,7 +1409,7 @@ export interface CustomerUpdateParams {
1626
1409
  default_payment_term_id?: string;
1627
1410
 
1628
1411
  /**
1629
- * Body param: Default priority code.
1412
+ * Body param: Priority applied to new orders for this customer.
1630
1413
  */
1631
1414
  default_priority?: 'low' | 'normal' | 'high';
1632
1415
 
@@ -1636,7 +1419,7 @@ export interface CustomerUpdateParams {
1636
1419
  default_sales_rep_id?: string | null;
1637
1420
 
1638
1421
  /**
1639
- * Body param: Default service level ID.
1422
+ * Body param: ID of the default carrier service level.
1640
1423
  */
1641
1424
  default_service_level_id?: string | null;
1642
1425
 
@@ -1646,213 +1429,93 @@ export interface CustomerUpdateParams {
1646
1429
  default_shipping_term_id?: string;
1647
1430
 
1648
1431
  /**
1649
- * Body param: EDI status.
1432
+ * Body param: Whether EDI (Electronic Data Interchange) is enabled for exchanging
1433
+ * orders and documents with this customer.
1650
1434
  */
1651
1435
  edi_status?: 'enabled' | 'disabled';
1652
1436
 
1653
1437
  /**
1654
- * Body param: Email address. Send null to clear.
1438
+ * Body param: Email address.
1655
1439
  */
1656
1440
  email?: string | null;
1657
1441
 
1658
1442
  /**
1659
- * Body param: Freight policy.
1443
+ * Body param: Whether this customer is billed for freight on their orders.
1444
+ *
1445
+ * - `free_freight`: the customer is not billed for freight.
1446
+ * - `billed_freight`: freight is billed to the customer, unless overridden on the
1447
+ * order.
1660
1448
  */
1661
1449
  freight_policy?: 'free_freight' | 'billed_freight';
1662
1450
 
1663
1451
  /**
1664
- * Body param: Customer name.
1452
+ * Body param: The customer's business name, as shown throughout the app and on
1453
+ * documents.
1665
1454
  */
1666
1455
  name?: string;
1667
1456
 
1668
1457
  /**
1669
- * Body param: Note.
1458
+ * Body param: Free-form note about the customer.
1670
1459
  */
1671
1460
  note?: string | null;
1672
1461
 
1673
1462
  /**
1674
- * Body param: Customer number.
1463
+ * Body param: Human-readable customer number used to identify the account,
1464
+ * distinct from the `id`.
1465
+ *
1466
+ * Must be unique within your account.
1675
1467
  */
1676
1468
  number?: string;
1677
1469
 
1678
1470
  /**
1679
- * Body param: Phone number. Send null to clear.
1471
+ * Body param: Phone number.
1680
1472
  */
1681
1473
  phone?: string | null;
1682
1474
 
1683
1475
  /**
1684
- * Body param: Ship-to address ID.
1476
+ * Body param: ID of an existing address to use as the default shipping address.
1685
1477
  */
1686
1478
  ship_to_address_id?: string | null;
1687
1479
 
1688
1480
  /**
1689
- * Body param: Account status code.
1481
+ * Body param: Account status code, controlling whether the customer can transact.
1482
+ *
1483
+ * - `normal`: standard active account with no restrictions.
1484
+ * - `preferred`: active account flagged as preferred.
1485
+ * - `hold_shipment`: orders can be placed, but shipments are held.
1486
+ * - `hold_all`: all activity is on hold.
1690
1487
  */
1691
1488
  status?: 'normal' | 'preferred' | 'hold_shipment' | 'hold_all';
1692
1489
 
1693
1490
  /**
1694
- * Body param: Website URL. Send null to clear.
1491
+ * Body param: Website URL.
1695
1492
  */
1696
1493
  url?: string | null;
1697
1494
  }
1698
1495
 
1699
- export interface CustomerListParams {
1700
- /**
1701
- * Filter by carrier IDs.
1702
- */
1703
- carrier_ids?: Array<string>;
1704
-
1705
- /**
1706
- * Filter by city.
1707
- */
1708
- city?: string;
1709
-
1710
- /**
1711
- * Filter by commission status codes.
1712
- */
1713
- commission_status_codes?: Array<'commission_applied' | 'commission_exempt'>;
1714
-
1715
- /**
1716
- * Cursor token used to retrieve the next or previous page of results.
1717
- */
1718
- cursor?: string;
1719
-
1720
- /**
1721
- * Filter by customer group IDs.
1722
- */
1723
- customer_group_ids?: Array<string>;
1724
-
1725
- /**
1726
- * Filter by end date (created before).
1727
- */
1728
- end_date?: string;
1729
-
1730
- /**
1731
- * Filter by freight status codes.
1732
- */
1733
- freight_status_codes?: Array<'free_freight' | 'billed_freight'>;
1734
-
1735
- /**
1736
- * Sub-objects to expand in the response. When omitted, sub-objects are returned as
1737
- * `null`.
1738
- */
1739
- include?: Array<
1740
- | 'bill_to_address'
1741
- | 'ship_to_address'
1742
- | 'type'
1743
- | 'parent_account'
1744
- | 'freight_preferences.carrier'
1745
- | 'freight_preferences.service_level'
1746
- | 'defaults.payment_term'
1747
- | 'defaults.shipping_term'
1748
- | 'defaults.sales_rep'
1749
- | 'defaults.priority'
1750
- | 'contact_info'
1751
- | 'freight_preferences'
1752
- | 'defaults'
1753
- | 'notification_preferences'
1754
- | 'price_groups'
1755
- | 'child_accounts'
1756
- | 'credit_limit'
1757
- >;
1758
-
1759
- /**
1760
- * Maximum number of results per page (default: 100, max: 1000).
1761
- */
1762
- limit?: number;
1763
-
1764
- /**
1765
- * Filter by whether the customer has child accounts.
1766
- */
1767
- parent_account_status?: 'parent' | 'non_parent';
1768
-
1769
- /**
1770
- * Filter by payment term IDs.
1771
- */
1772
- payment_term_ids?: Array<string>;
1773
-
1774
- /**
1775
- * Filter by postal code.
1776
- */
1777
- postal_code?: string;
1778
-
1779
- /**
1780
- * Filter by pricing group IDs.
1781
- */
1782
- pricing_group_ids?: Array<string>;
1783
-
1784
- /**
1785
- * Search query used to filter results.
1786
- */
1787
- q?: string;
1788
-
1789
- /**
1790
- * Filter by sales rep IDs.
1791
- */
1792
- sales_rep_ids?: Array<string>;
1793
-
1794
- /**
1795
- * Filter by service level IDs.
1796
- */
1797
- service_level_ids?: Array<string>;
1798
-
1799
- /**
1800
- * Filter by shipping term IDs.
1801
- */
1802
- shipping_term_ids?: Array<string>;
1803
-
1804
- /**
1805
- * Filter by start date (created after).
1806
- */
1807
- start_date?: string;
1808
-
1809
- /**
1810
- * Filter by state.
1811
- */
1812
- state?: string;
1813
-
1814
- /**
1815
- * Filter by status codes.
1816
- */
1817
- status_codes?: Array<'normal' | 'preferred' | 'hold_shipment' | 'hold_all'>;
1818
- }
1819
-
1820
1496
  Customers.Actions = Actions;
1821
1497
 
1822
1498
  export declare namespace Customers {
1823
1499
  export {
1824
- type AccountUser as AccountUser,
1825
1500
  type Carrier as Carrier,
1826
- type Consumption as Consumption,
1827
1501
  type CreateCustomerRequest as CreateCustomerRequest,
1828
1502
  type Customer as Customer,
1829
1503
  type CustomerContactInfo as CustomerContactInfo,
1830
1504
  type CustomerDefaults as CustomerDefaults,
1831
1505
  type CustomerFreightPreferences as CustomerFreightPreferences,
1832
1506
  type CustomerNotificationPreferences as CustomerNotificationPreferences,
1833
- type Department as Department,
1834
- type ListConsumption as ListConsumption,
1835
1507
  type ListCustomer as ListCustomer,
1836
- type ListLocation as ListLocation,
1837
- type ListMachine as ListMachine,
1838
- type ListProductionStep as ListProductionStep,
1839
- type ListScanningStation as ListScanningStation,
1840
1508
  type ListServiceLevel as ListServiceLevel,
1841
- type Location as Location,
1842
- type Machine as Machine,
1843
1509
  type PaymentTerm as PaymentTerm,
1844
- type ProductionOutput as ProductionOutput,
1845
- type ProductionStep as ProductionStep,
1846
1510
  type QuantityInput as QuantityInput,
1847
- type ScanningStation as ScanningStation,
1848
1511
  type ServiceLevel as ServiceLevel,
1849
1512
  type ShippingTerm as ShippingTerm,
1850
1513
  type UpdateCustomerRequest as UpdateCustomerRequest,
1851
1514
  type CustomerDeleteResponse as CustomerDeleteResponse,
1852
- type CustomerCreateParams as CustomerCreateParams,
1515
+ type CustomerListParams as CustomerListParams,
1853
1516
  type CustomerRetrieveParams as CustomerRetrieveParams,
1517
+ type CustomerCreateParams as CustomerCreateParams,
1854
1518
  type CustomerUpdateParams as CustomerUpdateParams,
1855
- type CustomerListParams as CustomerListParams,
1856
1519
  };
1857
1520
 
1858
1521
  export {