@keystrokehq/shipengine 0.1.0 → 0.1.2

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 (483) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-tag-to-shipment.cjs.map +1 -1
  4. package/dist/actions/add-tag-to-shipment.d.cts +11 -3
  5. package/dist/actions/add-tag-to-shipment.d.cts.map +1 -1
  6. package/dist/actions/add-tag-to-shipment.d.mts +11 -3
  7. package/dist/actions/add-tag-to-shipment.d.mts.map +1 -1
  8. package/dist/actions/add-tag-to-shipment.mjs.map +1 -1
  9. package/dist/actions/add-to-batch.cjs.map +1 -1
  10. package/dist/actions/add-to-batch.d.cts +13 -3
  11. package/dist/actions/add-to-batch.d.cts.map +1 -1
  12. package/dist/actions/add-to-batch.d.mts +13 -3
  13. package/dist/actions/add-to-batch.d.mts.map +1 -1
  14. package/dist/actions/add-to-batch.mjs.map +1 -1
  15. package/dist/actions/cancel-shipment.cjs.map +1 -1
  16. package/dist/actions/cancel-shipment.d.cts +9 -3
  17. package/dist/actions/cancel-shipment.d.cts.map +1 -1
  18. package/dist/actions/cancel-shipment.d.mts +9 -3
  19. package/dist/actions/cancel-shipment.d.mts.map +1 -1
  20. package/dist/actions/cancel-shipment.mjs.map +1 -1
  21. package/dist/actions/connect-ltl-carrier.cjs +1 -1
  22. package/dist/actions/connect-ltl-carrier.cjs.map +1 -1
  23. package/dist/actions/connect-ltl-carrier.d.cts +11 -3
  24. package/dist/actions/connect-ltl-carrier.d.cts.map +1 -1
  25. package/dist/actions/connect-ltl-carrier.d.mts +11 -3
  26. package/dist/actions/connect-ltl-carrier.d.mts.map +1 -1
  27. package/dist/actions/connect-ltl-carrier.mjs +1 -1
  28. package/dist/actions/connect-ltl-carrier.mjs.map +1 -1
  29. package/dist/actions/connect-shipsurance.cjs.map +1 -1
  30. package/dist/actions/connect-shipsurance.d.cts +9 -3
  31. package/dist/actions/connect-shipsurance.d.cts.map +1 -1
  32. package/dist/actions/connect-shipsurance.d.mts +9 -3
  33. package/dist/actions/connect-shipsurance.d.mts.map +1 -1
  34. package/dist/actions/connect-shipsurance.mjs.map +1 -1
  35. package/dist/actions/create-account-image.cjs.map +1 -1
  36. package/dist/actions/create-account-image.d.cts +22 -3
  37. package/dist/actions/create-account-image.d.cts.map +1 -1
  38. package/dist/actions/create-account-image.d.mts +22 -3
  39. package/dist/actions/create-account-image.d.mts.map +1 -1
  40. package/dist/actions/create-account-image.mjs.map +1 -1
  41. package/dist/actions/create-package-type.cjs +6 -6
  42. package/dist/actions/create-package-type.cjs.map +1 -1
  43. package/dist/actions/create-package-type.d.cts +40 -3
  44. package/dist/actions/create-package-type.d.cts.map +1 -1
  45. package/dist/actions/create-package-type.d.mts +40 -3
  46. package/dist/actions/create-package-type.d.mts.map +1 -1
  47. package/dist/actions/create-package-type.mjs +6 -6
  48. package/dist/actions/create-package-type.mjs.map +1 -1
  49. package/dist/actions/create-tag.cjs.map +1 -1
  50. package/dist/actions/create-tag.d.cts +11 -3
  51. package/dist/actions/create-tag.d.cts.map +1 -1
  52. package/dist/actions/create-tag.d.mts +11 -3
  53. package/dist/actions/create-tag.d.mts.map +1 -1
  54. package/dist/actions/create-tag.mjs.map +1 -1
  55. package/dist/actions/create-tag2.cjs +1 -1
  56. package/dist/actions/create-tag2.cjs.map +1 -1
  57. package/dist/actions/create-tag2.d.cts +11 -3
  58. package/dist/actions/create-tag2.d.cts.map +1 -1
  59. package/dist/actions/create-tag2.d.mts +11 -3
  60. package/dist/actions/create-tag2.d.mts.map +1 -1
  61. package/dist/actions/create-tag2.mjs +1 -1
  62. package/dist/actions/create-tag2.mjs.map +1 -1
  63. package/dist/actions/create-warehouse.cjs +9 -9
  64. package/dist/actions/create-warehouse.cjs.map +1 -1
  65. package/dist/actions/create-warehouse.d.cts +108 -3
  66. package/dist/actions/create-warehouse.d.cts.map +1 -1
  67. package/dist/actions/create-warehouse.d.mts +108 -3
  68. package/dist/actions/create-warehouse.d.mts.map +1 -1
  69. package/dist/actions/create-warehouse.mjs +9 -9
  70. package/dist/actions/create-warehouse.mjs.map +1 -1
  71. package/dist/actions/create-webhook.cjs +4 -4
  72. package/dist/actions/create-webhook.cjs.map +1 -1
  73. package/dist/actions/create-webhook.d.cts +17 -3
  74. package/dist/actions/create-webhook.d.cts.map +1 -1
  75. package/dist/actions/create-webhook.d.mts +17 -3
  76. package/dist/actions/create-webhook.d.mts.map +1 -1
  77. package/dist/actions/create-webhook.mjs +4 -4
  78. package/dist/actions/create-webhook.mjs.map +1 -1
  79. package/dist/actions/delete-account-image-by-id.cjs +2 -2
  80. package/dist/actions/delete-account-image-by-id.cjs.map +1 -1
  81. package/dist/actions/delete-account-image-by-id.d.cts +10 -3
  82. package/dist/actions/delete-account-image-by-id.d.cts.map +1 -1
  83. package/dist/actions/delete-account-image-by-id.d.mts +10 -3
  84. package/dist/actions/delete-account-image-by-id.d.mts.map +1 -1
  85. package/dist/actions/delete-account-image-by-id.mjs +2 -2
  86. package/dist/actions/delete-account-image-by-id.mjs.map +1 -1
  87. package/dist/actions/delete-batch.cjs.map +1 -1
  88. package/dist/actions/delete-batch.d.cts +9 -3
  89. package/dist/actions/delete-batch.d.cts.map +1 -1
  90. package/dist/actions/delete-batch.d.mts +9 -3
  91. package/dist/actions/delete-batch.d.mts.map +1 -1
  92. package/dist/actions/delete-batch.mjs.map +1 -1
  93. package/dist/actions/delete-package.cjs.map +1 -1
  94. package/dist/actions/delete-package.d.cts +10 -3
  95. package/dist/actions/delete-package.d.cts.map +1 -1
  96. package/dist/actions/delete-package.d.mts +10 -3
  97. package/dist/actions/delete-package.d.mts.map +1 -1
  98. package/dist/actions/delete-package.mjs.map +1 -1
  99. package/dist/actions/delete-warehouse.cjs.map +1 -1
  100. package/dist/actions/delete-warehouse.d.cts +10 -3
  101. package/dist/actions/delete-warehouse.d.cts.map +1 -1
  102. package/dist/actions/delete-warehouse.d.mts +10 -3
  103. package/dist/actions/delete-warehouse.d.mts.map +1 -1
  104. package/dist/actions/delete-warehouse.mjs.map +1 -1
  105. package/dist/actions/delete-webhook.cjs +2 -2
  106. package/dist/actions/delete-webhook.cjs.map +1 -1
  107. package/dist/actions/delete-webhook.d.cts +10 -3
  108. package/dist/actions/delete-webhook.d.cts.map +1 -1
  109. package/dist/actions/delete-webhook.d.mts +10 -3
  110. package/dist/actions/delete-webhook.d.mts.map +1 -1
  111. package/dist/actions/delete-webhook.mjs +2 -2
  112. package/dist/actions/delete-webhook.mjs.map +1 -1
  113. package/dist/actions/disconnect-carrier.cjs.map +1 -1
  114. package/dist/actions/disconnect-carrier.d.cts +40 -3
  115. package/dist/actions/disconnect-carrier.d.cts.map +1 -1
  116. package/dist/actions/disconnect-carrier.d.mts +40 -3
  117. package/dist/actions/disconnect-carrier.d.mts.map +1 -1
  118. package/dist/actions/disconnect-carrier.mjs.map +1 -1
  119. package/dist/actions/disconnect-shipsurance.cjs.map +1 -1
  120. package/dist/actions/disconnect-shipsurance.d.cts +3 -3
  121. package/dist/actions/disconnect-shipsurance.d.cts.map +1 -1
  122. package/dist/actions/disconnect-shipsurance.d.mts +3 -3
  123. package/dist/actions/disconnect-shipsurance.d.mts.map +1 -1
  124. package/dist/actions/disconnect-shipsurance.mjs.map +1 -1
  125. package/dist/actions/download-file.cjs +3 -3
  126. package/dist/actions/download-file.cjs.map +1 -1
  127. package/dist/actions/download-file.d.cts +21 -3
  128. package/dist/actions/download-file.d.cts.map +1 -1
  129. package/dist/actions/download-file.d.mts +21 -3
  130. package/dist/actions/download-file.d.mts.map +1 -1
  131. package/dist/actions/download-file.mjs +3 -3
  132. package/dist/actions/download-file.mjs.map +1 -1
  133. package/dist/actions/get-account-image-by-id.cjs +3 -3
  134. package/dist/actions/get-account-image-by-id.cjs.map +1 -1
  135. package/dist/actions/get-account-image-by-id.d.cts +15 -3
  136. package/dist/actions/get-account-image-by-id.d.cts.map +1 -1
  137. package/dist/actions/get-account-image-by-id.d.mts +15 -3
  138. package/dist/actions/get-account-image-by-id.d.mts.map +1 -1
  139. package/dist/actions/get-account-image-by-id.mjs +3 -3
  140. package/dist/actions/get-account-image-by-id.mjs.map +1 -1
  141. package/dist/actions/get-batch-by-external-id.cjs +11 -11
  142. package/dist/actions/get-batch-by-external-id.cjs.map +1 -1
  143. package/dist/actions/get-batch-by-external-id.d.cts +29 -3
  144. package/dist/actions/get-batch-by-external-id.d.cts.map +1 -1
  145. package/dist/actions/get-batch-by-external-id.d.mts +29 -3
  146. package/dist/actions/get-batch-by-external-id.d.mts.map +1 -1
  147. package/dist/actions/get-batch-by-external-id.mjs +11 -11
  148. package/dist/actions/get-batch-by-external-id.mjs.map +1 -1
  149. package/dist/actions/get-batch-by-id.cjs +4 -4
  150. package/dist/actions/get-batch-by-id.cjs.map +1 -1
  151. package/dist/actions/get-batch-by-id.d.cts +42 -3
  152. package/dist/actions/get-batch-by-id.d.cts.map +1 -1
  153. package/dist/actions/get-batch-by-id.d.mts +42 -3
  154. package/dist/actions/get-batch-by-id.d.mts.map +1 -1
  155. package/dist/actions/get-batch-by-id.mjs +4 -4
  156. package/dist/actions/get-batch-by-id.mjs.map +1 -1
  157. package/dist/actions/get-batch-errors.cjs.map +1 -1
  158. package/dist/actions/get-batch-errors.d.cts +31 -3
  159. package/dist/actions/get-batch-errors.d.cts.map +1 -1
  160. package/dist/actions/get-batch-errors.d.mts +31 -3
  161. package/dist/actions/get-batch-errors.d.mts.map +1 -1
  162. package/dist/actions/get-batch-errors.mjs.map +1 -1
  163. package/dist/actions/get-bulk-rates.cjs +4 -4
  164. package/dist/actions/get-bulk-rates.cjs.map +1 -1
  165. package/dist/actions/get-bulk-rates.d.cts +170 -3
  166. package/dist/actions/get-bulk-rates.d.cts.map +1 -1
  167. package/dist/actions/get-bulk-rates.d.mts +170 -3
  168. package/dist/actions/get-bulk-rates.d.mts.map +1 -1
  169. package/dist/actions/get-bulk-rates.mjs +4 -4
  170. package/dist/actions/get-bulk-rates.mjs.map +1 -1
  171. package/dist/actions/get-insurance-balance.cjs +2 -2
  172. package/dist/actions/get-insurance-balance.cjs.map +1 -1
  173. package/dist/actions/get-insurance-balance.d.cts +9 -3
  174. package/dist/actions/get-insurance-balance.d.cts.map +1 -1
  175. package/dist/actions/get-insurance-balance.d.mts +9 -3
  176. package/dist/actions/get-insurance-balance.d.mts.map +1 -1
  177. package/dist/actions/get-insurance-balance.mjs +2 -2
  178. package/dist/actions/get-insurance-balance.mjs.map +1 -1
  179. package/dist/actions/get-ltl-carrier-credential-requirements.cjs.map +1 -1
  180. package/dist/actions/get-ltl-carrier-credential-requirements.d.cts +13 -3
  181. package/dist/actions/get-ltl-carrier-credential-requirements.d.cts.map +1 -1
  182. package/dist/actions/get-ltl-carrier-credential-requirements.d.mts +13 -3
  183. package/dist/actions/get-ltl-carrier-credential-requirements.d.mts.map +1 -1
  184. package/dist/actions/get-ltl-carrier-credential-requirements.mjs.map +1 -1
  185. package/dist/actions/get-ltl-carrier-features.cjs.map +1 -1
  186. package/dist/actions/get-ltl-carrier-features.d.cts +17 -3
  187. package/dist/actions/get-ltl-carrier-features.d.cts.map +1 -1
  188. package/dist/actions/get-ltl-carrier-features.d.mts +17 -3
  189. package/dist/actions/get-ltl-carrier-features.d.mts.map +1 -1
  190. package/dist/actions/get-ltl-carrier-features.mjs.map +1 -1
  191. package/dist/actions/get-ltl-carrier-options.cjs.map +1 -1
  192. package/dist/actions/get-ltl-carrier-options.d.cts +17 -3
  193. package/dist/actions/get-ltl-carrier-options.d.cts.map +1 -1
  194. package/dist/actions/get-ltl-carrier-options.d.mts +17 -3
  195. package/dist/actions/get-ltl-carrier-options.d.mts.map +1 -1
  196. package/dist/actions/get-ltl-carrier-options.mjs.map +1 -1
  197. package/dist/actions/get-ltl-carrier-packages.cjs +2 -2
  198. package/dist/actions/get-ltl-carrier-packages.cjs.map +1 -1
  199. package/dist/actions/get-ltl-carrier-packages.d.cts +13 -3
  200. package/dist/actions/get-ltl-carrier-packages.d.cts.map +1 -1
  201. package/dist/actions/get-ltl-carrier-packages.d.mts +13 -3
  202. package/dist/actions/get-ltl-carrier-packages.d.mts.map +1 -1
  203. package/dist/actions/get-ltl-carrier-packages.mjs +2 -2
  204. package/dist/actions/get-ltl-carrier-packages.mjs.map +1 -1
  205. package/dist/actions/get-ltl-carrier-services.cjs.map +1 -1
  206. package/dist/actions/get-ltl-carrier-services.d.cts +13 -3
  207. package/dist/actions/get-ltl-carrier-services.d.cts.map +1 -1
  208. package/dist/actions/get-ltl-carrier-services.d.mts +13 -3
  209. package/dist/actions/get-ltl-carrier-services.d.mts.map +1 -1
  210. package/dist/actions/get-ltl-carrier-services.mjs.map +1 -1
  211. package/dist/actions/get-package-by-id.cjs +3 -3
  212. package/dist/actions/get-package-by-id.cjs.map +1 -1
  213. package/dist/actions/get-package-by-id.d.cts +18 -3
  214. package/dist/actions/get-package-by-id.d.cts.map +1 -1
  215. package/dist/actions/get-package-by-id.d.mts +18 -3
  216. package/dist/actions/get-package-by-id.d.mts.map +1 -1
  217. package/dist/actions/get-package-by-id.mjs +3 -3
  218. package/dist/actions/get-package-by-id.mjs.map +1 -1
  219. package/dist/actions/get-shipment-by-external-id.cjs +11 -11
  220. package/dist/actions/get-shipment-by-external-id.cjs.map +1 -1
  221. package/dist/actions/get-shipment-by-external-id.d.cts +137 -3
  222. package/dist/actions/get-shipment-by-external-id.d.cts.map +1 -1
  223. package/dist/actions/get-shipment-by-external-id.d.mts +137 -3
  224. package/dist/actions/get-shipment-by-external-id.d.mts.map +1 -1
  225. package/dist/actions/get-shipment-by-external-id.mjs +11 -11
  226. package/dist/actions/get-shipment-by-external-id.mjs.map +1 -1
  227. package/dist/actions/get-shipment-by-id.cjs +18 -18
  228. package/dist/actions/get-shipment-by-id.cjs.map +1 -1
  229. package/dist/actions/get-shipment-by-id.d.cts +128 -3
  230. package/dist/actions/get-shipment-by-id.d.cts.map +1 -1
  231. package/dist/actions/get-shipment-by-id.d.mts +128 -3
  232. package/dist/actions/get-shipment-by-id.d.mts.map +1 -1
  233. package/dist/actions/get-shipment-by-id.mjs +18 -18
  234. package/dist/actions/get-shipment-by-id.mjs.map +1 -1
  235. package/dist/actions/get-shipment-rates.cjs +3 -3
  236. package/dist/actions/get-shipment-rates.cjs.map +1 -1
  237. package/dist/actions/get-shipment-rates.d.cts +104 -3
  238. package/dist/actions/get-shipment-rates.d.cts.map +1 -1
  239. package/dist/actions/get-shipment-rates.d.mts +104 -3
  240. package/dist/actions/get-shipment-rates.d.mts.map +1 -1
  241. package/dist/actions/get-shipment-rates.mjs +3 -3
  242. package/dist/actions/get-shipment-rates.mjs.map +1 -1
  243. package/dist/actions/get-tracking-info.cjs +5 -5
  244. package/dist/actions/get-tracking-info.cjs.map +1 -1
  245. package/dist/actions/get-tracking-info.d.cts +44 -3
  246. package/dist/actions/get-tracking-info.d.cts.map +1 -1
  247. package/dist/actions/get-tracking-info.d.mts +44 -3
  248. package/dist/actions/get-tracking-info.d.mts.map +1 -1
  249. package/dist/actions/get-tracking-info.mjs +5 -5
  250. package/dist/actions/get-tracking-info.mjs.map +1 -1
  251. package/dist/actions/get-warehouse-by-id.cjs +8 -8
  252. package/dist/actions/get-warehouse-by-id.cjs.map +1 -1
  253. package/dist/actions/get-warehouse-by-id.d.cts +46 -3
  254. package/dist/actions/get-warehouse-by-id.d.cts.map +1 -1
  255. package/dist/actions/get-warehouse-by-id.d.mts +46 -3
  256. package/dist/actions/get-warehouse-by-id.d.mts.map +1 -1
  257. package/dist/actions/get-warehouse-by-id.mjs +8 -8
  258. package/dist/actions/get-warehouse-by-id.mjs.map +1 -1
  259. package/dist/actions/get-webhook-by-id.cjs +5 -5
  260. package/dist/actions/get-webhook-by-id.cjs.map +1 -1
  261. package/dist/actions/get-webhook-by-id.d.cts +17 -3
  262. package/dist/actions/get-webhook-by-id.d.cts.map +1 -1
  263. package/dist/actions/get-webhook-by-id.d.mts +17 -3
  264. package/dist/actions/get-webhook-by-id.d.mts.map +1 -1
  265. package/dist/actions/get-webhook-by-id.mjs +5 -5
  266. package/dist/actions/get-webhook-by-id.mjs.map +1 -1
  267. package/dist/actions/list-account-images.cjs.map +1 -1
  268. package/dist/actions/list-account-images.d.cts +13 -3
  269. package/dist/actions/list-account-images.d.cts.map +1 -1
  270. package/dist/actions/list-account-images.d.mts +13 -3
  271. package/dist/actions/list-account-images.d.mts.map +1 -1
  272. package/dist/actions/list-account-images.mjs.map +1 -1
  273. package/dist/actions/list-account-settings.cjs.map +1 -1
  274. package/dist/actions/list-account-settings.d.cts +3 -3
  275. package/dist/actions/list-account-settings.d.cts.map +1 -1
  276. package/dist/actions/list-account-settings.d.mts +3 -3
  277. package/dist/actions/list-account-settings.d.mts.map +1 -1
  278. package/dist/actions/list-account-settings.mjs.map +1 -1
  279. package/dist/actions/list-batches2.cjs +12 -12
  280. package/dist/actions/list-batches2.cjs.map +1 -1
  281. package/dist/actions/list-batches2.d.cts +71 -3
  282. package/dist/actions/list-batches2.d.cts.map +1 -1
  283. package/dist/actions/list-batches2.d.mts +71 -3
  284. package/dist/actions/list-batches2.d.mts.map +1 -1
  285. package/dist/actions/list-batches2.mjs +12 -12
  286. package/dist/actions/list-batches2.mjs.map +1 -1
  287. package/dist/actions/list-carrier-package-types.cjs +2 -2
  288. package/dist/actions/list-carrier-package-types.cjs.map +1 -1
  289. package/dist/actions/list-carrier-package-types.d.cts +20 -3
  290. package/dist/actions/list-carrier-package-types.d.cts.map +1 -1
  291. package/dist/actions/list-carrier-package-types.d.mts +20 -3
  292. package/dist/actions/list-carrier-package-types.d.mts.map +1 -1
  293. package/dist/actions/list-carrier-package-types.mjs +2 -2
  294. package/dist/actions/list-carrier-package-types.mjs.map +1 -1
  295. package/dist/actions/list-labels2.cjs +3 -3
  296. package/dist/actions/list-labels2.cjs.map +1 -1
  297. package/dist/actions/list-labels2.d.cts +215 -3
  298. package/dist/actions/list-labels2.d.cts.map +1 -1
  299. package/dist/actions/list-labels2.d.mts +215 -3
  300. package/dist/actions/list-labels2.d.mts.map +1 -1
  301. package/dist/actions/list-labels2.mjs +3 -3
  302. package/dist/actions/list-labels2.mjs.map +1 -1
  303. package/dist/actions/list-ltl-carriers.cjs +5 -5
  304. package/dist/actions/list-ltl-carriers.cjs.map +1 -1
  305. package/dist/actions/list-ltl-carriers.d.cts +38 -3
  306. package/dist/actions/list-ltl-carriers.d.cts.map +1 -1
  307. package/dist/actions/list-ltl-carriers.d.mts +38 -3
  308. package/dist/actions/list-ltl-carriers.d.mts.map +1 -1
  309. package/dist/actions/list-ltl-carriers.mjs +5 -5
  310. package/dist/actions/list-ltl-carriers.mjs.map +1 -1
  311. package/dist/actions/list-manifests2.cjs +3 -3
  312. package/dist/actions/list-manifests2.cjs.map +1 -1
  313. package/dist/actions/list-manifests2.d.cts +58 -3
  314. package/dist/actions/list-manifests2.d.cts.map +1 -1
  315. package/dist/actions/list-manifests2.d.mts +58 -3
  316. package/dist/actions/list-manifests2.d.mts.map +1 -1
  317. package/dist/actions/list-manifests2.mjs +3 -3
  318. package/dist/actions/list-manifests2.mjs.map +1 -1
  319. package/dist/actions/list-packages.cjs +3 -3
  320. package/dist/actions/list-packages.cjs.map +1 -1
  321. package/dist/actions/list-packages.d.cts +30 -3
  322. package/dist/actions/list-packages.d.cts.map +1 -1
  323. package/dist/actions/list-packages.d.mts +30 -3
  324. package/dist/actions/list-packages.d.mts.map +1 -1
  325. package/dist/actions/list-packages.mjs +3 -3
  326. package/dist/actions/list-packages.mjs.map +1 -1
  327. package/dist/actions/list-pickups.cjs +3 -3
  328. package/dist/actions/list-pickups.cjs.map +1 -1
  329. package/dist/actions/list-pickups.d.cts +67 -3
  330. package/dist/actions/list-pickups.d.cts.map +1 -1
  331. package/dist/actions/list-pickups.d.mts +67 -3
  332. package/dist/actions/list-pickups.d.mts.map +1 -1
  333. package/dist/actions/list-pickups.mjs +3 -3
  334. package/dist/actions/list-pickups.mjs.map +1 -1
  335. package/dist/actions/list-shipments2.cjs +6 -6
  336. package/dist/actions/list-shipments2.cjs.map +1 -1
  337. package/dist/actions/list-shipments2.d.cts +152 -3
  338. package/dist/actions/list-shipments2.d.cts.map +1 -1
  339. package/dist/actions/list-shipments2.d.mts +152 -3
  340. package/dist/actions/list-shipments2.d.mts.map +1 -1
  341. package/dist/actions/list-shipments2.mjs +6 -6
  342. package/dist/actions/list-shipments2.mjs.map +1 -1
  343. package/dist/actions/list-tags2.cjs +1 -1
  344. package/dist/actions/list-tags2.cjs.map +1 -1
  345. package/dist/actions/list-tags2.d.cts +9 -3
  346. package/dist/actions/list-tags2.d.cts.map +1 -1
  347. package/dist/actions/list-tags2.d.mts +9 -3
  348. package/dist/actions/list-tags2.d.mts.map +1 -1
  349. package/dist/actions/list-tags2.mjs +1 -1
  350. package/dist/actions/list-tags2.mjs.map +1 -1
  351. package/dist/actions/list-warehouses.cjs +8 -8
  352. package/dist/actions/list-warehouses.cjs.map +1 -1
  353. package/dist/actions/list-warehouses.d.cts +32 -3
  354. package/dist/actions/list-warehouses.d.cts.map +1 -1
  355. package/dist/actions/list-warehouses.d.mts +32 -3
  356. package/dist/actions/list-warehouses.d.mts.map +1 -1
  357. package/dist/actions/list-warehouses.mjs +8 -8
  358. package/dist/actions/list-warehouses.mjs.map +1 -1
  359. package/dist/actions/list-webhook-events.cjs +2 -2
  360. package/dist/actions/list-webhook-events.cjs.map +1 -1
  361. package/dist/actions/list-webhook-events.d.cts +8 -3
  362. package/dist/actions/list-webhook-events.d.cts.map +1 -1
  363. package/dist/actions/list-webhook-events.d.mts +8 -3
  364. package/dist/actions/list-webhook-events.d.mts.map +1 -1
  365. package/dist/actions/list-webhook-events.mjs +2 -2
  366. package/dist/actions/list-webhook-events.mjs.map +1 -1
  367. package/dist/actions/list-webhooks.cjs +5 -5
  368. package/dist/actions/list-webhooks.cjs.map +1 -1
  369. package/dist/actions/list-webhooks.d.cts +15 -3
  370. package/dist/actions/list-webhooks.d.cts.map +1 -1
  371. package/dist/actions/list-webhooks.d.mts +15 -3
  372. package/dist/actions/list-webhooks.d.mts.map +1 -1
  373. package/dist/actions/list-webhooks.mjs +5 -5
  374. package/dist/actions/list-webhooks.mjs.map +1 -1
  375. package/dist/actions/parse-address.cjs +6 -6
  376. package/dist/actions/parse-address.cjs.map +1 -1
  377. package/dist/actions/parse-address.d.cts +59 -3
  378. package/dist/actions/parse-address.d.cts.map +1 -1
  379. package/dist/actions/parse-address.d.mts +59 -3
  380. package/dist/actions/parse-address.d.mts.map +1 -1
  381. package/dist/actions/parse-address.mjs +6 -6
  382. package/dist/actions/parse-address.mjs.map +1 -1
  383. package/dist/actions/process-batch-labels.cjs.map +1 -1
  384. package/dist/actions/process-batch-labels.d.cts +28 -3
  385. package/dist/actions/process-batch-labels.d.cts.map +1 -1
  386. package/dist/actions/process-batch-labels.d.mts +28 -3
  387. package/dist/actions/process-batch-labels.d.mts.map +1 -1
  388. package/dist/actions/process-batch-labels.mjs.map +1 -1
  389. package/dist/actions/remove-from-batch.cjs.map +1 -1
  390. package/dist/actions/remove-from-batch.d.cts +13 -3
  391. package/dist/actions/remove-from-batch.d.cts.map +1 -1
  392. package/dist/actions/remove-from-batch.d.mts +13 -3
  393. package/dist/actions/remove-from-batch.d.mts.map +1 -1
  394. package/dist/actions/remove-from-batch.mjs.map +1 -1
  395. package/dist/actions/remove-tag-from-shipment.cjs.map +1 -1
  396. package/dist/actions/remove-tag-from-shipment.d.cts +11 -3
  397. package/dist/actions/remove-tag-from-shipment.d.cts.map +1 -1
  398. package/dist/actions/remove-tag-from-shipment.d.mts +11 -3
  399. package/dist/actions/remove-tag-from-shipment.d.mts.map +1 -1
  400. package/dist/actions/remove-tag-from-shipment.mjs.map +1 -1
  401. package/dist/actions/start-tracking.cjs +2 -2
  402. package/dist/actions/start-tracking.cjs.map +1 -1
  403. package/dist/actions/start-tracking.d.cts +14 -3
  404. package/dist/actions/start-tracking.d.cts.map +1 -1
  405. package/dist/actions/start-tracking.d.mts +14 -3
  406. package/dist/actions/start-tracking.d.mts.map +1 -1
  407. package/dist/actions/start-tracking.mjs +2 -2
  408. package/dist/actions/start-tracking.mjs.map +1 -1
  409. package/dist/actions/stop-tracking.cjs.map +1 -1
  410. package/dist/actions/stop-tracking.d.cts +12 -3
  411. package/dist/actions/stop-tracking.d.cts.map +1 -1
  412. package/dist/actions/stop-tracking.d.mts +12 -3
  413. package/dist/actions/stop-tracking.d.mts.map +1 -1
  414. package/dist/actions/stop-tracking.mjs.map +1 -1
  415. package/dist/actions/track-ltl-shipment.cjs.map +1 -1
  416. package/dist/actions/track-ltl-shipment.d.cts +37 -3
  417. package/dist/actions/track-ltl-shipment.d.cts.map +1 -1
  418. package/dist/actions/track-ltl-shipment.d.mts +37 -3
  419. package/dist/actions/track-ltl-shipment.d.mts.map +1 -1
  420. package/dist/actions/track-ltl-shipment.mjs.map +1 -1
  421. package/dist/actions/update-account-image-by-id.cjs.map +1 -1
  422. package/dist/actions/update-account-image-by-id.d.cts +15 -3
  423. package/dist/actions/update-account-image-by-id.d.cts.map +1 -1
  424. package/dist/actions/update-account-image-by-id.d.mts +15 -3
  425. package/dist/actions/update-account-image-by-id.d.mts.map +1 -1
  426. package/dist/actions/update-account-image-by-id.mjs.map +1 -1
  427. package/dist/actions/update-ltl-connection.cjs.map +1 -1
  428. package/dist/actions/update-ltl-connection.d.cts +13 -3
  429. package/dist/actions/update-ltl-connection.d.cts.map +1 -1
  430. package/dist/actions/update-ltl-connection.d.mts +13 -3
  431. package/dist/actions/update-ltl-connection.d.mts.map +1 -1
  432. package/dist/actions/update-ltl-connection.mjs.map +1 -1
  433. package/dist/actions/update-package.cjs +2 -2
  434. package/dist/actions/update-package.cjs.map +1 -1
  435. package/dist/actions/update-package.d.cts +31 -3
  436. package/dist/actions/update-package.d.cts.map +1 -1
  437. package/dist/actions/update-package.d.mts +31 -3
  438. package/dist/actions/update-package.d.mts.map +1 -1
  439. package/dist/actions/update-package.mjs +2 -2
  440. package/dist/actions/update-package.mjs.map +1 -1
  441. package/dist/actions/update-shipment.cjs +25 -25
  442. package/dist/actions/update-shipment.cjs.map +1 -1
  443. package/dist/actions/update-shipment.d.cts +428 -3
  444. package/dist/actions/update-shipment.d.cts.map +1 -1
  445. package/dist/actions/update-shipment.d.mts +428 -3
  446. package/dist/actions/update-shipment.d.mts.map +1 -1
  447. package/dist/actions/update-shipment.mjs +25 -25
  448. package/dist/actions/update-shipment.mjs.map +1 -1
  449. package/dist/actions/update-shipments-tags.cjs.map +1 -1
  450. package/dist/actions/update-shipments-tags.d.cts +16 -3
  451. package/dist/actions/update-shipments-tags.d.cts.map +1 -1
  452. package/dist/actions/update-shipments-tags.d.mts +16 -3
  453. package/dist/actions/update-shipments-tags.d.mts.map +1 -1
  454. package/dist/actions/update-shipments-tags.mjs.map +1 -1
  455. package/dist/actions/update-warehouse.cjs +2 -2
  456. package/dist/actions/update-warehouse.cjs.map +1 -1
  457. package/dist/actions/update-warehouse.d.cts +74 -3
  458. package/dist/actions/update-warehouse.d.cts.map +1 -1
  459. package/dist/actions/update-warehouse.d.mts +74 -3
  460. package/dist/actions/update-warehouse.d.mts.map +1 -1
  461. package/dist/actions/update-warehouse.mjs +2 -2
  462. package/dist/actions/update-warehouse.mjs.map +1 -1
  463. package/dist/actions/update-webhook.cjs.map +1 -1
  464. package/dist/actions/update-webhook.d.cts +23 -3
  465. package/dist/actions/update-webhook.d.cts.map +1 -1
  466. package/dist/actions/update-webhook.d.mts +23 -3
  467. package/dist/actions/update-webhook.d.mts.map +1 -1
  468. package/dist/actions/update-webhook.mjs.map +1 -1
  469. package/dist/actions/validate-address.cjs +4 -4
  470. package/dist/actions/validate-address.cjs.map +1 -1
  471. package/dist/actions/validate-address.d.cts +86 -3
  472. package/dist/actions/validate-address.d.cts.map +1 -1
  473. package/dist/actions/validate-address.d.mts +86 -3
  474. package/dist/actions/validate-address.d.mts.map +1 -1
  475. package/dist/actions/validate-address.mjs +4 -4
  476. package/dist/actions/validate-address.mjs.map +1 -1
  477. package/dist/catalog.cjs +7 -1
  478. package/dist/catalog.cjs.map +1 -1
  479. package/dist/catalog.d.cts +8 -0
  480. package/dist/catalog.d.mts +8 -0
  481. package/dist/catalog.mjs +7 -1
  482. package/dist/catalog.mjs.map +1 -1
  483. package/package.json +2 -2
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-batch-errors.d.ts
4
- declare const ShipengineGetBatchErrorsInput: z.ZodTypeAny;
5
- declare const ShipengineGetBatchErrorsOutput: z.ZodTypeAny;
6
- declare const shipengineGetBatchErrors: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShipengineGetBatchErrorsInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
6
+ batch_id: z.ZodString;
7
+ pagesize: z.ZodOptional<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ declare const ShipengineGetBatchErrorsOutput: z.ZodObject<{
10
+ links: z.ZodNullable<z.ZodObject<{
11
+ last: z.ZodOptional<z.ZodNullable<z.ZodObject<{
12
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ }, z.core.$strip>>>;
14
+ next: z.ZodOptional<z.ZodNullable<z.ZodObject<{
15
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ }, z.core.$strip>>>;
17
+ prev: z.ZodOptional<z.ZodNullable<z.ZodObject<{
18
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ }, z.core.$strip>>>;
20
+ first: z.ZodOptional<z.ZodNullable<z.ZodObject<{
21
+ href: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$strip>>>;
23
+ }, z.core.$strip>>;
24
+ errors: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodArray<z.ZodObject<{
25
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ external_shipment_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ }, z.core.$strip>>>>>;
29
+ }, z.core.$strip>;
30
+ declare const shipengineGetBatchErrors: import("@keystrokehq/action").WorkflowActionDefinition<{
31
+ batch_id: string;
32
+ page?: number | undefined;
33
+ pagesize?: number | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { shipengineGetBatchErrors };
9
37
  //# sourceMappingURL=get-batch-errors.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-batch-errors.d.mts","names":[],"sources":["../../src/actions/get-batch-errors.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAI5C;AAAA,cAeW,8BAAA,EAAgC,CAAA,CAAE,UAG7C;AAAA,cAEW,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-batch-errors.d.mts","names":[],"sources":["../../src/actions/get-batch-errors.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cAmB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAK9B,wBAAA,gCAAwB,wBAAA"}
@@ -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.ZodTypeAny = 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.ZodTypeAny = z.object({\n href: z.string().describe(\"URL for the link.\").nullable().optional(),\n});\nconst ShipengineGetBatchErrors_PaginationLinkSchema: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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,gCAA8C,EAAE,OAAO;CAClE,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,4CAA0D,EAAE,OAAO,EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrE,CAAC;AACD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,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,mDAAiE,EAAE,OAAO;CAC9E,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,QAV0D,EAAE,OAAO;EACnE,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});\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"}
@@ -88,10 +88,10 @@ const ShipengineGetBulkRates_ErrorDetailSchema = zod.z.object({
88
88
  }).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
- status: zod.z.string().describe("Status of the rate request (e.g., 'working', 'completed', 'error')"),
92
- created_at: zod.z.string().describe("Timestamp when the rate request was created (ISO 8601 format)"),
93
- shipment_id: zod.z.string().describe("A string that uniquely identifies the shipment"),
94
- rate_request_id: zod.z.string().describe("A string that uniquely identifies the rate request")
91
+ status: zod.z.string().describe("Status of the rate request (e.g., 'working', 'completed', 'error')").nullable(),
92
+ created_at: zod.z.string().describe("Timestamp when the rate request was created (ISO 8601 format)").nullable(),
93
+ shipment_id: zod.z.string().describe("A string that uniquely identifies the shipment").nullable(),
94
+ rate_request_id: zod.z.string().describe("A string that uniquely identifies the rate request").nullable()
95
95
  }).describe("A bulk rate response for a single shipment.");
96
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.");
97
97
  const shipengineGetBulkRates = require_action.action("SHIPENGINE_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.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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')\"),\n created_at: z.string().describe(\"Timestamp when the rate request was created (ISO 8601 format)\"),\n shipment_id: z.string().describe(\"A string that uniquely identifies the shipment\"),\n rate_request_id: z.string().describe(\"A string that uniquely identifies the rate request\"),\n}).describe(\"A bulk rate response for a single shipment.\");\nexport const ShipengineGetBulkRatesOutput: z.ZodTypeAny = 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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,SAASA,IAAAA,EAAE,OAAO,CAAC,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AC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,QAAQA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iEAAiE;CACpI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAChG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,OAAOA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0GAA0G,EAC3K,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAE9F,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.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,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,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,OAAOA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0GAA0G,EAC3K,CAAC,CAAC,CAAC,SAAS,kFAAkF;AAE9F,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,176 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-bulk-rates.d.ts
4
- declare const ShipengineGetBulkRatesInput: z.ZodTypeAny;
5
- declare const ShipengineGetBulkRatesOutput: z.ZodTypeAny;
6
- declare const shipengineGetBulkRates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShipengineGetBulkRatesInput: z.ZodObject<{
5
+ shipments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ customs: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ ship_to: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodString>;
9
+ phone: z.ZodOptional<z.ZodString>;
10
+ postal_code: z.ZodString;
11
+ company_name: z.ZodOptional<z.ZodString>;
12
+ country_code: z.ZodString;
13
+ address_line1: z.ZodString;
14
+ address_line2: z.ZodOptional<z.ZodString>;
15
+ address_line3: z.ZodOptional<z.ZodString>;
16
+ city_locality: z.ZodString;
17
+ state_province: z.ZodString;
18
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ packages: z.ZodArray<z.ZodObject<{
21
+ weight: z.ZodObject<{
22
+ unit: z.ZodEnum<{
23
+ ounce: "ounce";
24
+ pound: "pound";
25
+ gram: "gram";
26
+ kilogram: "kilogram";
27
+ }>;
28
+ value: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ dimensions: z.ZodOptional<z.ZodObject<{
31
+ unit: z.ZodEnum<{
32
+ inch: "inch";
33
+ centimeter: "centimeter";
34
+ }>;
35
+ width: z.ZodNumber;
36
+ height: z.ZodNumber;
37
+ length: z.ZodNumber;
38
+ }, z.core.$strip>>;
39
+ }, z.core.$strip>>;
40
+ return_to: z.ZodOptional<z.ZodObject<{
41
+ name: z.ZodOptional<z.ZodString>;
42
+ phone: z.ZodOptional<z.ZodString>;
43
+ postal_code: z.ZodString;
44
+ company_name: z.ZodOptional<z.ZodString>;
45
+ country_code: z.ZodString;
46
+ address_line1: z.ZodString;
47
+ address_line2: z.ZodOptional<z.ZodString>;
48
+ address_line3: z.ZodOptional<z.ZodString>;
49
+ city_locality: z.ZodString;
50
+ state_province: z.ZodString;
51
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>;
53
+ ship_date: z.ZodOptional<z.ZodString>;
54
+ ship_from: z.ZodObject<{
55
+ name: z.ZodOptional<z.ZodString>;
56
+ phone: z.ZodOptional<z.ZodString>;
57
+ postal_code: z.ZodString;
58
+ company_name: z.ZodOptional<z.ZodString>;
59
+ country_code: z.ZodString;
60
+ address_line1: z.ZodString;
61
+ address_line2: z.ZodOptional<z.ZodString>;
62
+ address_line3: z.ZodOptional<z.ZodString>;
63
+ city_locality: z.ZodString;
64
+ state_province: z.ZodString;
65
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ carrier_id: z.ZodOptional<z.ZodString>;
68
+ confirmation: z.ZodOptional<z.ZodString>;
69
+ service_code: z.ZodOptional<z.ZodString>;
70
+ advanced_options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
71
+ validate_address: z.ZodOptional<z.ZodString>;
72
+ insurance_provider: z.ZodOptional<z.ZodString>;
73
+ external_shipment_id: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>>>;
75
+ rate_options: z.ZodObject<{
76
+ carrier_ids: z.ZodArray<z.ZodString>;
77
+ package_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ service_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ preferred_currency: z.ZodOptional<z.ZodString>;
80
+ calculate_tax_amount: z.ZodOptional<z.ZodBoolean>;
81
+ }, z.core.$strip>;
82
+ shipment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
+ ship_to_service_point_id: z.ZodOptional<z.ZodString>;
84
+ ship_from_service_point_id: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>;
86
+ declare const ShipengineGetBulkRatesOutput: z.ZodObject<{
87
+ rates: z.ZodArray<z.ZodObject<{
88
+ errors: z.ZodArray<z.ZodObject<{
89
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ }, z.core.$strip>>;
94
+ status: z.ZodNullable<z.ZodString>;
95
+ created_at: z.ZodNullable<z.ZodString>;
96
+ shipment_id: z.ZodNullable<z.ZodString>;
97
+ rate_request_id: z.ZodNullable<z.ZodString>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>;
100
+ declare const shipengineGetBulkRates: import("@keystrokehq/action").WorkflowActionDefinition<{
101
+ rate_options: {
102
+ carrier_ids: string[];
103
+ package_types?: string[] | undefined;
104
+ service_codes?: string[] | undefined;
105
+ preferred_currency?: string | undefined;
106
+ calculate_tax_amount?: boolean | undefined;
107
+ };
108
+ shipments?: {
109
+ ship_to: {
110
+ postal_code: string;
111
+ country_code: string;
112
+ address_line1: string;
113
+ city_locality: string;
114
+ state_province: string;
115
+ name?: string | undefined;
116
+ phone?: string | undefined;
117
+ company_name?: string | undefined;
118
+ address_line2?: string | undefined;
119
+ address_line3?: string | undefined;
120
+ address_residential_indicator?: string | undefined;
121
+ };
122
+ packages: {
123
+ weight: {
124
+ unit: "ounce" | "pound" | "gram" | "kilogram";
125
+ value: number;
126
+ };
127
+ dimensions?: {
128
+ unit: "inch" | "centimeter";
129
+ width: number;
130
+ height: number;
131
+ length: number;
132
+ } | undefined;
133
+ }[];
134
+ ship_from: {
135
+ postal_code: string;
136
+ country_code: string;
137
+ address_line1: string;
138
+ city_locality: string;
139
+ state_province: string;
140
+ name?: string | undefined;
141
+ phone?: string | undefined;
142
+ company_name?: string | undefined;
143
+ address_line2?: string | undefined;
144
+ address_line3?: string | undefined;
145
+ address_residential_indicator?: string | undefined;
146
+ };
147
+ customs?: Record<string, never> | undefined;
148
+ return_to?: {
149
+ postal_code: string;
150
+ country_code: string;
151
+ address_line1: string;
152
+ city_locality: string;
153
+ state_province: string;
154
+ name?: string | undefined;
155
+ phone?: string | undefined;
156
+ company_name?: string | undefined;
157
+ address_line2?: string | undefined;
158
+ address_line3?: string | undefined;
159
+ address_residential_indicator?: string | undefined;
160
+ } | undefined;
161
+ ship_date?: string | undefined;
162
+ carrier_id?: string | undefined;
163
+ confirmation?: string | undefined;
164
+ service_code?: string | undefined;
165
+ advanced_options?: Record<string, never> | undefined;
166
+ validate_address?: string | undefined;
167
+ insurance_provider?: string | undefined;
168
+ external_shipment_id?: string | undefined;
169
+ }[] | undefined;
170
+ shipment_ids?: string[] | undefined;
171
+ ship_to_service_point_id?: string | undefined;
172
+ ship_from_service_point_id?: string | undefined;
173
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
174
  //#endregion
8
175
  export { shipengineGetBulkRates };
9
176
  //# sourceMappingURL=get-bulk-rates.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-bulk-rates.d.cts","names":[],"sources":["../../src/actions/get-bulk-rates.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAyEiH;AAAA,cAchJ,4BAAA,EAA8B,CAAA,CAAE,UAEkD;AAAA,cAElF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-bulk-rates.d.cts","names":[],"sources":["../../src/actions/get-bulk-rates.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuF3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMjC,MAAA;;;;;;;;;;;;;;;;;;uBAAA,MAAA"}
@@ -1,9 +1,176 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-bulk-rates.d.ts
4
- declare const ShipengineGetBulkRatesInput: z.ZodTypeAny;
5
- declare const ShipengineGetBulkRatesOutput: z.ZodTypeAny;
6
- declare const shipengineGetBulkRates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShipengineGetBulkRatesInput: z.ZodObject<{
5
+ shipments: z.ZodOptional<z.ZodArray<z.ZodObject<{
6
+ customs: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ ship_to: z.ZodObject<{
8
+ name: z.ZodOptional<z.ZodString>;
9
+ phone: z.ZodOptional<z.ZodString>;
10
+ postal_code: z.ZodString;
11
+ company_name: z.ZodOptional<z.ZodString>;
12
+ country_code: z.ZodString;
13
+ address_line1: z.ZodString;
14
+ address_line2: z.ZodOptional<z.ZodString>;
15
+ address_line3: z.ZodOptional<z.ZodString>;
16
+ city_locality: z.ZodString;
17
+ state_province: z.ZodString;
18
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ packages: z.ZodArray<z.ZodObject<{
21
+ weight: z.ZodObject<{
22
+ unit: z.ZodEnum<{
23
+ ounce: "ounce";
24
+ pound: "pound";
25
+ gram: "gram";
26
+ kilogram: "kilogram";
27
+ }>;
28
+ value: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ dimensions: z.ZodOptional<z.ZodObject<{
31
+ unit: z.ZodEnum<{
32
+ inch: "inch";
33
+ centimeter: "centimeter";
34
+ }>;
35
+ width: z.ZodNumber;
36
+ height: z.ZodNumber;
37
+ length: z.ZodNumber;
38
+ }, z.core.$strip>>;
39
+ }, z.core.$strip>>;
40
+ return_to: z.ZodOptional<z.ZodObject<{
41
+ name: z.ZodOptional<z.ZodString>;
42
+ phone: z.ZodOptional<z.ZodString>;
43
+ postal_code: z.ZodString;
44
+ company_name: z.ZodOptional<z.ZodString>;
45
+ country_code: z.ZodString;
46
+ address_line1: z.ZodString;
47
+ address_line2: z.ZodOptional<z.ZodString>;
48
+ address_line3: z.ZodOptional<z.ZodString>;
49
+ city_locality: z.ZodString;
50
+ state_province: z.ZodString;
51
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
52
+ }, z.core.$strip>>;
53
+ ship_date: z.ZodOptional<z.ZodString>;
54
+ ship_from: z.ZodObject<{
55
+ name: z.ZodOptional<z.ZodString>;
56
+ phone: z.ZodOptional<z.ZodString>;
57
+ postal_code: z.ZodString;
58
+ company_name: z.ZodOptional<z.ZodString>;
59
+ country_code: z.ZodString;
60
+ address_line1: z.ZodString;
61
+ address_line2: z.ZodOptional<z.ZodString>;
62
+ address_line3: z.ZodOptional<z.ZodString>;
63
+ city_locality: z.ZodString;
64
+ state_province: z.ZodString;
65
+ address_residential_indicator: z.ZodOptional<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ carrier_id: z.ZodOptional<z.ZodString>;
68
+ confirmation: z.ZodOptional<z.ZodString>;
69
+ service_code: z.ZodOptional<z.ZodString>;
70
+ advanced_options: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
71
+ validate_address: z.ZodOptional<z.ZodString>;
72
+ insurance_provider: z.ZodOptional<z.ZodString>;
73
+ external_shipment_id: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>>>;
75
+ rate_options: z.ZodObject<{
76
+ carrier_ids: z.ZodArray<z.ZodString>;
77
+ package_types: z.ZodOptional<z.ZodArray<z.ZodString>>;
78
+ service_codes: z.ZodOptional<z.ZodArray<z.ZodString>>;
79
+ preferred_currency: z.ZodOptional<z.ZodString>;
80
+ calculate_tax_amount: z.ZodOptional<z.ZodBoolean>;
81
+ }, z.core.$strip>;
82
+ shipment_ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
+ ship_to_service_point_id: z.ZodOptional<z.ZodString>;
84
+ ship_from_service_point_id: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>;
86
+ declare const ShipengineGetBulkRatesOutput: z.ZodObject<{
87
+ rates: z.ZodArray<z.ZodObject<{
88
+ errors: z.ZodArray<z.ZodObject<{
89
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ error_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ error_source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
93
+ }, z.core.$strip>>;
94
+ status: z.ZodNullable<z.ZodString>;
95
+ created_at: z.ZodNullable<z.ZodString>;
96
+ shipment_id: z.ZodNullable<z.ZodString>;
97
+ rate_request_id: z.ZodNullable<z.ZodString>;
98
+ }, z.core.$strip>>;
99
+ }, z.core.$strip>;
100
+ declare const shipengineGetBulkRates: import("@keystrokehq/action").WorkflowActionDefinition<{
101
+ rate_options: {
102
+ carrier_ids: string[];
103
+ package_types?: string[] | undefined;
104
+ service_codes?: string[] | undefined;
105
+ preferred_currency?: string | undefined;
106
+ calculate_tax_amount?: boolean | undefined;
107
+ };
108
+ shipments?: {
109
+ ship_to: {
110
+ postal_code: string;
111
+ country_code: string;
112
+ address_line1: string;
113
+ city_locality: string;
114
+ state_province: string;
115
+ name?: string | undefined;
116
+ phone?: string | undefined;
117
+ company_name?: string | undefined;
118
+ address_line2?: string | undefined;
119
+ address_line3?: string | undefined;
120
+ address_residential_indicator?: string | undefined;
121
+ };
122
+ packages: {
123
+ weight: {
124
+ unit: "ounce" | "pound" | "gram" | "kilogram";
125
+ value: number;
126
+ };
127
+ dimensions?: {
128
+ unit: "inch" | "centimeter";
129
+ width: number;
130
+ height: number;
131
+ length: number;
132
+ } | undefined;
133
+ }[];
134
+ ship_from: {
135
+ postal_code: string;
136
+ country_code: string;
137
+ address_line1: string;
138
+ city_locality: string;
139
+ state_province: string;
140
+ name?: string | undefined;
141
+ phone?: string | undefined;
142
+ company_name?: string | undefined;
143
+ address_line2?: string | undefined;
144
+ address_line3?: string | undefined;
145
+ address_residential_indicator?: string | undefined;
146
+ };
147
+ customs?: Record<string, never> | undefined;
148
+ return_to?: {
149
+ postal_code: string;
150
+ country_code: string;
151
+ address_line1: string;
152
+ city_locality: string;
153
+ state_province: string;
154
+ name?: string | undefined;
155
+ phone?: string | undefined;
156
+ company_name?: string | undefined;
157
+ address_line2?: string | undefined;
158
+ address_line3?: string | undefined;
159
+ address_residential_indicator?: string | undefined;
160
+ } | undefined;
161
+ ship_date?: string | undefined;
162
+ carrier_id?: string | undefined;
163
+ confirmation?: string | undefined;
164
+ service_code?: string | undefined;
165
+ advanced_options?: Record<string, never> | undefined;
166
+ validate_address?: string | undefined;
167
+ insurance_provider?: string | undefined;
168
+ external_shipment_id?: string | undefined;
169
+ }[] | undefined;
170
+ shipment_ids?: string[] | undefined;
171
+ ship_to_service_point_id?: string | undefined;
172
+ ship_from_service_point_id?: string | undefined;
173
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
174
  //#endregion
8
175
  export { shipengineGetBulkRates };
9
176
  //# sourceMappingURL=get-bulk-rates.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-bulk-rates.d.mts","names":[],"sources":["../../src/actions/get-bulk-rates.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAyEiH;AAAA,cAchJ,4BAAA,EAA8B,CAAA,CAAE,UAEkD;AAAA,cAElF,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-bulk-rates.d.mts","names":[],"sources":["../../src/actions/get-bulk-rates.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuF3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAI5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMjC,MAAA;;;;;;;;;;;;;;;;;;uBAAA,MAAA"}
@@ -88,10 +88,10 @@ const ShipengineGetBulkRates_ErrorDetailSchema = z.object({
88
88
  }).describe("Error details for a bulk rate response.");
89
89
  const ShipengineGetBulkRates_BulkRateSchema = z.object({
90
90
  errors: z.array(ShipengineGetBulkRates_ErrorDetailSchema).describe("An array of errors that were returned while retrieving the rate"),
91
- status: z.string().describe("Status of the rate request (e.g., 'working', 'completed', 'error')"),
92
- created_at: z.string().describe("Timestamp when the rate request was created (ISO 8601 format)"),
93
- shipment_id: z.string().describe("A string that uniquely identifies the shipment"),
94
- rate_request_id: z.string().describe("A string that uniquely identifies the rate request")
91
+ status: z.string().describe("Status of the rate request (e.g., 'working', 'completed', 'error')").nullable(),
92
+ created_at: z.string().describe("Timestamp when the rate request was created (ISO 8601 format)").nullable(),
93
+ shipment_id: z.string().describe("A string that uniquely identifies the shipment").nullable(),
94
+ rate_request_id: z.string().describe("A string that uniquely identifies the rate request").nullable()
95
95
  }).describe("A bulk rate response for a single shipment.");
96
96
  const shipengineGetBulkRates = action("SHIPENGINE_GET_BULK_RATES", {
97
97
  slug: "shipengine-get-bulk-rates",
@@ -1 +1 @@
1
- {"version":3,"file":"get-bulk-rates.mjs","names":[],"sources":["../../src/actions/get-bulk-rates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShipengineGetBulkRatesInput: z.ZodTypeAny = 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.ZodTypeAny = 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.ZodTypeAny = 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')\"),\n created_at: z.string().describe(\"Timestamp when the rate request was created (ISO 8601 format)\"),\n shipment_id: z.string().describe(\"A string that uniquely identifies the shipment\"),\n rate_request_id: z.string().describe(\"A string that uniquely identifies the rate request\"),\n}).describe(\"A bulk rate response for a single shipment.\");\nexport const ShipengineGetBulkRatesOutput: z.ZodTypeAny = 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,8BAA4C,EAAE,OAAO;CAChE,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GACrD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GAC3D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GAC/D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;GACnD,eAAe,EAAE,OAAO,CAAC,CAAC,SA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,SAAS;CAC5N,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J,CAAC,CAAC,SAAS;AAC1N,CAAC,CAAC,CAAC,SAAS,gJAAgJ;AAC5J,MAAM,2CAAyD,EAAE,OAAO;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsD,EAAE,OAAO;CACnE,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iEAAiE;CACpI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACjF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;AAC3F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0GAA0G,EAC3K,CAAC,CAAC,CAAC,SAAS,kFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-bulk-rates.mjs","names":[],"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,8BAA8B,EAAE,OAAO;CAClD,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO;GAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;GAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;GACrD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS;GAC3D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;GAC/D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;GACnD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GAC9D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;GAC9D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;GACrD,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;GACvD,+BAA+B,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;EACxL,CAAC,CAAC,CAAC,SAAS,qBA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CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAwC,EAAE,OAAO;CACrD,QAAQ,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,iEAAiE;CACpI,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC1G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC5F,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAKzD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT0C,EAAE,OAAO,EACnD,OAAO,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,0GAA0G,EAC3K,CAAC,CAAC,CAAC,SAAS,kFAOF;AACV,CAAC"}
@@ -3,8 +3,8 @@ let zod = require("zod");
3
3
  //#region src/actions/get-insurance-balance.ts
4
4
  const ShipengineGetInsuranceBalanceInput = zod.z.object({}).describe("Request model for getting insurance funds balance. No parameters are required.");
5
5
  const ShipengineGetInsuranceBalance_BalanceDetailsSchema = zod.z.object({
6
- amount: zod.z.number().describe("Current balance amount available in the insurance fund"),
7
- currency: zod.z.string().describe("Currency code for the balance amount (e.g., 'USD', 'EUR')")
6
+ amount: zod.z.number().describe("Current balance amount available in the insurance fund").nullable(),
7
+ currency: zod.z.string().describe("Currency code for the balance amount (e.g., 'USD', 'EUR')").nullable()
8
8
  }).describe("Balance details");
9
9
  const ShipengineGetInsuranceBalanceOutput = zod.z.object({
10
10
  balance: ShipengineGetInsuranceBalance_BalanceDetailsSchema.nullable(),