@keystrokehq/shippo 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 (663) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-address.cjs +12 -12
  4. package/dist/actions/create-address.cjs.map +1 -1
  5. package/dist/actions/create-address.d.cts +67 -3
  6. package/dist/actions/create-address.d.cts.map +1 -1
  7. package/dist/actions/create-address.d.mts +67 -3
  8. package/dist/actions/create-address.d.mts.map +1 -1
  9. package/dist/actions/create-address.mjs +12 -12
  10. package/dist/actions/create-address.mjs.map +1 -1
  11. package/dist/actions/create-batch.cjs +7 -7
  12. package/dist/actions/create-batch.cjs.map +1 -1
  13. package/dist/actions/create-batch.d.cts +106 -3
  14. package/dist/actions/create-batch.d.cts.map +1 -1
  15. package/dist/actions/create-batch.d.mts +106 -3
  16. package/dist/actions/create-batch.d.mts.map +1 -1
  17. package/dist/actions/create-batch.mjs +7 -7
  18. package/dist/actions/create-batch.mjs.map +1 -1
  19. package/dist/actions/create-carrier-account.cjs +2 -2
  20. package/dist/actions/create-carrier-account.cjs.map +1 -1
  21. package/dist/actions/create-carrier-account.d.cts +96 -3
  22. package/dist/actions/create-carrier-account.d.cts.map +1 -1
  23. package/dist/actions/create-carrier-account.d.mts +96 -3
  24. package/dist/actions/create-carrier-account.d.mts.map +1 -1
  25. package/dist/actions/create-carrier-account.mjs +2 -2
  26. package/dist/actions/create-carrier-account.mjs.map +1 -1
  27. package/dist/actions/create-customs-item.cjs.map +1 -1
  28. package/dist/actions/create-customs-item.d.cts +47 -3
  29. package/dist/actions/create-customs-item.d.cts.map +1 -1
  30. package/dist/actions/create-customs-item.d.mts +47 -3
  31. package/dist/actions/create-customs-item.d.mts.map +1 -1
  32. package/dist/actions/create-customs-item.mjs.map +1 -1
  33. package/dist/actions/create-live-rate.cjs.map +1 -1
  34. package/dist/actions/create-live-rate.d.cts +107 -3
  35. package/dist/actions/create-live-rate.d.cts.map +1 -1
  36. package/dist/actions/create-live-rate.d.mts +107 -3
  37. package/dist/actions/create-live-rate.d.mts.map +1 -1
  38. package/dist/actions/create-live-rate.mjs.map +1 -1
  39. package/dist/actions/create-manifest.cjs +8 -8
  40. package/dist/actions/create-manifest.cjs.map +1 -1
  41. package/dist/actions/create-manifest.d.cts +31 -3
  42. package/dist/actions/create-manifest.d.cts.map +1 -1
  43. package/dist/actions/create-manifest.d.mts +31 -3
  44. package/dist/actions/create-manifest.d.mts.map +1 -1
  45. package/dist/actions/create-manifest.mjs +8 -8
  46. package/dist/actions/create-manifest.mjs.map +1 -1
  47. package/dist/actions/create-merchant-address.cjs.map +1 -1
  48. package/dist/actions/create-merchant-address.d.cts +62 -3
  49. package/dist/actions/create-merchant-address.d.cts.map +1 -1
  50. package/dist/actions/create-merchant-address.d.mts +62 -3
  51. package/dist/actions/create-merchant-address.d.mts.map +1 -1
  52. package/dist/actions/create-merchant-address.mjs.map +1 -1
  53. package/dist/actions/create-merchant-batch.cjs +10 -10
  54. package/dist/actions/create-merchant-batch.cjs.map +1 -1
  55. package/dist/actions/create-merchant-batch.d.cts +83 -3
  56. package/dist/actions/create-merchant-batch.d.cts.map +1 -1
  57. package/dist/actions/create-merchant-batch.d.mts +83 -3
  58. package/dist/actions/create-merchant-batch.d.mts.map +1 -1
  59. package/dist/actions/create-merchant-batch.mjs +10 -10
  60. package/dist/actions/create-merchant-batch.mjs.map +1 -1
  61. package/dist/actions/create-merchant-carrier-account.cjs.map +1 -1
  62. package/dist/actions/create-merchant-carrier-account.d.cts +100 -3
  63. package/dist/actions/create-merchant-carrier-account.d.cts.map +1 -1
  64. package/dist/actions/create-merchant-carrier-account.d.mts +100 -3
  65. package/dist/actions/create-merchant-carrier-account.d.mts.map +1 -1
  66. package/dist/actions/create-merchant-carrier-account.mjs.map +1 -1
  67. package/dist/actions/create-merchant-customs-declaration.cjs.map +1 -1
  68. package/dist/actions/create-merchant-customs-declaration.d.cts +121 -3
  69. package/dist/actions/create-merchant-customs-declaration.d.cts.map +1 -1
  70. package/dist/actions/create-merchant-customs-declaration.d.mts +121 -3
  71. package/dist/actions/create-merchant-customs-declaration.d.mts.map +1 -1
  72. package/dist/actions/create-merchant-customs-declaration.mjs.map +1 -1
  73. package/dist/actions/create-merchant-customs-item.cjs.map +1 -1
  74. package/dist/actions/create-merchant-customs-item.d.cts +62 -3
  75. package/dist/actions/create-merchant-customs-item.d.cts.map +1 -1
  76. package/dist/actions/create-merchant-customs-item.d.mts +62 -3
  77. package/dist/actions/create-merchant-customs-item.d.mts.map +1 -1
  78. package/dist/actions/create-merchant-customs-item.mjs.map +1 -1
  79. package/dist/actions/create-merchant-order.cjs +1 -1
  80. package/dist/actions/create-merchant-order.cjs.map +1 -1
  81. package/dist/actions/create-merchant-order.d.cts +163 -3
  82. package/dist/actions/create-merchant-order.d.cts.map +1 -1
  83. package/dist/actions/create-merchant-order.d.mts +163 -3
  84. package/dist/actions/create-merchant-order.d.mts.map +1 -1
  85. package/dist/actions/create-merchant-order.mjs +1 -1
  86. package/dist/actions/create-merchant-order.mjs.map +1 -1
  87. package/dist/actions/create-merchant-parcel.cjs.map +1 -1
  88. package/dist/actions/create-merchant-parcel.d.cts +165 -3
  89. package/dist/actions/create-merchant-parcel.d.cts.map +1 -1
  90. package/dist/actions/create-merchant-parcel.d.mts +165 -3
  91. package/dist/actions/create-merchant-parcel.d.mts.map +1 -1
  92. package/dist/actions/create-merchant-parcel.mjs.map +1 -1
  93. package/dist/actions/create-merchant-refund.cjs.map +1 -1
  94. package/dist/actions/create-merchant-refund.d.cts +26 -3
  95. package/dist/actions/create-merchant-refund.d.cts.map +1 -1
  96. package/dist/actions/create-merchant-refund.d.mts +26 -3
  97. package/dist/actions/create-merchant-refund.d.mts.map +1 -1
  98. package/dist/actions/create-merchant-refund.mjs.map +1 -1
  99. package/dist/actions/create-merchant-shipment.cjs.map +1 -1
  100. package/dist/actions/create-merchant-shipment.d.cts +282 -3
  101. package/dist/actions/create-merchant-shipment.d.cts.map +1 -1
  102. package/dist/actions/create-merchant-shipment.d.mts +282 -3
  103. package/dist/actions/create-merchant-shipment.d.mts.map +1 -1
  104. package/dist/actions/create-merchant-shipment.mjs.map +1 -1
  105. package/dist/actions/create-merchant-transaction.cjs.map +1 -1
  106. package/dist/actions/create-merchant-transaction.d.cts +59 -3
  107. package/dist/actions/create-merchant-transaction.d.cts.map +1 -1
  108. package/dist/actions/create-merchant-transaction.d.mts +59 -3
  109. package/dist/actions/create-merchant-transaction.d.mts.map +1 -1
  110. package/dist/actions/create-merchant-transaction.mjs.map +1 -1
  111. package/dist/actions/create-order.cjs +2 -2
  112. package/dist/actions/create-order.cjs.map +1 -1
  113. package/dist/actions/create-order.d.cts +182 -3
  114. package/dist/actions/create-order.d.cts.map +1 -1
  115. package/dist/actions/create-order.d.mts +182 -3
  116. package/dist/actions/create-order.d.mts.map +1 -1
  117. package/dist/actions/create-order.mjs +2 -2
  118. package/dist/actions/create-order.mjs.map +1 -1
  119. package/dist/actions/create-parcel.cjs +11 -11
  120. package/dist/actions/create-parcel.cjs.map +1 -1
  121. package/dist/actions/create-parcel.d.cts +89 -3
  122. package/dist/actions/create-parcel.d.cts.map +1 -1
  123. package/dist/actions/create-parcel.d.mts +89 -3
  124. package/dist/actions/create-parcel.d.mts.map +1 -1
  125. package/dist/actions/create-parcel.mjs +11 -11
  126. package/dist/actions/create-parcel.mjs.map +1 -1
  127. package/dist/actions/create-refund.cjs.map +1 -1
  128. package/dist/actions/create-refund.d.cts +24 -3
  129. package/dist/actions/create-refund.d.cts.map +1 -1
  130. package/dist/actions/create-refund.d.mts +24 -3
  131. package/dist/actions/create-refund.d.mts.map +1 -1
  132. package/dist/actions/create-refund.mjs.map +1 -1
  133. package/dist/actions/create-service-group.cjs +7 -7
  134. package/dist/actions/create-service-group.cjs.map +1 -1
  135. package/dist/actions/create-service-group.d.cts +50 -3
  136. package/dist/actions/create-service-group.d.cts.map +1 -1
  137. package/dist/actions/create-service-group.d.mts +50 -3
  138. package/dist/actions/create-service-group.d.mts.map +1 -1
  139. package/dist/actions/create-service-group.mjs +7 -7
  140. package/dist/actions/create-service-group.mjs.map +1 -1
  141. package/dist/actions/create-shipment.cjs +6 -6
  142. package/dist/actions/create-shipment.cjs.map +1 -1
  143. package/dist/actions/create-shipment.d.cts +223 -3
  144. package/dist/actions/create-shipment.d.cts.map +1 -1
  145. package/dist/actions/create-shipment.d.mts +223 -3
  146. package/dist/actions/create-shipment.d.mts.map +1 -1
  147. package/dist/actions/create-shipment.mjs +6 -6
  148. package/dist/actions/create-shipment.mjs.map +1 -1
  149. package/dist/actions/create-track.cjs +2 -2
  150. package/dist/actions/create-track.cjs.map +1 -1
  151. package/dist/actions/create-track.d.cts +66 -3
  152. package/dist/actions/create-track.d.cts.map +1 -1
  153. package/dist/actions/create-track.d.mts +66 -3
  154. package/dist/actions/create-track.d.mts.map +1 -1
  155. package/dist/actions/create-track.mjs +2 -2
  156. package/dist/actions/create-track.mjs.map +1 -1
  157. package/dist/actions/create-transaction.cjs.map +1 -1
  158. package/dist/actions/create-transaction.d.cts +58 -3
  159. package/dist/actions/create-transaction.d.cts.map +1 -1
  160. package/dist/actions/create-transaction.d.mts +58 -3
  161. package/dist/actions/create-transaction.d.mts.map +1 -1
  162. package/dist/actions/create-transaction.mjs.map +1 -1
  163. package/dist/actions/create-user-parcel-template.cjs.map +1 -1
  164. package/dist/actions/create-user-parcel-template.d.cts +35 -3
  165. package/dist/actions/create-user-parcel-template.d.cts.map +1 -1
  166. package/dist/actions/create-user-parcel-template.d.mts +35 -3
  167. package/dist/actions/create-user-parcel-template.d.mts.map +1 -1
  168. package/dist/actions/create-user-parcel-template.mjs.map +1 -1
  169. package/dist/actions/create-webhook.cjs +7 -7
  170. package/dist/actions/create-webhook.cjs.map +1 -1
  171. package/dist/actions/create-webhook.d.cts +27 -3
  172. package/dist/actions/create-webhook.d.cts.map +1 -1
  173. package/dist/actions/create-webhook.d.mts +27 -3
  174. package/dist/actions/create-webhook.d.mts.map +1 -1
  175. package/dist/actions/create-webhook.mjs +7 -7
  176. package/dist/actions/create-webhook.mjs.map +1 -1
  177. package/dist/actions/delete-default-parcel-template.cjs +1 -1
  178. package/dist/actions/delete-default-parcel-template.cjs.map +1 -1
  179. package/dist/actions/delete-default-parcel-template.d.cts +9 -3
  180. package/dist/actions/delete-default-parcel-template.d.cts.map +1 -1
  181. package/dist/actions/delete-default-parcel-template.d.mts +9 -3
  182. package/dist/actions/delete-default-parcel-template.d.mts.map +1 -1
  183. package/dist/actions/delete-default-parcel-template.mjs +1 -1
  184. package/dist/actions/delete-default-parcel-template.mjs.map +1 -1
  185. package/dist/actions/delete-user-parcel-template.cjs +1 -1
  186. package/dist/actions/delete-user-parcel-template.cjs.map +1 -1
  187. package/dist/actions/delete-user-parcel-template.d.cts +11 -3
  188. package/dist/actions/delete-user-parcel-template.d.cts.map +1 -1
  189. package/dist/actions/delete-user-parcel-template.d.mts +11 -3
  190. package/dist/actions/delete-user-parcel-template.d.mts.map +1 -1
  191. package/dist/actions/delete-user-parcel-template.mjs +1 -1
  192. package/dist/actions/delete-user-parcel-template.mjs.map +1 -1
  193. package/dist/actions/delete-webhook.cjs +1 -1
  194. package/dist/actions/delete-webhook.cjs.map +1 -1
  195. package/dist/actions/delete-webhook.d.cts +11 -3
  196. package/dist/actions/delete-webhook.d.cts.map +1 -1
  197. package/dist/actions/delete-webhook.d.mts +11 -3
  198. package/dist/actions/delete-webhook.d.mts.map +1 -1
  199. package/dist/actions/delete-webhook.mjs +1 -1
  200. package/dist/actions/delete-webhook.mjs.map +1 -1
  201. package/dist/actions/get-address.cjs +2 -2
  202. package/dist/actions/get-address.cjs.map +1 -1
  203. package/dist/actions/get-address.d.cts +39 -3
  204. package/dist/actions/get-address.d.cts.map +1 -1
  205. package/dist/actions/get-address.d.mts +39 -3
  206. package/dist/actions/get-address.d.mts.map +1 -1
  207. package/dist/actions/get-address.mjs +2 -2
  208. package/dist/actions/get-address.mjs.map +1 -1
  209. package/dist/actions/get-carrier-account.cjs +2 -2
  210. package/dist/actions/get-carrier-account.cjs.map +1 -1
  211. package/dist/actions/get-carrier-account.d.cts +19 -3
  212. package/dist/actions/get-carrier-account.d.cts.map +1 -1
  213. package/dist/actions/get-carrier-account.d.mts +19 -3
  214. package/dist/actions/get-carrier-account.d.mts.map +1 -1
  215. package/dist/actions/get-carrier-account.mjs +2 -2
  216. package/dist/actions/get-carrier-account.mjs.map +1 -1
  217. package/dist/actions/get-carrier-parcel-template.cjs.map +1 -1
  218. package/dist/actions/get-carrier-parcel-template.d.cts +25 -3
  219. package/dist/actions/get-carrier-parcel-template.d.cts.map +1 -1
  220. package/dist/actions/get-carrier-parcel-template.d.mts +25 -3
  221. package/dist/actions/get-carrier-parcel-template.d.mts.map +1 -1
  222. package/dist/actions/get-carrier-parcel-template.mjs.map +1 -1
  223. package/dist/actions/get-carrier-registration-status.cjs.map +1 -1
  224. package/dist/actions/get-carrier-registration-status.d.cts +14 -3
  225. package/dist/actions/get-carrier-registration-status.d.cts.map +1 -1
  226. package/dist/actions/get-carrier-registration-status.d.mts +14 -3
  227. package/dist/actions/get-carrier-registration-status.d.mts.map +1 -1
  228. package/dist/actions/get-carrier-registration-status.mjs.map +1 -1
  229. package/dist/actions/get-customs-declaration.cjs +4 -4
  230. package/dist/actions/get-customs-declaration.cjs.map +1 -1
  231. package/dist/actions/get-customs-declaration.d.cts +48 -3
  232. package/dist/actions/get-customs-declaration.d.cts.map +1 -1
  233. package/dist/actions/get-customs-declaration.d.mts +48 -3
  234. package/dist/actions/get-customs-declaration.d.mts.map +1 -1
  235. package/dist/actions/get-customs-declaration.mjs +4 -4
  236. package/dist/actions/get-customs-declaration.mjs.map +1 -1
  237. package/dist/actions/get-customs-item.cjs +7 -7
  238. package/dist/actions/get-customs-item.cjs.map +1 -1
  239. package/dist/actions/get-customs-item.d.cts +29 -3
  240. package/dist/actions/get-customs-item.d.cts.map +1 -1
  241. package/dist/actions/get-customs-item.d.mts +29 -3
  242. package/dist/actions/get-customs-item.d.mts.map +1 -1
  243. package/dist/actions/get-customs-item.mjs +7 -7
  244. package/dist/actions/get-customs-item.mjs.map +1 -1
  245. package/dist/actions/get-default-parcel-template.cjs.map +1 -1
  246. package/dist/actions/get-default-parcel-template.d.cts +22 -3
  247. package/dist/actions/get-default-parcel-template.d.cts.map +1 -1
  248. package/dist/actions/get-default-parcel-template.d.mts +22 -3
  249. package/dist/actions/get-default-parcel-template.d.mts.map +1 -1
  250. package/dist/actions/get-default-parcel-template.mjs.map +1 -1
  251. package/dist/actions/get-merchant-address.cjs +1 -1
  252. package/dist/actions/get-merchant-address.cjs.map +1 -1
  253. package/dist/actions/get-merchant-address.d.cts +38 -3
  254. package/dist/actions/get-merchant-address.d.cts.map +1 -1
  255. package/dist/actions/get-merchant-address.d.mts +38 -3
  256. package/dist/actions/get-merchant-address.d.mts.map +1 -1
  257. package/dist/actions/get-merchant-address.mjs +1 -1
  258. package/dist/actions/get-merchant-address.mjs.map +1 -1
  259. package/dist/actions/get-merchant-batch.cjs +10 -10
  260. package/dist/actions/get-merchant-batch.cjs.map +1 -1
  261. package/dist/actions/get-merchant-batch.d.cts +50 -3
  262. package/dist/actions/get-merchant-batch.d.cts.map +1 -1
  263. package/dist/actions/get-merchant-batch.d.mts +50 -3
  264. package/dist/actions/get-merchant-batch.d.mts.map +1 -1
  265. package/dist/actions/get-merchant-batch.mjs +10 -10
  266. package/dist/actions/get-merchant-batch.mjs.map +1 -1
  267. package/dist/actions/get-merchant-carrier-account.cjs.map +1 -1
  268. package/dist/actions/get-merchant-carrier-account.d.cts +44 -3
  269. package/dist/actions/get-merchant-carrier-account.d.cts.map +1 -1
  270. package/dist/actions/get-merchant-carrier-account.d.mts +44 -3
  271. package/dist/actions/get-merchant-carrier-account.d.mts.map +1 -1
  272. package/dist/actions/get-merchant-carrier-account.mjs.map +1 -1
  273. package/dist/actions/get-merchant-carrier-registration-status.cjs.map +1 -1
  274. package/dist/actions/get-merchant-carrier-registration-status.d.cts +21 -3
  275. package/dist/actions/get-merchant-carrier-registration-status.d.cts.map +1 -1
  276. package/dist/actions/get-merchant-carrier-registration-status.d.mts +21 -3
  277. package/dist/actions/get-merchant-carrier-registration-status.d.mts.map +1 -1
  278. package/dist/actions/get-merchant-carrier-registration-status.mjs.map +1 -1
  279. package/dist/actions/get-merchant-customs-declaration.cjs.map +1 -1
  280. package/dist/actions/get-merchant-customs-declaration.d.cts +40 -3
  281. package/dist/actions/get-merchant-customs-declaration.d.cts.map +1 -1
  282. package/dist/actions/get-merchant-customs-declaration.d.mts +40 -3
  283. package/dist/actions/get-merchant-customs-declaration.d.mts.map +1 -1
  284. package/dist/actions/get-merchant-customs-declaration.mjs.map +1 -1
  285. package/dist/actions/get-merchant-customs-item.cjs +7 -7
  286. package/dist/actions/get-merchant-customs-item.cjs.map +1 -1
  287. package/dist/actions/get-merchant-customs-item.d.cts +31 -3
  288. package/dist/actions/get-merchant-customs-item.d.cts.map +1 -1
  289. package/dist/actions/get-merchant-customs-item.d.mts +31 -3
  290. package/dist/actions/get-merchant-customs-item.d.mts.map +1 -1
  291. package/dist/actions/get-merchant-customs-item.mjs +7 -7
  292. package/dist/actions/get-merchant-customs-item.mjs.map +1 -1
  293. package/dist/actions/get-merchant-manifest.cjs +7 -7
  294. package/dist/actions/get-merchant-manifest.cjs.map +1 -1
  295. package/dist/actions/get-merchant-manifest.d.cts +26 -3
  296. package/dist/actions/get-merchant-manifest.d.cts.map +1 -1
  297. package/dist/actions/get-merchant-manifest.d.mts +26 -3
  298. package/dist/actions/get-merchant-manifest.d.mts.map +1 -1
  299. package/dist/actions/get-merchant-manifest.mjs +7 -7
  300. package/dist/actions/get-merchant-manifest.mjs.map +1 -1
  301. package/dist/actions/get-merchant-order.cjs +7 -7
  302. package/dist/actions/get-merchant-order.cjs.map +1 -1
  303. package/dist/actions/get-merchant-order.d.cts +75 -3
  304. package/dist/actions/get-merchant-order.d.cts.map +1 -1
  305. package/dist/actions/get-merchant-order.d.mts +75 -3
  306. package/dist/actions/get-merchant-order.d.mts.map +1 -1
  307. package/dist/actions/get-merchant-order.mjs +7 -7
  308. package/dist/actions/get-merchant-order.mjs.map +1 -1
  309. package/dist/actions/get-merchant-parcel.cjs.map +1 -1
  310. package/dist/actions/get-merchant-parcel.d.cts +39 -3
  311. package/dist/actions/get-merchant-parcel.d.cts.map +1 -1
  312. package/dist/actions/get-merchant-parcel.d.mts +39 -3
  313. package/dist/actions/get-merchant-parcel.d.mts.map +1 -1
  314. package/dist/actions/get-merchant-parcel.mjs.map +1 -1
  315. package/dist/actions/get-merchant-rate.cjs +10 -10
  316. package/dist/actions/get-merchant-rate.cjs.map +1 -1
  317. package/dist/actions/get-merchant-rate.d.cts +43 -3
  318. package/dist/actions/get-merchant-rate.d.cts.map +1 -1
  319. package/dist/actions/get-merchant-rate.d.mts +43 -3
  320. package/dist/actions/get-merchant-rate.d.mts.map +1 -1
  321. package/dist/actions/get-merchant-rate.mjs +10 -10
  322. package/dist/actions/get-merchant-rate.mjs.map +1 -1
  323. package/dist/actions/get-merchant-refund.cjs.map +1 -1
  324. package/dist/actions/get-merchant-refund.d.cts +24 -3
  325. package/dist/actions/get-merchant-refund.d.cts.map +1 -1
  326. package/dist/actions/get-merchant-refund.d.mts +24 -3
  327. package/dist/actions/get-merchant-refund.d.mts.map +1 -1
  328. package/dist/actions/get-merchant-refund.mjs.map +1 -1
  329. package/dist/actions/get-merchant-shipment.cjs.map +1 -1
  330. package/dist/actions/get-merchant-shipment.d.cts +140 -3
  331. package/dist/actions/get-merchant-shipment.d.cts.map +1 -1
  332. package/dist/actions/get-merchant-shipment.d.mts +140 -3
  333. package/dist/actions/get-merchant-shipment.d.mts.map +1 -1
  334. package/dist/actions/get-merchant-shipment.mjs.map +1 -1
  335. package/dist/actions/get-merchant-track.cjs +14 -14
  336. package/dist/actions/get-merchant-track.cjs.map +1 -1
  337. package/dist/actions/get-merchant-track.d.cts +66 -3
  338. package/dist/actions/get-merchant-track.d.cts.map +1 -1
  339. package/dist/actions/get-merchant-track.d.mts +66 -3
  340. package/dist/actions/get-merchant-track.d.mts.map +1 -1
  341. package/dist/actions/get-merchant-track.mjs +14 -14
  342. package/dist/actions/get-merchant-track.mjs.map +1 -1
  343. package/dist/actions/get-merchant-transaction.cjs.map +1 -1
  344. package/dist/actions/get-merchant-transaction.d.cts +43 -3
  345. package/dist/actions/get-merchant-transaction.d.cts.map +1 -1
  346. package/dist/actions/get-merchant-transaction.d.mts +43 -3
  347. package/dist/actions/get-merchant-transaction.d.mts.map +1 -1
  348. package/dist/actions/get-merchant-transaction.mjs.map +1 -1
  349. package/dist/actions/get-merchant.cjs +4 -4
  350. package/dist/actions/get-merchant.cjs.map +1 -1
  351. package/dist/actions/get-merchant.d.cts +17 -3
  352. package/dist/actions/get-merchant.d.cts.map +1 -1
  353. package/dist/actions/get-merchant.d.mts +17 -3
  354. package/dist/actions/get-merchant.d.mts.map +1 -1
  355. package/dist/actions/get-merchant.mjs +4 -4
  356. package/dist/actions/get-merchant.mjs.map +1 -1
  357. package/dist/actions/get-order.cjs +1 -1
  358. package/dist/actions/get-order.cjs.map +1 -1
  359. package/dist/actions/get-order.d.cts +77 -3
  360. package/dist/actions/get-order.d.cts.map +1 -1
  361. package/dist/actions/get-order.d.mts +77 -3
  362. package/dist/actions/get-order.d.mts.map +1 -1
  363. package/dist/actions/get-order.mjs +1 -1
  364. package/dist/actions/get-order.mjs.map +1 -1
  365. package/dist/actions/get-parcel.cjs.map +1 -1
  366. package/dist/actions/get-parcel.d.cts +37 -3
  367. package/dist/actions/get-parcel.d.cts.map +1 -1
  368. package/dist/actions/get-parcel.d.mts +37 -3
  369. package/dist/actions/get-parcel.d.mts.map +1 -1
  370. package/dist/actions/get-parcel.mjs.map +1 -1
  371. package/dist/actions/get-rate.cjs +10 -10
  372. package/dist/actions/get-rate.cjs.map +1 -1
  373. package/dist/actions/get-rate.d.cts +42 -3
  374. package/dist/actions/get-rate.d.cts.map +1 -1
  375. package/dist/actions/get-rate.d.mts +42 -3
  376. package/dist/actions/get-rate.d.mts.map +1 -1
  377. package/dist/actions/get-rate.mjs +10 -10
  378. package/dist/actions/get-rate.mjs.map +1 -1
  379. package/dist/actions/get-refund.cjs.map +1 -1
  380. package/dist/actions/get-refund.d.cts +22 -3
  381. package/dist/actions/get-refund.d.cts.map +1 -1
  382. package/dist/actions/get-refund.d.mts +22 -3
  383. package/dist/actions/get-refund.d.mts.map +1 -1
  384. package/dist/actions/get-refund.mjs.map +1 -1
  385. package/dist/actions/get-shipment.cjs +5 -5
  386. package/dist/actions/get-shipment.cjs.map +1 -1
  387. package/dist/actions/get-shipment.d.cts +110 -3
  388. package/dist/actions/get-shipment.d.cts.map +1 -1
  389. package/dist/actions/get-shipment.d.mts +110 -3
  390. package/dist/actions/get-shipment.d.mts.map +1 -1
  391. package/dist/actions/get-shipment.mjs +5 -5
  392. package/dist/actions/get-shipment.mjs.map +1 -1
  393. package/dist/actions/get-shippo-account.cjs +5 -5
  394. package/dist/actions/get-shippo-account.cjs.map +1 -1
  395. package/dist/actions/get-shippo-account.d.cts +17 -3
  396. package/dist/actions/get-shippo-account.d.cts.map +1 -1
  397. package/dist/actions/get-shippo-account.d.mts +17 -3
  398. package/dist/actions/get-shippo-account.d.mts.map +1 -1
  399. package/dist/actions/get-shippo-account.mjs +5 -5
  400. package/dist/actions/get-shippo-account.mjs.map +1 -1
  401. package/dist/actions/get-track.cjs +14 -14
  402. package/dist/actions/get-track.cjs.map +1 -1
  403. package/dist/actions/get-track.d.cts +64 -3
  404. package/dist/actions/get-track.d.cts.map +1 -1
  405. package/dist/actions/get-track.d.mts +64 -3
  406. package/dist/actions/get-track.d.mts.map +1 -1
  407. package/dist/actions/get-track.mjs +14 -14
  408. package/dist/actions/get-track.mjs.map +1 -1
  409. package/dist/actions/get-transaction.cjs.map +1 -1
  410. package/dist/actions/get-transaction.d.cts +30 -3
  411. package/dist/actions/get-transaction.d.cts.map +1 -1
  412. package/dist/actions/get-transaction.d.mts +30 -3
  413. package/dist/actions/get-transaction.d.mts.map +1 -1
  414. package/dist/actions/get-transaction.mjs.map +1 -1
  415. package/dist/actions/get-user-parcel-template.cjs.map +1 -1
  416. package/dist/actions/get-user-parcel-template.d.cts +31 -3
  417. package/dist/actions/get-user-parcel-template.d.cts.map +1 -1
  418. package/dist/actions/get-user-parcel-template.d.mts +31 -3
  419. package/dist/actions/get-user-parcel-template.d.mts.map +1 -1
  420. package/dist/actions/get-user-parcel-template.mjs.map +1 -1
  421. package/dist/actions/get-webhook.cjs +8 -8
  422. package/dist/actions/get-webhook.cjs.map +1 -1
  423. package/dist/actions/get-webhook.d.cts +16 -3
  424. package/dist/actions/get-webhook.d.cts.map +1 -1
  425. package/dist/actions/get-webhook.d.mts +16 -3
  426. package/dist/actions/get-webhook.d.mts.map +1 -1
  427. package/dist/actions/get-webhook.mjs +8 -8
  428. package/dist/actions/get-webhook.mjs.map +1 -1
  429. package/dist/actions/list-addresses.cjs.map +1 -1
  430. package/dist/actions/list-addresses.d.cts +45 -3
  431. package/dist/actions/list-addresses.d.cts.map +1 -1
  432. package/dist/actions/list-addresses.d.mts +45 -3
  433. package/dist/actions/list-addresses.d.mts.map +1 -1
  434. package/dist/actions/list-addresses.mjs.map +1 -1
  435. package/dist/actions/list-carrier-accounts.cjs.map +1 -1
  436. package/dist/actions/list-carrier-accounts.d.cts +32 -3
  437. package/dist/actions/list-carrier-accounts.d.cts.map +1 -1
  438. package/dist/actions/list-carrier-accounts.d.mts +32 -3
  439. package/dist/actions/list-carrier-accounts.d.mts.map +1 -1
  440. package/dist/actions/list-carrier-accounts.mjs.map +1 -1
  441. package/dist/actions/list-carrier-parcel-templates.cjs.map +1 -1
  442. package/dist/actions/list-carrier-parcel-templates.d.cts +33 -3
  443. package/dist/actions/list-carrier-parcel-templates.d.cts.map +1 -1
  444. package/dist/actions/list-carrier-parcel-templates.d.mts +33 -3
  445. package/dist/actions/list-carrier-parcel-templates.d.mts.map +1 -1
  446. package/dist/actions/list-carrier-parcel-templates.mjs.map +1 -1
  447. package/dist/actions/list-customs-declarations.cjs.map +1 -1
  448. package/dist/actions/list-customs-declarations.d.cts +63 -3
  449. package/dist/actions/list-customs-declarations.d.cts.map +1 -1
  450. package/dist/actions/list-customs-declarations.d.mts +63 -3
  451. package/dist/actions/list-customs-declarations.d.mts.map +1 -1
  452. package/dist/actions/list-customs-declarations.mjs.map +1 -1
  453. package/dist/actions/list-customs-items.cjs.map +1 -1
  454. package/dist/actions/list-customs-items.d.cts +32 -3
  455. package/dist/actions/list-customs-items.d.cts.map +1 -1
  456. package/dist/actions/list-customs-items.d.mts +32 -3
  457. package/dist/actions/list-customs-items.d.mts.map +1 -1
  458. package/dist/actions/list-customs-items.mjs.map +1 -1
  459. package/dist/actions/list-manifests.cjs.map +1 -1
  460. package/dist/actions/list-manifests.d.cts +28 -3
  461. package/dist/actions/list-manifests.d.cts.map +1 -1
  462. package/dist/actions/list-manifests.d.mts +28 -3
  463. package/dist/actions/list-manifests.d.mts.map +1 -1
  464. package/dist/actions/list-manifests.mjs.map +1 -1
  465. package/dist/actions/list-merchant-addresses.cjs.map +1 -1
  466. package/dist/actions/list-merchant-addresses.d.cts +44 -3
  467. package/dist/actions/list-merchant-addresses.d.cts.map +1 -1
  468. package/dist/actions/list-merchant-addresses.d.mts +44 -3
  469. package/dist/actions/list-merchant-addresses.d.mts.map +1 -1
  470. package/dist/actions/list-merchant-addresses.mjs.map +1 -1
  471. package/dist/actions/list-merchant-carrier-accounts.cjs.map +1 -1
  472. package/dist/actions/list-merchant-carrier-accounts.d.cts +27 -3
  473. package/dist/actions/list-merchant-carrier-accounts.d.cts.map +1 -1
  474. package/dist/actions/list-merchant-carrier-accounts.d.mts +27 -3
  475. package/dist/actions/list-merchant-carrier-accounts.d.mts.map +1 -1
  476. package/dist/actions/list-merchant-carrier-accounts.mjs.map +1 -1
  477. package/dist/actions/list-merchant-customs-declarations.cjs.map +1 -1
  478. package/dist/actions/list-merchant-customs-declarations.d.cts +44 -3
  479. package/dist/actions/list-merchant-customs-declarations.d.cts.map +1 -1
  480. package/dist/actions/list-merchant-customs-declarations.d.mts +44 -3
  481. package/dist/actions/list-merchant-customs-declarations.d.mts.map +1 -1
  482. package/dist/actions/list-merchant-customs-declarations.mjs.map +1 -1
  483. package/dist/actions/list-merchant-customs-items.cjs.map +1 -1
  484. package/dist/actions/list-merchant-customs-items.d.cts +35 -3
  485. package/dist/actions/list-merchant-customs-items.d.cts.map +1 -1
  486. package/dist/actions/list-merchant-customs-items.d.mts +35 -3
  487. package/dist/actions/list-merchant-customs-items.d.mts.map +1 -1
  488. package/dist/actions/list-merchant-customs-items.mjs.map +1 -1
  489. package/dist/actions/list-merchant-manifests.cjs.map +1 -1
  490. package/dist/actions/list-merchant-manifests.d.cts +31 -3
  491. package/dist/actions/list-merchant-manifests.d.cts.map +1 -1
  492. package/dist/actions/list-merchant-manifests.d.mts +31 -3
  493. package/dist/actions/list-merchant-manifests.d.mts.map +1 -1
  494. package/dist/actions/list-merchant-manifests.mjs.map +1 -1
  495. package/dist/actions/list-merchant-parcels.cjs.map +1 -1
  496. package/dist/actions/list-merchant-parcels.d.cts +33 -3
  497. package/dist/actions/list-merchant-parcels.d.cts.map +1 -1
  498. package/dist/actions/list-merchant-parcels.d.mts +33 -3
  499. package/dist/actions/list-merchant-parcels.d.mts.map +1 -1
  500. package/dist/actions/list-merchant-parcels.mjs.map +1 -1
  501. package/dist/actions/list-merchant-shipment-rates-by-currency.cjs.map +1 -1
  502. package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts +54 -3
  503. package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts.map +1 -1
  504. package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts +54 -3
  505. package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts.map +1 -1
  506. package/dist/actions/list-merchant-shipment-rates-by-currency.mjs.map +1 -1
  507. package/dist/actions/list-merchant-shipments.cjs.map +1 -1
  508. package/dist/actions/list-merchant-shipments.d.cts +110 -3
  509. package/dist/actions/list-merchant-shipments.d.cts.map +1 -1
  510. package/dist/actions/list-merchant-shipments.d.mts +110 -3
  511. package/dist/actions/list-merchant-shipments.d.mts.map +1 -1
  512. package/dist/actions/list-merchant-shipments.mjs.map +1 -1
  513. package/dist/actions/list-merchant-transactions.cjs.map +1 -1
  514. package/dist/actions/list-merchant-transactions.d.cts +38 -3
  515. package/dist/actions/list-merchant-transactions.d.cts.map +1 -1
  516. package/dist/actions/list-merchant-transactions.d.mts +38 -3
  517. package/dist/actions/list-merchant-transactions.d.mts.map +1 -1
  518. package/dist/actions/list-merchant-transactions.mjs.map +1 -1
  519. package/dist/actions/list-merchants.cjs +3 -3
  520. package/dist/actions/list-merchants.cjs.map +1 -1
  521. package/dist/actions/list-merchants.d.cts +23 -3
  522. package/dist/actions/list-merchants.d.cts.map +1 -1
  523. package/dist/actions/list-merchants.d.mts +23 -3
  524. package/dist/actions/list-merchants.d.mts.map +1 -1
  525. package/dist/actions/list-merchants.mjs +3 -3
  526. package/dist/actions/list-merchants.mjs.map +1 -1
  527. package/dist/actions/list-orders.cjs.map +1 -1
  528. package/dist/actions/list-orders.d.cts +81 -3
  529. package/dist/actions/list-orders.d.cts.map +1 -1
  530. package/dist/actions/list-orders.d.mts +81 -3
  531. package/dist/actions/list-orders.d.mts.map +1 -1
  532. package/dist/actions/list-orders.mjs.map +1 -1
  533. package/dist/actions/list-refunds.cjs +6 -6
  534. package/dist/actions/list-refunds.cjs.map +1 -1
  535. package/dist/actions/list-refunds.d.cts +21 -3
  536. package/dist/actions/list-refunds.d.cts.map +1 -1
  537. package/dist/actions/list-refunds.d.mts +21 -3
  538. package/dist/actions/list-refunds.d.mts.map +1 -1
  539. package/dist/actions/list-refunds.mjs +6 -6
  540. package/dist/actions/list-refunds.mjs.map +1 -1
  541. package/dist/actions/list-service-groups.cjs +4 -4
  542. package/dist/actions/list-service-groups.cjs.map +1 -1
  543. package/dist/actions/list-service-groups.d.cts +24 -3
  544. package/dist/actions/list-service-groups.d.cts.map +1 -1
  545. package/dist/actions/list-service-groups.d.mts +24 -3
  546. package/dist/actions/list-service-groups.d.mts.map +1 -1
  547. package/dist/actions/list-service-groups.mjs +4 -4
  548. package/dist/actions/list-service-groups.mjs.map +1 -1
  549. package/dist/actions/list-shipment-rates-by-currency.cjs.map +1 -1
  550. package/dist/actions/list-shipment-rates-by-currency.d.cts +52 -3
  551. package/dist/actions/list-shipment-rates-by-currency.d.cts.map +1 -1
  552. package/dist/actions/list-shipment-rates-by-currency.d.mts +52 -3
  553. package/dist/actions/list-shipment-rates-by-currency.d.mts.map +1 -1
  554. package/dist/actions/list-shipment-rates-by-currency.mjs.map +1 -1
  555. package/dist/actions/list-shipment-rates.cjs.map +1 -1
  556. package/dist/actions/list-shipment-rates.d.cts +50 -3
  557. package/dist/actions/list-shipment-rates.d.cts.map +1 -1
  558. package/dist/actions/list-shipment-rates.d.mts +50 -3
  559. package/dist/actions/list-shipment-rates.d.mts.map +1 -1
  560. package/dist/actions/list-shipment-rates.mjs.map +1 -1
  561. package/dist/actions/list-shipments.cjs.map +1 -1
  562. package/dist/actions/list-shipments.d.cts +108 -3
  563. package/dist/actions/list-shipments.d.cts.map +1 -1
  564. package/dist/actions/list-shipments.d.mts +108 -3
  565. package/dist/actions/list-shipments.d.mts.map +1 -1
  566. package/dist/actions/list-shipments.mjs.map +1 -1
  567. package/dist/actions/list-shippo-accounts.cjs +6 -6
  568. package/dist/actions/list-shippo-accounts.cjs.map +1 -1
  569. package/dist/actions/list-shippo-accounts.d.cts +20 -3
  570. package/dist/actions/list-shippo-accounts.d.cts.map +1 -1
  571. package/dist/actions/list-shippo-accounts.d.mts +20 -3
  572. package/dist/actions/list-shippo-accounts.d.mts.map +1 -1
  573. package/dist/actions/list-shippo-accounts.mjs +6 -6
  574. package/dist/actions/list-shippo-accounts.mjs.map +1 -1
  575. package/dist/actions/list-user-parcel-templates.cjs.map +1 -1
  576. package/dist/actions/list-user-parcel-templates.d.cts +31 -3
  577. package/dist/actions/list-user-parcel-templates.d.cts.map +1 -1
  578. package/dist/actions/list-user-parcel-templates.d.mts +31 -3
  579. package/dist/actions/list-user-parcel-templates.d.mts.map +1 -1
  580. package/dist/actions/list-user-parcel-templates.mjs.map +1 -1
  581. package/dist/actions/purchase-merchant-batch.cjs +11 -11
  582. package/dist/actions/purchase-merchant-batch.cjs.map +1 -1
  583. package/dist/actions/purchase-merchant-batch.d.cts +39 -3
  584. package/dist/actions/purchase-merchant-batch.d.cts.map +1 -1
  585. package/dist/actions/purchase-merchant-batch.d.mts +39 -3
  586. package/dist/actions/purchase-merchant-batch.d.mts.map +1 -1
  587. package/dist/actions/purchase-merchant-batch.mjs +11 -11
  588. package/dist/actions/purchase-merchant-batch.mjs.map +1 -1
  589. package/dist/actions/remove-shipments-from-batch.cjs +11 -11
  590. package/dist/actions/remove-shipments-from-batch.cjs.map +1 -1
  591. package/dist/actions/remove-shipments-from-batch.d.cts +46 -3
  592. package/dist/actions/remove-shipments-from-batch.d.cts.map +1 -1
  593. package/dist/actions/remove-shipments-from-batch.d.mts +46 -3
  594. package/dist/actions/remove-shipments-from-batch.d.mts.map +1 -1
  595. package/dist/actions/remove-shipments-from-batch.mjs +11 -11
  596. package/dist/actions/remove-shipments-from-batch.mjs.map +1 -1
  597. package/dist/actions/update-carrier-account.cjs +2 -2
  598. package/dist/actions/update-carrier-account.cjs.map +1 -1
  599. package/dist/actions/update-carrier-account.d.cts +27 -3
  600. package/dist/actions/update-carrier-account.d.cts.map +1 -1
  601. package/dist/actions/update-carrier-account.d.mts +27 -3
  602. package/dist/actions/update-carrier-account.d.mts.map +1 -1
  603. package/dist/actions/update-carrier-account.mjs +2 -2
  604. package/dist/actions/update-carrier-account.mjs.map +1 -1
  605. package/dist/actions/update-default-parcel-template.cjs.map +1 -1
  606. package/dist/actions/update-default-parcel-template.d.cts +36 -3
  607. package/dist/actions/update-default-parcel-template.d.cts.map +1 -1
  608. package/dist/actions/update-default-parcel-template.d.mts +36 -3
  609. package/dist/actions/update-default-parcel-template.d.mts.map +1 -1
  610. package/dist/actions/update-default-parcel-template.mjs.map +1 -1
  611. package/dist/actions/update-merchant-carrier-account.cjs.map +1 -1
  612. package/dist/actions/update-merchant-carrier-account.d.cts +75 -3
  613. package/dist/actions/update-merchant-carrier-account.d.cts.map +1 -1
  614. package/dist/actions/update-merchant-carrier-account.d.mts +75 -3
  615. package/dist/actions/update-merchant-carrier-account.d.mts.map +1 -1
  616. package/dist/actions/update-merchant-carrier-account.mjs.map +1 -1
  617. package/dist/actions/update-merchant.cjs +4 -4
  618. package/dist/actions/update-merchant.cjs.map +1 -1
  619. package/dist/actions/update-merchant.d.cts +25 -3
  620. package/dist/actions/update-merchant.d.cts.map +1 -1
  621. package/dist/actions/update-merchant.d.mts +25 -3
  622. package/dist/actions/update-merchant.d.mts.map +1 -1
  623. package/dist/actions/update-merchant.mjs +4 -4
  624. package/dist/actions/update-merchant.mjs.map +1 -1
  625. package/dist/actions/update-service-group.cjs +4 -4
  626. package/dist/actions/update-service-group.cjs.map +1 -1
  627. package/dist/actions/update-service-group.d.cts +48 -3
  628. package/dist/actions/update-service-group.d.cts.map +1 -1
  629. package/dist/actions/update-service-group.d.mts +48 -3
  630. package/dist/actions/update-service-group.d.mts.map +1 -1
  631. package/dist/actions/update-service-group.mjs +4 -4
  632. package/dist/actions/update-service-group.mjs.map +1 -1
  633. package/dist/actions/update-user-parcel-template.cjs.map +1 -1
  634. package/dist/actions/update-user-parcel-template.d.cts +28 -3
  635. package/dist/actions/update-user-parcel-template.d.cts.map +1 -1
  636. package/dist/actions/update-user-parcel-template.d.mts +28 -3
  637. package/dist/actions/update-user-parcel-template.d.mts.map +1 -1
  638. package/dist/actions/update-user-parcel-template.mjs.map +1 -1
  639. package/dist/actions/update-webhook.cjs +5 -5
  640. package/dist/actions/update-webhook.cjs.map +1 -1
  641. package/dist/actions/update-webhook.d.cts +31 -3
  642. package/dist/actions/update-webhook.d.cts.map +1 -1
  643. package/dist/actions/update-webhook.d.mts +31 -3
  644. package/dist/actions/update-webhook.d.mts.map +1 -1
  645. package/dist/actions/update-webhook.mjs +5 -5
  646. package/dist/actions/update-webhook.mjs.map +1 -1
  647. package/dist/actions/validate-address.cjs +1 -1
  648. package/dist/actions/validate-address.cjs.map +1 -1
  649. package/dist/actions/validate-address.d.cts +39 -3
  650. package/dist/actions/validate-address.d.cts.map +1 -1
  651. package/dist/actions/validate-address.d.mts +39 -3
  652. package/dist/actions/validate-address.d.mts.map +1 -1
  653. package/dist/actions/validate-address.mjs +1 -1
  654. package/dist/actions/validate-address.mjs.map +1 -1
  655. package/dist/actions/validate-merchant-address.cjs +1 -1
  656. package/dist/actions/validate-merchant-address.cjs.map +1 -1
  657. package/dist/actions/validate-merchant-address.d.cts +38 -3
  658. package/dist/actions/validate-merchant-address.d.cts.map +1 -1
  659. package/dist/actions/validate-merchant-address.d.mts +38 -3
  660. package/dist/actions/validate-merchant-address.d.mts.map +1 -1
  661. package/dist/actions/validate-merchant-address.mjs +1 -1
  662. package/dist/actions/validate-merchant-address.mjs.map +1 -1
  663. package/package.json +2 -2
