@keystrokehq/shipengine 0.1.2 → 0.1.4

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 (405) hide show
  1. package/dist/actions/add-tag-to-shipment.cjs +1 -1
  2. package/dist/actions/add-tag-to-shipment.cjs.map +1 -1
  3. package/dist/actions/add-tag-to-shipment.d.cts +1 -1
  4. package/dist/actions/add-tag-to-shipment.d.mts +1 -1
  5. package/dist/actions/add-tag-to-shipment.mjs +1 -1
  6. package/dist/actions/add-tag-to-shipment.mjs.map +1 -1
  7. package/dist/actions/add-to-batch.cjs +1 -1
  8. package/dist/actions/add-to-batch.cjs.map +1 -1
  9. package/dist/actions/add-to-batch.d.cts +1 -1
  10. package/dist/actions/add-to-batch.d.mts +1 -1
  11. package/dist/actions/add-to-batch.mjs +1 -1
  12. package/dist/actions/add-to-batch.mjs.map +1 -1
  13. package/dist/actions/cancel-shipment.cjs +1 -1
  14. package/dist/actions/cancel-shipment.cjs.map +1 -1
  15. package/dist/actions/cancel-shipment.d.cts +1 -1
  16. package/dist/actions/cancel-shipment.d.mts +1 -1
  17. package/dist/actions/cancel-shipment.mjs +1 -1
  18. package/dist/actions/cancel-shipment.mjs.map +1 -1
  19. package/dist/actions/connect-ltl-carrier.cjs +2 -2
  20. package/dist/actions/connect-ltl-carrier.cjs.map +1 -1
  21. package/dist/actions/connect-ltl-carrier.d.cts +3 -3
  22. package/dist/actions/connect-ltl-carrier.d.mts +3 -3
  23. package/dist/actions/connect-ltl-carrier.mjs +2 -2
  24. package/dist/actions/connect-ltl-carrier.mjs.map +1 -1
  25. package/dist/actions/connect-shipsurance.cjs +1 -1
  26. package/dist/actions/connect-shipsurance.cjs.map +1 -1
  27. package/dist/actions/connect-shipsurance.d.cts +1 -1
  28. package/dist/actions/connect-shipsurance.d.cts.map +1 -1
  29. package/dist/actions/connect-shipsurance.d.mts +1 -1
  30. package/dist/actions/connect-shipsurance.d.mts.map +1 -1
  31. package/dist/actions/connect-shipsurance.mjs +1 -1
  32. package/dist/actions/connect-shipsurance.mjs.map +1 -1
  33. package/dist/actions/create-account-image.cjs +1 -1
  34. package/dist/actions/create-account-image.cjs.map +1 -1
  35. package/dist/actions/create-account-image.d.cts +1 -1
  36. package/dist/actions/create-account-image.d.mts +1 -1
  37. package/dist/actions/create-account-image.mjs +1 -1
  38. package/dist/actions/create-account-image.mjs.map +1 -1
  39. package/dist/actions/create-package-type.cjs +2 -2
  40. package/dist/actions/create-package-type.cjs.map +1 -1
  41. package/dist/actions/create-package-type.d.cts +2 -2
  42. package/dist/actions/create-package-type.d.mts +2 -2
  43. package/dist/actions/create-package-type.mjs +2 -2
  44. package/dist/actions/create-package-type.mjs.map +1 -1
  45. package/dist/actions/create-tag.cjs +1 -1
  46. package/dist/actions/create-tag.cjs.map +1 -1
  47. package/dist/actions/create-tag.d.cts +1 -1
  48. package/dist/actions/create-tag.d.mts +1 -1
  49. package/dist/actions/create-tag.mjs +1 -1
  50. package/dist/actions/create-tag.mjs.map +1 -1
  51. package/dist/actions/create-tag2.cjs +1 -1
  52. package/dist/actions/create-tag2.cjs.map +1 -1
  53. package/dist/actions/create-tag2.d.cts +1 -1
  54. package/dist/actions/create-tag2.d.mts +1 -1
  55. package/dist/actions/create-tag2.mjs +1 -1
  56. package/dist/actions/create-tag2.mjs.map +1 -1
  57. package/dist/actions/create-warehouse.cjs +2 -2
  58. package/dist/actions/create-warehouse.cjs.map +1 -1
  59. package/dist/actions/create-warehouse.d.cts +3 -3
  60. package/dist/actions/create-warehouse.d.mts +3 -3
  61. package/dist/actions/create-warehouse.mjs +2 -2
  62. package/dist/actions/create-warehouse.mjs.map +1 -1
  63. package/dist/actions/create-webhook.cjs +2 -2
  64. package/dist/actions/create-webhook.cjs.map +1 -1
  65. package/dist/actions/create-webhook.d.cts +2 -2
  66. package/dist/actions/create-webhook.d.mts +2 -2
  67. package/dist/actions/create-webhook.mjs +2 -2
  68. package/dist/actions/create-webhook.mjs.map +1 -1
  69. package/dist/actions/delete-account-image-by-id.cjs +1 -1
  70. package/dist/actions/delete-account-image-by-id.cjs.map +1 -1
  71. package/dist/actions/delete-account-image-by-id.d.cts +1 -1
  72. package/dist/actions/delete-account-image-by-id.d.mts +1 -1
  73. package/dist/actions/delete-account-image-by-id.mjs +1 -1
  74. package/dist/actions/delete-account-image-by-id.mjs.map +1 -1
  75. package/dist/actions/delete-batch.cjs +1 -1
  76. package/dist/actions/delete-batch.cjs.map +1 -1
  77. package/dist/actions/delete-batch.d.cts +1 -1
  78. package/dist/actions/delete-batch.d.mts +1 -1
  79. package/dist/actions/delete-batch.mjs +1 -1
  80. package/dist/actions/delete-batch.mjs.map +1 -1
  81. package/dist/actions/delete-package.cjs +1 -1
  82. package/dist/actions/delete-package.cjs.map +1 -1
  83. package/dist/actions/delete-package.d.cts +1 -1
  84. package/dist/actions/delete-package.d.mts +1 -1
  85. package/dist/actions/delete-package.mjs +1 -1
  86. package/dist/actions/delete-package.mjs.map +1 -1
  87. package/dist/actions/delete-warehouse.cjs +1 -1
  88. package/dist/actions/delete-warehouse.cjs.map +1 -1
  89. package/dist/actions/delete-warehouse.d.cts +1 -1
  90. package/dist/actions/delete-warehouse.d.mts +1 -1
  91. package/dist/actions/delete-warehouse.mjs +1 -1
  92. package/dist/actions/delete-warehouse.mjs.map +1 -1
  93. package/dist/actions/delete-webhook.cjs +1 -1
  94. package/dist/actions/delete-webhook.cjs.map +1 -1
  95. package/dist/actions/delete-webhook.d.cts +1 -1
  96. package/dist/actions/delete-webhook.d.mts +1 -1
  97. package/dist/actions/delete-webhook.mjs +1 -1
  98. package/dist/actions/delete-webhook.mjs.map +1 -1
  99. package/dist/actions/disconnect-carrier.cjs +1 -1
  100. package/dist/actions/disconnect-carrier.cjs.map +1 -1
  101. package/dist/actions/disconnect-carrier.d.cts +1 -1
  102. package/dist/actions/disconnect-carrier.d.mts +1 -1
  103. package/dist/actions/disconnect-carrier.mjs +1 -1
  104. package/dist/actions/disconnect-carrier.mjs.map +1 -1
  105. package/dist/actions/disconnect-shipsurance.cjs +1 -1
  106. package/dist/actions/disconnect-shipsurance.cjs.map +1 -1
  107. package/dist/actions/disconnect-shipsurance.d.cts +1 -1
  108. package/dist/actions/disconnect-shipsurance.d.cts.map +1 -1
  109. package/dist/actions/disconnect-shipsurance.d.mts +1 -1
  110. package/dist/actions/disconnect-shipsurance.d.mts.map +1 -1
  111. package/dist/actions/disconnect-shipsurance.mjs +1 -1
  112. package/dist/actions/disconnect-shipsurance.mjs.map +1 -1
  113. package/dist/actions/download-file.cjs +2 -2
  114. package/dist/actions/download-file.cjs.map +1 -1
  115. package/dist/actions/download-file.d.cts +2 -2
  116. package/dist/actions/download-file.d.mts +2 -2
  117. package/dist/actions/download-file.mjs +2 -2
  118. package/dist/actions/download-file.mjs.map +1 -1
  119. package/dist/actions/get-account-image-by-id.cjs +1 -1
  120. package/dist/actions/get-account-image-by-id.cjs.map +1 -1
  121. package/dist/actions/get-account-image-by-id.d.cts +1 -1
  122. package/dist/actions/get-account-image-by-id.d.mts +1 -1
  123. package/dist/actions/get-account-image-by-id.mjs +1 -1
  124. package/dist/actions/get-account-image-by-id.mjs.map +1 -1
  125. package/dist/actions/get-batch-by-external-id.cjs +8 -8
  126. package/dist/actions/get-batch-by-external-id.cjs.map +1 -1
  127. package/dist/actions/get-batch-by-external-id.d.cts +8 -8
  128. package/dist/actions/get-batch-by-external-id.d.mts +8 -8
  129. package/dist/actions/get-batch-by-external-id.mjs +8 -8
  130. package/dist/actions/get-batch-by-external-id.mjs.map +1 -1
  131. package/dist/actions/get-batch-by-id.cjs +4 -4
  132. package/dist/actions/get-batch-by-id.cjs.map +1 -1
  133. package/dist/actions/get-batch-by-id.d.cts +8 -8
  134. package/dist/actions/get-batch-by-id.d.mts +8 -8
  135. package/dist/actions/get-batch-by-id.mjs +4 -4
  136. package/dist/actions/get-batch-by-id.mjs.map +1 -1
  137. package/dist/actions/get-batch-errors.cjs +4 -4
  138. package/dist/actions/get-batch-errors.cjs.map +1 -1
  139. package/dist/actions/get-batch-errors.d.cts +7 -7
  140. package/dist/actions/get-batch-errors.d.mts +7 -7
  141. package/dist/actions/get-batch-errors.mjs +4 -4
  142. package/dist/actions/get-batch-errors.mjs.map +1 -1
  143. package/dist/actions/get-bulk-rates.cjs +7 -7
  144. package/dist/actions/get-bulk-rates.cjs.map +1 -1
  145. package/dist/actions/get-bulk-rates.d.cts +11 -9
  146. package/dist/actions/get-bulk-rates.d.cts.map +1 -1
  147. package/dist/actions/get-bulk-rates.d.mts +11 -9
  148. package/dist/actions/get-bulk-rates.d.mts.map +1 -1
  149. package/dist/actions/get-bulk-rates.mjs +7 -7
  150. package/dist/actions/get-bulk-rates.mjs.map +1 -1
  151. package/dist/actions/get-insurance-balance.cjs +2 -2
  152. package/dist/actions/get-insurance-balance.cjs.map +1 -1
  153. package/dist/actions/get-insurance-balance.d.cts +2 -2
  154. package/dist/actions/get-insurance-balance.d.mts +2 -2
  155. package/dist/actions/get-insurance-balance.mjs +2 -2
  156. package/dist/actions/get-insurance-balance.mjs.map +1 -1
  157. package/dist/actions/get-ltl-carrier-credential-requirements.cjs +2 -2
  158. package/dist/actions/get-ltl-carrier-credential-requirements.cjs.map +1 -1
  159. package/dist/actions/get-ltl-carrier-credential-requirements.d.cts +2 -2
  160. package/dist/actions/get-ltl-carrier-credential-requirements.d.mts +2 -2
  161. package/dist/actions/get-ltl-carrier-credential-requirements.mjs +2 -2
  162. package/dist/actions/get-ltl-carrier-credential-requirements.mjs.map +1 -1
  163. package/dist/actions/get-ltl-carrier-features.cjs +1 -1
  164. package/dist/actions/get-ltl-carrier-features.cjs.map +1 -1
  165. package/dist/actions/get-ltl-carrier-features.d.cts +1 -1
  166. package/dist/actions/get-ltl-carrier-features.d.mts +1 -1
  167. package/dist/actions/get-ltl-carrier-features.mjs +1 -1
  168. package/dist/actions/get-ltl-carrier-features.mjs.map +1 -1
  169. package/dist/actions/get-ltl-carrier-options.cjs +3 -3
  170. package/dist/actions/get-ltl-carrier-options.cjs.map +1 -1
  171. package/dist/actions/get-ltl-carrier-options.d.cts +3 -3
  172. package/dist/actions/get-ltl-carrier-options.d.mts +3 -3
  173. package/dist/actions/get-ltl-carrier-options.mjs +3 -3
  174. package/dist/actions/get-ltl-carrier-options.mjs.map +1 -1
  175. package/dist/actions/get-ltl-carrier-packages.cjs +2 -2
  176. package/dist/actions/get-ltl-carrier-packages.cjs.map +1 -1
  177. package/dist/actions/get-ltl-carrier-packages.d.cts +2 -2
  178. package/dist/actions/get-ltl-carrier-packages.d.mts +2 -2
  179. package/dist/actions/get-ltl-carrier-packages.mjs +2 -2
  180. package/dist/actions/get-ltl-carrier-packages.mjs.map +1 -1
  181. package/dist/actions/get-ltl-carrier-services.cjs +2 -2
  182. package/dist/actions/get-ltl-carrier-services.cjs.map +1 -1
  183. package/dist/actions/get-ltl-carrier-services.d.cts +2 -2
  184. package/dist/actions/get-ltl-carrier-services.d.mts +2 -2
  185. package/dist/actions/get-ltl-carrier-services.mjs +2 -2
  186. package/dist/actions/get-ltl-carrier-services.mjs.map +1 -1
  187. package/dist/actions/get-package-by-id.cjs +2 -2
  188. package/dist/actions/get-package-by-id.cjs.map +1 -1
  189. package/dist/actions/get-package-by-id.d.cts +2 -2
  190. package/dist/actions/get-package-by-id.d.mts +2 -2
  191. package/dist/actions/get-package-by-id.mjs +2 -2
  192. package/dist/actions/get-package-by-id.mjs.map +1 -1
  193. package/dist/actions/get-shipment-by-external-id.cjs +9 -9
  194. package/dist/actions/get-shipment-by-external-id.cjs.map +1 -1
  195. package/dist/actions/get-shipment-by-external-id.d.cts +13 -13
  196. package/dist/actions/get-shipment-by-external-id.d.mts +13 -13
  197. package/dist/actions/get-shipment-by-external-id.mjs +9 -9
  198. package/dist/actions/get-shipment-by-external-id.mjs.map +1 -1
  199. package/dist/actions/get-shipment-by-id.cjs +9 -9
  200. package/dist/actions/get-shipment-by-id.cjs.map +1 -1
  201. package/dist/actions/get-shipment-by-id.d.cts +15 -15
  202. package/dist/actions/get-shipment-by-id.d.mts +15 -15
  203. package/dist/actions/get-shipment-by-id.mjs +9 -9
  204. package/dist/actions/get-shipment-by-id.mjs.map +1 -1
  205. package/dist/actions/get-shipment-rates.cjs +4 -4
  206. package/dist/actions/get-shipment-rates.cjs.map +1 -1
  207. package/dist/actions/get-shipment-rates.d.cts +14 -14
  208. package/dist/actions/get-shipment-rates.d.mts +14 -14
  209. package/dist/actions/get-shipment-rates.mjs +4 -4
  210. package/dist/actions/get-shipment-rates.mjs.map +1 -1
  211. package/dist/actions/get-tracking-info.cjs +2 -2
  212. package/dist/actions/get-tracking-info.cjs.map +1 -1
  213. package/dist/actions/get-tracking-info.d.cts +2 -2
  214. package/dist/actions/get-tracking-info.d.mts +2 -2
  215. package/dist/actions/get-tracking-info.mjs +2 -2
  216. package/dist/actions/get-tracking-info.mjs.map +1 -1
  217. package/dist/actions/get-warehouse-by-id.cjs +2 -2
  218. package/dist/actions/get-warehouse-by-id.cjs.map +1 -1
  219. package/dist/actions/get-warehouse-by-id.d.cts +3 -3
  220. package/dist/actions/get-warehouse-by-id.d.mts +3 -3
  221. package/dist/actions/get-warehouse-by-id.mjs +2 -2
  222. package/dist/actions/get-warehouse-by-id.mjs.map +1 -1
  223. package/dist/actions/get-webhook-by-id.cjs +2 -2
  224. package/dist/actions/get-webhook-by-id.cjs.map +1 -1
  225. package/dist/actions/get-webhook-by-id.d.cts +2 -2
  226. package/dist/actions/get-webhook-by-id.d.mts +2 -2
  227. package/dist/actions/get-webhook-by-id.mjs +2 -2
  228. package/dist/actions/get-webhook-by-id.mjs.map +1 -1
  229. package/dist/actions/list-account-images.cjs +2 -2
  230. package/dist/actions/list-account-images.cjs.map +1 -1
  231. package/dist/actions/list-account-images.d.cts +2 -2
  232. package/dist/actions/list-account-images.d.mts +2 -2
  233. package/dist/actions/list-account-images.mjs +2 -2
  234. package/dist/actions/list-account-images.mjs.map +1 -1
  235. package/dist/actions/list-batches2.cjs +3 -3
  236. package/dist/actions/list-batches2.cjs.map +1 -1
  237. package/dist/actions/list-batches2.d.cts +5 -5
  238. package/dist/actions/list-batches2.d.mts +5 -5
  239. package/dist/actions/list-batches2.mjs +3 -3
  240. package/dist/actions/list-batches2.mjs.map +1 -1
  241. package/dist/actions/list-carrier-package-types.cjs +3 -3
  242. package/dist/actions/list-carrier-package-types.cjs.map +1 -1
  243. package/dist/actions/list-carrier-package-types.d.cts +3 -3
  244. package/dist/actions/list-carrier-package-types.d.mts +3 -3
  245. package/dist/actions/list-carrier-package-types.mjs +3 -3
  246. package/dist/actions/list-carrier-package-types.mjs.map +1 -1
  247. package/dist/actions/list-labels2.cjs +9 -9
  248. package/dist/actions/list-labels2.cjs.map +1 -1
  249. package/dist/actions/list-labels2.d.cts +20 -20
  250. package/dist/actions/list-labels2.d.mts +20 -20
  251. package/dist/actions/list-labels2.mjs +9 -9
  252. package/dist/actions/list-labels2.mjs.map +1 -1
  253. package/dist/actions/list-ltl-carriers.cjs +5 -5
  254. package/dist/actions/list-ltl-carriers.cjs.map +1 -1
  255. package/dist/actions/list-ltl-carriers.d.cts +5 -5
  256. package/dist/actions/list-ltl-carriers.d.mts +5 -5
  257. package/dist/actions/list-ltl-carriers.mjs +5 -5
  258. package/dist/actions/list-ltl-carriers.mjs.map +1 -1
  259. package/dist/actions/list-manifests2.cjs +5 -5
  260. package/dist/actions/list-manifests2.cjs.map +1 -1
  261. package/dist/actions/list-manifests2.d.cts +8 -8
  262. package/dist/actions/list-manifests2.d.mts +8 -8
  263. package/dist/actions/list-manifests2.mjs +5 -5
  264. package/dist/actions/list-manifests2.mjs.map +1 -1
  265. package/dist/actions/list-packages.cjs +4 -4
  266. package/dist/actions/list-packages.cjs.map +1 -1
  267. package/dist/actions/list-packages.d.cts +4 -4
  268. package/dist/actions/list-packages.d.mts +4 -4
  269. package/dist/actions/list-packages.mjs +4 -4
  270. package/dist/actions/list-packages.mjs.map +1 -1
  271. package/dist/actions/list-pickups.cjs +7 -7
  272. package/dist/actions/list-pickups.cjs.map +1 -1
  273. package/dist/actions/list-pickups.d.cts +10 -10
  274. package/dist/actions/list-pickups.d.mts +10 -10
  275. package/dist/actions/list-pickups.mjs +7 -7
  276. package/dist/actions/list-pickups.mjs.map +1 -1
  277. package/dist/actions/list-shipments2.cjs +10 -10
  278. package/dist/actions/list-shipments2.cjs.map +1 -1
  279. package/dist/actions/list-shipments2.d.cts +14 -14
  280. package/dist/actions/list-shipments2.d.mts +14 -14
  281. package/dist/actions/list-shipments2.mjs +10 -10
  282. package/dist/actions/list-shipments2.mjs.map +1 -1
  283. package/dist/actions/list-tags2.cjs +2 -2
  284. package/dist/actions/list-tags2.cjs.map +1 -1
  285. package/dist/actions/list-tags2.d.cts +2 -2
  286. package/dist/actions/list-tags2.d.mts +2 -2
  287. package/dist/actions/list-tags2.mjs +2 -2
  288. package/dist/actions/list-tags2.mjs.map +1 -1
  289. package/dist/actions/list-warehouses.cjs +3 -3
  290. package/dist/actions/list-warehouses.cjs.map +1 -1
  291. package/dist/actions/list-warehouses.d.cts +3 -3
  292. package/dist/actions/list-warehouses.d.mts +3 -3
  293. package/dist/actions/list-warehouses.mjs +3 -3
  294. package/dist/actions/list-warehouses.mjs.map +1 -1
  295. package/dist/actions/list-webhook-events.cjs +2 -2
  296. package/dist/actions/list-webhook-events.cjs.map +1 -1
  297. package/dist/actions/list-webhook-events.d.cts +2 -2
  298. package/dist/actions/list-webhook-events.d.mts +2 -2
  299. package/dist/actions/list-webhook-events.mjs +2 -2
  300. package/dist/actions/list-webhook-events.mjs.map +1 -1
  301. package/dist/actions/list-webhooks.cjs +3 -3
  302. package/dist/actions/list-webhooks.cjs.map +1 -1
  303. package/dist/actions/list-webhooks.d.cts +3 -3
  304. package/dist/actions/list-webhooks.d.mts +3 -3
  305. package/dist/actions/list-webhooks.mjs +3 -3
  306. package/dist/actions/list-webhooks.mjs.map +1 -1
  307. package/dist/actions/parse-address.cjs +3 -3
  308. package/dist/actions/parse-address.cjs.map +1 -1
  309. package/dist/actions/parse-address.d.cts +3 -3
  310. package/dist/actions/parse-address.d.mts +3 -3
  311. package/dist/actions/parse-address.mjs +3 -3
  312. package/dist/actions/parse-address.mjs.map +1 -1
  313. package/dist/actions/process-batch-labels.cjs +1 -1
  314. package/dist/actions/process-batch-labels.cjs.map +1 -1
  315. package/dist/actions/process-batch-labels.d.cts +1 -1
  316. package/dist/actions/process-batch-labels.d.mts +1 -1
  317. package/dist/actions/process-batch-labels.mjs +1 -1
  318. package/dist/actions/process-batch-labels.mjs.map +1 -1
  319. package/dist/actions/remove-from-batch.cjs +1 -1
  320. package/dist/actions/remove-from-batch.cjs.map +1 -1
  321. package/dist/actions/remove-from-batch.d.cts +1 -1
  322. package/dist/actions/remove-from-batch.d.mts +1 -1
  323. package/dist/actions/remove-from-batch.mjs +1 -1
  324. package/dist/actions/remove-from-batch.mjs.map +1 -1
  325. package/dist/actions/remove-tag-from-shipment.cjs +1 -1
  326. package/dist/actions/remove-tag-from-shipment.cjs.map +1 -1
  327. package/dist/actions/remove-tag-from-shipment.d.cts +1 -1
  328. package/dist/actions/remove-tag-from-shipment.d.mts +1 -1
  329. package/dist/actions/remove-tag-from-shipment.mjs +1 -1
  330. package/dist/actions/remove-tag-from-shipment.mjs.map +1 -1
  331. package/dist/actions/start-tracking.cjs +1 -1
  332. package/dist/actions/start-tracking.cjs.map +1 -1
  333. package/dist/actions/start-tracking.d.cts +1 -1
  334. package/dist/actions/start-tracking.d.mts +1 -1
  335. package/dist/actions/start-tracking.mjs +1 -1
  336. package/dist/actions/start-tracking.mjs.map +1 -1
  337. package/dist/actions/stop-tracking.cjs +1 -1
  338. package/dist/actions/stop-tracking.cjs.map +1 -1
  339. package/dist/actions/stop-tracking.d.cts +1 -1
  340. package/dist/actions/stop-tracking.d.mts +1 -1
  341. package/dist/actions/stop-tracking.mjs +1 -1
  342. package/dist/actions/stop-tracking.mjs.map +1 -1
  343. package/dist/actions/track-ltl-shipment.cjs +2 -2
  344. package/dist/actions/track-ltl-shipment.cjs.map +1 -1
  345. package/dist/actions/track-ltl-shipment.d.cts +2 -2
  346. package/dist/actions/track-ltl-shipment.d.mts +2 -2
  347. package/dist/actions/track-ltl-shipment.mjs +2 -2
  348. package/dist/actions/track-ltl-shipment.mjs.map +1 -1
  349. package/dist/actions/update-account-image-by-id.cjs +1 -1
  350. package/dist/actions/update-account-image-by-id.cjs.map +1 -1
  351. package/dist/actions/update-account-image-by-id.d.cts +1 -1
  352. package/dist/actions/update-account-image-by-id.d.mts +1 -1
  353. package/dist/actions/update-account-image-by-id.mjs +1 -1
  354. package/dist/actions/update-account-image-by-id.mjs.map +1 -1
  355. package/dist/actions/update-ltl-connection.cjs +2 -2
  356. package/dist/actions/update-ltl-connection.cjs.map +1 -1
  357. package/dist/actions/update-ltl-connection.d.cts +3 -3
  358. package/dist/actions/update-ltl-connection.d.mts +3 -3
  359. package/dist/actions/update-ltl-connection.mjs +2 -2
  360. package/dist/actions/update-ltl-connection.mjs.map +1 -1
  361. package/dist/actions/update-package.cjs +1 -1
  362. package/dist/actions/update-package.cjs.map +1 -1
  363. package/dist/actions/update-package.d.cts +1 -1
  364. package/dist/actions/update-package.d.mts +1 -1
  365. package/dist/actions/update-package.mjs +1 -1
  366. package/dist/actions/update-package.mjs.map +1 -1
  367. package/dist/actions/update-shipment.cjs +15 -15
  368. package/dist/actions/update-shipment.cjs.map +1 -1
  369. package/dist/actions/update-shipment.d.cts +24 -21
  370. package/dist/actions/update-shipment.d.cts.map +1 -1
  371. package/dist/actions/update-shipment.d.mts +24 -21
  372. package/dist/actions/update-shipment.d.mts.map +1 -1
  373. package/dist/actions/update-shipment.mjs +15 -15
  374. package/dist/actions/update-shipment.mjs.map +1 -1
  375. package/dist/actions/update-shipments-tags.cjs +2 -2
  376. package/dist/actions/update-shipments-tags.cjs.map +1 -1
  377. package/dist/actions/update-shipments-tags.d.cts +3 -2
  378. package/dist/actions/update-shipments-tags.d.mts +3 -2
  379. package/dist/actions/update-shipments-tags.mjs +2 -2
  380. package/dist/actions/update-shipments-tags.mjs.map +1 -1
  381. package/dist/actions/update-warehouse.cjs +1 -1
  382. package/dist/actions/update-warehouse.cjs.map +1 -1
  383. package/dist/actions/update-warehouse.d.cts +1 -1
  384. package/dist/actions/update-warehouse.d.mts +1 -1
  385. package/dist/actions/update-warehouse.mjs +1 -1
  386. package/dist/actions/update-warehouse.mjs.map +1 -1
  387. package/dist/actions/update-webhook.cjs +2 -2
  388. package/dist/actions/update-webhook.cjs.map +1 -1
  389. package/dist/actions/update-webhook.d.cts +3 -2
  390. package/dist/actions/update-webhook.d.mts +3 -2
  391. package/dist/actions/update-webhook.mjs +2 -2
  392. package/dist/actions/update-webhook.mjs.map +1 -1
  393. package/dist/actions/validate-address.cjs +5 -5
  394. package/dist/actions/validate-address.cjs.map +1 -1
  395. package/dist/actions/validate-address.d.cts +7 -6
  396. package/dist/actions/validate-address.d.mts +7 -6
  397. package/dist/actions/validate-address.mjs +5 -5
  398. package/dist/actions/validate-address.mjs.map +1 -1
  399. package/dist/catalog.cjs +1 -1
  400. package/dist/catalog.cjs.map +1 -1
  401. package/dist/catalog.d.cts +1 -1
  402. package/dist/catalog.d.mts +1 -1
  403. package/dist/catalog.mjs +1 -1
  404. package/dist/catalog.mjs.map +1 -1
  405. package/package.json +1 -1
