@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
|
@@ -12,7 +12,7 @@ const ShippoCreateManifestInput = z.object({
|
|
|
12
12
|
const ShippoCreateManifest_ManifestDocumentSchema = z.object({
|
|
13
13
|
url: z.string().describe("URL where the manifest document can be downloaded.").nullable().optional(),
|
|
14
14
|
type: 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 shippoCreateManifest = action("SHIPPO_CREATE_MANIFEST", {
|
|
17
17
|
slug: "shippo-create-manifest",
|
|
18
18
|
name: "Create Manifest",
|
|
@@ -29,7 +29,7 @@ const shippoCreateManifest = action("SHIPPO_CREATE_MANIFEST", {
|
|
|
29
29
|
object_created: z.string().describe("Timestamp when the manifest was created in ISO 8601 format.").nullable(),
|
|
30
30
|
object_updated: z.string().describe("Timestamp when the manifest was last updated in ISO 8601 format.").nullable(),
|
|
31
31
|
carrier_account: z.string().describe("Object ID of the carrier account used for this manifest.").nullable()
|
|
32
|
-
}).describe("Response model containing the created manifest.")
|
|
32
|
+
}).passthrough().describe("Response model containing the created manifest.")
|
|
33
33
|
});
|
|
34
34
|
//#endregion
|
|
35
35
|
export { shippoCreateManifest };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.mjs","names":[],"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,4BAA4B,EAAE,OAAO;CAChD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"create-manifest.mjs","names":[],"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,4BAA4B,EAAE,OAAO;CAChD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAcpE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS;EACtH,WAAW,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,iDAAiD;EAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC5E,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3H,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EACjH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
|
|
@@ -23,11 +23,11 @@ const ShippoCreateMerchantAddress_ValidationMessageSchema = zod.z.object({
|
|
|
23
23
|
text: zod.z.string().describe("Human-readable validation message text.").nullable().optional(),
|
|
24
24
|
type: zod.z.string().describe("Message type (e.g., 'error', 'warning', 'info').").nullable().optional(),
|
|
25
25
|
source: zod.z.string().describe("Source of the validation message (e.g., 'USPS', 'UPS').").nullable().optional()
|
|
26
|
-
}).describe("Individual validation message from carrier.");
|
|
26
|
+
}).passthrough().describe("Individual validation message from carrier.");
|
|
27
27
|
const ShippoCreateMerchantAddress_ValidationResultsSchema = zod.z.object({
|
|
28
28
|
is_valid: zod.z.boolean().describe("Whether the address passed validation. True if valid, false if invalid.").nullable().optional(),
|
|
29
29
|
messages: zod.z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe("List of validation messages including errors, warnings, and suggestions.").nullable().optional()
|
|
30
|
-
}).describe("Address validation results from the carrier.");
|
|
30
|
+
}).passthrough().describe("Address validation results from the carrier.");
|
|
31
31
|
const ShippoCreateMerchantAddressOutput = zod.z.object({
|
|
32
32
|
zip: zod.z.string().describe("ZIP or postal code.").nullable().optional(),
|
|
33
33
|
city: zod.z.string().describe("City name for the address.").nullable().optional(),
|
|
@@ -47,7 +47,7 @@ const ShippoCreateMerchantAddressOutput = zod.z.object({
|
|
|
47
47
|
object_created: zod.z.string().describe("ISO 8601 timestamp when the address was created.").nullable().optional(),
|
|
48
48
|
object_updated: zod.z.string().describe("ISO 8601 timestamp when the address was last updated.").nullable().optional(),
|
|
49
49
|
validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional()
|
|
50
|
-
}).describe("Response schema for the created merchant address.");
|
|
50
|
+
}).passthrough().describe("Response schema for the created merchant address.");
|
|
51
51
|
const shippoCreateMerchantAddress = require_action.action("SHIPPO_CREATE_MERCHANT_ADDRESS", {
|
|
52
52
|
slug: "shippo-create-merchant-address",
|
|
53
53
|
name: "Create Merchant Address",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").optional(),\n \"SHIPPO-API-VERSION\": z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChJ,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACvG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC5K,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC9G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAClF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACpJ,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAClK,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AACtJ,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"create-merchant-address.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").optional(),\n \"SHIPPO-API-VERSION\": z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoC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,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -43,9 +43,9 @@ declare const ShippoCreateMerchantAddressOutput: z.ZodObject<{
|
|
|
43
43
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const shippoCreateMerchantAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
city: string;
|
|
51
51
|
name: string;
|
|
@@ -43,9 +43,9 @@ declare const ShippoCreateMerchantAddressOutput: z.ZodObject<{
|
|
|
43
43
|
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
44
44
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
45
|
source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
|
-
}, z.core.$
|
|
47
|
-
}, z.core.$
|
|
48
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>>>>;
|
|
47
|
+
}, z.core.$loose>>>;
|
|
48
|
+
}, z.core.$loose>;
|
|
49
49
|
declare const shippoCreateMerchantAddress: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
50
50
|
city: string;
|
|
51
51
|
name: string;
|
|
@@ -23,11 +23,11 @@ const ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({
|
|
|
23
23
|
text: z.string().describe("Human-readable validation message text.").nullable().optional(),
|
|
24
24
|
type: z.string().describe("Message type (e.g., 'error', 'warning', 'info').").nullable().optional(),
|
|
25
25
|
source: z.string().describe("Source of the validation message (e.g., 'USPS', 'UPS').").nullable().optional()
|
|
26
|
-
}).describe("Individual validation message from carrier.");
|
|
26
|
+
}).passthrough().describe("Individual validation message from carrier.");
|
|
27
27
|
const ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({
|
|
28
28
|
is_valid: z.boolean().describe("Whether the address passed validation. True if valid, false if invalid.").nullable().optional(),
|
|
29
29
|
messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe("List of validation messages including errors, warnings, and suggestions.").nullable().optional()
|
|
30
|
-
}).describe("Address validation results from the carrier.");
|
|
30
|
+
}).passthrough().describe("Address validation results from the carrier.");
|
|
31
31
|
const shippoCreateMerchantAddress = action("SHIPPO_CREATE_MERCHANT_ADDRESS", {
|
|
32
32
|
slug: "shippo-create-merchant-address",
|
|
33
33
|
name: "Create Merchant Address",
|
|
@@ -52,7 +52,7 @@ const shippoCreateMerchantAddress = action("SHIPPO_CREATE_MERCHANT_ADDRESS", {
|
|
|
52
52
|
object_created: z.string().describe("ISO 8601 timestamp when the address was created.").nullable().optional(),
|
|
53
53
|
object_updated: z.string().describe("ISO 8601 timestamp when the address was last updated.").nullable().optional(),
|
|
54
54
|
validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional()
|
|
55
|
-
}).describe("Response schema for the created merchant address.")
|
|
55
|
+
}).passthrough().describe("Response schema for the created merchant address.")
|
|
56
56
|
});
|
|
57
57
|
//#endregion
|
|
58
58
|
export { shippoCreateMerchantAddress };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-address.mjs","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").optional(),\n \"SHIPPO-API-VERSION\": z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4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CAAC,SAAS;CAClG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,SAAS,6CAA6C;
|
|
1
|
+
{"version":3,"file":"create-merchant-address.mjs","names":[],"sources":["../../src/actions/create-merchant-address.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantAddressInput = z.object({\n zip: z.string().describe(\"ZIP or postal code. Format varies by country (e.g., 94117 for US, SW1A 1AA for UK). Required for purchase.\").optional(),\n city: z.string().describe(\"City name for the address. Required for purchase.\"),\n name: z.string().describe(\"Full name of the person or business at this address. Required for purchase.\"),\n email: z.string().describe(\"Contact email address. Used for notifications and updates.\").optional(),\n phone: z.string().describe(\"Contact phone number including country code. Format: +[country code] [number].\").optional(),\n state: z.string().describe(\"State, province, or region code. Use 2-letter state codes for US addresses (e.g., CA, NY). Required for purchase for some countries.\").optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").optional(),\n country: z.string().describe(\"2-letter ISO country code (e.g., US, GB, CA). Required field for all addresses.\"),\n street1: z.string().describe(\"Primary street address line. Required for purchase.\"),\n street2: z.string().describe(\"Secondary street address line for apartment, suite, or unit numbers.\").optional(),\n metadata: z.string().describe(\"Custom metadata string to attach to this address for your own reference.\").optional(),\n validate: z.boolean().describe(\"Set to true to validate the address with the carrier before creating. Recommended to catch address errors early.\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant to create the address for. This is the merchant's unique identifier in Shippo's system.\"),\n is_residential: z.boolean().describe(\"Set to true if this is a residential address, false for commercial. Affects shipping rates and delivery options.\").optional(),\n \"SHIPPO-API-VERSION\": z.string().describe(\"String used to pick a non-default API version to use. Leave empty to use the default version.\").optional(),\n}).describe(\"Request parameters for creating an address for a merchant via Platform API.\");\nconst ShippoCreateMerchantAddress_ValidationMessageSchema = z.object({\n code: z.string().describe(\"Message code or identifier.\").nullable().optional(),\n text: z.string().describe(\"Human-readable validation message text.\").nullable().optional(),\n type: z.string().describe(\"Message type (e.g., 'error', 'warning', 'info').\").nullable().optional(),\n source: z.string().describe(\"Source of the validation message (e.g., 'USPS', 'UPS').\").nullable().optional(),\n}).passthrough().describe(\"Individual validation message from carrier.\");\nconst ShippoCreateMerchantAddress_ValidationResultsSchema = z.object({\n is_valid: z.boolean().describe(\"Whether the address passed validation. True if valid, false if invalid.\").nullable().optional(),\n messages: z.array(ShippoCreateMerchantAddress_ValidationMessageSchema).describe(\"List of validation messages including errors, warnings, and suggestions.\").nullable().optional(),\n}).passthrough().describe(\"Address validation results from the carrier.\");\nexport const ShippoCreateMerchantAddressOutput = z.object({\n zip: z.string().describe(\"ZIP or postal code.\").nullable().optional(),\n city: z.string().describe(\"City name for the address.\").nullable().optional(),\n name: z.string().describe(\"Full name of the person or business at this address.\").nullable().optional(),\n email: z.string().describe(\"Contact email address.\").nullable().optional(),\n phone: z.string().describe(\"Contact phone number including country code.\").nullable().optional(),\n state: z.string().describe(\"State, province, or region code.\").nullable().optional(),\n company: z.string().describe(\"Company or business name if this is a commercial address.\").nullable().optional(),\n country: z.string().describe(\"2-letter ISO country code.\").nullable().optional(),\n street1: z.string().describe(\"Primary street address line.\").nullable().optional(),\n street2: z.string().describe(\"Secondary street address line.\").nullable().optional(),\n metadata: z.string().describe(\"Custom metadata string attached to this address.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the address object. Use this ID to reference the address in shipments and transactions.\").nullable().optional(),\n is_complete: z.boolean().describe(\"Whether all required fields for the address are present and complete.\").nullable().optional(),\n object_owner: z.string().describe(\"Username of the account that owns this address object.\").nullable().optional(),\n is_residential: z.boolean().describe(\"True if this is a residential address, false for commercial.\").nullable().optional(),\n object_created: z.string().describe(\"ISO 8601 timestamp when the address was created.\").nullable().optional(),\n object_updated: z.string().describe(\"ISO 8601 timestamp when the address was last updated.\").nullable().optional(),\n validation_results: ShippoCreateMerchantAddress_ValidationResultsSchema.nullable().optional(),\n}).passthrough().describe(\"Response schema for the created merchant address.\");\n\nexport const shippoCreateMerchantAddress = action(\"SHIPPO_CREATE_MERCHANT_ADDRESS\", {\n slug: \"shippo-create-merchant-address\",\n name: \"Create Merchant Address\",\n description: \"Tool to create a new address for a merchant using Shippo's Platform API. Use when you need to add an address to a merchant's account for shipping operations. This endpoint is part of the Platform API and requires a merchant ID.\",\n input: ShippoCreateMerchantAddressInput,\n output: ShippoCreateMerchantAddressOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CAChJ,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CACvG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClG,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CACtH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sIAAsI,CAAC,CAAC,SAAS;CAC5K,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF;CAC9G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;CAClF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC9G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAC5J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACpJ,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CAClK,sB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,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const ShippoCreateMerchantBatchInput = zod.z.object({
|
|
|
20
20
|
shipment: zod.z.string().describe("Object ID of the Shipment object to include in this batch. Must be a valid shipment ID."),
|
|
21
21
|
carrier_account: zod.z.string().describe("Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.").optional(),
|
|
22
22
|
servicelevel_token: zod.z.string().describe("Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.").optional()
|
|
23
|
-
}).describe("Individual shipment within a batch.")).describe("Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array."),
|
|
23
|
+
}).passthrough().describe("Individual shipment within a batch.")).describe("Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array."),
|
|
24
24
|
shippo_api_version: zod.z.string().describe("String used to pick a non-default API version to use. If not specified, the default API version will be used.").optional(),
|
|
25
25
|
default_carrier_account: zod.z.string().describe("ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis."),
|
|
26
26
|
default_servicelevel_token: zod.z.string().describe("Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.")
|
|
@@ -48,18 +48,18 @@ const ShippoCreateMerchantBatch_ObjectResultsSchema = zod.z.object({
|
|
|
48
48
|
purchase_failed: zod.z.number().int().describe("Number of shipments that failed to be purchased in the batch.").nullable(),
|
|
49
49
|
creation_succeeded: zod.z.number().int().describe("Number of shipments successfully created in the batch.").nullable(),
|
|
50
50
|
purchase_succeeded: zod.z.number().int().describe("Number of shipments successfully purchased in the batch.").nullable()
|
|
51
|
-
}).describe("Summary counts of batch processing results.");
|
|
51
|
+
}).passthrough().describe("Summary counts of batch processing results.");
|
|
52
52
|
const ShippoCreateMerchantBatch_BatchShipmentResultSchema = zod.z.object({
|
|
53
53
|
status: zod.z.string().describe("Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').").nullable().optional(),
|
|
54
|
-
messages: zod.z.array(zod.z.
|
|
54
|
+
messages: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of messages related to the batch shipment processing.").nullable().optional(),
|
|
55
55
|
object_id: zod.z.string().describe("Unique identifier for the batch shipment object.").nullable().optional(),
|
|
56
56
|
transaction: zod.z.string().describe("Transaction ID if the label was successfully purchased.").nullable().optional()
|
|
57
|
-
}).describe("Individual batch shipment result.");
|
|
57
|
+
}).passthrough().describe("Individual batch shipment result.");
|
|
58
58
|
const ShippoCreateMerchantBatch_BatchShipmentResultsSchema = zod.z.object({
|
|
59
59
|
next: zod.z.string().describe("URL to fetch the next page of batch shipment results.").nullable().optional(),
|
|
60
60
|
results: zod.z.array(ShippoCreateMerchantBatch_BatchShipmentResultSchema).describe("Array of batch shipment objects with their processing status."),
|
|
61
61
|
previous: zod.z.string().describe("URL to fetch the previous page of batch shipment results.").nullable().optional()
|
|
62
|
-
}).describe("Paginated results for batch shipments.");
|
|
62
|
+
}).passthrough().describe("Paginated results for batch shipments.");
|
|
63
63
|
const ShippoCreateMerchantBatchOutput = zod.z.object({
|
|
64
64
|
test: zod.z.boolean().describe("True if this batch was created in test mode, false for live mode.").nullable().optional(),
|
|
65
65
|
status: ShippoCreateMerchantBatch_BatchStatusSchema.nullable(),
|
|
@@ -74,7 +74,7 @@ const ShippoCreateMerchantBatchOutput = zod.z.object({
|
|
|
74
74
|
batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),
|
|
75
75
|
default_carrier_account: zod.z.string().describe("ID of the Carrier Account object used as the default for this batch.").nullable(),
|
|
76
76
|
default_servicelevel_token: zod.z.string().describe("Service level token used as the default for this batch.").nullable()
|
|
77
|
-
}).describe("Response model for a created merchant batch.");
|
|
77
|
+
}).passthrough().describe("Response model for a created merchant batch.");
|
|
78
78
|
const shippoCreateMerchantBatch = require_action.action("SHIPPO_CREATE_MERCHANT_BATCH", {
|
|
79
79
|
slug: "shippo-create-merchant-batch",
|
|
80
80
|
name: "Create Merchant Batch",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string to attach to the batch for your reference (max 100 characters).\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant for whom to create the batch. This identifies which merchant account the batch belongs to.\"),\n label_filetype: z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\").optional(),\n batch_shipments: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for this specific shipment (max 100 characters).\").optional(),\n shipment: z.string().describe(\"Object ID of the Shipment object to include in this batch. Must be a valid shipment ID.\"),\n carrier_account: z.string().describe(\"Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.\").optional(),\n servicelevel_token: z.string().describe(\"Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.\").optional(),\n}).describe(\"Individual shipment within a batch.\")).describe(\"Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis.\"),\n default_servicelevel_token: z.string().describe(\"Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.\"),\n}).describe(\"Request model for creating a merchant batch via Platform API.\");\nconst ShippoCreateMerchantBatch_BatchStatusSchema = z.enum([\"VALIDATING\", \"VALID\", \"INVALID\", \"PURCHASING\", \"PURCHASED\"]).describe(\"Batch processing status values.\");\nconst ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\");\nconst ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to be created in the batch.\").nullable(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to be purchased in the batch.\").nullable(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created in the batch.\").nullable(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased in the batch.\").nullable(),\n}).describe(\"Summary counts of batch processing results.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({\n status: z.string().describe(\"Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').\").nullable().optional(),\n messages: z.array(z.
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string to attach to the batch for your reference (max 100 characters).\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant for whom to create the batch. This identifies which merchant account the batch belongs to.\"),\n label_filetype: z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\").optional(),\n batch_shipments: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for this specific shipment (max 100 characters).\").optional(),\n shipment: z.string().describe(\"Object ID of the Shipment object to include in this batch. Must be a valid shipment ID.\"),\n carrier_account: z.string().describe(\"Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.\").optional(),\n servicelevel_token: z.string().describe(\"Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.\").optional(),\n}).passthrough().describe(\"Individual shipment within a batch.\")).describe(\"Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis.\"),\n default_servicelevel_token: z.string().describe(\"Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.\"),\n}).describe(\"Request model for creating a merchant batch via Platform API.\");\nconst ShippoCreateMerchantBatch_BatchStatusSchema = z.enum([\"VALIDATING\", \"VALID\", \"INVALID\", \"PURCHASING\", \"PURCHASED\"]).describe(\"Batch processing status values.\");\nconst ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\");\nconst ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to be created in the batch.\").nullable(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to be purchased in the batch.\").nullable(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created in the batch.\").nullable(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased in the batch.\").nullable(),\n}).passthrough().describe(\"Summary counts of batch processing results.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({\n status: z.string().describe(\"Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').\").nullable().optional(),\n messages: z.array(z.record(z.string(), z.unknown())).describe(\"List of messages related to the batch shipment processing.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the batch shipment object.\").nullable().optional(),\n transaction: z.string().describe(\"Transaction ID if the label was successfully purchased.\").nullable().optional(),\n}).passthrough().describe(\"Individual batch shipment result.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultsSchema = z.object({\n next: z.string().describe(\"URL to fetch the next page of batch shipment results.\").nullable().optional(),\n results: z.array(ShippoCreateMerchantBatch_BatchShipmentResultSchema).describe(\"Array of batch shipment objects with their processing status.\"),\n previous: z.string().describe(\"URL to fetch the previous page of batch shipment results.\").nullable().optional(),\n}).passthrough().describe(\"Paginated results for batch shipments.\");\nexport const ShippoCreateMerchantBatchOutput = z.object({\n test: z.boolean().describe(\"True if this batch was created in test mode, false for live mode.\").nullable().optional(),\n status: ShippoCreateMerchantBatch_BatchStatusSchema.nullable(),\n metadata: z.string().describe(\"Custom metadata string attached to the batch.\").nullable().optional(),\n label_url: z.array(z.string()).describe(\"Array of URLs each pointing to a merged file of 100 labels each.\"),\n object_id: z.string().describe(\"Unique identifier of the batch object.\").nullable(),\n object_owner: z.string().describe(\"Username of the user who created the batch object.\").nullable(),\n label_filetype: ShippoCreateMerchantBatch_LabelFiletypeSchema.nullable().optional(),\n object_created: z.string().describe(\"Date and time of batch creation in ISO 8601 format.\").nullable(),\n object_results: ShippoCreateMerchantBatch_ObjectResultsSchema.nullable(),\n object_updated: z.string().describe(\"Date and time of last update to the batch in ISO 8601 format.\").nullable(),\n batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object used as the default for this batch.\").nullable(),\n default_servicelevel_token: z.string().describe(\"Service level token used as the default for this batch.\").nullable(),\n}).passthrough().describe(\"Response model for a created merchant batch.\");\n\nexport const shippoCreateMerchantBatch = action(\"SHIPPO_CREATE_MERCHANT_BATCH\", {\n slug: \"shippo-create-merchant-batch\",\n name: \"Create Merchant Batch\",\n description: \"Tool to create a batch for a merchant using the Shippo Platform API. Use when you need to create bulk shipment batches for a specific merchant account. Requires valid merchant ID, carrier account, and shipment IDs.\",\n input: ShippoCreateMerchantBatchInput,\n output: ShippoCreateMerchantBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACvJ,gBAAgBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAe;EAAO;EAAe;EAAW;EAAW;EAAU;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxK,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACvH,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EAC7K,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,8IAA8I;CACvN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAClK,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;CACrM,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;AACtN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8CA,IAAAA,EAAE,KAAK;CAAC;CAAc;CAAS;CAAW;CAAc;AAAW,CAAC,C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,yDAAyD,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
20
20
|
shipment: z.ZodString;
|
|
21
21
|
carrier_account: z.ZodOptional<z.ZodString>;
|
|
22
22
|
servicelevel_token: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
24
|
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
25
25
|
default_carrier_account: z.ZodString;
|
|
26
26
|
default_servicelevel_token: z.ZodString;
|
|
@@ -28,9 +28,9 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
28
28
|
declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
29
29
|
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
30
|
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
VALIDATING: "VALIDATING";
|
|
32
|
-
VALID: "VALID";
|
|
33
31
|
INVALID: "INVALID";
|
|
32
|
+
VALID: "VALID";
|
|
33
|
+
VALIDATING: "VALIDATING";
|
|
34
34
|
PURCHASING: "PURCHASING";
|
|
35
35
|
PURCHASED: "PURCHASED";
|
|
36
36
|
}>>;
|
|
@@ -55,24 +55,25 @@ declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
|
55
55
|
purchase_failed: z.ZodNullable<z.ZodNumber>;
|
|
56
56
|
creation_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
purchase_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
59
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
60
60
|
batch_shipments: z.ZodNullable<z.ZodObject<{
|
|
61
61
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
results: z.ZodArray<z.ZodObject<{
|
|
63
63
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
64
|
+
messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
65
65
|
object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
transaction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
68
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
-
}, z.core.$
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
70
|
default_carrier_account: z.ZodNullable<z.ZodString>;
|
|
71
71
|
default_servicelevel_token: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>;
|
|
73
73
|
declare const shippoCreateMerchantBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
74
74
|
merchant_id: string;
|
|
75
75
|
batch_shipments: {
|
|
76
|
+
[x: string]: unknown;
|
|
76
77
|
shipment: string;
|
|
77
78
|
metadata?: string | undefined;
|
|
78
79
|
carrier_account?: string | undefined;
|
|
@@ -20,7 +20,7 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
20
20
|
shipment: z.ZodString;
|
|
21
21
|
carrier_account: z.ZodOptional<z.ZodString>;
|
|
22
22
|
servicelevel_token: z.ZodOptional<z.ZodString>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
24
|
shippo_api_version: z.ZodOptional<z.ZodString>;
|
|
25
25
|
default_carrier_account: z.ZodString;
|
|
26
26
|
default_servicelevel_token: z.ZodString;
|
|
@@ -28,9 +28,9 @@ declare const ShippoCreateMerchantBatchInput: z.ZodObject<{
|
|
|
28
28
|
declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
29
29
|
test: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
30
30
|
status: z.ZodNullable<z.ZodEnum<{
|
|
31
|
-
VALIDATING: "VALIDATING";
|
|
32
|
-
VALID: "VALID";
|
|
33
31
|
INVALID: "INVALID";
|
|
32
|
+
VALID: "VALID";
|
|
33
|
+
VALIDATING: "VALIDATING";
|
|
34
34
|
PURCHASING: "PURCHASING";
|
|
35
35
|
PURCHASED: "PURCHASED";
|
|
36
36
|
}>>;
|
|
@@ -55,24 +55,25 @@ declare const ShippoCreateMerchantBatchOutput: z.ZodObject<{
|
|
|
55
55
|
purchase_failed: z.ZodNullable<z.ZodNumber>;
|
|
56
56
|
creation_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
57
57
|
purchase_succeeded: z.ZodNullable<z.ZodNumber>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$loose>>;
|
|
59
59
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
60
60
|
batch_shipments: z.ZodNullable<z.ZodObject<{
|
|
61
61
|
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
62
62
|
results: z.ZodArray<z.ZodObject<{
|
|
63
63
|
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
64
|
-
messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.
|
|
64
|
+
messages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
65
65
|
object_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
66
66
|
transaction: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
-
}, z.core.$
|
|
67
|
+
}, z.core.$loose>>;
|
|
68
68
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
69
|
-
}, z.core.$
|
|
69
|
+
}, z.core.$loose>>;
|
|
70
70
|
default_carrier_account: z.ZodNullable<z.ZodString>;
|
|
71
71
|
default_servicelevel_token: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>;
|
|
73
73
|
declare const shippoCreateMerchantBatch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
74
74
|
merchant_id: string;
|
|
75
75
|
batch_shipments: {
|
|
76
|
+
[x: string]: unknown;
|
|
76
77
|
shipment: string;
|
|
77
78
|
metadata?: string | undefined;
|
|
78
79
|
carrier_account?: string | undefined;
|
|
@@ -20,7 +20,7 @@ const ShippoCreateMerchantBatchInput = z.object({
|
|
|
20
20
|
shipment: z.string().describe("Object ID of the Shipment object to include in this batch. Must be a valid shipment ID."),
|
|
21
21
|
carrier_account: z.string().describe("Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.").optional(),
|
|
22
22
|
servicelevel_token: z.string().describe("Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.").optional()
|
|
23
|
-
}).describe("Individual shipment within a batch.")).describe("Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array."),
|
|
23
|
+
}).passthrough().describe("Individual shipment within a batch.")).describe("Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array."),
|
|
24
24
|
shippo_api_version: z.string().describe("String used to pick a non-default API version to use. If not specified, the default API version will be used.").optional(),
|
|
25
25
|
default_carrier_account: z.string().describe("ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis."),
|
|
26
26
|
default_servicelevel_token: z.string().describe("Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.")
|
|
@@ -48,18 +48,18 @@ const ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({
|
|
|
48
48
|
purchase_failed: z.number().int().describe("Number of shipments that failed to be purchased in the batch.").nullable(),
|
|
49
49
|
creation_succeeded: z.number().int().describe("Number of shipments successfully created in the batch.").nullable(),
|
|
50
50
|
purchase_succeeded: z.number().int().describe("Number of shipments successfully purchased in the batch.").nullable()
|
|
51
|
-
}).describe("Summary counts of batch processing results.");
|
|
51
|
+
}).passthrough().describe("Summary counts of batch processing results.");
|
|
52
52
|
const ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({
|
|
53
53
|
status: z.string().describe("Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').").nullable().optional(),
|
|
54
|
-
messages: z.array(z.
|
|
54
|
+
messages: z.array(z.record(z.string(), z.unknown())).describe("List of messages related to the batch shipment processing.").nullable().optional(),
|
|
55
55
|
object_id: z.string().describe("Unique identifier for the batch shipment object.").nullable().optional(),
|
|
56
56
|
transaction: z.string().describe("Transaction ID if the label was successfully purchased.").nullable().optional()
|
|
57
|
-
}).describe("Individual batch shipment result.");
|
|
57
|
+
}).passthrough().describe("Individual batch shipment result.");
|
|
58
58
|
const ShippoCreateMerchantBatch_BatchShipmentResultsSchema = z.object({
|
|
59
59
|
next: z.string().describe("URL to fetch the next page of batch shipment results.").nullable().optional(),
|
|
60
60
|
results: z.array(ShippoCreateMerchantBatch_BatchShipmentResultSchema).describe("Array of batch shipment objects with their processing status."),
|
|
61
61
|
previous: z.string().describe("URL to fetch the previous page of batch shipment results.").nullable().optional()
|
|
62
|
-
}).describe("Paginated results for batch shipments.");
|
|
62
|
+
}).passthrough().describe("Paginated results for batch shipments.");
|
|
63
63
|
const shippoCreateMerchantBatch = action("SHIPPO_CREATE_MERCHANT_BATCH", {
|
|
64
64
|
slug: "shippo-create-merchant-batch",
|
|
65
65
|
name: "Create Merchant Batch",
|
|
@@ -79,7 +79,7 @@ const shippoCreateMerchantBatch = action("SHIPPO_CREATE_MERCHANT_BATCH", {
|
|
|
79
79
|
batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),
|
|
80
80
|
default_carrier_account: z.string().describe("ID of the Carrier Account object used as the default for this batch.").nullable(),
|
|
81
81
|
default_servicelevel_token: z.string().describe("Service level token used as the default for this batch.").nullable()
|
|
82
|
-
}).describe("Response model for a created merchant batch.")
|
|
82
|
+
}).passthrough().describe("Response model for a created merchant batch.")
|
|
83
83
|
});
|
|
84
84
|
//#endregion
|
|
85
85
|
export { shippoCreateMerchantBatch };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-batch.mjs","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string to attach to the batch for your reference (max 100 characters).\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant for whom to create the batch. This identifies which merchant account the batch belongs to.\"),\n label_filetype: z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\").optional(),\n batch_shipments: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for this specific shipment (max 100 characters).\").optional(),\n shipment: z.string().describe(\"Object ID of the Shipment object to include in this batch. Must be a valid shipment ID.\"),\n carrier_account: z.string().describe(\"Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.\").optional(),\n servicelevel_token: z.string().describe(\"Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.\").optional(),\n}).describe(\"Individual shipment within a batch.\")).describe(\"Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis.\"),\n default_servicelevel_token: z.string().describe(\"Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.\"),\n}).describe(\"Request model for creating a merchant batch via Platform API.\");\nconst ShippoCreateMerchantBatch_BatchStatusSchema = z.enum([\"VALIDATING\", \"VALID\", \"INVALID\", \"PURCHASING\", \"PURCHASED\"]).describe(\"Batch processing status values.\");\nconst ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\");\nconst ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to be created in the batch.\").nullable(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to be purchased in the batch.\").nullable(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created in the batch.\").nullable(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased in the batch.\").nullable(),\n}).describe(\"Summary counts of batch processing results.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({\n status: z.string().describe(\"Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').\").nullable().optional(),\n messages: z.array(z.
|
|
1
|
+
{"version":3,"file":"create-merchant-batch.mjs","names":[],"sources":["../../src/actions/create-merchant-batch.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantBatchInput = z.object({\n metadata: z.string().describe(\"Custom metadata string to attach to the batch for your reference (max 100 characters).\").optional(),\n merchant_id: z.string().describe(\"Object ID of the merchant for whom to create the batch. This identifies which merchant account the batch belongs to.\"),\n label_filetype: z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\").optional(),\n batch_shipments: z.array(z.object({\n metadata: z.string().describe(\"Custom metadata string for this specific shipment (max 100 characters).\").optional(),\n shipment: z.string().describe(\"Object ID of the Shipment object to include in this batch. Must be a valid shipment ID.\"),\n carrier_account: z.string().describe(\"Override the default carrier account for this specific shipment. If not provided, uses the batch's default_carrier_account.\").optional(),\n servicelevel_token: z.string().describe(\"Override the default service level for this specific shipment. If not provided, uses the batch's default_servicelevel_token.\").optional(),\n}).passthrough().describe(\"Individual shipment within a batch.\")).describe(\"Array of BatchShipment objects containing shipment IDs to include in this batch. The response maintains the same order as the request array.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object to use as the default for all shipments in this batch. The carrier account can be overridden on a per-shipment basis.\"),\n default_servicelevel_token: z.string().describe(\"Token of the service level to use as the default for all shipments in this batch (e.g., 'usps_priority', 'usps_ground_advantage'). Can be overridden per shipment.\"),\n}).describe(\"Request model for creating a merchant batch via Platform API.\");\nconst ShippoCreateMerchantBatch_BatchStatusSchema = z.enum([\"VALIDATING\", \"VALID\", \"INVALID\", \"PURCHASING\", \"PURCHASED\"]).describe(\"Batch processing status values.\");\nconst ShippoCreateMerchantBatch_LabelFiletypeSchema = z.enum([\"PNG\", \"PNG_2.3x7.5\", \"PDF\", \"PDF_2.3x7.5\", \"PDF_4x6\", \"PDF_4x8\", \"PDF_A4\", \"PDF_A6\", \"ZPLII\"]).describe(\"Label file format options.\");\nconst ShippoCreateMerchantBatch_ObjectResultsSchema = z.object({\n creation_failed: z.number().int().describe(\"Number of shipments that failed to be created in the batch.\").nullable(),\n purchase_failed: z.number().int().describe(\"Number of shipments that failed to be purchased in the batch.\").nullable(),\n creation_succeeded: z.number().int().describe(\"Number of shipments successfully created in the batch.\").nullable(),\n purchase_succeeded: z.number().int().describe(\"Number of shipments successfully purchased in the batch.\").nullable(),\n}).passthrough().describe(\"Summary counts of batch processing results.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultSchema = z.object({\n status: z.string().describe(\"Current status of the batch shipment (e.g., 'VALID', 'INVALID', 'TRANSACTION_FAILED').\").nullable().optional(),\n messages: z.array(z.record(z.string(), z.unknown())).describe(\"List of messages related to the batch shipment processing.\").nullable().optional(),\n object_id: z.string().describe(\"Unique identifier for the batch shipment object.\").nullable().optional(),\n transaction: z.string().describe(\"Transaction ID if the label was successfully purchased.\").nullable().optional(),\n}).passthrough().describe(\"Individual batch shipment result.\");\nconst ShippoCreateMerchantBatch_BatchShipmentResultsSchema = z.object({\n next: z.string().describe(\"URL to fetch the next page of batch shipment results.\").nullable().optional(),\n results: z.array(ShippoCreateMerchantBatch_BatchShipmentResultSchema).describe(\"Array of batch shipment objects with their processing status.\"),\n previous: z.string().describe(\"URL to fetch the previous page of batch shipment results.\").nullable().optional(),\n}).passthrough().describe(\"Paginated results for batch shipments.\");\nexport const ShippoCreateMerchantBatchOutput = z.object({\n test: z.boolean().describe(\"True if this batch was created in test mode, false for live mode.\").nullable().optional(),\n status: ShippoCreateMerchantBatch_BatchStatusSchema.nullable(),\n metadata: z.string().describe(\"Custom metadata string attached to the batch.\").nullable().optional(),\n label_url: z.array(z.string()).describe(\"Array of URLs each pointing to a merged file of 100 labels each.\"),\n object_id: z.string().describe(\"Unique identifier of the batch object.\").nullable(),\n object_owner: z.string().describe(\"Username of the user who created the batch object.\").nullable(),\n label_filetype: ShippoCreateMerchantBatch_LabelFiletypeSchema.nullable().optional(),\n object_created: z.string().describe(\"Date and time of batch creation in ISO 8601 format.\").nullable(),\n object_results: ShippoCreateMerchantBatch_ObjectResultsSchema.nullable(),\n object_updated: z.string().describe(\"Date and time of last update to the batch in ISO 8601 format.\").nullable(),\n batch_shipments: ShippoCreateMerchantBatch_BatchShipmentResultsSchema.nullable(),\n default_carrier_account: z.string().describe(\"ID of the Carrier Account object used as the default for this batch.\").nullable(),\n default_servicelevel_token: z.string().describe(\"Service level token used as the default for this batch.\").nullable(),\n}).passthrough().describe(\"Response model for a created merchant batch.\");\n\nexport const shippoCreateMerchantBatch = action(\"SHIPPO_CREATE_MERCHANT_BATCH\", {\n slug: \"shippo-create-merchant-batch\",\n name: \"Create Merchant Batch\",\n description: \"Tool to create a batch for a merchant using the Shippo Platform API. Use when you need to create bulk shipment batches for a specific merchant account. Requires valid merchant ID, carrier account, and shipment IDs.\",\n input: ShippoCreateMerchantBatchInput,\n output: ShippoCreateMerchantBatchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;CACjI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CACvJ,gBAAgB,EAAE,KAAK;EAAC;EAAO;EAAe;EAAO;EAAe;EAAW;EAAW;EAAU;EAAU;CAAO,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxK,iBAAiB,EAAE,MAAM,EAAE,OAAO;EAClC,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EAClH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF;EACvH,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;EAC7K,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;CACnL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,CAAC,SAAS,8IAA8I;CACvN,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CAClK,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ;CACrM,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,oKAAoK;AACtN,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAM,8CAA8C,EAAE,KAAK;CAAC;CAAc;C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arrierAccount_MerchantCarrierAccountParametersRespons
|
|
|
57
57
|
billing_address_street1: zod.z.string().describe("Primary billing address street line.").nullable().optional(),
|
|
58
58
|
billing_address_street2: zod.z.string().describe("Secondary billing address street line.").nullable().optional(),
|
|
59
59
|
billing_address_country_iso2: zod.z.string().describe("Billing address country ISO 2-letter code.").nullable().optional()
|
|
60
|
-
}).describe("Carrier account parameters returned in the response.");
|
|
60
|
+
}).passthrough().describe("Carrier account parameters returned in the response.");
|
|
61
61
|
const ShippoCreateMerchantCarrierAccountOutput = zod.z.object({
|
|
62
62
|
test: zod.z.boolean().describe("Whether this is a test account.").nullable().optional(),
|
|
63
63
|
active: zod.z.boolean().describe("Whether the carrier account is active.").nullable().optional(),
|
|
@@ -68,7 +68,7 @@ const ShippoCreateMerchantCarrierAccountOutput = zod.z.object({
|
|
|
68
68
|
parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.nullable().optional(),
|
|
69
69
|
object_owner: zod.z.string().describe("Owner of the carrier account object.").nullable().optional(),
|
|
70
70
|
is_shippo_account: zod.z.boolean().describe("Whether this is a Shippo-provided account.").nullable().optional()
|
|
71
|
-
}).describe("Response containing the created merchant carrier account details.");
|
|
71
|
+
}).passthrough().describe("Response containing the created merchant carrier account details.");
|
|
72
72
|
const shippoCreateMerchantCarrierAccount = require_action.action("SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT", {
|
|
73
73
|
slug: "shippo-create-merchant-carrier-account",
|
|
74
74
|
name: "Create Merchant Carrier Account",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-merchant-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput = 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. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\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 merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema = 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 ShippoCreateMerchantCarrierAccountOutput = 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().optional(),\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. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.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 merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchantCarrierAccountInput,\n output: ShippoCreateMerchantCarrierAccountOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0CAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE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O,0CAA0C;CACjG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"create-merchant-carrier-account.cjs","names":["z","action"],"sources":["../../src/actions/create-merchant-carrier-account.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateMerchantCarrierAccountInput = 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. This field is required as input to the API, but is not used for UPS. Use the empty string for UPS.\"),\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 merchant_id: z.string().describe(\"Object ID of the merchant to create a carrier account for.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use. If not specified, the default API version will be used.\").optional(),\n}).describe(\"Request to create a carrier account for a merchant using the Platform API.\");\nconst ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema = 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 ShippoCreateMerchantCarrierAccountOutput = 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().optional(),\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. Some fields with sensitive data may be returned masked, e.g. '****'.\").nullable().optional(),\n parameters: ShippoCreateMerchantCarrierAccount_MerchantCarrierAccountParametersResponseSchema.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 merchant carrier account details.\");\n\nexport const shippoCreateMerchantCarrierAccount = action(\"SHIPPO_CREATE_MERCHANT_CARRIER_ACCOUNT\", {\n slug: \"shippo-create-merchant-carrier-account\",\n name: \"Create Merchant Carrier Account\",\n description: \"Tool to create a carrier account for a merchant using the Shippo Platform API. Use when you need to register carrier credentials for a specific merchant in a platform integration scenario.\",\n input: ShippoCreateMerchant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