@keystrokehq/shippo 0.1.2 → 0.1.3
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.
- package/dist/actions/create-address.cjs +3 -3
- package/dist/actions/create-address.cjs.map +1 -1
- package/dist/actions/create-address.d.cts +3 -3
- package/dist/actions/create-address.d.mts +3 -3
- package/dist/actions/create-address.mjs +3 -3
- package/dist/actions/create-address.mjs.map +1 -1
- package/dist/actions/create-batch.cjs +4 -4
- package/dist/actions/create-batch.cjs.map +1 -1
- package/dist/actions/create-batch.d.cts +6 -4
- package/dist/actions/create-batch.d.mts +6 -4
- package/dist/actions/create-batch.mjs +4 -4
- package/dist/actions/create-batch.mjs.map +1 -1
- package/dist/actions/create-carrier-account.cjs +2 -2
- package/dist/actions/create-carrier-account.cjs.map +1 -1
- package/dist/actions/create-carrier-account.d.cts +2 -2
- package/dist/actions/create-carrier-account.d.mts +2 -2
- package/dist/actions/create-carrier-account.mjs +2 -2
- package/dist/actions/create-carrier-account.mjs.map +1 -1
- package/dist/actions/create-customs-item.cjs +1 -1
- package/dist/actions/create-customs-item.cjs.map +1 -1
- package/dist/actions/create-customs-item.d.cts +1 -1
- package/dist/actions/create-customs-item.d.mts +1 -1
- package/dist/actions/create-customs-item.mjs +1 -1
- package/dist/actions/create-customs-item.mjs.map +1 -1
- package/dist/actions/create-live-rate.cjs +6 -6
- package/dist/actions/create-live-rate.cjs.map +1 -1
- package/dist/actions/create-live-rate.d.cts +10 -6
- package/dist/actions/create-live-rate.d.mts +10 -6
- package/dist/actions/create-live-rate.mjs +6 -6
- package/dist/actions/create-live-rate.mjs.map +1 -1
- package/dist/actions/create-manifest.cjs +2 -2
- package/dist/actions/create-manifest.cjs.map +1 -1
- package/dist/actions/create-manifest.d.cts +2 -2
- package/dist/actions/create-manifest.d.mts +2 -2
- package/dist/actions/create-manifest.mjs +2 -2
- package/dist/actions/create-manifest.mjs.map +1 -1
- package/dist/actions/create-merchant-address.cjs +3 -3
- package/dist/actions/create-merchant-address.cjs.map +1 -1
- package/dist/actions/create-merchant-address.d.cts +3 -3
- package/dist/actions/create-merchant-address.d.mts +3 -3
- package/dist/actions/create-merchant-address.mjs +3 -3
- package/dist/actions/create-merchant-address.mjs.map +1 -1
- package/dist/actions/create-merchant-batch.cjs +6 -6
- package/dist/actions/create-merchant-batch.cjs.map +1 -1
- package/dist/actions/create-merchant-batch.d.cts +9 -8
- package/dist/actions/create-merchant-batch.d.mts +9 -8
- package/dist/actions/create-merchant-batch.mjs +6 -6
- package/dist/actions/create-merchant-batch.mjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.cjs +2 -2
- package/dist/actions/create-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/create-merchant-carrier-account.d.cts +2 -2
- package/dist/actions/create-merchant-carrier-account.d.mts +2 -2
- package/dist/actions/create-merchant-carrier-account.mjs +2 -2
- package/dist/actions/create-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.cjs +2 -2
- package/dist/actions/create-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-declaration.d.cts +4 -3
- package/dist/actions/create-merchant-customs-declaration.d.mts +4 -3
- package/dist/actions/create-merchant-customs-declaration.mjs +2 -2
- package/dist/actions/create-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.cjs +1 -1
- package/dist/actions/create-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/create-merchant-customs-item.d.cts +2 -2
- package/dist/actions/create-merchant-customs-item.d.mts +2 -2
- package/dist/actions/create-merchant-customs-item.mjs +1 -1
- package/dist/actions/create-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/create-merchant-order.cjs +4 -4
- package/dist/actions/create-merchant-order.cjs.map +1 -1
- package/dist/actions/create-merchant-order.d.cts +6 -5
- package/dist/actions/create-merchant-order.d.mts +6 -5
- package/dist/actions/create-merchant-order.mjs +4 -4
- package/dist/actions/create-merchant-order.mjs.map +1 -1
- package/dist/actions/create-merchant-parcel.cjs +4 -4
- package/dist/actions/create-merchant-parcel.cjs.map +1 -1
- package/dist/actions/create-merchant-parcel.d.cts +6 -6
- package/dist/actions/create-merchant-parcel.d.mts +6 -6
- package/dist/actions/create-merchant-parcel.mjs +4 -4
- package/dist/actions/create-merchant-parcel.mjs.map +1 -1
- package/dist/actions/create-merchant-refund.cjs +1 -1
- package/dist/actions/create-merchant-refund.cjs.map +1 -1
- package/dist/actions/create-merchant-refund.d.cts +1 -1
- package/dist/actions/create-merchant-refund.d.mts +1 -1
- package/dist/actions/create-merchant-refund.mjs +1 -1
- package/dist/actions/create-merchant-refund.mjs.map +1 -1
- package/dist/actions/create-merchant-shipment.cjs +14 -14
- package/dist/actions/create-merchant-shipment.cjs.map +1 -1
- package/dist/actions/create-merchant-shipment.d.cts +21 -20
- package/dist/actions/create-merchant-shipment.d.mts +21 -20
- package/dist/actions/create-merchant-shipment.mjs +14 -14
- package/dist/actions/create-merchant-shipment.mjs.map +1 -1
- package/dist/actions/create-merchant-transaction.cjs +2 -2
- package/dist/actions/create-merchant-transaction.cjs.map +1 -1
- package/dist/actions/create-merchant-transaction.d.cts +3 -3
- package/dist/actions/create-merchant-transaction.d.mts +3 -3
- package/dist/actions/create-merchant-transaction.mjs +2 -2
- package/dist/actions/create-merchant-transaction.mjs.map +1 -1
- package/dist/actions/create-order.cjs +4 -4
- package/dist/actions/create-order.cjs.map +1 -1
- package/dist/actions/create-order.d.cts +6 -5
- package/dist/actions/create-order.d.mts +6 -5
- package/dist/actions/create-order.mjs +4 -4
- package/dist/actions/create-order.mjs.map +1 -1
- package/dist/actions/create-parcel.cjs +4 -4
- package/dist/actions/create-parcel.cjs.map +1 -1
- package/dist/actions/create-parcel.d.cts +6 -6
- package/dist/actions/create-parcel.d.mts +6 -6
- package/dist/actions/create-parcel.mjs +4 -4
- package/dist/actions/create-parcel.mjs.map +1 -1
- package/dist/actions/create-refund.cjs +1 -1
- package/dist/actions/create-refund.cjs.map +1 -1
- package/dist/actions/create-refund.d.cts +1 -1
- package/dist/actions/create-refund.d.mts +1 -1
- package/dist/actions/create-refund.mjs +1 -1
- package/dist/actions/create-refund.mjs.map +1 -1
- package/dist/actions/create-service-group.cjs +3 -3
- package/dist/actions/create-service-group.cjs.map +1 -1
- package/dist/actions/create-service-group.d.cts +4 -3
- package/dist/actions/create-service-group.d.mts +4 -3
- package/dist/actions/create-service-group.mjs +3 -3
- package/dist/actions/create-service-group.mjs.map +1 -1
- package/dist/actions/create-shipment.cjs +10 -10
- package/dist/actions/create-shipment.cjs.map +1 -1
- package/dist/actions/create-shipment.d.cts +18 -17
- package/dist/actions/create-shipment.d.cts.map +1 -1
- package/dist/actions/create-shipment.d.mts +18 -17
- package/dist/actions/create-shipment.d.mts.map +1 -1
- package/dist/actions/create-shipment.mjs +10 -10
- package/dist/actions/create-shipment.mjs.map +1 -1
- package/dist/actions/create-track.cjs +5 -5
- package/dist/actions/create-track.cjs.map +1 -1
- package/dist/actions/create-track.d.cts +8 -8
- package/dist/actions/create-track.d.mts +8 -8
- package/dist/actions/create-track.mjs +5 -5
- package/dist/actions/create-track.mjs.map +1 -1
- package/dist/actions/create-transaction.cjs +3 -3
- package/dist/actions/create-transaction.cjs.map +1 -1
- package/dist/actions/create-transaction.d.cts +5 -5
- package/dist/actions/create-transaction.d.mts +5 -5
- package/dist/actions/create-transaction.mjs +3 -3
- package/dist/actions/create-transaction.mjs.map +1 -1
- package/dist/actions/create-user-parcel-template.cjs +2 -2
- package/dist/actions/create-user-parcel-template.cjs.map +1 -1
- package/dist/actions/create-user-parcel-template.d.cts +2 -2
- package/dist/actions/create-user-parcel-template.d.mts +2 -2
- package/dist/actions/create-user-parcel-template.mjs +2 -2
- package/dist/actions/create-user-parcel-template.mjs.map +1 -1
- package/dist/actions/create-webhook.cjs +1 -1
- package/dist/actions/create-webhook.cjs.map +1 -1
- package/dist/actions/create-webhook.d.cts +5 -5
- package/dist/actions/create-webhook.d.mts +5 -5
- package/dist/actions/create-webhook.mjs +1 -1
- package/dist/actions/create-webhook.mjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.cjs +1 -1
- package/dist/actions/delete-default-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-default-parcel-template.d.cts +1 -1
- package/dist/actions/delete-default-parcel-template.d.mts +1 -1
- package/dist/actions/delete-default-parcel-template.mjs +1 -1
- package/dist/actions/delete-default-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.cjs +1 -1
- package/dist/actions/delete-user-parcel-template.cjs.map +1 -1
- package/dist/actions/delete-user-parcel-template.d.cts +1 -1
- package/dist/actions/delete-user-parcel-template.d.mts +1 -1
- package/dist/actions/delete-user-parcel-template.mjs +1 -1
- package/dist/actions/delete-user-parcel-template.mjs.map +1 -1
- package/dist/actions/delete-webhook.cjs +1 -1
- package/dist/actions/delete-webhook.cjs.map +1 -1
- package/dist/actions/delete-webhook.d.cts +1 -1
- package/dist/actions/delete-webhook.d.mts +1 -1
- package/dist/actions/delete-webhook.mjs +1 -1
- package/dist/actions/delete-webhook.mjs.map +1 -1
- package/dist/actions/get-address.cjs +3 -3
- package/dist/actions/get-address.cjs.map +1 -1
- package/dist/actions/get-address.d.cts +3 -3
- package/dist/actions/get-address.d.mts +3 -3
- package/dist/actions/get-address.mjs +3 -3
- package/dist/actions/get-address.mjs.map +1 -1
- package/dist/actions/get-carrier-account.cjs +2 -2
- package/dist/actions/get-carrier-account.cjs.map +1 -1
- package/dist/actions/get-carrier-account.d.cts +2 -2
- package/dist/actions/get-carrier-account.d.mts +2 -2
- package/dist/actions/get-carrier-account.mjs +2 -2
- package/dist/actions/get-carrier-account.mjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.cjs +1 -1
- package/dist/actions/get-carrier-parcel-template.cjs.map +1 -1
- package/dist/actions/get-carrier-parcel-template.d.cts +2 -2
- package/dist/actions/get-carrier-parcel-template.d.mts +2 -2
- package/dist/actions/get-carrier-parcel-template.mjs +1 -1
- package/dist/actions/get-carrier-parcel-template.mjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.cjs +1 -1
- package/dist/actions/get-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-carrier-registration-status.d.cts +1 -1
- package/dist/actions/get-carrier-registration-status.d.mts +1 -1
- package/dist/actions/get-carrier-registration-status.mjs +1 -1
- package/dist/actions/get-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-customs-declaration.cjs +4 -4
- package/dist/actions/get-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-customs-declaration.d.cts +4 -4
- package/dist/actions/get-customs-declaration.d.mts +4 -4
- package/dist/actions/get-customs-declaration.mjs +4 -4
- package/dist/actions/get-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-customs-item.cjs +1 -1
- package/dist/actions/get-customs-item.cjs.map +1 -1
- package/dist/actions/get-customs-item.d.cts +1 -1
- package/dist/actions/get-customs-item.d.mts +1 -1
- package/dist/actions/get-customs-item.mjs +1 -1
- package/dist/actions/get-customs-item.mjs.map +1 -1
- package/dist/actions/get-default-parcel-template.cjs +2 -2
- package/dist/actions/get-default-parcel-template.cjs.map +1 -1
- package/dist/actions/get-default-parcel-template.d.cts +2 -2
- package/dist/actions/get-default-parcel-template.d.mts +2 -2
- package/dist/actions/get-default-parcel-template.mjs +2 -2
- package/dist/actions/get-default-parcel-template.mjs.map +1 -1
- package/dist/actions/get-merchant-address.cjs +3 -3
- package/dist/actions/get-merchant-address.cjs.map +1 -1
- package/dist/actions/get-merchant-address.d.cts +3 -3
- package/dist/actions/get-merchant-address.d.mts +3 -3
- package/dist/actions/get-merchant-address.mjs +3 -3
- package/dist/actions/get-merchant-address.mjs.map +1 -1
- package/dist/actions/get-merchant-batch.cjs +3 -3
- package/dist/actions/get-merchant-batch.cjs.map +1 -1
- package/dist/actions/get-merchant-batch.d.cts +5 -5
- package/dist/actions/get-merchant-batch.d.mts +5 -5
- package/dist/actions/get-merchant-batch.mjs +3 -3
- package/dist/actions/get-merchant-batch.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.cjs +2 -2
- package/dist/actions/get-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-account.d.cts +2 -2
- package/dist/actions/get-merchant-carrier-account.d.mts +2 -2
- package/dist/actions/get-merchant-carrier-account.mjs +2 -2
- package/dist/actions/get-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.cjs +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.cjs.map +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.cts +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.d.mts +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.mjs +1 -1
- package/dist/actions/get-merchant-carrier-registration-status.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.cjs +1 -1
- package/dist/actions/get-merchant-customs-declaration.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.cts +1 -1
- package/dist/actions/get-merchant-customs-declaration.d.mts +1 -1
- package/dist/actions/get-merchant-customs-declaration.mjs +1 -1
- package/dist/actions/get-merchant-customs-declaration.mjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.cjs +1 -1
- package/dist/actions/get-merchant-customs-item.cjs.map +1 -1
- package/dist/actions/get-merchant-customs-item.d.cts +1 -1
- package/dist/actions/get-merchant-customs-item.d.mts +1 -1
- package/dist/actions/get-merchant-customs-item.mjs +1 -1
- package/dist/actions/get-merchant-customs-item.mjs.map +1 -1
- package/dist/actions/get-merchant-manifest.cjs +1 -1
- package/dist/actions/get-merchant-manifest.cjs.map +1 -1
- package/dist/actions/get-merchant-manifest.d.cts +1 -1
- package/dist/actions/get-merchant-manifest.d.mts +1 -1
- package/dist/actions/get-merchant-manifest.mjs +1 -1
- package/dist/actions/get-merchant-manifest.mjs.map +1 -1
- package/dist/actions/get-merchant-order.cjs +3 -3
- package/dist/actions/get-merchant-order.cjs.map +1 -1
- package/dist/actions/get-merchant-order.d.cts +4 -4
- package/dist/actions/get-merchant-order.d.mts +4 -4
- package/dist/actions/get-merchant-order.mjs +3 -3
- package/dist/actions/get-merchant-order.mjs.map +1 -1
- package/dist/actions/get-merchant-parcel.cjs +4 -4
- package/dist/actions/get-merchant-parcel.cjs.map +1 -1
- package/dist/actions/get-merchant-parcel.d.cts +4 -4
- package/dist/actions/get-merchant-parcel.d.mts +4 -4
- package/dist/actions/get-merchant-parcel.mjs +4 -4
- package/dist/actions/get-merchant-parcel.mjs.map +1 -1
- package/dist/actions/get-merchant-rate.cjs +3 -3
- package/dist/actions/get-merchant-rate.cjs.map +1 -1
- package/dist/actions/get-merchant-rate.d.cts +3 -3
- package/dist/actions/get-merchant-rate.d.mts +3 -3
- package/dist/actions/get-merchant-rate.mjs +3 -3
- package/dist/actions/get-merchant-rate.mjs.map +1 -1
- package/dist/actions/get-merchant-refund.cjs +1 -1
- package/dist/actions/get-merchant-refund.cjs.map +1 -1
- package/dist/actions/get-merchant-refund.d.cts +1 -1
- package/dist/actions/get-merchant-refund.d.mts +1 -1
- package/dist/actions/get-merchant-refund.mjs +1 -1
- package/dist/actions/get-merchant-refund.mjs.map +1 -1
- package/dist/actions/get-merchant-shipment.cjs +14 -14
- package/dist/actions/get-merchant-shipment.cjs.map +1 -1
- package/dist/actions/get-merchant-shipment.d.cts +19 -19
- package/dist/actions/get-merchant-shipment.d.mts +19 -19
- package/dist/actions/get-merchant-shipment.mjs +14 -14
- package/dist/actions/get-merchant-shipment.mjs.map +1 -1
- package/dist/actions/get-merchant-track.cjs +6 -6
- package/dist/actions/get-merchant-track.cjs.map +1 -1
- package/dist/actions/get-merchant-track.d.cts +8 -8
- package/dist/actions/get-merchant-track.d.mts +8 -8
- package/dist/actions/get-merchant-track.mjs +6 -6
- package/dist/actions/get-merchant-track.mjs.map +1 -1
- package/dist/actions/get-merchant-transaction.cjs +2 -2
- package/dist/actions/get-merchant-transaction.cjs.map +1 -1
- package/dist/actions/get-merchant-transaction.d.cts +3 -3
- package/dist/actions/get-merchant-transaction.d.mts +3 -3
- package/dist/actions/get-merchant-transaction.mjs +2 -2
- package/dist/actions/get-merchant-transaction.mjs.map +1 -1
- package/dist/actions/get-merchant.cjs +1 -1
- package/dist/actions/get-merchant.cjs.map +1 -1
- package/dist/actions/get-merchant.d.cts +1 -1
- package/dist/actions/get-merchant.d.mts +1 -1
- package/dist/actions/get-merchant.mjs +1 -1
- package/dist/actions/get-merchant.mjs.map +1 -1
- package/dist/actions/get-order.cjs +5 -5
- package/dist/actions/get-order.cjs.map +1 -1
- package/dist/actions/get-order.d.cts +6 -6
- package/dist/actions/get-order.d.mts +6 -6
- package/dist/actions/get-order.mjs +5 -5
- package/dist/actions/get-order.mjs.map +1 -1
- package/dist/actions/get-parcel.cjs +4 -4
- package/dist/actions/get-parcel.cjs.map +1 -1
- package/dist/actions/get-parcel.d.cts +4 -4
- package/dist/actions/get-parcel.d.mts +4 -4
- package/dist/actions/get-parcel.mjs +4 -4
- package/dist/actions/get-parcel.mjs.map +1 -1
- package/dist/actions/get-rate.cjs +3 -3
- package/dist/actions/get-rate.cjs.map +1 -1
- package/dist/actions/get-rate.d.cts +3 -3
- package/dist/actions/get-rate.d.mts +3 -3
- package/dist/actions/get-rate.mjs +3 -3
- package/dist/actions/get-rate.mjs.map +1 -1
- package/dist/actions/get-refund.cjs +1 -1
- package/dist/actions/get-refund.cjs.map +1 -1
- package/dist/actions/get-refund.d.cts +1 -1
- package/dist/actions/get-refund.d.mts +1 -1
- package/dist/actions/get-refund.mjs +1 -1
- package/dist/actions/get-refund.mjs.map +1 -1
- package/dist/actions/get-shipment.cjs +9 -9
- package/dist/actions/get-shipment.cjs.map +1 -1
- package/dist/actions/get-shipment.d.cts +13 -13
- package/dist/actions/get-shipment.d.mts +13 -13
- package/dist/actions/get-shipment.mjs +9 -9
- package/dist/actions/get-shipment.mjs.map +1 -1
- package/dist/actions/get-shippo-account.cjs +1 -1
- package/dist/actions/get-shippo-account.cjs.map +1 -1
- package/dist/actions/get-shippo-account.d.cts +1 -1
- package/dist/actions/get-shippo-account.d.mts +1 -1
- package/dist/actions/get-shippo-account.mjs +1 -1
- package/dist/actions/get-shippo-account.mjs.map +1 -1
- package/dist/actions/get-track.cjs +6 -6
- package/dist/actions/get-track.cjs.map +1 -1
- package/dist/actions/get-track.d.cts +8 -8
- package/dist/actions/get-track.d.mts +8 -8
- package/dist/actions/get-track.mjs +6 -6
- package/dist/actions/get-track.mjs.map +1 -1
- package/dist/actions/get-transaction.cjs +2 -2
- package/dist/actions/get-transaction.cjs.map +1 -1
- package/dist/actions/get-transaction.d.cts +2 -2
- package/dist/actions/get-transaction.d.mts +2 -2
- package/dist/actions/get-transaction.mjs +2 -2
- package/dist/actions/get-transaction.mjs.map +1 -1
- package/dist/actions/get-user-parcel-template.cjs +2 -2
- package/dist/actions/get-user-parcel-template.cjs.map +1 -1
- package/dist/actions/get-user-parcel-template.d.cts +2 -2
- package/dist/actions/get-user-parcel-template.d.mts +2 -2
- package/dist/actions/get-user-parcel-template.mjs +2 -2
- package/dist/actions/get-user-parcel-template.mjs.map +1 -1
- package/dist/actions/get-webhook.cjs +1 -1
- package/dist/actions/get-webhook.cjs.map +1 -1
- package/dist/actions/get-webhook.d.cts +1 -1
- package/dist/actions/get-webhook.d.mts +1 -1
- package/dist/actions/get-webhook.mjs +1 -1
- package/dist/actions/get-webhook.mjs.map +1 -1
- package/dist/actions/list-addresses.cjs +4 -4
- package/dist/actions/list-addresses.cjs.map +1 -1
- package/dist/actions/list-addresses.d.cts +4 -4
- package/dist/actions/list-addresses.d.mts +4 -4
- package/dist/actions/list-addresses.mjs +4 -4
- package/dist/actions/list-addresses.mjs.map +1 -1
- package/dist/actions/list-carrier-accounts.cjs +4 -4
- package/dist/actions/list-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-carrier-accounts.d.cts +4 -4
- package/dist/actions/list-carrier-accounts.d.mts +4 -4
- package/dist/actions/list-carrier-accounts.mjs +4 -4
- package/dist/actions/list-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.cjs +2 -2
- package/dist/actions/list-carrier-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-carrier-parcel-templates.d.cts +3 -3
- package/dist/actions/list-carrier-parcel-templates.d.mts +3 -3
- package/dist/actions/list-carrier-parcel-templates.mjs +2 -2
- package/dist/actions/list-carrier-parcel-templates.mjs.map +1 -1
- package/dist/actions/list-customs-declarations.cjs +7 -7
- package/dist/actions/list-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-customs-declarations.d.cts +7 -7
- package/dist/actions/list-customs-declarations.d.mts +7 -7
- package/dist/actions/list-customs-declarations.mjs +7 -7
- package/dist/actions/list-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-customs-items.cjs +2 -2
- package/dist/actions/list-customs-items.cjs.map +1 -1
- package/dist/actions/list-customs-items.d.cts +2 -2
- package/dist/actions/list-customs-items.d.mts +2 -2
- package/dist/actions/list-customs-items.mjs +2 -2
- package/dist/actions/list-customs-items.mjs.map +1 -1
- package/dist/actions/list-manifests.cjs +2 -2
- package/dist/actions/list-manifests.cjs.map +1 -1
- package/dist/actions/list-manifests.d.cts +2 -2
- package/dist/actions/list-manifests.d.mts +2 -2
- package/dist/actions/list-manifests.mjs +2 -2
- package/dist/actions/list-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-addresses.cjs +4 -4
- package/dist/actions/list-merchant-addresses.cjs.map +1 -1
- package/dist/actions/list-merchant-addresses.d.cts +4 -4
- package/dist/actions/list-merchant-addresses.d.mts +4 -4
- package/dist/actions/list-merchant-addresses.mjs +4 -4
- package/dist/actions/list-merchant-addresses.mjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.cjs +3 -3
- package/dist/actions/list-merchant-carrier-accounts.cjs.map +1 -1
- package/dist/actions/list-merchant-carrier-accounts.d.cts +3 -3
- package/dist/actions/list-merchant-carrier-accounts.d.mts +3 -3
- package/dist/actions/list-merchant-carrier-accounts.mjs +3 -3
- package/dist/actions/list-merchant-carrier-accounts.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.cjs +2 -2
- package/dist/actions/list-merchant-customs-declarations.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-declarations.d.cts +2 -2
- package/dist/actions/list-merchant-customs-declarations.d.mts +2 -2
- package/dist/actions/list-merchant-customs-declarations.mjs +2 -2
- package/dist/actions/list-merchant-customs-declarations.mjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.cjs +2 -2
- package/dist/actions/list-merchant-customs-items.cjs.map +1 -1
- package/dist/actions/list-merchant-customs-items.d.cts +2 -2
- package/dist/actions/list-merchant-customs-items.d.mts +2 -2
- package/dist/actions/list-merchant-customs-items.mjs +2 -2
- package/dist/actions/list-merchant-customs-items.mjs.map +1 -1
- package/dist/actions/list-merchant-manifests.cjs +3 -3
- package/dist/actions/list-merchant-manifests.cjs.map +1 -1
- package/dist/actions/list-merchant-manifests.d.cts +3 -3
- package/dist/actions/list-merchant-manifests.d.mts +3 -3
- package/dist/actions/list-merchant-manifests.mjs +3 -3
- package/dist/actions/list-merchant-manifests.mjs.map +1 -1
- package/dist/actions/list-merchant-parcels.cjs +3 -3
- package/dist/actions/list-merchant-parcels.cjs.map +1 -1
- package/dist/actions/list-merchant-parcels.d.cts +3 -3
- package/dist/actions/list-merchant-parcels.d.mts +3 -3
- package/dist/actions/list-merchant-parcels.mjs +3 -3
- package/dist/actions/list-merchant-parcels.mjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.cjs +4 -4
- package/dist/actions/list-merchant-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.cts +4 -4
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts +4 -4
- package/dist/actions/list-merchant-shipment-rates-by-currency.mjs +4 -4
- package/dist/actions/list-merchant-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-merchant-shipments.cjs +10 -10
- package/dist/actions/list-merchant-shipments.cjs.map +1 -1
- package/dist/actions/list-merchant-shipments.d.cts +13 -13
- package/dist/actions/list-merchant-shipments.d.mts +13 -13
- package/dist/actions/list-merchant-shipments.mjs +10 -10
- package/dist/actions/list-merchant-shipments.mjs.map +1 -1
- package/dist/actions/list-merchant-transactions.cjs +3 -3
- package/dist/actions/list-merchant-transactions.cjs.map +1 -1
- package/dist/actions/list-merchant-transactions.d.cts +3 -3
- package/dist/actions/list-merchant-transactions.d.mts +3 -3
- package/dist/actions/list-merchant-transactions.mjs +3 -3
- package/dist/actions/list-merchant-transactions.mjs.map +1 -1
- package/dist/actions/list-merchants.cjs +2 -2
- package/dist/actions/list-merchants.cjs.map +1 -1
- package/dist/actions/list-merchants.d.cts +2 -2
- package/dist/actions/list-merchants.d.mts +2 -2
- package/dist/actions/list-merchants.mjs +2 -2
- package/dist/actions/list-merchants.mjs.map +1 -1
- package/dist/actions/list-orders.cjs +6 -6
- package/dist/actions/list-orders.cjs.map +1 -1
- package/dist/actions/list-orders.d.cts +7 -7
- package/dist/actions/list-orders.d.mts +7 -7
- package/dist/actions/list-orders.mjs +6 -6
- package/dist/actions/list-orders.mjs.map +1 -1
- package/dist/actions/list-refunds.cjs +2 -2
- package/dist/actions/list-refunds.cjs.map +1 -1
- package/dist/actions/list-refunds.d.cts +2 -2
- package/dist/actions/list-refunds.d.mts +2 -2
- package/dist/actions/list-refunds.mjs +2 -2
- package/dist/actions/list-refunds.mjs.map +1 -1
- package/dist/actions/list-service-groups.cjs +3 -3
- package/dist/actions/list-service-groups.cjs.map +1 -1
- package/dist/actions/list-service-groups.d.cts +3 -3
- package/dist/actions/list-service-groups.d.mts +3 -3
- package/dist/actions/list-service-groups.mjs +3 -3
- package/dist/actions/list-service-groups.mjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.cjs +4 -4
- package/dist/actions/list-shipment-rates-by-currency.cjs.map +1 -1
- package/dist/actions/list-shipment-rates-by-currency.d.cts +4 -4
- package/dist/actions/list-shipment-rates-by-currency.d.mts +4 -4
- package/dist/actions/list-shipment-rates-by-currency.mjs +4 -4
- package/dist/actions/list-shipment-rates-by-currency.mjs.map +1 -1
- package/dist/actions/list-shipment-rates.cjs +4 -4
- package/dist/actions/list-shipment-rates.cjs.map +1 -1
- package/dist/actions/list-shipment-rates.d.cts +4 -4
- package/dist/actions/list-shipment-rates.d.mts +4 -4
- package/dist/actions/list-shipment-rates.mjs +4 -4
- package/dist/actions/list-shipment-rates.mjs.map +1 -1
- package/dist/actions/list-shipments.cjs +9 -9
- package/dist/actions/list-shipments.cjs.map +1 -1
- package/dist/actions/list-shipments.d.cts +13 -13
- package/dist/actions/list-shipments.d.mts +13 -13
- package/dist/actions/list-shipments.mjs +9 -9
- package/dist/actions/list-shipments.mjs.map +1 -1
- package/dist/actions/list-shippo-accounts.cjs +2 -2
- package/dist/actions/list-shippo-accounts.cjs.map +1 -1
- package/dist/actions/list-shippo-accounts.d.cts +2 -2
- package/dist/actions/list-shippo-accounts.d.mts +2 -2
- package/dist/actions/list-shippo-accounts.mjs +2 -2
- package/dist/actions/list-shippo-accounts.mjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.cjs +3 -3
- package/dist/actions/list-user-parcel-templates.cjs.map +1 -1
- package/dist/actions/list-user-parcel-templates.d.cts +3 -3
- package/dist/actions/list-user-parcel-templates.d.mts +3 -3
- package/dist/actions/list-user-parcel-templates.mjs +3 -3
- package/dist/actions/list-user-parcel-templates.mjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.cjs +4 -4
- package/dist/actions/purchase-merchant-batch.cjs.map +1 -1
- package/dist/actions/purchase-merchant-batch.d.cts +4 -4
- package/dist/actions/purchase-merchant-batch.d.mts +4 -4
- package/dist/actions/purchase-merchant-batch.mjs +4 -4
- package/dist/actions/purchase-merchant-batch.mjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.cjs +5 -5
- package/dist/actions/remove-shipments-from-batch.cjs.map +1 -1
- package/dist/actions/remove-shipments-from-batch.d.cts +5 -5
- package/dist/actions/remove-shipments-from-batch.d.mts +5 -5
- package/dist/actions/remove-shipments-from-batch.mjs +5 -5
- package/dist/actions/remove-shipments-from-batch.mjs.map +1 -1
- package/dist/actions/update-carrier-account.cjs +3 -3
- package/dist/actions/update-carrier-account.cjs.map +1 -1
- package/dist/actions/update-carrier-account.d.cts +4 -4
- package/dist/actions/update-carrier-account.d.mts +4 -4
- package/dist/actions/update-carrier-account.mjs +3 -3
- package/dist/actions/update-carrier-account.mjs.map +1 -1
- package/dist/actions/update-default-parcel-template.cjs +3 -3
- package/dist/actions/update-default-parcel-template.cjs.map +1 -1
- package/dist/actions/update-default-parcel-template.d.cts +3 -3
- package/dist/actions/update-default-parcel-template.d.mts +3 -3
- package/dist/actions/update-default-parcel-template.mjs +3 -3
- package/dist/actions/update-default-parcel-template.mjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.cjs +2 -2
- package/dist/actions/update-merchant-carrier-account.cjs.map +1 -1
- package/dist/actions/update-merchant-carrier-account.d.cts +2 -2
- package/dist/actions/update-merchant-carrier-account.d.mts +2 -2
- package/dist/actions/update-merchant-carrier-account.mjs +2 -2
- package/dist/actions/update-merchant-carrier-account.mjs.map +1 -1
- package/dist/actions/update-merchant.cjs +1 -1
- package/dist/actions/update-merchant.cjs.map +1 -1
- package/dist/actions/update-merchant.d.cts +1 -1
- package/dist/actions/update-merchant.d.mts +1 -1
- package/dist/actions/update-merchant.mjs +1 -1
- package/dist/actions/update-merchant.mjs.map +1 -1
- package/dist/actions/update-service-group.cjs +3 -3
- package/dist/actions/update-service-group.cjs.map +1 -1
- package/dist/actions/update-service-group.d.cts +4 -3
- package/dist/actions/update-service-group.d.mts +4 -3
- package/dist/actions/update-service-group.mjs +3 -3
- package/dist/actions/update-service-group.mjs.map +1 -1
- package/dist/actions/update-user-parcel-template.cjs +2 -2
- package/dist/actions/update-user-parcel-template.cjs.map +1 -1
- package/dist/actions/update-user-parcel-template.d.cts +2 -2
- package/dist/actions/update-user-parcel-template.d.mts +2 -2
- package/dist/actions/update-user-parcel-template.mjs +2 -2
- package/dist/actions/update-user-parcel-template.mjs.map +1 -1
- package/dist/actions/update-webhook.cjs +1 -1
- package/dist/actions/update-webhook.cjs.map +1 -1
- package/dist/actions/update-webhook.d.cts +5 -5
- package/dist/actions/update-webhook.d.mts +5 -5
- package/dist/actions/update-webhook.mjs +1 -1
- package/dist/actions/update-webhook.mjs.map +1 -1
- package/dist/actions/validate-address.cjs +3 -3
- package/dist/actions/validate-address.cjs.map +1 -1
- package/dist/actions/validate-address.d.cts +3 -3
- package/dist/actions/validate-address.d.mts +3 -3
- package/dist/actions/validate-address.mjs +3 -3
- package/dist/actions/validate-address.mjs.map +1 -1
- package/dist/actions/validate-merchant-address.cjs +3 -3
- package/dist/actions/validate-merchant-address.cjs.map +1 -1
- package/dist/actions/validate-merchant-address.d.cts +3 -3
- package/dist/actions/validate-merchant-address.d.mts +3 -3
- package/dist/actions/validate-merchant-address.mjs +3 -3
- package/dist/actions/validate-merchant-address.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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.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,SAA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C5G,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}).passthrough().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}).passthrough().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,CAA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S,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACxF,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,CAAC,CAAC,SAAS;EACpE,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,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -33,7 +33,7 @@ const ShippoCreateCustomsItemOutput = zod.z.object({
|
|
|
33
33
|
object_updated: zod.z.string().describe("Timestamp when the customs item was last updated.").nullable().optional(),
|
|
34
34
|
origin_country: zod.z.string().describe("Country code of the item's origin.").nullable().optional(),
|
|
35
35
|
value_currency: zod.z.string().describe("Currency code for the item value.").nullable().optional()
|
|
36
|
-
}).describe("Response containing the created customs item details.");
|
|
36
|
+
}).passthrough().describe("Response containing the created customs item details.");
|
|
37
37
|
const shippoCreateCustomsItem = require_action.action("SHIPPO_CREATE_CUSTOMS_ITEM", {
|
|
38
38
|
slug: "shippo-create-customs-item",
|
|
39
39
|
name: "Create Customs Item",
|
|
@@ -1 +1 @@
|
|
|
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;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E,OAAO,CAAC,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;
|
|
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}).passthrough().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;CAC9G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CAC7F,oBAAoBA,IAAAA,EAAE,OA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O,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,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAEjF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -33,7 +33,7 @@ declare const ShippoCreateCustomsItemOutput: z.ZodObject<{
|
|
|
33
33
|
object_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
value_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const shippoCreateCustomsItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
quantity: number;
|
|
39
39
|
mass_unit: string;
|
|
@@ -33,7 +33,7 @@ declare const ShippoCreateCustomsItemOutput: z.ZodObject<{
|
|
|
33
33
|
object_updated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
34
|
origin_country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
value_currency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>;
|
|
37
37
|
declare const shippoCreateCustomsItem: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
38
38
|
quantity: number;
|
|
39
39
|
mass_unit: string;
|
|
@@ -36,7 +36,7 @@ const shippoCreateCustomsItem = action("SHIPPO_CREATE_CUSTOMS_ITEM", {
|
|
|
36
36
|
object_updated: z.string().describe("Timestamp when the customs item was last updated.").nullable().optional(),
|
|
37
37
|
origin_country: z.string().describe("Country code of the item's origin.").nullable().optional(),
|
|
38
38
|
value_currency: z.string().describe("Currency code for the item value.").nullable().optional()
|
|
39
|
-
}).describe("Response containing the created customs item details.")
|
|
39
|
+
}).passthrough().describe("Response containing the created customs item details.")
|
|
40
40
|
});
|
|
41
41
|
//#endregion
|
|
42
42
|
export { shippoCreateCustomsItem };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-customs-item.mjs","names":[],"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":";;AAsCA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;EACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;EAChJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC1I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;EAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACnG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE;EAC3G,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EACpI,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;EAC9G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EAC7F,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,mEAyBH;CACP,QAzB2C,EAAE,OAAO;EACpD,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,UAAU,EAAE,OAAO,C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gB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"create-customs-item.mjs","names":[],"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}).passthrough().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":";;AAsCA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAtC0C,EAAE,OAAO;EACnD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oEAAoE;EACxG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;EAChH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iHAAiH;EAChJ,YAAY,EAAE,O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;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAOhB;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ const ShippoCreateLiveRateInput = zod.z.object({
|
|
|
10
10
|
metadata: zod.z.string().nullable().optional(),
|
|
11
11
|
mass_unit: zod.z.string().describe("Unit of mass measurement (lb, oz, kg, g)"),
|
|
12
12
|
distance_unit: zod.z.string().describe("Unit of distance measurement (in, cm, ft, mm, m, yd)")
|
|
13
|
-
}).describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
13
|
+
}).passthrough().describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
14
14
|
address_to: zod.z.union([zod.z.string(), zod.z.object({
|
|
15
15
|
zip: zod.z.string().describe("Postal code or ZIP code"),
|
|
16
16
|
city: zod.z.string().describe("City name"),
|
|
@@ -21,7 +21,7 @@ const ShippoCreateLiveRateInput = zod.z.object({
|
|
|
21
21
|
country: zod.z.string().describe("Two-letter ISO country code"),
|
|
22
22
|
street1: zod.z.string().describe("First street line of the address"),
|
|
23
23
|
street2: zod.z.string().nullable().optional()
|
|
24
|
-
}).describe("Full address object for live rate calculation.")]),
|
|
24
|
+
}).passthrough().describe("Full address object for live rate calculation.")]),
|
|
25
25
|
line_items: zod.z.array(zod.z.object({
|
|
26
26
|
sku: zod.z.string().describe("Stock keeping unit identifier").optional(),
|
|
27
27
|
title: zod.z.string().describe("Title or name of the item being shipped"),
|
|
@@ -34,7 +34,7 @@ const ShippoCreateLiveRateInput = zod.z.object({
|
|
|
34
34
|
variant_title: zod.z.string().describe("Variant title for the item").optional(),
|
|
35
35
|
max_delivery_time: zod.z.string().describe("Maximum delivery time in ISO 8601 duration format").optional(),
|
|
36
36
|
manufacture_country: zod.z.string().describe("Two-letter ISO country code where the item was manufactured").optional()
|
|
37
|
-
}).describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
37
|
+
}).passthrough().describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
38
38
|
address_from: zod.z.union([zod.z.string(), zod.z.object({
|
|
39
39
|
zip: zod.z.string().describe("Postal code or ZIP code"),
|
|
40
40
|
city: zod.z.string().describe("City name"),
|
|
@@ -45,7 +45,7 @@ const ShippoCreateLiveRateInput = zod.z.object({
|
|
|
45
45
|
country: zod.z.string().describe("Two-letter ISO country code"),
|
|
46
46
|
street1: zod.z.string().describe("First street line of the address"),
|
|
47
47
|
street2: zod.z.string().nullable().optional()
|
|
48
|
-
}).describe("Full address object for live rate calculation.")]).optional(),
|
|
48
|
+
}).passthrough().describe("Full address object for live rate calculation.")]).optional(),
|
|
49
49
|
shippo_api_version: zod.z.string().describe("String used to pick a non-default API version to use").optional()
|
|
50
50
|
}).describe("Request model for generating live shipping rates.");
|
|
51
51
|
const ShippoCreateLiveRate_RateResultSchema = zod.z.object({
|
|
@@ -55,13 +55,13 @@ const ShippoCreateLiveRate_RateResultSchema = zod.z.object({
|
|
|
55
55
|
amount_local: zod.z.string().describe("Cost in local currency if different from main currency").nullable().optional(),
|
|
56
56
|
currency_local: zod.z.string().describe("Local currency code if different").nullable().optional(),
|
|
57
57
|
estimated_days: zod.z.number().int().describe("Estimated number of days for delivery").nullable().optional()
|
|
58
|
-
}).describe("A single shipping rate result.");
|
|
58
|
+
}).passthrough().describe("A single shipping rate result.");
|
|
59
59
|
const ShippoCreateLiveRateOutput = zod.z.object({
|
|
60
60
|
next: zod.z.string().describe("URL to the next page of results if pagination is available").nullable().optional(),
|
|
61
61
|
count: zod.z.number().int().describe("Total number of rate results available").nullable().optional(),
|
|
62
62
|
results: zod.z.array(ShippoCreateLiveRate_RateResultSchema).describe("Array of shipping rate objects from various carriers").nullable().optional(),
|
|
63
63
|
previous: zod.z.string().describe("URL to the previous page of results if pagination is available").nullable().optional()
|
|
64
|
-
}).describe("Response model containing available shipping rates.");
|
|
64
|
+
}).passthrough().describe("Response model containing available shipping rates.");
|
|
65
65
|
const shippoCreateLiveRate = require_action.action("SHIPPO_CREATE_LIVE_RATE", {
|
|
66
66
|
slug: "shippo-create-live-rate",
|
|
67
67
|
name: "Create Live Rate",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-live-rate.cjs","names":["z","action"],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), 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 metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO;EAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-live-rate.cjs","names":["z","action"],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), 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 metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).passthrough().describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).passthrough().describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).passthrough().describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).passthrough().describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO;EAC9C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC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AA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -10,7 +10,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
10
10
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
mass_unit: z.ZodString;
|
|
12
12
|
distance_unit: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>]>>>;
|
|
14
14
|
address_to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
15
15
|
zip: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
@@ -21,7 +21,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
21
21
|
country: z.ZodString;
|
|
22
22
|
street1: z.ZodString;
|
|
23
23
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>]>;
|
|
25
25
|
line_items: z.ZodArray<z.ZodObject<{
|
|
26
26
|
sku: z.ZodOptional<z.ZodString>;
|
|
27
27
|
title: z.ZodString;
|
|
@@ -34,7 +34,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
34
34
|
variant_title: z.ZodOptional<z.ZodString>;
|
|
35
35
|
max_delivery_time: z.ZodOptional<z.ZodString>;
|
|
36
36
|
manufacture_country: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
address_from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
39
39
|
zip: z.ZodString;
|
|
40
40
|
city: z.ZodString;
|
|
@@ -45,7 +45,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
45
45
|
country: z.ZodString;
|
|
46
46
|
street1: z.ZodString;
|
|
47
47
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>]>>;
|
|
49
49
|
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
declare const ShippoCreateLiveRateOutput: z.ZodObject<{
|
|
@@ -58,11 +58,12 @@ declare const ShippoCreateLiveRateOutput: z.ZodObject<{
|
|
|
58
58
|
amount_local: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
currency_local: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
estimated_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>>>;
|
|
62
62
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
address_to: string | {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
zip: string;
|
|
67
68
|
city: string;
|
|
68
69
|
name: string;
|
|
@@ -74,6 +75,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
74
75
|
street2?: string | null | undefined;
|
|
75
76
|
};
|
|
76
77
|
line_items: {
|
|
78
|
+
[x: string]: unknown;
|
|
77
79
|
title: string;
|
|
78
80
|
weight: string;
|
|
79
81
|
currency: string;
|
|
@@ -87,6 +89,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
87
89
|
manufacture_country?: string | undefined;
|
|
88
90
|
}[];
|
|
89
91
|
parcel?: (string | {
|
|
92
|
+
[x: string]: unknown;
|
|
90
93
|
width: string;
|
|
91
94
|
height: string;
|
|
92
95
|
length: string;
|
|
@@ -96,6 +99,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
96
99
|
metadata?: string | null | undefined;
|
|
97
100
|
})[] | undefined;
|
|
98
101
|
address_from?: string | {
|
|
102
|
+
[x: string]: unknown;
|
|
99
103
|
zip: string;
|
|
100
104
|
city: string;
|
|
101
105
|
name: string;
|
|
@@ -10,7 +10,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
10
10
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
11
|
mass_unit: z.ZodString;
|
|
12
12
|
distance_unit: z.ZodString;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>]>>>;
|
|
14
14
|
address_to: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
15
15
|
zip: z.ZodString;
|
|
16
16
|
city: z.ZodString;
|
|
@@ -21,7 +21,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
21
21
|
country: z.ZodString;
|
|
22
22
|
street1: z.ZodString;
|
|
23
23
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>]>;
|
|
25
25
|
line_items: z.ZodArray<z.ZodObject<{
|
|
26
26
|
sku: z.ZodOptional<z.ZodString>;
|
|
27
27
|
title: z.ZodString;
|
|
@@ -34,7 +34,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
34
34
|
variant_title: z.ZodOptional<z.ZodString>;
|
|
35
35
|
max_delivery_time: z.ZodOptional<z.ZodString>;
|
|
36
36
|
manufacture_country: z.ZodOptional<z.ZodString>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
address_from: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
39
39
|
zip: z.ZodString;
|
|
40
40
|
city: z.ZodString;
|
|
@@ -45,7 +45,7 @@ declare const ShippoCreateLiveRateInput: z.ZodObject<{
|
|
|
45
45
|
country: z.ZodString;
|
|
46
46
|
street1: z.ZodString;
|
|
47
47
|
street2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
-
}, z.core.$
|
|
48
|
+
}, z.core.$loose>]>>;
|
|
49
49
|
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
50
50
|
}, z.core.$strip>;
|
|
51
51
|
declare const ShippoCreateLiveRateOutput: z.ZodObject<{
|
|
@@ -58,11 +58,12 @@ declare const ShippoCreateLiveRateOutput: z.ZodObject<{
|
|
|
58
58
|
amount_local: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
currency_local: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
60
60
|
estimated_days: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
61
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>>>;
|
|
62
62
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
|
-
}, z.core.$
|
|
63
|
+
}, z.core.$loose>;
|
|
64
64
|
declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
65
65
|
address_to: string | {
|
|
66
|
+
[x: string]: unknown;
|
|
66
67
|
zip: string;
|
|
67
68
|
city: string;
|
|
68
69
|
name: string;
|
|
@@ -74,6 +75,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
74
75
|
street2?: string | null | undefined;
|
|
75
76
|
};
|
|
76
77
|
line_items: {
|
|
78
|
+
[x: string]: unknown;
|
|
77
79
|
title: string;
|
|
78
80
|
weight: string;
|
|
79
81
|
currency: string;
|
|
@@ -87,6 +89,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
87
89
|
manufacture_country?: string | undefined;
|
|
88
90
|
}[];
|
|
89
91
|
parcel?: (string | {
|
|
92
|
+
[x: string]: unknown;
|
|
90
93
|
width: string;
|
|
91
94
|
height: string;
|
|
92
95
|
length: string;
|
|
@@ -96,6 +99,7 @@ declare const shippoCreateLiveRate: import("@keystrokehq/action").WorkflowAction
|
|
|
96
99
|
metadata?: string | null | undefined;
|
|
97
100
|
})[] | undefined;
|
|
98
101
|
address_from?: string | {
|
|
102
|
+
[x: string]: unknown;
|
|
99
103
|
zip: string;
|
|
100
104
|
city: string;
|
|
101
105
|
name: string;
|
|
@@ -10,7 +10,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
10
10
|
metadata: z.string().nullable().optional(),
|
|
11
11
|
mass_unit: z.string().describe("Unit of mass measurement (lb, oz, kg, g)"),
|
|
12
12
|
distance_unit: z.string().describe("Unit of distance measurement (in, cm, ft, mm, m, yd)")
|
|
13
|
-
}).describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
13
|
+
}).passthrough().describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
14
14
|
address_to: z.union([z.string(), z.object({
|
|
15
15
|
zip: z.string().describe("Postal code or ZIP code"),
|
|
16
16
|
city: z.string().describe("City name"),
|
|
@@ -21,7 +21,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
21
21
|
country: z.string().describe("Two-letter ISO country code"),
|
|
22
22
|
street1: z.string().describe("First street line of the address"),
|
|
23
23
|
street2: z.string().nullable().optional()
|
|
24
|
-
}).describe("Full address object for live rate calculation.")]),
|
|
24
|
+
}).passthrough().describe("Full address object for live rate calculation.")]),
|
|
25
25
|
line_items: z.array(z.object({
|
|
26
26
|
sku: z.string().describe("Stock keeping unit identifier").optional(),
|
|
27
27
|
title: z.string().describe("Title or name of the item being shipped"),
|
|
@@ -34,7 +34,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
34
34
|
variant_title: z.string().describe("Variant title for the item").optional(),
|
|
35
35
|
max_delivery_time: z.string().describe("Maximum delivery time in ISO 8601 duration format").optional(),
|
|
36
36
|
manufacture_country: z.string().describe("Two-letter ISO country code where the item was manufactured").optional()
|
|
37
|
-
}).describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
37
|
+
}).passthrough().describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
38
38
|
address_from: z.union([z.string(), z.object({
|
|
39
39
|
zip: z.string().describe("Postal code or ZIP code"),
|
|
40
40
|
city: z.string().describe("City name"),
|
|
@@ -45,7 +45,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
45
45
|
country: z.string().describe("Two-letter ISO country code"),
|
|
46
46
|
street1: z.string().describe("First street line of the address"),
|
|
47
47
|
street2: z.string().nullable().optional()
|
|
48
|
-
}).describe("Full address object for live rate calculation.")]).optional(),
|
|
48
|
+
}).passthrough().describe("Full address object for live rate calculation.")]).optional(),
|
|
49
49
|
shippo_api_version: z.string().describe("String used to pick a non-default API version to use").optional()
|
|
50
50
|
}).describe("Request model for generating live shipping rates.");
|
|
51
51
|
const ShippoCreateLiveRate_RateResultSchema = z.object({
|
|
@@ -55,7 +55,7 @@ const ShippoCreateLiveRate_RateResultSchema = z.object({
|
|
|
55
55
|
amount_local: z.string().describe("Cost in local currency if different from main currency").nullable().optional(),
|
|
56
56
|
currency_local: z.string().describe("Local currency code if different").nullable().optional(),
|
|
57
57
|
estimated_days: z.number().int().describe("Estimated number of days for delivery").nullable().optional()
|
|
58
|
-
}).describe("A single shipping rate result.");
|
|
58
|
+
}).passthrough().describe("A single shipping rate result.");
|
|
59
59
|
const shippoCreateLiveRate = action("SHIPPO_CREATE_LIVE_RATE", {
|
|
60
60
|
slug: "shippo-create-live-rate",
|
|
61
61
|
name: "Create Live Rate",
|
|
@@ -66,7 +66,7 @@ const shippoCreateLiveRate = action("SHIPPO_CREATE_LIVE_RATE", {
|
|
|
66
66
|
count: z.number().int().describe("Total number of rate results available").nullable().optional(),
|
|
67
67
|
results: z.array(ShippoCreateLiveRate_RateResultSchema).describe("Array of shipping rate objects from various carriers").nullable().optional(),
|
|
68
68
|
previous: z.string().describe("URL to the previous page of results if pagination is available").nullable().optional()
|
|
69
|
-
}).describe("Response model containing available shipping rates.")
|
|
69
|
+
}).passthrough().describe("Response model containing available shipping rates.")
|
|
70
70
|
});
|
|
71
71
|
//#endregion
|
|
72
72
|
export { shippoCreateLiveRate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-live-rate.mjs","names":[],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), 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 metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-live-rate.mjs","names":[],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), 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 metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).passthrough().describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).passthrough().describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).passthrough().describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).passthrough().describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAW,EAAE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SAAS,CAAC,CAAC,SAAS;CACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAQ1D,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ShippoCreateManifestInput = zod.z.object({
|
|
|
12
12
|
const ShippoCreateManifest_ManifestDocumentSchema = zod.z.object({
|
|
13
13
|
url: zod.z.string().describe("URL where the manifest document can be downloaded.").nullable().optional(),
|
|
14
14
|
type: zod.z.string().describe("Type of document (e.g., 'PDF').").nullable().optional()
|
|
15
|
-
}).describe("Model for manifest document information.");
|
|
15
|
+
}).passthrough().describe("Model for manifest document information.");
|
|
16
16
|
const ShippoCreateManifestOutput = zod.z.object({
|
|
17
17
|
status: zod.z.string().describe("Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.").nullable(),
|
|
18
18
|
documents: zod.z.array(ShippoCreateManifest_ManifestDocumentSchema).describe("List of documents associated with the manifest."),
|
|
@@ -24,7 +24,7 @@ const ShippoCreateManifestOutput = zod.z.object({
|
|
|
24
24
|
object_created: zod.z.string().describe("Timestamp when the manifest was created in ISO 8601 format.").nullable(),
|
|
25
25
|
object_updated: zod.z.string().describe("Timestamp when the manifest was last updated in ISO 8601 format.").nullable(),
|
|
26
26
|
carrier_account: zod.z.string().describe("Object ID of the carrier account used for this manifest.").nullable()
|
|
27
|
-
}).describe("Response model containing the created manifest.");
|
|
27
|
+
}).passthrough().describe("Response model containing the created manifest.");
|
|
28
28
|
const shippoCreateManifest = require_action.action("SHIPPO_CREATE_MANIFEST", {
|
|
29
29
|
slug: "shippo-create-manifest",
|
|
30
30
|
name: "Create Manifest",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.cjs","names":["z","action"],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"create-manifest.cjs","names":["z","action"],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).passthrough().describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).passthrough().describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,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AAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACjH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -14,7 +14,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
14
14
|
documents: z.ZodArray<z.ZodObject<{
|
|
15
15
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
object_id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
address_from: z.ZodNullable<z.ZodString>;
|
|
20
20
|
object_owner: z.ZodNullable<z.ZodString>;
|
|
@@ -23,7 +23,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
23
23
|
object_created: z.ZodNullable<z.ZodString>;
|
|
24
24
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
25
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
address_from: string;
|
|
29
29
|
shipment_date: string;
|
|
@@ -14,7 +14,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
14
14
|
documents: z.ZodArray<z.ZodObject<{
|
|
15
15
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
object_id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
address_from: z.ZodNullable<z.ZodString>;
|
|
20
20
|
object_owner: z.ZodNullable<z.ZodString>;
|
|
@@ -23,7 +23,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
23
23
|
object_created: z.ZodNullable<z.ZodString>;
|
|
24
24
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
25
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
address_from: string;
|
|
29
29
|
shipment_date: string;
|