@@ -19,15 +19,15 @@ const shipengineGetBatchByExternalId = action("SHIPENGINE_GET_BATCH_BY_EXTERNAL_
19
19
  label_format: z.string().describe("Format of batch labels (e.g., 'pdf', 'zpl')").nullable(),
20
20
  label_layout: z.string().describe("Layout format for batch labels (e.g., '4x6')").nullable().optional(),
21
21
  processed_at: z.string().describe("Timestamp when batch was processed (ISO 8601 format)").nullable().optional(),
22
- form_download: z.object({}).describe("Form download information and URLs").nullable().optional(),
23
- label_download: z.object({}).describe("Label download information and URLs").nullable().optional(),
24
- process_errors: z.array(z.object({})).describe("List of processing errors that occurred during batch execution").nullable().optional(),
25
- batch_errors_url: z.object({}).describe("URL object to retrieve batch errors").nullable().optional(),
26
- batch_labels_url: z.object({}).describe("URL object to download batch labels").nullable().optional(),
22
+ form_download: z.record(z.string(), z.unknown()).describe("Form download information and URLs").nullable().optional(),
23
+ label_download: z.record(z.string(), z.unknown()).describe("Label download information and URLs").nullable().optional(),
24
+ process_errors: z.array(z.record(z.string(), z.unknown())).describe("List of processing errors that occurred during batch execution").nullable().optional(),
25
+ batch_errors_url: z.record(z.string(), z.unknown()).describe("URL object to retrieve batch errors").nullable().optional(),
26
+ batch_labels_url: z.record(z.string(), z.unknown()).describe("URL object to download batch labels").nullable().optional(),
27
27
  external_batch_id: z.string().describe("External batch ID provided by the client").nullable(),
28
- paperless_download: z.object({}).describe("Paperless download information and URLs").nullable().optional(),
29
- batch_shipments_url: z.object({}).describe("URL object to retrieve batch shipments").nullable().optional()
30
- }).describe("Response model for retrieving a batch by external ID.")
28
+ paperless_download: z.record(z.string(), z.unknown()).describe("Paperless download information and URLs").nullable().optional(),
29
+ batch_shipments_url: z.record(z.string(), z.unknown()).describe("URL object to retrieve batch shipments").nullable().optional()
30
+ }).passthrough().describe("Response model for retrieving a batch by external ID.")
31
31
  });