@@ -1,9 +1,112 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-batch.d.ts
4
- declare const ShippoCreateBatchInput: z.ZodTypeAny;
5
- declare const ShippoCreateBatchOutput: z.ZodTypeAny;
6
- declare const shippoCreateBatch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShippoCreateBatchInput: z.ZodObject<{
5
+ metadata: z.ZodOptional<z.ZodString>;
6
+ label_filetype: z.ZodOptional<z.ZodString>;
7
+ batch_shipments: z.ZodArray<z.ZodObject<{
8
+ shipment: z.ZodObject<{
9
+ parcels: z.ZodArray<z.ZodObject<{
10
+ width: z.ZodString;
11
+ height: z.ZodString;
12
+ length: z.ZodString;
13
+ weight: z.ZodString;
14
+ mass_unit: z.ZodString;
15
+ distance_unit: z.ZodString;
16
+ }, z.core.$strip>>;
17
+ address_to: z.ZodObject<{
18
+ zip: z.ZodString;
19
+ city: z.ZodString;
20
+ name: z.ZodString;
21
+ email: z.ZodOptional<z.ZodString>;
22
+ phone: z.ZodOptional<z.ZodString>;
23
+ state: z.ZodString;
24
+ company: z.ZodOptional<z.ZodString>;
25
+ country: z.ZodString;
26
+ street1: z.ZodString;
27
+ street2: z.ZodOptional<z.ZodString>;
28
+ }, z.core.$strip>;
29
+ address_from: z.ZodObject<{
30
+ zip: z.ZodString;
31
+ city: z.ZodString;
32
+ name: z.ZodString;
33
+ email: z.ZodOptional<z.ZodString>;
34
+ phone: z.ZodOptional<z.ZodString>;
35
+ state: z.ZodString;
36
+ company: z.ZodOptional<z.ZodString>;
37
+ country: z.ZodString;
38
+ street1: z.ZodString;
39
+ street2: z.ZodOptional<z.ZodString>;
40
+ }, z.core.$strip>;
41
+ }, z.core.$strip>;
42
+ }, z.core.$strip>>;
43
+ shippo_api_version: z.ZodOptional<z.ZodString>;
44
+ default_carrier_account: z.ZodString;
45
+ default_servicelevel_token: z.ZodString;
46
+ }, z.core.$strip>;
47
+ declare const ShippoCreateBatchOutput: z.ZodObject<{
48
+ test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
49
+ status: z.ZodNullable<z.ZodString>;
50
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ label_url: z.ZodArray<z.ZodString>;
52
+ object_id: z.ZodNullable<z.ZodString>;
53
+ object_owner: z.ZodNullable<z.ZodString>;
54
+ label_filetype: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ object_created: z.ZodNullable<z.ZodString>;
56
+ object_results: z.ZodNullable<z.ZodObject<{
57
+ creation_failed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
58
+ purchase_failed: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
59
+ creation_succeeded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
60
+ purchase_succeeded: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
61
+ }, z.core.$strip>>;
62
+ object_updated: z.ZodNullable<z.ZodString>;
63
+ batch_shipments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
64
+ default_carrier_account: z.ZodNullable<z.ZodString>;
65
+ default_servicelevel_token: z.ZodNullable<z.ZodString>;
66
+ }, z.core.$strip>;
67
+ declare const shippoCreateBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
68
+ batch_shipments: {
69
+ shipment: {
70
+ parcels: {
71
+ width: string;
72
+ height: string;
73
+ length: string;
74
+ weight: string;
75
+ mass_unit: string;
76
+ distance_unit: string;
77
+ }[];
78
+ address_to: {
79
+ zip: string;
80
+ city: string;
81
+ name: string;
82
+ state: string;
83
+ country: string;
84
+ street1: string;
85
+ email?: string | undefined;
86
+ phone?: string | undefined;
87
+ company?: string | undefined;
88
+ street2?: string | undefined;
89
+ };
90
+ address_from: {
91
+ zip: string;
92
+ city: string;
93
+ name: string;
94
+ state: string;
95
+ country: string;
96
+ street1: string;
97
+ email?: string | undefined;
98
+ phone?: string | undefined;
99
+ company?: string | undefined;
100
+ street2?: string | undefined;
101
+ };
102
+ };
103
+ }[];
104
+ default_carrier_account: string;
105
+ default_servicelevel_token: string;
106
+ metadata?: string | undefined;
107
+ label_filetype?: string | undefined;
108
+ shippo_api_version?: string | undefined;
109
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
110
  //#endregion