32
32
  //#endregion
33
33
  export { shipengineGetBatchByExternalId };
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-by-external-id.mjs","names":[],"sources":["../../src/actions/get-batch-by-external-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByExternalIdInput = z.object({\n external_batch_id: z.string().describe(\"External batch ID assigned by the client or external system to identify the batch\"),\n}).describe(\"Request model for retrieving a batch by its external batch ID.\");\nexport const ShipengineGetBatchByExternalIdOutput = z.object({\n count: z.number().int().describe(\"Total number of shipments in the batch\").nullable(),\n forms: z.number().int().describe(\"Number of forms in the batch\").nullable(),\n errors: z.number().int().describe(\"Number of errors encountered during batch processing\").nullable(),\n status: z.string().describe(\"Current status of the batch\").nullable(),\n batch_id: z.string().describe(\"Unique ShipEngine batch identifier\").nullable(),\n warnings: z.number().int().describe(\"Number of warnings encountered during batch processing\").nullable(),\n completed: z.number().int().describe(\"Number of completed items in the batch\").nullable(),\n created_at: z.string().describe(\"Timestamp when batch was created (ISO 8601 format)\").nullable(),\n batch_notes: z.string().describe(\"Notes or description associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number assigned by ShipEngine\").nullable(),\n label_format: z.string().describe(\"Format of batch labels (e.g., 'pdf', 'zpl')\").nullable(),\n label_layout: z.string().describe(\"Layout format for batch labels (e.g., '4x6')\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when batch was processed (ISO 8601 format)\").nullable().optional(),\n form_download: z.object({}).describe(\"Form download information and URLs\").nullable().optional(),\n label_download: z.object({}).describe(\"Label download information and URLs\").nullable().optional(),\n process_errors: z.array(z.object({})).describe(\"List of processing errors that occurred during batch execution\").nullable().optional(),\n batch_errors_url: z.object({}).describe(\"URL object to retrieve batch errors\").nullable().optional(),\n batch_labels_url: z.object({}).describe(\"URL object to download batch labels\").nullable().optional(),\n external_batch_id: z.string().describe(\"External batch ID provided by the client\").nullable(),\n paperless_download: z.object({}).describe(\"Paperless download information and URLs\").nullable().optional(),\n batch_shipments_url: z.object({}).describe(\"URL object to retrieve batch shipments\").nullable().optional(),\n}).describe(\"Response model for retrieving a batch by external ID.\");\n\nexport const shipengineGetBatchByExternalId = action(\"SHIPENGINE_GET_BATCH_BY_EXTERNAL_ID\", {\n slug: \"shipengine-get-batch-by-external-id\",\n name: \"Get Batch by External ID\",\n description: \"Tool to retrieve batch details using an external batch ID. Use when you need to look up a batch by its client-assigned external identifier rather than ShipEngine's internal batch ID.\",\n input: ShipengineGetBatchByExternalIdInput,\n output: ShipengineGetBatchByExternalIdOutput,\n});\n"],"mappings":";;AA+BA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BiD,EAAE,OAAO,EAC1D,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,EAC5H,CAAC,CAAC,CAAC,SAAS,gEA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qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrI,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,uDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-batch-by-external-id.mjs","names":[],"sources":["../../src/actions/get-batch-by-external-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByExternalIdInput = z.object({\n external_batch_id: z.string().describe(\"External batch ID assigned by the client or external system to identify the batch\"),\n}).describe(\"Request model for retrieving a batch by its external batch ID.\");\nexport const ShipengineGetBatchByExternalIdOutput = z.object({\n count: z.number().int().describe(\"Total number of shipments in the batch\").nullable(),\n forms: z.number().int().describe(\"Number of forms in the batch\").nullable(),\n errors: z.number().int().describe(\"Number of errors encountered during batch processing\").nullable(),\n status: z.string().describe(\"Current status of the batch\").nullable(),\n batch_id: z.string().describe(\"Unique ShipEngine batch identifier\").nullable(),\n warnings: z.number().int().describe(\"Number of warnings encountered during batch processing\").nullable(),\n completed: z.number().int().describe(\"Number of completed items in the batch\").nullable(),\n created_at: z.string().describe(\"Timestamp when batch was created (ISO 8601 format)\").nullable(),\n batch_notes: z.string().describe(\"Notes or description associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number assigned by ShipEngine\").nullable(),\n label_format: z.string().describe(\"Format of batch labels (e.g., 'pdf', 'zpl')\").nullable(),\n label_layout: z.string().describe(\"Layout format for batch labels (e.g., '4x6')\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when batch was processed (ISO 8601 format)\").nullable().optional(),\n form_download: z.record(z.string(), z.unknown()).describe(\"Form download information and URLs\").nullable().optional(),\n label_download: z.record(z.string(), z.unknown()).describe(\"Label download information and URLs\").nullable().optional(),\n process_errors: z.array(z.record(z.string(), z.unknown())).describe(\"List of processing errors that occurred during batch execution\").nullable().optional(),\n batch_errors_url: z.record(z.string(), z.unknown()).describe(\"URL object to retrieve batch errors\").nullable().optional(),\n batch_labels_url: z.record(z.string(), z.unknown()).describe(\"URL object to download batch labels\").nullable().optional(),\n external_batch_id: z.string().describe(\"External batch ID provided by the client\").nullable(),\n paperless_download: z.record(z.string(), z.unknown()).describe(\"Paperless download information and URLs\").nullable().optional(),\n batch_shipments_url: z.record(z.string(), z.unknown()).describe(\"URL object to retrieve batch shipments\").nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a batch by external ID.\");\n\nexport const shipengineGetBatchByExternalId = action(\"SHIPENGINE_GET_BATCH_BY_EXTERNAL_ID\", {\n slug: \"shipengine-get-batch-by-external-id\",\n name: \"Get Batch by External ID\",\n description: \"Tool to retrieve batch details using an external batch ID. Use when you need to look up a batch by its client-assigned external identifier rather than ShipEngine's internal batch ID.\",\n input: ShipengineGetBatchByExternalIdInput,\n output: ShipengineGetBatchByExternalIdOutput,\n});\n"],"mappings":";;AA+BA,MAAa,iCAAiC,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA/BiD,EAAE,OAAO,EAC1D,mBAAmB,EAAE,OAAO,CAAC,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AAS,CAAC,CAAC,SAAS;EACpH,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtH,gBAAgB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1J,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,qBAAqB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
@@ -2,11 +2,11 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/get-batch-by-id.ts
4
4
  const ShipengineGetBatchByIdInput = zod.z.object({ batch_id: zod.z.string().describe("Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters") }).describe("Request model for retrieving a batch by its ShipEngine ID.");
5
- const ShipengineGetBatchById_UrlObjectSchema = zod.z.object({ href: zod.z.string().describe("The URL string").nullable() }).describe("Model for URL objects returned by the API.");
5
+ const ShipengineGetBatchById_UrlObjectSchema = zod.z.object({ href: zod.z.string().describe("The URL string").nullable() }).passthrough().describe("Model for URL objects returned by the API.");
6
6
  const ShipengineGetBatchById_ProcessErrorSchema = zod.z.object({
7
7
  message: zod.z.string().describe("Error message").nullable().optional(),
8
8
  error_code: zod.z.string().describe("Error code").nullable().optional()
9
- }).describe("Model for a batch processing error.");
9
+ }).passthrough().describe("Model for a batch processing error.");
10
10
  const ShipengineGetBatchByIdOutput = zod.z.object({
11
11
  count: zod.z.number().int().default(0).describe("Total number of shipments in the batch").nullable().optional(),
12
12
  forms: zod.z.number().int().default(0).describe("Number of forms in the batch").nullable().optional(),
@@ -22,14 +22,14 @@ const ShipengineGetBatchByIdOutput = zod.z.object({
22
22
  label_layout: zod.z.string().describe("Layout of the batch labels").nullable().optional(),
23
23
  processed_at: zod.z.string().describe("Timestamp when the batch was processed (ISO 8601)").nullable().optional(),
24
24
  form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
25
- label_download: zod.z.object({}).describe("Dict with label download URLs (pdf, zpl, href)").nullable().optional(),
25
+ label_download: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dict with label download URLs (pdf, zpl, href)").nullable().optional(),
26
26
  process_errors: zod.z.array(ShipengineGetBatchById_ProcessErrorSchema).describe("List of processing errors").nullable().optional(),
27
27
  batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
28
28
  batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
29
29
  external_batch_id: zod.z.string().describe("External ID for the batch").nullable().optional(),
30
30
  paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
31
31
  batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional()
32
- }).describe("Response model for retrieving a batch by ID.");
32
+ }).passthrough().describe("Response model for retrieving a batch by ID.");
33
33
  const shipengineGetBatchById = require_action.action("SHIPENGINE_GET_BATCH_BY_ID", {
34
34
  slug: "shipengine-get-batch-by-id",
35
35
  name: "Get Batch by ID",
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-batch-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByIdInput = z.object({\n batch_id: z.string().describe(\"Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters\"),\n}).describe(\"Request model for retrieving a batch by its ShipEngine ID.\");\nconst ShipengineGetBatchById_UrlObjectSchema = z.object({\n href: z.string().describe(\"The URL string\").nullable(),\n}).describe(\"Model for URL objects returned by the API.\");\nconst ShipengineGetBatchById_ProcessErrorSchema = z.object({\n message: z.string().describe(\"Error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code\").nullable().optional(),\n}).describe(\"Model for a batch processing error.\");\nexport const ShipengineGetBatchByIdOutput = z.object({\n count: z.number().int().default(0).describe(\"Total number of shipments in the batch\").nullable().optional(),\n forms: z.number().int().default(0).describe(\"Number of forms in the batch\").nullable().optional(),\n errors: z.number().int().default(0).describe(\"Number of errors in the batch\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch\").nullable().optional(),\n batch_id: z.string().describe(\"Unique identifier for the batch\").nullable(),\n warnings: z.number().int().default(0).describe(\"Number of warnings in the batch\").nullable().optional(),\n completed: z.number().int().default(0).describe(\"Number of completed items in the batch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the batch was created (ISO 8601)\").nullable(),\n batch_notes: z.string().describe(\"Notes associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number\").nullable(),\n label_format: z.string().describe(\"Format of the batch labels (e.g., 'pdf', 'zpl')\").nullable().optional(),\n label_layout: z.string().describe(\"Layout of the batch labels\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when the batch was processed (ISO 8601)\").nullable().optional(),\n form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n label_download: z.object({}).describe(\"Dict with label download URLs (pdf, zpl, href)\").nullable().optional(),\n process_errors: z.array(ShipengineGetBatchById_ProcessErrorSchema).describe(\"List of processing errors\").nullable().optional(),\n batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n external_batch_id: z.string().describe(\"External ID for the batch\").nullable().optional(),\n paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n}).describe(\"Response model for retrieving a batch by ID.\");\n\nexport const shipengineGetBatchById = action(\"SHIPENGINE_GET_BATCH_BY_ID\", {\n slug: \"shipengine-get-batch-by-id\",\n name: \"Get Batch by ID\",\n description: \"Tool to retrieve detailed information about a specific batch by its ID. Use when you need to check batch status, download labels, or view errors.\",\n input: ShipengineGetBatchByIdInput,\n output: ShipengineGetBatchByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACvH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,EACvD,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,qCAAqC;AACjD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,eAAe,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC1E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,gBAAgBA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC7E,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC/E,qBAAqB,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-batch-by-id.cjs","names":["z","action"],"sources":["../../src/actions/get-batch-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByIdInput = z.object({\n batch_id: z.string().describe(\"Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters\"),\n}).describe(\"Request model for retrieving a batch by its ShipEngine ID.\");\nconst ShipengineGetBatchById_UrlObjectSchema = z.object({\n href: z.string().describe(\"The URL string\").nullable(),\n}).passthrough().describe(\"Model for URL objects returned by the API.\");\nconst ShipengineGetBatchById_ProcessErrorSchema = z.object({\n message: z.string().describe(\"Error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code\").nullable().optional(),\n}).passthrough().describe(\"Model for a batch processing error.\");\nexport const ShipengineGetBatchByIdOutput = z.object({\n count: z.number().int().default(0).describe(\"Total number of shipments in the batch\").nullable().optional(),\n forms: z.number().int().default(0).describe(\"Number of forms in the batch\").nullable().optional(),\n errors: z.number().int().default(0).describe(\"Number of errors in the batch\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch\").nullable().optional(),\n batch_id: z.string().describe(\"Unique identifier for the batch\").nullable(),\n warnings: z.number().int().default(0).describe(\"Number of warnings in the batch\").nullable().optional(),\n completed: z.number().int().default(0).describe(\"Number of completed items in the batch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the batch was created (ISO 8601)\").nullable(),\n batch_notes: z.string().describe(\"Notes associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number\").nullable(),\n label_format: z.string().describe(\"Format of the batch labels (e.g., 'pdf', 'zpl')\").nullable().optional(),\n label_layout: z.string().describe(\"Layout of the batch labels\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when the batch was processed (ISO 8601)\").nullable().optional(),\n form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n label_download: z.record(z.string(), z.unknown()).describe(\"Dict with label download URLs (pdf, zpl, href)\").nullable().optional(),\n process_errors: z.array(ShipengineGetBatchById_ProcessErrorSchema).describe(\"List of processing errors\").nullable().optional(),\n batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n external_batch_id: z.string().describe(\"External ID for the batch\").nullable().optional(),\n paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a batch by ID.\");\n\nexport const shipengineGetBatchById = action(\"SHIPENGINE_GET_BATCH_BY_ID\", {\n slug: \"shipengine-get-batch-by-id\",\n name: \"Get Batch by ID\",\n description: \"Tool to retrieve detailed information about a specific batch by its ID. Use when you need to check batch status, download labels, or view errors.\",\n input: ShipengineGetBatchByIdInput,\n output: ShipengineGetBatchByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACvH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyCA,IAAAA,EAAE,OAAO,EACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAC/D,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,QAAQA,I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2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC7E,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC7E,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,oBAAoB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAC/E,qBAAqB,uCAAuC,SAAS,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,yBAAyBC,eAAAA,OAAO,8BAA8B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,26 +20,26 @@ declare const ShipengineGetBatchByIdOutput: z.ZodObject<{
20
20
  processed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  form_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
22
  href: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>>;
24
- label_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
+ label_download: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
25
25
  process_errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
26
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>;
28
+ }, z.core.$loose>>>>;
29
29
  batch_errors_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
30
  href: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  batch_labels_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  href: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>>;
34
+ }, z.core.$loose>>>;
35
35
  external_batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  paperless_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{
37
37
  href: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strip>>>;
38
+ }, z.core.$loose>>>;
39
39
  batch_shipments_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40
40
  href: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>>;
42
- }, z.core.$strip>;
41
+ }, z.core.$loose>>>;
42
+ }, z.core.$loose>;
43
43
  declare const shipengineGetBatchById: import("@keystrokehq/action").WorkflowActionDefinition<{
44
44
  batch_id: string;
45
45
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -20,26 +20,26 @@ declare const ShipengineGetBatchByIdOutput: z.ZodObject<{
20
20
  processed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  form_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{
22
22
  href: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>>>;
24
- label_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
23
+ }, z.core.$loose>>>;
24
+ label_download: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
25
25
  process_errors: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
26
26
  message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>;
28
+ }, z.core.$loose>>>>;
29
29
  batch_errors_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
30
30
  href: z.ZodNullable<z.ZodString>;
31
- }, z.core.$strip>>>;
31
+ }, z.core.$loose>>>;
32
32
  batch_labels_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  href: z.ZodNullable<z.ZodString>;
34
- }, z.core.$strip>>>;
34
+ }, z.core.$loose>>>;
35
35
  external_batch_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  paperless_download: z.ZodOptional<z.ZodNullable<z.ZodObject<{
37
37
  href: z.ZodNullable<z.ZodString>;
38
- }, z.core.$strip>>>;
38
+ }, z.core.$loose>>>;
39
39
  batch_shipments_url: z.ZodOptional<z.ZodNullable<z.ZodObject<{
40
40
  href: z.ZodNullable<z.ZodString>;
41
- }, z.core.$strip>>>;
42
- }, z.core.$strip>;
41
+ }, z.core.$loose>>>;
42
+ }, z.core.$loose>;
43
43
  declare const shipengineGetBatchById: import("@keystrokehq/action").WorkflowActionDefinition<{
44
44
  batch_id: string;
45
45
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -2,11 +2,11 @@ import { action } from "../action.mjs";
2
2
  import { z } from "zod";
3
3
  //#region src/actions/get-batch-by-id.ts
4
4
  const ShipengineGetBatchByIdInput = z.object({ batch_id: z.string().describe("Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters") }).describe("Request model for retrieving a batch by its ShipEngine ID.");
5
- const ShipengineGetBatchById_UrlObjectSchema = z.object({ href: z.string().describe("The URL string").nullable() }).describe("Model for URL objects returned by the API.");
5
+ const ShipengineGetBatchById_UrlObjectSchema = z.object({ href: z.string().describe("The URL string").nullable() }).passthrough().describe("Model for URL objects returned by the API.");
6
6
  const ShipengineGetBatchById_ProcessErrorSchema = z.object({
7
7
  message: z.string().describe("Error message").nullable().optional(),
8
8
  error_code: z.string().describe("Error code").nullable().optional()
9
- }).describe("Model for a batch processing error.");
9
+ }).passthrough().describe("Model for a batch processing error.");
10
10
  const shipengineGetBatchById = action("SHIPENGINE_GET_BATCH_BY_ID", {
11
11
  slug: "shipengine-get-batch-by-id",
12
12
  name: "Get Batch by ID",
@@ -27,14 +27,14 @@ const shipengineGetBatchById = action("SHIPENGINE_GET_BATCH_BY_ID", {
27
27
  label_layout: z.string().describe("Layout of the batch labels").nullable().optional(),
28
28
  processed_at: z.string().describe("Timestamp when the batch was processed (ISO 8601)").nullable().optional(),
29
29
  form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
30
- label_download: z.object({}).describe("Dict with label download URLs (pdf, zpl, href)").nullable().optional(),
30
+ label_download: z.record(z.string(), z.unknown()).describe("Dict with label download URLs (pdf, zpl, href)").nullable().optional(),
31
31
  process_errors: z.array(ShipengineGetBatchById_ProcessErrorSchema).describe("List of processing errors").nullable().optional(),
32
32
  batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
33
33
  batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
34
34
  external_batch_id: z.string().describe("External ID for the batch").nullable().optional(),
35
35
  paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),
36
36
  batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional()
37
- }).describe("Response model for retrieving a batch by ID.")
37
+ }).passthrough().describe("Response model for retrieving a batch by ID.")
38
38
  });