8
111
  export { shippoCreateBatch };
9
112
  //# sourceMappingURL=create-batch.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-batch.d.mts","names":[],"sources":["../../src/actions/create-batch.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UA0CwB;AAAA,cAOlD,uBAAA,EAAyB,CAAA,CAAE,UAcsB;AAAA,cAEjD,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-batch.d.mts","names":[],"sources":["../../src/actions/create-batch.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAiDtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAgBvB,iBAAA,gCAAiB,wBAAA"}
@@ -55,18 +55,18 @@ const shippoCreateBatch = action("SHIPPO_CREATE_BATCH", {
55
55
  input: ShippoCreateBatchInput,
56
56
  output: z.object({
57
57
  test: z.boolean().describe("Whether this batch was created in test mode").nullable().optional(),
58
- status: z.string().describe("Current status of the batch (e.g., 'VALIDATING', 'VALID', 'INVALID', 'COMPLETED')"),
58
+ status: z.string().describe("Current status of the batch (e.g., 'VALIDATING', 'VALID', 'INVALID', 'COMPLETED')").nullable(),
59
59
  metadata: z.string().describe("Custom metadata for the batch").nullable().optional(),
60
60
  label_url: z.array(z.string()).describe("List of URLs for downloading shipping labels"),
61
- object_id: z.string().describe("Unique identifier for the batch object"),
62
- object_owner: z.string().describe("Owner of the batch object"),
61
+ object_id: z.string().describe("Unique identifier for the batch object").nullable(),
62
+ object_owner: z.string().describe("Owner of the batch object").nullable(),
63
63
  label_filetype: z.string().describe("Format of the shipping labels").nullable().optional(),
64
- object_created: z.string().describe("Timestamp when the batch was created (ISO 8601 format)"),
64
+ object_created: z.string().describe("Timestamp when the batch was created (ISO 8601 format)").nullable(),
65
65
  object_results: ShippoCreateBatch_ObjectResultsSchema.nullable(),
66
- object_updated: z.string().describe("Timestamp when the batch was last updated (ISO 8601 format)"),
66
+ object_updated: z.string().describe("Timestamp when the batch was last updated (ISO 8601 format)").nullable(),
67
67
  batch_shipments: z.record(z.string(), z.unknown()).describe("Details of shipments in the batch"),
68
- default_carrier_account: z.string().describe("Carrier account used for the batch"),
69
- default_servicelevel_token: z.string().describe("Service level token used for the batch")
68
+ default_carrier_account: z.string().describe("Carrier account used for the batch").nullable(),
69
+ default_servicelevel_token: z.string().describe("Service level token used for the batch").nullable()
70
70
  }).describe("Response model returned after creating a batch.")
71
71
  });
72
72
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"create-batch.mjs","names":[],"sources":["../../src/actions/create-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateBatchInput: z.ZodTypeAny = z.object({\n metadata: z.string().describe(\"Custom metadata string for the batch (max 100 characters)\").optional(),\n label_filetype: z.string().describe(\"Format for the shipping label (e.g., 'PDF', 'PNG', 'ZPLII'). If not specified, defaults to PDF.\").optional(),\n batch_shipments: z.array(z.object({\n shipment: z.object({\n parcels: z.array(z.object({\n width: z.string().describe(\"Width of the parcel\"),\n height: z.string().describe(\"Height of the parcel\"),\n length: z.string().describe(\"Length of the parcel\"),\n weight: z.string().describe(\"Weight of the parcel\"),\n mass_unit: z.string().describe(\"Unit of measurement for weight (e.g., 'lb' for pounds, 'kg' for kilograms)\"),\n distance_unit: z.string().describe(\"Unit of measurement for dimensions (e.g., 'in' for inches, 'cm' for centimeters)\"),\n}).describe(\"Parcel dimensions and weight.\")).describe(\"List of parcels in the shipment\"),\n address_to: z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Name of the person or business at the address\"),\n email: z.string().describe(\"Email address\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province code\"),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'US', 'CA')\"),\n street1: z.string().describe(\"First line of the street address\"),\n street2: z.string().describe(\"Second line of the street address\").optional(),\n}).describe(\"Recipient's address information\"),\n address_from: z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Name of the person or business at the address\"),\n email: z.string().describe(\"Email address\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province code\"),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'US', 'CA')\"),\n street1: z.string().describe(\"First line of the street address\"),\n street2: z.string().describe(\"Second line of the street address\").optional(),\n}).describe(\"Sender's address information\"),\n}).describe(\"Shipment information\"),\n}).describe(\"Batch shipment entry containing shipment details.\")).describe(\"List of shipments to include in the batch. Each shipment must contain address_from, address_to, and parcels.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n default_carrier_account: z.string().describe(\"Object ID of the carrier account to use for batch shipments. Must be a valid carrier account ID from /carrier_accounts endpoint.\"),\n default_servicelevel_token: z.string().describe(\"Service level token for the shipment (e.g., 'usps_priority', 'canada_post_expedited_parcel')\"),\n}).describe(\"Request model for creating a batch of shipments.\");\nconst ShippoCreateBatch_ObjectResultsSchema: z.ZodTypeAny = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to create\").nullable().optional(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to purchase\").nullable().optional(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created\").nullable().optional(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased\").nullable().optional(),\n}).describe(\"Results of batch processing.\");\nexport const ShippoCreateBatchOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this batch was created in test mode\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch (e.g., 'VALIDATING', 'VALID', 'INVALID', 'COMPLETED')\"),\n metadata: z.string().describe(\"Custom metadata for the batch\").nullable().optional(),\n label_url: z.array(z.string()).describe(\"List of URLs for downloading shipping labels\"),\n object_id: z.string().describe(\"Unique identifier for the batch object\"),\n object_owner: z.string().describe(\"Owner of the batch object\"),\n label_filetype: z.string().describe(\"Format of the shipping labels\").nullable().optional(),\n object_created: z.string().describe(\"Timestamp when the batch was created (ISO 8601 format)\"),\n object_results: ShippoCreateBatch_ObjectResultsSchema.nullable(),\n object_updated: z.string().describe(\"Timestamp when the batch was last updated (ISO 8601 format)\"),\n batch_shipments: z.record(z.string(), z.unknown()).describe(\"Details of shipments in the batch\"),\n default_carrier_account: z.string().describe(\"Carrier account used for the batch\"),\n default_servicelevel_token: z.string().describe(\"Service level token used for the batch\"),\n}).describe(\"Response model returned after creating a batch.\");\n\nexport const shippoCreateBatch = action(\"SHIPPO_CREATE_BATCH\", {\n slug: \"shippo-create-batch\",\n name: \"Create Batch\",\n description: \"Tool to create a batch of shipments for bulk label purchasing. Use when you need to process multiple shipments at once with the same carrier and service level. Requires a valid carrier account ID from your Shippo account.\",\n input: ShippoCreateBatchInput,\n output: ShippoCreateBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAChJ,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAClC,UAAU,EAAE,OAAO;EACnB,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;GAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;GAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EACvH,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,SAAS,iCAAiC;EACtF,YAAY,EAAE,OAAO;GACrB,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;GAClD,MAAM,EAAE,OAAO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E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC7D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EAC5F,gBAAgB,sCAAsC,SAAS;EAC/D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D;EACjG,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACjF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC1F,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-batch.mjs","names":[],"sources":["../../src/actions/create-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string for the batch (max 100 characters)\").optional(),\n label_filetype: z.string().describe(\"Format for the shipping label (e.g., 'PDF', 'PNG', 'ZPLII'). If not specified, defaults to PDF.\").optional(),\n batch_shipments: z.array(z.object({\n shipment: z.object({\n parcels: z.array(z.object({\n width: z.string().describe(\"Width of the parcel\"),\n height: z.string().describe(\"Height of the parcel\"),\n length: z.string().describe(\"Length of the parcel\"),\n weight: z.string().describe(\"Weight of the parcel\"),\n mass_unit: z.string().describe(\"Unit of measurement for weight (e.g., 'lb' for pounds, 'kg' for kilograms)\"),\n distance_unit: z.string().describe(\"Unit of measurement for dimensions (e.g., 'in' for inches, 'cm' for centimeters)\"),\n}).describe(\"Parcel dimensions and weight.\")).describe(\"List of parcels in the shipment\"),\n address_to: z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Name of the person or business at the address\"),\n email: z.string().describe(\"Email address\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province code\"),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'US', 'CA')\"),\n street1: z.string().describe(\"First line of the street address\"),\n street2: z.string().describe(\"Second line of the street address\").optional(),\n}).describe(\"Recipient's address information\"),\n address_from: z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Name of the person or business at the address\"),\n email: z.string().describe(\"Email address\").optional(),\n phone: z.string().describe(\"Phone number\").optional(),\n state: z.string().describe(\"State or province code\"),\n company: z.string().describe(\"Company name\").optional(),\n country: z.string().describe(\"Two-letter ISO country code (e.g., 'US', 'CA')\"),\n street1: z.string().describe(\"First line of the street address\"),\n street2: z.string().describe(\"Second line of the street address\").optional(),\n}).describe(\"Sender's address information\"),\n}).describe(\"Shipment information\"),\n}).describe(\"Batch shipment entry containing shipment details.\")).describe(\"List of shipments to include in the batch. Each shipment must contain address_from, address_to, and parcels.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n default_carrier_account: z.string().describe(\"Object ID of the carrier account to use for batch shipments. Must be a valid carrier account ID from /carrier_accounts endpoint.\"),\n default_servicelevel_token: z.string().describe(\"Service level token for the shipment (e.g., 'usps_priority', 'canada_post_expedited_parcel')\"),\n}).describe(\"Request model for creating a batch of shipments.\");\nconst ShippoCreateBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to create\").nullable().optional(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to purchase\").nullable().optional(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created\").nullable().optional(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased\").nullable().optional(),\n}).describe(\"Results of batch processing.\");\nexport const ShippoCreateBatchOutput = z.object({\n test: z.boolean().describe(\"Whether this batch was created in test mode\").nullable().optional(),\n status: z.string().describe(\"Current status of the batch (e.g., 'VALIDATING', 'VALID', 'INVALID', 'COMPLETED')\").nullable(),\n metadata: z.string().describe(\"Custom metadata for the batch\").nullable().optional(),\n label_url: z.array(z.string()).describe(\"List of URLs for downloading shipping labels\"),\n object_id: z.string().describe(\"Unique identifier for the batch object\").nullable(),\n object_owner: z.string().describe(\"Owner of the batch object\").nullable(),\n label_filetype: z.string().describe(\"Format of the shipping labels\").nullable().optional(),\n object_created: z.string().describe(\"Timestamp when the batch was created (ISO 8601 format)\").nullable(),\n object_results: ShippoCreateBatch_ObjectResultsSchema.nullable(),\n object_updated: z.string().describe(\"Timestamp when the batch was last updated (ISO 8601 format)\").nullable(),\n batch_shipments: z.record(z.string(), z.unknown()).describe(\"Details of shipments in the batch\"),\n default_carrier_account: z.string().describe(\"Carrier account used for the batch\").nullable(),\n default_servicelevel_token: z.string().describe(\"Service level token used for the batch\").nullable(),\n}).describe(\"Response model returned after creating a batch.\");\n\nexport const shippoCreateBatch = action(\"SHIPPO_CREATE_BATCH\", {\n slug: \"shippo-create-batch\",\n name: \"Create Batch\",\n description: \"Tool to create a batch of shipments for bulk label purchasing. Use when you need to process multiple shipments at once with the same carrier and service level. Requires a valid carrier account ID from your Shippo account.\",\n input: ShippoCreateBatchInput,\n output: ShippoCreateBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACpG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAChJ,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAClC,UAAU,EAAE,OAAO;EACnB,SAAS,EAAE,MAAM,EAAE,OAAO;GAC1B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;GAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;GAClD,QAAQ,EAAE,OA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EAC9C,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC1H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAClF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACxE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EACvG,gBAAgB,sCAAsC,SAAS;EAC/D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5G,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EAC/F,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAC5F,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
@@ -59,10 +59,10 @@ const ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema = zod.z.
59
59
  const ShippoCreateCarrierAccountOutput = zod.z.object({
60
60
  test: zod.z.boolean().describe("Whether this is a test account.").nullable().optional(),
61
61
  active: zod.z.boolean().describe("Whether the carrier account is active.").nullable().optional(),
62
- carrier: zod.z.string().describe("The carrier name associated with this account."),
62
+ carrier: zod.z.string().describe("The carrier name associated with this account.").nullable(),
63
63
  metadata: zod.z.string().describe("Metadata associated with the carrier account.").nullable().optional(),
64
64
  object_id: zod.z.string().describe("Unique identifier for the carrier account object.").nullable().optional(),
65
- account_id: zod.z.string().describe("The account identifier."),
65
+ account_id: zod.z.string().describe("The account identifier.").nullable(),
66
66
  parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),
67
67
  object_owner: zod.z.string().describe("Owner of the carrier account object.").nullable().optional(),
68
68
  is_shippo_account: zod.z.boolean().describe("Whether this is a Shippo-provided account.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"create-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCarrierAccountInput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for, e.g., 'ups'.\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier used to reference this carrier account. Must not be blank.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n}).describe(\"Request to create a new carrier account in Shippo.\");\nconst ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateCarrierAccountOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\"),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier.\"),\n parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created carrier account details.\");\n\nexport const shippoCreateCarrierAccount = action(\"SHIPPO_CREATE_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-carrier-account\",\n name: \"Create Carrier Account\",\n description: \"Tool to create a new carrier account in Shippo. Use when you need to register carrier credentials for shipping operations. This action requires detailed billing and contact information, and for UPS accounts specifically, the user must agree to UPS terms and conditions.\",\n input: ShippoCreateCarrierAccountInput,\n output: ShippoCreateCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,YAAYA,IAAAA,EAAE,OAAO;EACrB,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACnH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;EACtG,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kLAAkL;EACpN,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACpI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EAC3I,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;E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cA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCarrierAccountInput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for, e.g., 'ups'.\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier used to reference this carrier account. Must not be blank.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n}).describe(\"Request to create a new carrier account in Shippo.\");\nconst ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateCarrierAccountOutput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier.\").nullable(),\n parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created carrier account details.\");\n\nexport const shippoCreateCarrierAccount = action(\"SHIPPO_CREATE_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-carrier-account\",\n name: \"Create Carrier Account\",\n description: \"Tool to create a new carrier account in Shippo. Use when you need to register carrier credentials for shipping operations. This action requires detailed billing and contact information, and for UPS accounts specifically, the user must ag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CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,102 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-carrier-account.d.ts
4
- declare const ShippoCreateCarrierAccountInput: z.ZodTypeAny;
5
- declare const ShippoCreateCarrierAccountOutput: z.ZodTypeAny;
6
- declare const shippoCreateCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShippoCreateCarrierAccountInput: z.ZodObject<{
5
+ test: z.ZodOptional<z.ZodBoolean>;
6
+ active: z.ZodBoolean;
7
+ carrier: z.ZodString;
8
+ metadata: z.ZodOptional<z.ZodString>;
9
+ account_id: z.ZodString;
10
+ parameters: z.ZodObject<{
11
+ email: z.ZodString;
12
+ phone: z.ZodString;
13
+ title: z.ZodString;
14
+ company: z.ZodString;
15
+ full_name: z.ZodString;
16
+ collec_zip: z.ZodString;
17
+ has_invoice: z.ZodBoolean;
18
+ invoice_date: z.ZodOptional<z.ZodString>;
19
+ currency_code: z.ZodOptional<z.ZodString>;
20
+ invoice_value: z.ZodOptional<z.ZodString>;
21
+ account_number: z.ZodString;
22
+ invoice_number: z.ZodOptional<z.ZodString>;
23
+ ups_agreements: z.ZodBoolean;
24
+ aia_country_iso2: z.ZodOptional<z.ZodString>;
25
+ invoice_controlid: z.ZodOptional<z.ZodString>;
26
+ billing_address_zip: z.ZodString;
27
+ collec_country_iso2: z.ZodString;
28
+ billing_address_city: z.ZodString;
29
+ billing_address_state: z.ZodString;
30
+ billing_address_street1: z.ZodString;
31
+ billing_address_street2: z.ZodOptional<z.ZodString>;
32
+ billing_address_country_iso2: z.ZodString;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ declare const ShippoCreateCarrierAccountOutput: z.ZodObject<{
36
+ test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ carrier: z.ZodNullable<z.ZodString>;
39
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ account_id: z.ZodNullable<z.ZodString>;
42
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ collec_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ has_invoice: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
+ invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ invoice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ ups_agreements: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ aia_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ invoice_controlid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ billing_address_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ collec_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ billing_address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ billing_address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ billing_address_street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ billing_address_street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ billing_address_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ }, z.core.$strip>>>;
66
+ object_owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ is_shippo_account: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
68
+ }, z.core.$strip>;
69
+ declare const shippoCreateCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
70
+ active: boolean;
71
+ carrier: string;
72
+ account_id: string;
73
+ parameters: {
74
+ email: string;
75
+ phone: string;
76
+ title: string;
77
+ company: string;
78
+ full_name: string;
79
+ collec_zip: string;
80
+ has_invoice: boolean;
81
+ account_number: string;
82
+ ups_agreements: boolean;
83
+ billing_address_zip: string;
84
+ collec_country_iso2: string;
85
+ billing_address_city: string;
86
+ billing_address_state: string;
87
+ billing_address_street1: string;
88
+ billing_address_country_iso2: string;
89
+ invoice_date?: string | undefined;
90
+ currency_code?: string | undefined;
91
+ invoice_value?: string | undefined;
92
+ invoice_number?: string | undefined;
93
+ aia_country_iso2?: string | undefined;
94
+ invoice_controlid?: string | undefined;
95
+ billing_address_street2?: string | undefined;
96
+ };
97
+ test?: boolean | undefined;
98
+ metadata?: string | undefined;
99
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
100
  //#endregion
8
101
  export { shippoCreateCarrierAccount };
9
102
  //# sourceMappingURL=create-carrier-account.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-carrier-account.d.cts","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UA8BiB;AAAA,cAyBpD,gCAAA,EAAkC,CAAA,CAAE,UAUsB;AAAA,cAE1D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-carrier-account.d.cts","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuD/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,102 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-carrier-account.d.ts
4
- declare const ShippoCreateCarrierAccountInput: z.ZodTypeAny;
5
- declare const ShippoCreateCarrierAccountOutput: z.ZodTypeAny;
6
- declare const shippoCreateCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ShippoCreateCarrierAccountInput: z.ZodObject<{
5
+ test: z.ZodOptional<z.ZodBoolean>;
6
+ active: z.ZodBoolean;
7
+ carrier: z.ZodString;
8
+ metadata: z.ZodOptional<z.ZodString>;
9
+ account_id: z.ZodString;
10
+ parameters: z.ZodObject<{
11
+ email: z.ZodString;
12
+ phone: z.ZodString;
13
+ title: z.ZodString;
14
+ company: z.ZodString;
15
+ full_name: z.ZodString;
16
+ collec_zip: z.ZodString;
17
+ has_invoice: z.ZodBoolean;
18
+ invoice_date: z.ZodOptional<z.ZodString>;
19
+ currency_code: z.ZodOptional<z.ZodString>;
20
+ invoice_value: z.ZodOptional<z.ZodString>;
21
+ account_number: z.ZodString;
22
+ invoice_number: z.ZodOptional<z.ZodString>;
23
+ ups_agreements: z.ZodBoolean;
24
+ aia_country_iso2: z.ZodOptional<z.ZodString>;
25
+ invoice_controlid: z.ZodOptional<z.ZodString>;
26
+ billing_address_zip: z.ZodString;
27
+ collec_country_iso2: z.ZodString;
28
+ billing_address_city: z.ZodString;
29
+ billing_address_state: z.ZodString;
30
+ billing_address_street1: z.ZodString;
31
+ billing_address_street2: z.ZodOptional<z.ZodString>;
32
+ billing_address_country_iso2: z.ZodString;
33
+ }, z.core.$strip>;
34
+ }, z.core.$strip>;
35
+ declare const ShippoCreateCarrierAccountOutput: z.ZodObject<{
36
+ test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
37
+ active: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
38
+ carrier: z.ZodNullable<z.ZodString>;
39
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ account_id: z.ZodNullable<z.ZodString>;
42
+ parameters: z.ZodOptional<z.ZodNullable<z.ZodObject<{
43
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ collec_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
+ has_invoice: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
50
+ invoice_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ currency_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ invoice_value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ account_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ invoice_number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ ups_agreements: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
56
+ aia_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
57
+ invoice_controlid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ billing_address_zip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
+ collec_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
60
+ billing_address_city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
61
+ billing_address_state: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ billing_address_street1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
63
+ billing_address_street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
+ billing_address_country_iso2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ }, z.core.$strip>>>;
66
+ object_owner: z.ZodOptional<z.ZodNullable<z.ZodString>>;
67
+ is_shippo_account: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
68
+ }, z.core.$strip>;
69
+ declare const shippoCreateCarrierAccount: import("@keystrokehq/action").WorkflowActionDefinition<{
70
+ active: boolean;
71
+ carrier: string;
72
+ account_id: string;
73
+ parameters: {
74
+ email: string;
75
+ phone: string;
76
+ title: string;
77
+ company: string;
78
+ full_name: string;
79
+ collec_zip: string;
80
+ has_invoice: boolean;
81
+ account_number: string;
82
+ ups_agreements: boolean;
83
+ billing_address_zip: string;
84
+ collec_country_iso2: string;
85
+ billing_address_city: string;
86
+ billing_address_state: string;
87
+ billing_address_street1: string;
88
+ billing_address_country_iso2: string;
89
+ invoice_date?: string | undefined;
90
+ currency_code?: string | undefined;
91
+ invoice_value?: string | undefined;
92
+ invoice_number?: string | undefined;
93
+ aia_country_iso2?: string | undefined;
94
+ invoice_controlid?: string | undefined;
95
+ billing_address_street2?: string | undefined;
96
+ };
97
+ test?: boolean | undefined;
98
+ metadata?: string | undefined;
99
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
100
  //#endregion
8
101
  export { shippoCreateCarrierAccount };
9
102
  //# sourceMappingURL=create-carrier-account.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-carrier-account.d.mts","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UA8BiB;AAAA,cAyBpD,gCAAA,EAAkC,CAAA,CAAE,UAUsB;AAAA,cAE1D,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-carrier-account.d.mts","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAuD/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAYhC,0BAAA,gCAA0B,wBAAA"}
@@ -64,10 +64,10 @@ const shippoCreateCarrierAccount = action("SHIPPO_CREATE_CARRIER_ACCOUNT", {
64
64
  output: z.object({
65
65
  test: z.boolean().describe("Whether this is a test account.").nullable().optional(),
66
66
  active: z.boolean().describe("Whether the carrier account is active.").nullable().optional(),
67
- carrier: z.string().describe("The carrier name associated with this account."),
67
+ carrier: z.string().describe("The carrier name associated with this account.").nullable(),
68
68
  metadata: z.string().describe("Metadata associated with the carrier account.").nullable().optional(),
69
69
  object_id: z.string().describe("Unique identifier for the carrier account object.").nullable().optional(),
70
- account_id: z.string().describe("The account identifier."),
70
+ account_id: z.string().describe("The account identifier.").nullable(),
71
71
  parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),
72
72
  object_owner: z.string().describe("Owner of the carrier account object.").nullable().optional(),
73
73
  is_shippo_account: z.boolean().describe("Whether this is a Shippo-provided account.").nullable().optional()
@@ -1 +1 @@
1
- {"version":3,"file":"create-carrier-account.mjs","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCarrierAccountInput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for, e.g., 'ups'.\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier used to reference this carrier account. Must not be blank.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n}).describe(\"Request to create a new carrier account in Shippo.\");\nconst ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema: z.ZodTypeAny = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateCarrierAccountOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\"),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier.\"),\n parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created carrier account details.\");\n\nexport const shippoCreateCarrierAccount = action(\"SHIPPO_CREATE_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-carrier-account\",\n name: \"Create Carrier Account\",\n description: \"Tool to create a new carrier account in Shippo. Use when you need to register carrier credentials for shipping operations. This action requires detailed billing and contact information, and for UPS accounts specifically, the user must agree to UPS terms and conditions.\",\n input: ShippoCreateCarrierAccountInput,\n output: ShippoCreateCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,YAAY,EAAE,OAAO;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gDAAgD;EAC7E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACzD,YAAY,kEAAkE,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,mBAAmB,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-carrier-account.mjs","names":[],"sources":["../../src/actions/create-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCarrierAccountInput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\"),\n carrier: z.string().describe(\"The carrier name to create an account for, e.g., 'ups'.\"),\n metadata: z.string().describe(\"Optional metadata string to associate with the carrier account.\").optional(),\n account_id: z.string().describe(\"Account identifier used to reference this carrier account. Must not be blank.\"),\n parameters: z.object({\n email: z.string().describe(\"Email address for the account.\"),\n phone: z.string().describe(\"Phone number for the account.\"),\n title: z.string().describe(\"User's title, e.g. Manager, Doctor, Artist, Engineer, Mr, Ms, Mrs, Mx.\"),\n company: z.string().describe(\"Company name. Full name is acceptable in this field if the user has no company name.\"),\n full_name: z.string().describe(\"Full name of the account holder.\"),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address. Must be exactly 5 digits.\"),\n has_invoice: z.boolean().describe(\"True if user has been issued a UPS invoice within the past 90 days for the US or Canada; and 45 days for any other countries. User can use data from any of the last 3 invoices.\"),\n invoice_date: z.string().describe(\"Only required if has_invoice is true. Date the invoice was issued in yyyymmdd format.\").optional(),\n currency_code: z.string().describe(\"Only required if has_invoice is true. 3-letter currency code associated with invoice_value.\").optional(),\n invoice_value: z.string().describe(\"Only required if has_invoice is true. Max 16 digits before decimal and 2 digits after decimal.\").optional(),\n account_number: z.string().describe(\"The UPS account number.\"),\n invoice_number: z.string().describe(\"Invoice number. Must be between 1 and 15 characters.\").optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agrees to the UPS terms and conditions. Must be true or the API will return error 400.\"),\n aia_country_iso2: z.string().describe(\"Only required if has_invoice is true. Country associated with the account that issued the invoice.\").optional(),\n invoice_controlid: z.string().describe(\"Only required if aia_country_iso2 is US and has_invoice is true. Must be exactly 4 characters.\").optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code. Must be exactly 5 digits.\"),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\"),\n billing_address_city: z.string().describe(\"Billing address city.\"),\n billing_address_state: z.string().describe(\"Billing address state code. Must be exactly 2 characters.\"),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\"),\n billing_address_street2: z.string().describe(\"Secondary billing address street line. Empty string is acceptable.\").optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\"),\n}).describe(\"Carrier-specific parameters required for account creation. For UPS, this includes billing address, contact information, and invoice details.\"),\n}).describe(\"Request to create a new carrier account in Shippo.\");\nconst ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema = z.object({\n email: z.string().describe(\"Email address for the account.\").nullable().optional(),\n phone: z.string().describe(\"Phone number for the account.\").nullable().optional(),\n title: z.string().describe(\"User's title.\").nullable().optional(),\n company: z.string().describe(\"Company name.\").nullable().optional(),\n full_name: z.string().describe(\"Full name of the account holder.\").nullable().optional(),\n collec_zip: z.string().describe(\"Zip code of the collection/pickup address.\").nullable().optional(),\n has_invoice: z.boolean().describe(\"Whether user has been issued a UPS invoice.\").nullable().optional(),\n invoice_date: z.string().describe(\"Date the invoice was issued.\").nullable().optional(),\n currency_code: z.string().describe(\"3-letter currency code associated with invoice_value.\").nullable().optional(),\n invoice_value: z.string().describe(\"Invoice value.\").nullable().optional(),\n account_number: z.string().describe(\"The UPS account number.\").nullable().optional(),\n invoice_number: z.string().describe(\"Invoice number.\").nullable().optional(),\n ups_agreements: z.boolean().describe(\"Whether the user agreed to UPS terms and conditions.\").nullable().optional(),\n aia_country_iso2: z.string().describe(\"Country associated with the account that issued the invoice.\").nullable().optional(),\n invoice_controlid: z.string().describe(\"Invoice control ID.\").nullable().optional(),\n billing_address_zip: z.string().describe(\"Billing address zip code.\").nullable().optional(),\n collec_country_iso2: z.string().describe(\"Country ISO 2-letter code for the collection/pickup address.\").nullable().optional(),\n billing_address_city: z.string().describe(\"Billing address city.\").nullable().optional(),\n billing_address_state: z.string().describe(\"Billing address state code.\").nullable().optional(),\n billing_address_street1: z.string().describe(\"Primary billing address street line.\").nullable().optional(),\n billing_address_street2: z.string().describe(\"Secondary billing address street line.\").nullable().optional(),\n billing_address_country_iso2: z.string().describe(\"Billing address country ISO 2-letter code.\").nullable().optional(),\n}).describe(\"Carrier account parameters returned in the response.\");\nexport const ShippoCreateCarrierAccountOutput = z.object({\n test: z.boolean().describe(\"Whether this is a test account.\").nullable().optional(),\n active: z.boolean().describe(\"Whether the carrier account is active.\").nullable().optional(),\n carrier: z.string().describe(\"The carrier name associated with this account.\").nullable(),\n metadata: z.string().describe(\"Metadata associated with the carrier account.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the carrier account object.\").nullable().optional(),\n account_id: z.string().describe(\"The account identifier.\").nullable(),\n parameters: ShippoCreateCarrierAccount_CarrierAccountParametersResponseSchema.nullable().optional(),\n object_owner: z.string().describe(\"Owner of the carrier account object.\").nullable().optional(),\n is_shippo_account: z.boolean().describe(\"Whether this is a Shippo-provided account.\").nullable().optional(),\n}).describe(\"Response containing the created carrier account details.\");\n\nexport const shippoCreateCarrierAccount = action(\"SHIPPO_CREATE_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-carrier-account\",\n name: \"Create Carrier Account\",\n description: \"Tool to create a new carrier account in Shippo. Use when you need to register carrier credentials for shipping operations. This action requires detailed billing and contact information, and for UPS accounts specifically, the user must agree to UPS terms and conditions.\",\n input: ShippoCreateCarrierAccountInput,\n output: ShippoCreateCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACtF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC1G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC/G,YAAY,EAAE,OAAO;EACrB,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EAC3D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;EAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;EACnH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE;EACtG,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,kLAAkL;EACpN,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;EACpI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;EAC3I,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC9I,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAC7D,gBAA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":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCustomsItemInput: z.ZodTypeAny = z.object({\n metadata: z.string().describe(\"Custom metadata string for storing additional information about the customs item.\").optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment. Must be a positive integer.\"),\n sku_code: z.string().describe(\"Stock Keeping Unit code or product identifier for inventory tracking.\").optional(),\n mass_unit: z.string().describe(\"Unit of measurement for the weight. Common values: 'lb' (pounds), 'kg' (kilograms), 'oz' (ounces), 'g' (grams).\"),\n eccn_ear99: z.string().describe(\"Export Control Classification Number (ECCN) or EAR99 designation for export control purposes.\").optional(),\n net_weight: z.string().describe(\"Net weight of the item (total weight for all units). Numeric string value.\"),\n description: z.string().describe(\"Text description of the item being shipped for customs purposes.\"),\n value_amount: z.string().describe(\"Monetary value of the item. Numeric string with up to 2 decimal places.\"),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule (HTS) code for the item. Used for customs classification.\").optional(),\n origin_country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code of the item's origin country.\"),\n value_currency: z.string().describe(\"Three-letter ISO 4217 currency code for the item value.\"),\n SHIPPO_API_VERSION: z.string().describe(\"Optional API version to use for this request. If not specified, uses the default API version.\").optional(),\n}).describe(\"Request to create a new customs item for international shipments.\");\nexport const ShippoCreateCustomsItemOutput: z.ZodTypeAny = z.object({\n test: z.boolean().describe(\"Indicates whether this customs item was created in test mode.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string associated with the customs item.\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment.\").nullable().optional(),\n sku_code: z.string().describe(\"Stock Keeping Unit code for the item.\").nullable().optional(),\n mass_unit: z.string().describe(\"Unit of measurement for the weight.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the customs item object.\").nullable().optional(),\n eccn_ear99: z.string().describe(\"Export Control Classification Number or EAR99 designation.\").nullable().optional(),\n net_weight: z.string().describe(\"Net weight of the item.\").nullable().optional(),\n description: z.string().describe(\"Text description of the item.\").nullable().optional(),\n object_owner: z.string().describe(\"Owner of the customs item object (typically your account email).\").nullable().optional(),\n object_state: z.string().describe(\"State of the customs item object (e.g., 'VALID').\").nullable().optional(),\n value_amount: z.string().describe(\"Monetary value of the item.\").nullable().optional(),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule code for the item.\").nullable().optional(),\n object_created: z.string().describe(\"Timestamp when the customs item was created.\").nullable().optional(),\n object_updated: z.string().describe(\"Timestamp when the customs item was last updated.\").nullable().optional(),\n origin_country: z.string().describe(\"Country code of the item's origin.\").nullable().optional(),\n value_currency: z.string().describe(\"Currency code for the item value.\").nullable().optional(),\n}).describe(\"Response containing the created customs item details.\");\n\nexport const shippoCreateCustomsItem = action(\"SHIPPO_CREATE_CUSTOMS_ITEM\", {\n slug: \"shippo-create-customs-item\",\n name: \"Create Customs Item\",\n description: \"Create a new customs item for international shipments. Customs items are required for customs declarations when shipping internationally. Use this action to define the contents, value, and origin of items being shipped across international borders.\",\n input: ShippoCreateCustomsItemInput,\n output: ShippoCreateCustomsItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAChJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACnG,cAAc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AC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAEnE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-customs-item.cjs","names":["z","action"],"sources":["../../src/actions/create-customs-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateCustomsItemInput = z.object({\n metadata: z.string().describe(\"Custom metadata string for storing additional information about the customs item.\").optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment. Must be a positive integer.\"),\n sku_code: z.string().describe(\"Stock Keeping Unit code or product identifier for inventory tracking.\").optional(),\n mass_unit: z.string().describe(\"Unit of measurement for the weight. Common values: 'lb' (pounds), 'kg' (kilograms), 'oz' (ounces), 'g' (grams).\"),\n eccn_ear99: z.string().describe(\"Export Control Classification Number (ECCN) or EAR99 designation for export control purposes.\").optional(),\n net_weight: z.string().describe(\"Net weight of the item (total weight for all units). Numeric string value.\"),\n description: z.string().describe(\"Text description of the item being shipped for customs purposes.\"),\n value_amount: z.string().describe(\"Monetary value of the item. Numeric string with up to 2 decimal places.\"),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule (HTS) code for the item. Used for customs classification.\").optional(),\n origin_country: z.string().describe(\"Two-letter ISO 3166-1 alpha-2 country code of the item's origin country.\"),\n value_currency: z.string().describe(\"Three-letter ISO 4217 currency code for the item value.\"),\n SHIPPO_API_VERSION: z.string().describe(\"Optional API version to use for this request. If not specified, uses the default API version.\").optional(),\n}).describe(\"Request to create a new customs item for international shipments.\");\nexport const ShippoCreateCustomsItemOutput = z.object({\n test: z.boolean().describe(\"Indicates whether this customs item was created in test mode.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string associated with the customs item.\").nullable().optional(),\n quantity: z.number().int().describe(\"Quantity of this item in the shipment.\").nullable().optional(),\n sku_code: z.string().describe(\"Stock Keeping Unit code for the item.\").nullable().optional(),\n mass_unit: z.string().describe(\"Unit of measurement for the weight.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the customs item object.\").nullable().optional(),\n eccn_ear99: z.string().describe(\"Export Control Classification Number or EAR99 designation.\").nullable().optional(),\n net_weight: z.string().describe(\"Net weight of the item.\").nullable().optional(),\n description: z.string().describe(\"Text description of the item.\").nullable().optional(),\n object_owner: z.string().describe(\"Owner of the customs item object (typically your account email).\").nullable().optional(),\n object_state: z.string().describe(\"State of the customs item object (e.g., 'VALID').\").nullable().optional(),\n value_amount: z.string().describe(\"Monetary value of the item.\").nullable().optional(),\n tariff_number: z.string().describe(\"Harmonized Tariff Schedule code for the item.\").nullable().optional(),\n object_created: z.string().describe(\"Timestamp when the customs item was created.\").nullable().optional(),\n object_updated: z.string().describe(\"Timestamp when the customs item was last updated.\").nullable().optional(),\n origin_country: z.string().describe(\"Country code of the item's origin.\").nullable().optional(),\n value_currency: z.string().describe(\"Currency code for the item value.\").nullable().optional(),\n}).describe(\"Response containing the created customs item details.\");\n\nexport const shippoCreateCustomsItem = action(\"SHIPPO_CREATE_CUSTOMS_ITEM\", {\n slug: \"shippo-create-customs-item\",\n name: \"Create Customs Item\",\n description: \"Create a new customs item for international shipments. Customs items are required for customs declarations when shipping internationally. Use this action to define the contents, value, and origin of items being shipped across international borders.\",\n input: ShippoCreateCustomsItemInput,\n output: ShippoCreateCustomsItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;CACxG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAChH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;CAChJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACnG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;CAC3G,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CACpI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC9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