39
39
  //#endregion
40
40
  export { shipengineGetBatchById };
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-by-id.mjs","names":[],"sources":["../../src/actions/get-batch-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByIdInput = z.object({\n batch_id: z.string().describe(\"Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters\"),\n}).describe(\"Request model for retrieving a batch by its ShipEngine ID.\");\nconst ShipengineGetBatchById_UrlObjectSchema = z.object({\n href: z.string().describe(\"The URL string\").nullable(),\n}).describe(\"Model for URL objects returned by the API.\");\nconst ShipengineGetBatchById_ProcessErrorSchema = z.object({\n message: z.string().describe(\"Error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code\").nullable().optional(),\n}).describe(\"Model for a batch processing error.\");\nexport const ShipengineGetBatchByIdOutput = z.object({\n count: z.number().int().default(0).describe(\"Total number of shipments in the batch\").nullable().optional(),\n forms: z.number().int().default(0).describe(\"Number of forms in the batch\").nullable().optional(),\n errors: z.number().int().default(0).describe(\"Number of errors in the batch\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch\").nullable().optional(),\n batch_id: z.string().describe(\"Unique identifier for the batch\").nullable(),\n warnings: z.number().int().default(0).describe(\"Number of warnings in the batch\").nullable().optional(),\n completed: z.number().int().default(0).describe(\"Number of completed items in the batch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the batch was created (ISO 8601)\").nullable(),\n batch_notes: z.string().describe(\"Notes associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number\").nullable(),\n label_format: z.string().describe(\"Format of the batch labels (e.g., 'pdf', 'zpl')\").nullable().optional(),\n label_layout: z.string().describe(\"Layout of the batch labels\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when the batch was processed (ISO 8601)\").nullable().optional(),\n form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n label_download: z.object({}).describe(\"Dict with label download URLs (pdf, zpl, href)\").nullable().optional(),\n process_errors: z.array(ShipengineGetBatchById_ProcessErrorSchema).describe(\"List of processing errors\").nullable().optional(),\n batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n external_batch_id: z.string().describe(\"External ID for the batch\").nullable().optional(),\n paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n}).describe(\"Response model for retrieving a batch by ID.\");\n\nexport const shipengineGetBatchById = action(\"SHIPENGINE_GET_BATCH_BY_ID\", {\n slug: \"shipengine-get-batch-by-id\",\n name: \"Get Batch by ID\",\n description: \"Tool to retrieve detailed information about a specific batch by its ID. Use when you need to check batch status, download labels, or view errors.\",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B,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-batch-by-id.mjs","names":[],"sources":["../../src/actions/get-batch-by-id.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchByIdInput = z.object({\n batch_id: z.string().describe(\"Unique ShipEngine batch ID, must begin with 'se-' followed by alphanumeric characters\"),\n}).describe(\"Request model for retrieving a batch by its ShipEngine ID.\");\nconst ShipengineGetBatchById_UrlObjectSchema = z.object({\n href: z.string().describe(\"The URL string\").nullable(),\n}).passthrough().describe(\"Model for URL objects returned by the API.\");\nconst ShipengineGetBatchById_ProcessErrorSchema = z.object({\n message: z.string().describe(\"Error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code\").nullable().optional(),\n}).passthrough().describe(\"Model for a batch processing error.\");\nexport const ShipengineGetBatchByIdOutput = z.object({\n count: z.number().int().default(0).describe(\"Total number of shipments in the batch\").nullable().optional(),\n forms: z.number().int().default(0).describe(\"Number of forms in the batch\").nullable().optional(),\n errors: z.number().int().default(0).describe(\"Number of errors in the batch\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch\").nullable().optional(),\n batch_id: z.string().describe(\"Unique identifier for the batch\").nullable(),\n warnings: z.number().int().default(0).describe(\"Number of warnings in the batch\").nullable().optional(),\n completed: z.number().int().default(0).describe(\"Number of completed items in the batch\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the batch was created (ISO 8601)\").nullable(),\n batch_notes: z.string().describe(\"Notes associated with the batch\").nullable().optional(),\n batch_number: z.string().describe(\"Batch number\").nullable(),\n label_format: z.string().describe(\"Format of the batch labels (e.g., 'pdf', 'zpl')\").nullable().optional(),\n label_layout: z.string().describe(\"Layout of the batch labels\").nullable().optional(),\n processed_at: z.string().describe(\"Timestamp when the batch was processed (ISO 8601)\").nullable().optional(),\n form_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n label_download: z.record(z.string(), z.unknown()).describe(\"Dict with label download URLs (pdf, zpl, href)\").nullable().optional(),\n process_errors: z.array(ShipengineGetBatchById_ProcessErrorSchema).describe(\"List of processing errors\").nullable().optional(),\n batch_errors_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_labels_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n external_batch_id: z.string().describe(\"External ID for the batch\").nullable().optional(),\n paperless_download: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n batch_shipments_url: ShipengineGetBatchById_UrlObjectSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for retrieving a batch by ID.\");\n\nexport const shipengineGetBatchById = action(\"SHIPENGINE_GET_BATCH_BY_ID\", {\n slug: \"shipengine-get-batch-by-id\",\n name: \"Get Batch by ID\",\n description: \"Tool to retrieve detailed information about a specific batch by its ID. Use when you need to check batch status, download labels, or view errors.\",\n input: ShipengineGetBatchByIdInput,\n output: ShipengineGetBatchByIdOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,EACvH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,yCAAyC,EAAE,OAAO,EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,EACvD,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,4CAA4C,EAAE,OAAO;CACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC;AAyB/D,MAAa,yBAAyB,OAAO,8BAA8B;CACzE,MAAM;CACN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,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,eAAe,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAC1E,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjI,gBAAgB,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7H,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAC7E,kBAAkB,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAC7E,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,oBAAoB,uCAAuC,SAAS,CAAC,CAAC,SAAS;EAC/E,qBAAqB,uCAAuC,SAAS,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -6,22 +6,22 @@ const ShipengineGetBatchErrorsInput = zod.z.object({
6
6
  batch_id: zod.z.string().describe("Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters."),
7
7
  pagesize: zod.z.number().int().describe("Number of results to return per page.").optional()
8
8
  });
9
- const ShipengineGetBatchErrors_LinkObjectSchema = zod.z.object({ href: zod.z.string().describe("URL for the link.").nullable().optional() });
9
+ const ShipengineGetBatchErrors_LinkObjectSchema = zod.z.object({ href: zod.z.string().describe("URL for the link.").nullable().optional() }).passthrough();
10
10
  const ShipengineGetBatchErrors_PaginationLinkSchema = zod.z.object({
11
11
  last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
12
12
  next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
13
13
  prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
14
14
  first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const ShipengineGetBatchErrors_BatchErrorDetailsSchema = zod.z.object({
17
17
  error: zod.z.string().describe("Error message describing what went wrong during batch processing.").nullable().optional(),
18
18
  shipment_id: zod.z.string().describe("Shipment identifier associated with the error.").nullable().optional(),
19
19
  external_shipment_id: zod.z.string().describe("External shipment identifier associated with the error.").nullable().optional()
20
- });
20
+ }).passthrough();
21
21
  const ShipengineGetBatchErrorsOutput = zod.z.object({
22
22
  links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),
23
23
  errors: zod.z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe("List of errors that occurred during batch processing.").nullable().optional()
24
- });
24
+ }).passthrough();
25
25
  const shipengineGetBatchErrors = require_action.action("SHIPENGINE_GET_BATCH_ERRORS", {
26
26
  slug: "shipengine-get-batch-errors",
27
27
  name: "Get Batch Errors",
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-errors.cjs","names":["z","action"],"sources":["../../src/actions/get-batch-errors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchErrorsInput = z.object({\n page: z.number().int().default(1).describe(\"Return a specific page of results. Defaults to the first page. If set to a number greater than the number of pages of results, an empty page is returned.\").optional(),\n batch_id: z.string().describe(\"Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters.\"),\n pagesize: z.number().int().describe(\"Number of results to return per page.\").optional(),\n});\nconst ShipengineGetBatchErrors_LinkObjectSchema = z.object({\n href: z.string().describe(\"URL for the link.\").nullable().optional(),\n});\nconst ShipengineGetBatchErrors_PaginationLinkSchema = z.object({\n last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n});\nconst ShipengineGetBatchErrors_BatchErrorDetailsSchema = z.object({\n error: z.string().describe(\"Error message describing what went wrong during batch processing.\").nullable().optional(),\n shipment_id: z.string().describe(\"Shipment identifier associated with the error.\").nullable().optional(),\n external_shipment_id: z.string().describe(\"External shipment identifier associated with the error.\").nullable().optional(),\n});\nexport const ShipengineGetBatchErrorsOutput = z.object({\n links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),\n errors: z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe(\"List of errors that occurred during batch processing.\").nullable().optional(),\n});\n\nexport const shipengineGetBatchErrors = action(\"SHIPENGINE_GET_BATCH_ERRORS\", {\n slug: \"shipengine-get-batch-errors\",\n name: \"Get Batch Errors\",\n description: \"Tool to retrieve errors that occurred during batch processing. Use when you need to investigate or troubleshoot issues with a specific batch.\",\n input: ShipengineGetBatchErrorsInput,\n output: ShipengineGetBatchErrorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACjN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC7I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrE,CAAC;AACD,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC;AACD,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AACD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,8CAA8C,SAAS;CAC9D,QAAQA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtK,CAAC;AAED,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-batch-errors.cjs","names":["z","action"],"sources":["../../src/actions/get-batch-errors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchErrorsInput = z.object({\n page: z.number().int().default(1).describe(\"Return a specific page of results. Defaults to the first page. If set to a number greater than the number of pages of results, an empty page is returned.\").optional(),\n batch_id: z.string().describe(\"Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters.\"),\n pagesize: z.number().int().describe(\"Number of results to return per page.\").optional(),\n});\nconst ShipengineGetBatchErrors_LinkObjectSchema = z.object({\n href: z.string().describe(\"URL for the link.\").nullable().optional(),\n}).passthrough();\nconst ShipengineGetBatchErrors_PaginationLinkSchema = z.object({\n last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n}).passthrough();\nconst ShipengineGetBatchErrors_BatchErrorDetailsSchema = z.object({\n error: z.string().describe(\"Error message describing what went wrong during batch processing.\").nullable().optional(),\n shipment_id: z.string().describe(\"Shipment identifier associated with the error.\").nullable().optional(),\n external_shipment_id: z.string().describe(\"External shipment identifier associated with the error.\").nullable().optional(),\n}).passthrough();\nexport const ShipengineGetBatchErrorsOutput = z.object({\n links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),\n errors: z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe(\"List of errors that occurred during batch processing.\").nullable().optional(),\n}).passthrough();\n\nexport const shipengineGetBatchErrors = action(\"SHIPENGINE_GET_BATCH_ERRORS\", {\n slug: \"shipengine-get-batch-errors\",\n name: \"Get Batch Errors\",\n description: \"Tool to retrieve errors that occurred during batch processing. Use when you need to investigate or troubleshoot issues with a specific batch.\",\n input: ShipengineGetBatchErrorsInput,\n output: ShipengineGetBatchErrorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACjN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC7I,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,EACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAO,8CAA8C,SAAS;CAC9D,QAAQA,IAAAA,EAAE,MAAM,gDAAgD,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtK,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,23 +10,23 @@ declare const ShipengineGetBatchErrorsOutput: z.ZodObject<{
10
10
  links: z.ZodNullable<z.ZodObject<{
11
11
  last: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
12
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- }, z.core.$strip>>>;
13
+ }, z.core.$loose>>>;
14
14
  next: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
15
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, z.core.$strip>>>;
16
+ }, z.core.$loose>>>;
17
17
  prev: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
18
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>>>;
19
+ }, z.core.$loose>>>;
20
20
  first: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
23
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>>;
23
+ }, z.core.$loose>>;
24
24
  errors: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
25
25
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>>>>;
29
+ }, z.core.$loose>;
30
30
  declare const shipengineGetBatchErrors: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  batch_id: string;
32
32
  page?: number | undefined;
@@ -10,23 +10,23 @@ declare const ShipengineGetBatchErrorsOutput: z.ZodObject<{
10
10
  links: z.ZodNullable<z.ZodObject<{
11
11
  last: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
12
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- }, z.core.$strip>>>;
13
+ }, z.core.$loose>>>;
14
14
  next: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
15
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
- }, z.core.$strip>>>;
16
+ }, z.core.$loose>>>;
17
17
  prev: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
18
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- }, z.core.$strip>>>;
19
+ }, z.core.$loose>>>;
20
20
  first: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
21
  href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
23
- }, z.core.$strip>>;
22
+ }, z.core.$loose>>>;
23
+ }, z.core.$loose>>;
24
24
  errors: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
25
25
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- }, z.core.$strip>>>>>;
29
- }, z.core.$strip>;
28
+ }, z.core.$loose>>>>>;
29
+ }, z.core.$loose>;
30
30
  declare const shipengineGetBatchErrors: import("@keystrokehq/action").WorkflowActionDefinition<{
31
31
  batch_id: string;
32
32
  page?: number | undefined;
@@ -6,18 +6,18 @@ const ShipengineGetBatchErrorsInput = z.object({
6
6
  batch_id: z.string().describe("Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters."),
7
7
  pagesize: z.number().int().describe("Number of results to return per page.").optional()
8
8
  });
9
- const ShipengineGetBatchErrors_LinkObjectSchema = z.object({ href: z.string().describe("URL for the link.").nullable().optional() });
9
+ const ShipengineGetBatchErrors_LinkObjectSchema = z.object({ href: z.string().describe("URL for the link.").nullable().optional() }).passthrough();
10
10
  const ShipengineGetBatchErrors_PaginationLinkSchema = z.object({
11
11
  last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
12
12
  next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
13
13
  prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),
14
14
  first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const ShipengineGetBatchErrors_BatchErrorDetailsSchema = z.object({
17
17
  error: z.string().describe("Error message describing what went wrong during batch processing.").nullable().optional(),
18
18
  shipment_id: z.string().describe("Shipment identifier associated with the error.").nullable().optional(),
19
19
  external_shipment_id: z.string().describe("External shipment identifier associated with the error.").nullable().optional()
20
- });
20
+ }).passthrough();
21
21
  const shipengineGetBatchErrors = action("SHIPENGINE_GET_BATCH_ERRORS", {
22
22
  slug: "shipengine-get-batch-errors",
23
23
  name: "Get Batch Errors",
@@ -26,7 +26,7 @@ const shipengineGetBatchErrors = action("SHIPENGINE_GET_BATCH_ERRORS", {
26
26
  output: z.object({
27
27
  links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),
28
28
  errors: z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe("List of errors that occurred during batch processing.").nullable().optional()
29
- })
29
+ }).passthrough()
30
30
  });
31
31
  //#endregion
32
32
  export { shipengineGetBatchErrors };
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-errors.mjs","names":[],"sources":["../../src/actions/get-batch-errors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchErrorsInput = z.object({\n page: z.number().int().default(1).describe(\"Return a specific page of results. Defaults to the first page. If set to a number greater than the number of pages of results, an empty page is returned.\").optional(),\n batch_id: z.string().describe(\"Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters.\"),\n pagesize: z.number().int().describe(\"Number of results to return per page.\").optional(),\n});\nconst ShipengineGetBatchErrors_LinkObjectSchema = z.object({\n href: z.string().describe(\"URL for the link.\").nullable().optional(),\n});\nconst ShipengineGetBatchErrors_PaginationLinkSchema = z.object({\n last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n});\nconst ShipengineGetBatchErrors_BatchErrorDetailsSchema = z.object({\n error: z.string().describe(\"Error message describing what went wrong during batch processing.\").nullable().optional(),\n shipment_id: z.string().describe(\"Shipment identifier associated with the error.\").nullable().optional(),\n external_shipment_id: z.string().describe(\"External shipment identifier associated with the error.\").nullable().optional(),\n});\nexport const ShipengineGetBatchErrorsOutput = z.object({\n links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),\n errors: z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe(\"List of errors that occurred during batch processing.\").nullable().optional(),\n});\n\nexport const shipengineGetBatchErrors = action(\"SHIPENGINE_GET_BATCH_ERRORS\", {\n slug: \"shipengine-get-batch-errors\",\n name: \"Get Batch Errors\",\n description: \"Tool to retrieve errors that occurred during batch processing. Use when you need to investigate or troubleshoot issues with a specific batch.\",\n input: ShipengineGetBatchErrorsInput,\n output: ShipengineGetBatchErrorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACjN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrE,CAAC;AACD,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC;AACD,MAAM,mDAAmD,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC;AAMD,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,8CAA8C,SAAS;EAC9D,QAAQ,EAAE,MAAM,gDAAgD,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-batch-errors.mjs","names":[],"sources":["../../src/actions/get-batch-errors.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBatchErrorsInput = z.object({\n page: z.number().int().default(1).describe(\"Return a specific page of results. Defaults to the first page. If set to a number greater than the number of pages of results, an empty page is returned.\").optional(),\n batch_id: z.string().describe(\"Unique ShipEngine batch ID to retrieve errors for, must begin with 'se-' followed by alphanumeric characters.\"),\n pagesize: z.number().int().describe(\"Number of results to return per page.\").optional(),\n});\nconst ShipengineGetBatchErrors_LinkObjectSchema = z.object({\n href: z.string().describe(\"URL for the link.\").nullable().optional(),\n}).passthrough();\nconst ShipengineGetBatchErrors_PaginationLinkSchema = z.object({\n last: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n next: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n prev: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n first: ShipengineGetBatchErrors_LinkObjectSchema.nullable().optional(),\n}).passthrough();\nconst ShipengineGetBatchErrors_BatchErrorDetailsSchema = z.object({\n error: z.string().describe(\"Error message describing what went wrong during batch processing.\").nullable().optional(),\n shipment_id: z.string().describe(\"Shipment identifier associated with the error.\").nullable().optional(),\n external_shipment_id: z.string().describe(\"External shipment identifier associated with the error.\").nullable().optional(),\n}).passthrough();\nexport const ShipengineGetBatchErrorsOutput = z.object({\n links: ShipengineGetBatchErrors_PaginationLinkSchema.nullable(),\n errors: z.array(ShipengineGetBatchErrors_BatchErrorDetailsSchema).default([]).describe(\"List of errors that occurred during batch processing.\").nullable().optional(),\n}).passthrough();\n\nexport const shipengineGetBatchErrors = action(\"SHIPENGINE_GET_BATCH_ERRORS\", {\n slug: \"shipengine-get-batch-errors\",\n name: \"Get Batch Errors\",\n description: \"Tool to retrieve errors that occurred during batch processing. Use when you need to investigate or troubleshoot issues with a specific batch.\",\n input: ShipengineGetBatchErrorsInput,\n output: ShipengineGetBatchErrorsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACjN,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACxF,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO,EACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,gDAAgD,EAAE,OAAO;CAC7D,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,MAAM,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACpE,OAAO,0CAA0C,SAAS,CAAC,CAAC,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,mDAAmD,EAAE,OAAO;CAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,YAAY;AAMf,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV4C,EAAE,OAAO;EACrD,OAAO,8CAA8C,SAAS;EAC9D,QAAQ,EAAE,MAAM,gDAAgD,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtK,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,7 +3,7 @@ let zod = require("zod");
3
3
  //#region src/actions/get-bulk-rates.ts
4
4
  const ShipengineGetBulkRatesInput = zod.z.object({
5
5
  shipments: zod.z.array(zod.z.object({
6
- customs: zod.z.object({}).describe("Customs information for international shipments").optional(),
6
+ customs: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Customs information for international shipments").optional(),
7
7
  ship_to: zod.z.object({
8
8
  name: zod.z.string().describe("Recipient or sender name").optional(),
9
9
  phone: zod.z.string().describe("Phone number").optional(),
@@ -33,7 +33,7 @@ const ShipengineGetBulkRatesInput = zod.z.object({
33
33
  height: zod.z.number().describe("Height of the package; must be greater than 0."),
34
34
  length: zod.z.number().describe("Length of the package; must be greater than 0.")
35
35
  }).describe("Dimensions of a package.").optional()
36
- }).describe("Package information for a shipment.")).describe("List of packages in this shipment"),
36
+ }).passthrough().describe("Package information for a shipment.")).describe("List of packages in this shipment"),
37
37
  return_to: zod.z.object({
38
38
  name: zod.z.string().describe("Recipient or sender name").optional(),
39
39
  phone: zod.z.string().describe("Phone number").optional(),
@@ -64,11 +64,11 @@ const ShipengineGetBulkRatesInput = zod.z.object({
64
64
  carrier_id: zod.z.string().describe("Carrier ID for this shipment (optional if using rate_options.carrier_ids)").optional(),
65
65
  confirmation: zod.z.string().describe("Delivery confirmation type (e.g., 'delivery', 'signature', 'adult_signature', 'direct_signature')").optional(),
66
66
  service_code: zod.z.string().describe("Service code for this shipment (optional if using rate_options.service_codes)").optional(),
67
- advanced_options: zod.z.object({}).describe("Advanced shipping options").optional(),
67
+ advanced_options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Advanced shipping options").optional(),
68
68
  validate_address: zod.z.string().describe("Address validation level. Options: 'no_validation', 'validate_only', 'validate_and_clean'").optional(),
69
69
  insurance_provider: zod.z.string().describe("Insurance provider (e.g., 'shipsurance', 'carrier', 'none')").optional(),
70
70
  external_shipment_id: zod.z.string().describe("External reference ID for this shipment").optional()
71
- }).describe("Shipment details for bulk rate request.")).describe("List of new shipment details to get rates for. Use this OR shipment_ids, not both.").optional(),
71
+ }).passthrough().describe("Shipment details for bulk rate request.")).describe("List of new shipment details to get rates for. Use this OR shipment_ids, not both.").optional(),
72
72
  rate_options: zod.z.object({
73
73
  carrier_ids: zod.z.array(zod.z.string()).describe("List of carrier IDs to get rates from. Required field - specify at least one carrier ID."),
74
74
  package_types: zod.z.array(zod.z.string()).describe("List of package types to get rates for. Leave empty to get rates for all package types.").optional(),
@@ -85,15 +85,15 @@ const ShipengineGetBulkRates_ErrorDetailSchema = zod.z.object({
85
85
  error_code: zod.z.string().describe("Error code identifying the specific error").nullable().optional(),
86
86
  error_type: zod.z.string().describe("Type of error (e.g., 'validation', 'business_rule')").nullable().optional(),
87
87
  error_source: zod.z.string().describe("Source of the error (e.g., 'shipengine', 'carrier')").nullable().optional()
88
- }).describe("Error details for a bulk rate response.");
88
+ }).passthrough().describe("Error details for a bulk rate response.");
89
89
  const ShipengineGetBulkRates_BulkRateSchema = zod.z.object({
90
90
  errors: zod.z.array(ShipengineGetBulkRates_ErrorDetailSchema).describe("An array of errors that were returned while retrieving the rate"),
91
91
  status: zod.z.string().describe("Status of the rate request (e.g., 'working', 'completed', 'error')").nullable(),
92
92
  created_at: zod.z.string().describe("Timestamp when the rate request was created (ISO 8601 format)").nullable(),
93
93
  shipment_id: zod.z.string().describe("A string that uniquely identifies the shipment").nullable(),
94
94
  rate_request_id: zod.z.string().describe("A string that uniquely identifies the rate request").nullable()
95
- }).describe("A bulk rate response for a single shipment.");
96
- const ShipengineGetBulkRatesOutput = zod.z.object({ rates: zod.z.array(ShipengineGetBulkRates_BulkRateSchema).describe("List of bulk rate responses, one for each shipment. Use the rate_request_id to poll for completed rates.") }).describe("Response model for bulk rate requests.\nReturns a list of rate request statuses.");
95
+ }).passthrough().describe("A bulk rate response for a single shipment.");
96
+ const ShipengineGetBulkRatesOutput = zod.z.object({ rates: zod.z.array(ShipengineGetBulkRates_BulkRateSchema).describe("List of bulk rate responses, one for each shipment. Use the rate_request_id to poll for completed rates.") }).passthrough().describe("Response model for bulk rate requests.\nReturns a list of rate request statuses.");
97
97
  const shipengineGetBulkRates = require_action.action("SHIPENGINE_GET_BULK_RATES", {
98
98
  slug: "shipengine-get-bulk-rates",
99
99
  name: "Get Bulk Rates",
@@ -1 +1 @@
1
- {"version":3,"file":"get-bulk-rates.cjs","names":["z","action"],"sources":["../../src/actions/get-bulk-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBulkRatesInput = z.object({\n shipments: z.array(z.object({\n customs: z.object({}).describe(\"Customs information for international shipments\").optional(),\n ship_to: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Destination address\"),\n packages: z.array(z.object({\n weight: z.object({\n unit: z.enum([\"ounce\", \"pound\", \"gram\", \"kilogram\"]).describe(\"Unit of weight measurement.\"),\n value: z.number().describe(\"Weight value; must be non-negative.\"),\n}).describe(\"Package weight details\"),\n dimensions: z.object({\n unit: z.enum([\"inch\", \"centimeter\"]).describe(\"Unit of measurement for dimensions.\"),\n width: z.number().describe(\"Width of the package; must be greater than 0.\"),\n height: z.number().describe(\"Height of the package; must be greater than 0.\"),\n length: z.number().describe(\"Length of the package; must be greater than 0.\"),\n}).describe(\"Dimensions of a package.\").optional(),\n}).describe(\"Package information for a shipment.\")).describe(\"List of packages in this shipment\"),\n return_to: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Address information for shipment origin or destination.\").optional(),\n ship_date: z.string().describe(\"Ship date in ISO 8601 format (YYYY-MM-DD). Defaults to today if not provided.\").optional(),\n ship_from: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Origin address\"),\n carrier_id: z.string().describe(\"Carrier ID for this shipment (optional if using rate_options.carrier_ids)\").optional(),\n confirmation: z.string().describe(\"Delivery confirmation type (e.g., 'delivery', 'signature', 'adult_signature', 'direct_signature')\").optional(),\n service_code: z.string().describe(\"Service code for this shipment (optional if using rate_options.service_codes)\").optional(),\n advanced_options: z.object({}).describe(\"Advanced shipping options\").optional(),\n validate_address: z.string().describe(\"Address validation level. Options: 'no_validation', 'validate_only', 'validate_and_clean'\").optional(),\n insurance_provider: z.string().describe(\"Insurance provider (e.g., 'shipsurance', 'carrier', 'none')\").optional(),\n external_shipment_id: z.string().describe(\"External reference ID for this shipment\").optional(),\n}).describe(\"Shipment details for bulk rate request.\")).describe(\"List of new shipment details to get rates for. Use this OR shipment_ids, not both.\").optional(),\n rate_options: z.object({\n carrier_ids: z.array(z.string()).describe(\"List of carrier IDs to get rates from. Required field - specify at least one carrier ID.\"),\n package_types: z.array(z.string()).describe(\"List of package types to get rates for. Leave empty to get rates for all package types.\").optional(),\n service_codes: z.array(z.string()).describe(\"List of service codes to filter rates. If not provided, all services will be included.\").optional(),\n preferred_currency: z.string().describe(\"Preferred currency for rate amounts (3-letter ISO 4217 currency code).\").optional(),\n calculate_tax_amount: z.boolean().describe(\"Whether to calculate tax amount for the shipment. Set to true to include tax calculations.\").optional(),\n}).describe(\"Rate options including carrier IDs, service codes, and other preferences for fetching rates\"),\n shipment_ids: z.array(z.string()).describe(\"List of existing ShipEngine shipment IDs to get rates for. Each ID must start with 'se-'. Use this OR shipments, not both.\").optional(),\n ship_to_service_point_id: z.string().describe(\"A unique identifier for a carrier service point where the shipment will be delivered by the carrier. This will take precedence over a shipment's ship to address.\").optional(),\n ship_from_service_point_id: z.string().describe(\"A unique identifier for a carrier drop off point where a merchant plans to deliver packages. This will take precedence over a shipment's ship from address.\").optional(),\n}).describe(\"Request model for getting bulk shipping rates.\\nMust provide either shipment_ids (for existing shipments) OR shipments (new shipment details).\");\nconst ShipengineGetBulkRates_ErrorDetailSchema = z.object({\n message: z.string().describe(\"Human-readable error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code identifying the specific error\").nullable().optional(),\n error_type: z.string().describe(\"Type of error (e.g., 'validation', 'business_rule')\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (e.g., 'shipengine', 'carrier')\").nullable().optional(),\n}).describe(\"Error details for a bulk rate response.\");\nconst ShipengineGetBulkRates_BulkRateSchema = z.object({\n errors: z.array(ShipengineGetBulkRates_ErrorDetailSchema).describe(\"An array of errors that were returned while retrieving the rate\"),\n status: z.string().describe(\"Status of the rate request (e.g., 'working', 'completed', 'error')\").nullable(),\n created_at: z.string().describe(\"Timestamp when the rate request was created (ISO 8601 format)\").nullable(),\n shipment_id: z.string().describe(\"A string that uniquely identifies the shipment\").nullable(),\n rate_request_id: z.string().describe(\"A string that uniquely identifies the rate request\").nullable(),\n}).describe(\"A bulk rate response for a single shipment.\");\nexport const ShipengineGetBulkRatesOutput = z.object({\n rates: z.array(ShipengineGetBulkRates_BulkRateSchema).describe(\"List of bulk rate responses, one for each shipment. Use the rate_request_id to poll for completed rates.\"),\n}).describe(\"Response model for bulk rate requests.\\nReturns a list of rate request statuses.\");\n\nexport const shipengineGetBulkRates = action(\"SHIPENGINE_GET_BULK_RATES\", {\n slug: \"shipengine-get-bulk-rates\",\n name: \"Get Bulk Rates\",\n description: \"Tool to get shipping rates for multiple shipments in a single request. Use when you need to compare rates across multiple carriers or shipments efficiently. The request is processed asynchronously - use the returned rate_request_id to retrieve the actual rates once processing is complete.\",\n input: ShipengineGetBulkRatesInput,\n output: ShipengineGetBulkRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC3F,SAASA,IAAAA,EAAE,OAAO;GAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GACrD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GAC3D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GAC/D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;GACnD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GAC9D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GAC9D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;GACrD,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;GACvD,+BAA+BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EACxL,CAAC,CAAC,CAAC,SAAS,qBAAqB;EAC/B,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;GAC3B,QAAQA,IAAAA,EAAE,OAAO;IACjB,MAAMA,IAAAA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E9F,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-bulk-rates.cjs","names":["z","action"],"sources":["../../src/actions/get-bulk-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBulkRatesInput = z.object({\n shipments: z.array(z.object({\n customs: z.record(z.string(), z.unknown()).describe(\"Customs information for international shipments\").optional(),\n ship_to: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Destination address\"),\n packages: z.array(z.object({\n weight: z.object({\n unit: z.enum([\"ounce\", \"pound\", \"gram\", \"kilogram\"]).describe(\"Unit of weight measurement.\"),\n value: z.number().describe(\"Weight value; must be non-negative.\"),\n}).describe(\"Package weight details\"),\n dimensions: z.object({\n unit: z.enum([\"inch\", \"centimeter\"]).describe(\"Unit of measurement for dimensions.\"),\n width: z.number().describe(\"Width of the package; must be greater than 0.\"),\n height: z.number().describe(\"Height of the package; must be greater than 0.\"),\n length: z.number().describe(\"Length of the package; must be greater than 0.\"),\n}).describe(\"Dimensions of a package.\").optional(),\n}).passthrough().describe(\"Package information for a shipment.\")).describe(\"List of packages in this shipment\"),\n return_to: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Address information for shipment origin or destination.\").optional(),\n ship_date: z.string().describe(\"Ship date in ISO 8601 format (YYYY-MM-DD). Defaults to today if not provided.\").optional(),\n ship_from: z.object({\n name: z.string().describe(\"Recipient or sender name\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n postal_code: z.string().describe(\"ZIP or postal code\"),\n company_name: z.string().describe(\"Company name\").optional(),\n country_code: z.string().describe(\"Two-letter ISO country code\"),\n address_line1: z.string().describe(\"Address line 1\"),\n address_line2: z.string().describe(\"Address line 2\").optional(),\n address_line3: z.string().describe(\"Address line 3\").optional(),\n city_locality: z.string().describe(\"City or locality\"),\n state_province: z.string().describe(\"State or province\"),\n address_residential_indicator: z.string().describe(\"Indicate whether the address is residential or commercial. Values: 'residential', 'commercial', 'unknown', 'yes', 'no'\").optional(),\n}).describe(\"Origin address\"),\n carrier_id: z.string().describe(\"Carrier ID for this shipment (optional if using rate_options.carrier_ids)\").optional(),\n confirmation: z.string().describe(\"Delivery confirmation type (e.g., 'delivery', 'signature', 'adult_signature', 'direct_signature')\").optional(),\n service_code: z.string().describe(\"Service code for this shipment (optional if using rate_options.service_codes)\").optional(),\n advanced_options: z.record(z.string(), z.unknown()).describe(\"Advanced shipping options\").optional(),\n validate_address: z.string().describe(\"Address validation level. Options: 'no_validation', 'validate_only', 'validate_and_clean'\").optional(),\n insurance_provider: z.string().describe(\"Insurance provider (e.g., 'shipsurance', 'carrier', 'none')\").optional(),\n external_shipment_id: z.string().describe(\"External reference ID for this shipment\").optional(),\n}).passthrough().describe(\"Shipment details for bulk rate request.\")).describe(\"List of new shipment details to get rates for. Use this OR shipment_ids, not both.\").optional(),\n rate_options: z.object({\n carrier_ids: z.array(z.string()).describe(\"List of carrier IDs to get rates from. Required field - specify at least one carrier ID.\"),\n package_types: z.array(z.string()).describe(\"List of package types to get rates for. Leave empty to get rates for all package types.\").optional(),\n service_codes: z.array(z.string()).describe(\"List of service codes to filter rates. If not provided, all services will be included.\").optional(),\n preferred_currency: z.string().describe(\"Preferred currency for rate amounts (3-letter ISO 4217 currency code).\").optional(),\n calculate_tax_amount: z.boolean().describe(\"Whether to calculate tax amount for the shipment. Set to true to include tax calculations.\").optional(),\n}).describe(\"Rate options including carrier IDs, service codes, and other preferences for fetching rates\"),\n shipment_ids: z.array(z.string()).describe(\"List of existing ShipEngine shipment IDs to get rates for. Each ID must start with 'se-'. Use this OR shipments, not both.\").optional(),\n ship_to_service_point_id: z.string().describe(\"A unique identifier for a carrier service point where the shipment will be delivered by the carrier. This will take precedence over a shipment's ship to address.\").optional(),\n ship_from_service_point_id: z.string().describe(\"A unique identifier for a carrier drop off point where a merchant plans to deliver packages. This will take precedence over a shipment's ship from address.\").optional(),\n}).describe(\"Request model for getting bulk shipping rates.\\nMust provide either shipment_ids (for existing shipments) OR shipments (new shipment details).\");\nconst ShipengineGetBulkRates_ErrorDetailSchema = z.object({\n message: z.string().describe(\"Human-readable error message\").nullable().optional(),\n error_code: z.string().describe(\"Error code identifying the specific error\").nullable().optional(),\n error_type: z.string().describe(\"Type of error (e.g., 'validation', 'business_rule')\").nullable().optional(),\n error_source: z.string().describe(\"Source of the error (e.g., 'shipengine', 'carrier')\").nullable().optional(),\n}).passthrough().describe(\"Error details for a bulk rate response.\");\nconst ShipengineGetBulkRates_BulkRateSchema = z.object({\n errors: z.array(ShipengineGetBulkRates_ErrorDetailSchema).describe(\"An array of errors that were returned while retrieving the rate\"),\n status: z.string().describe(\"Status of the rate request (e.g., 'working', 'completed', 'error')\").nullable(),\n created_at: z.string().describe(\"Timestamp when the rate request was created (ISO 8601 format)\").nullable(),\n shipment_id: z.string().describe(\"A string that uniquely identifies the shipment\").nullable(),\n rate_request_id: z.string().describe(\"A string that uniquely identifies the rate request\").nullable(),\n}).passthrough().describe(\"A bulk rate response for a single shipment.\");\nexport const ShipengineGetBulkRatesOutput = z.object({\n rates: z.array(ShipengineGetBulkRates_BulkRateSchema).describe(\"List of bulk rate responses, one for each shipment. Use the rate_request_id to poll for completed rates.\"),\n}).passthrough().describe(\"Response model for bulk rate requests.\\nReturns a list of rate request statuses.\");\n\nexport const shipengineGetBulkRates = action(\"SHIPENGINE_GET_BULK_RATES\", {\n slug: \"shipengine-get-bulk-rates\",\n name: \"Get Bulk Rates\",\n description: \"Tool to get shipping rates for multiple shipments in a single request. Use when you need to compare rates across multiple carriers or shipments efficiently. The request is processed asynchronously - use the returned rate_request_id to retrieve the actual rates once processing is complete.\",\n input: ShipengineGetBulkRatesInput,\n output: ShipengineGetBulkRatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAChH,SAASA,IAAAA,EAAE,OAAO;GAClB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GACrD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GAC3D,cAAcA,IAAAA,EAAE,O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