@keystrokehq/shippo 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/create-address.cjs +3 -3
- package/dist/actions/create-address.cjs.map +1 -1
- package/dist/actions/create-address.d.cts +16 -4
- package/dist/actions/create-address.d.mts +16 -4
- 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 +19 -5
- package/dist/actions/create-batch.d.mts +19 -5
- 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 +15 -3
- package/dist/actions/create-carrier-account.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/create-customs-item.d.mts +14 -2
- 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 +23 -7
- package/dist/actions/create-live-rate.d.mts +23 -7
- 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 +15 -3
- package/dist/actions/create-manifest.d.mts +15 -3
- 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 +16 -4
- package/dist/actions/create-merchant-address.d.mts +16 -4
- 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 +22 -9
- package/dist/actions/create-merchant-batch.d.mts +22 -9
- 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 +15 -3
- package/dist/actions/create-merchant-carrier-account.d.mts +15 -3
- 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 +17 -4
- package/dist/actions/create-merchant-customs-declaration.d.mts +17 -4
- 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 +15 -3
- package/dist/actions/create-merchant-customs-item.d.mts +15 -3
- 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 +19 -6
- package/dist/actions/create-merchant-order.d.mts +19 -6
- 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 +19 -7
- package/dist/actions/create-merchant-parcel.d.mts +19 -7
- 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 +14 -2
- package/dist/actions/create-merchant-refund.d.mts +14 -2
- 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 +34 -21
- package/dist/actions/create-merchant-shipment.d.mts +34 -21
- 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 +17 -5
- package/dist/actions/create-merchant-transaction.d.mts +17 -5
- 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 +19 -6
- package/dist/actions/create-order.d.mts +19 -6
- 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 +19 -7
- package/dist/actions/create-parcel.d.mts +19 -7
- 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 +14 -2
- package/dist/actions/create-refund.d.mts +14 -2
- 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 +17 -4
- package/dist/actions/create-service-group.d.mts +17 -4
- 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 +31 -18
- package/dist/actions/create-shipment.d.cts.map +1 -1
- package/dist/actions/create-shipment.d.mts +31 -18
- 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 +21 -9
- package/dist/actions/create-track.d.mts +21 -9
- 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 +19 -7
- package/dist/actions/create-transaction.d.cts.map +1 -1
- package/dist/actions/create-transaction.d.mts +19 -7
- package/dist/actions/create-transaction.d.mts.map +1 -1
- 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 +15 -3
- package/dist/actions/create-user-parcel-template.d.mts +15 -3
- 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 +18 -6
- package/dist/actions/create-webhook.d.mts +18 -6
- 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 +14 -2
- package/dist/actions/delete-default-parcel-template.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-user-parcel-template.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/delete-webhook.d.mts +14 -2
- 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 +16 -4
- package/dist/actions/get-address.d.mts +16 -4
- 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 +15 -3
- package/dist/actions/get-carrier-account.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/get-carrier-parcel-template.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/get-carrier-registration-status.d.mts +14 -2
- 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 +17 -5
- package/dist/actions/get-customs-declaration.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/get-customs-item.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/get-default-parcel-template.d.mts +15 -3
- 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 +16 -4
- package/dist/actions/get-merchant-address.d.mts +16 -4
- 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 +18 -6
- package/dist/actions/get-merchant-batch.d.mts +18 -6
- 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 +15 -3
- package/dist/actions/get-merchant-carrier-account.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/get-merchant-carrier-registration-status.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/get-merchant-customs-declaration.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/get-merchant-customs-item.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/get-merchant-manifest.d.mts +14 -2
- 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 +17 -5
- package/dist/actions/get-merchant-order.d.mts +17 -5
- 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 +17 -5
- package/dist/actions/get-merchant-parcel.d.mts +17 -5
- 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 +16 -4
- package/dist/actions/get-merchant-rate.d.mts +16 -4
- 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 +14 -2
- package/dist/actions/get-merchant-refund.d.mts +14 -2
- 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 +32 -20
- package/dist/actions/get-merchant-shipment.d.mts +32 -20
- 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 +21 -9
- package/dist/actions/get-merchant-track.d.mts +21 -9
- 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 +17 -5
- package/dist/actions/get-merchant-transaction.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/get-merchant.d.mts +14 -2
- 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 +19 -7
- package/dist/actions/get-order.d.mts +19 -7
- 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 +17 -5
- package/dist/actions/get-parcel.d.mts +17 -5
- 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 +16 -4
- package/dist/actions/get-rate.d.mts +16 -4
- 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 +14 -2
- package/dist/actions/get-refund.d.mts +14 -2
- 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 +26 -14
- package/dist/actions/get-shipment.d.mts +26 -14
- 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 +14 -2
- package/dist/actions/get-shippo-account.d.mts +14 -2
- 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 +21 -9
- package/dist/actions/get-track.d.mts +21 -9
- 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 +15 -3
- package/dist/actions/get-transaction.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/get-user-parcel-template.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/get-webhook.d.mts +14 -2
- 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 +17 -5
- package/dist/actions/list-addresses.d.mts +17 -5
- 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 +17 -5
- package/dist/actions/list-carrier-accounts.d.mts +17 -5
- 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 +16 -4
- package/dist/actions/list-carrier-parcel-templates.d.mts +16 -4
- 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 +20 -8
- package/dist/actions/list-customs-declarations.d.mts +20 -8
- 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 +15 -3
- package/dist/actions/list-customs-items.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/list-manifests.d.mts +15 -3
- 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 +17 -5
- package/dist/actions/list-merchant-addresses.d.mts +17 -5
- 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 +16 -4
- package/dist/actions/list-merchant-carrier-accounts.d.mts +16 -4
- 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 +15 -3
- package/dist/actions/list-merchant-customs-declarations.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/list-merchant-customs-items.d.mts +15 -3
- 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 +16 -4
- package/dist/actions/list-merchant-manifests.d.mts +16 -4
- 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 +16 -4
- package/dist/actions/list-merchant-parcels.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/list-merchant-shipment-rates-by-currency.d.mts +17 -5
- 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 +26 -14
- package/dist/actions/list-merchant-shipments.d.mts +26 -14
- 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 +16 -4
- package/dist/actions/list-merchant-transactions.d.mts +16 -4
- 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 +15 -3
- package/dist/actions/list-merchants.d.mts +15 -3
- 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 +20 -8
- package/dist/actions/list-orders.d.mts +20 -8
- 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 +15 -3
- package/dist/actions/list-refunds.d.mts +15 -3
- 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 +16 -4
- package/dist/actions/list-service-groups.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/list-shipment-rates-by-currency.d.mts +17 -5
- 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 +17 -5
- package/dist/actions/list-shipment-rates.d.mts +17 -5
- 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 +26 -14
- package/dist/actions/list-shipments.d.mts +26 -14
- 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 +15 -3
- package/dist/actions/list-shippo-accounts.d.mts +15 -3
- 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 +16 -4
- package/dist/actions/list-user-parcel-templates.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/purchase-merchant-batch.d.mts +17 -5
- 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 +18 -6
- package/dist/actions/remove-shipments-from-batch.d.mts +18 -6
- 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 +17 -5
- package/dist/actions/update-carrier-account.d.cts.map +1 -1
- package/dist/actions/update-carrier-account.d.mts +17 -5
- package/dist/actions/update-carrier-account.d.mts.map +1 -1
- 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 +16 -4
- package/dist/actions/update-default-parcel-template.d.mts +16 -4
- 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 +15 -3
- package/dist/actions/update-merchant-carrier-account.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/update-merchant.d.mts +14 -2
- 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 +17 -4
- package/dist/actions/update-service-group.d.mts +17 -4
- 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 +15 -3
- package/dist/actions/update-user-parcel-template.d.mts +15 -3
- 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 +18 -6
- package/dist/actions/update-webhook.d.mts +18 -6
- 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 +16 -4
- package/dist/actions/validate-address.d.mts +16 -4
- 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 +16 -4
- package/dist/actions/validate-merchant-address.d.mts +16 -4
- package/dist/actions/validate-merchant-address.mjs +3 -3
- package/dist/actions/validate-merchant-address.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10,7 +10,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
10
10
|
metadata: z.string().nullable().optional(),
|
|
11
11
|
mass_unit: z.string().describe("Unit of mass measurement (lb, oz, kg, g)"),
|
|
12
12
|
distance_unit: z.string().describe("Unit of distance measurement (in, cm, ft, mm, m, yd)")
|
|
13
|
-
}).describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
13
|
+
}).passthrough().describe("Parcel dimensions and weight.")])).describe("Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.").optional(),
|
|
14
14
|
address_to: z.union([z.string(), z.object({
|
|
15
15
|
zip: z.string().describe("Postal code or ZIP code"),
|
|
16
16
|
city: z.string().describe("City name"),
|
|
@@ -21,7 +21,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
21
21
|
country: z.string().describe("Two-letter ISO country code"),
|
|
22
22
|
street1: z.string().describe("First street line of the address"),
|
|
23
23
|
street2: z.string().nullable().optional()
|
|
24
|
-
}).describe("Full address object for live rate calculation.")]),
|
|
24
|
+
}).passthrough().describe("Full address object for live rate calculation.")]),
|
|
25
25
|
line_items: z.array(z.object({
|
|
26
26
|
sku: z.string().describe("Stock keeping unit identifier").optional(),
|
|
27
27
|
title: z.string().describe("Title or name of the item being shipped"),
|
|
@@ -34,7 +34,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
34
34
|
variant_title: z.string().describe("Variant title for the item").optional(),
|
|
35
35
|
max_delivery_time: z.string().describe("Maximum delivery time in ISO 8601 duration format").optional(),
|
|
36
36
|
manufacture_country: z.string().describe("Two-letter ISO country code where the item was manufactured").optional()
|
|
37
|
-
}).describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
37
|
+
}).passthrough().describe("A single line item in the shipment.")).describe("Array of line item objects describing what is being shipped. At least one item is required."),
|
|
38
38
|
address_from: z.union([z.string(), z.object({
|
|
39
39
|
zip: z.string().describe("Postal code or ZIP code"),
|
|
40
40
|
city: z.string().describe("City name"),
|
|
@@ -45,7 +45,7 @@ const ShippoCreateLiveRateInput = z.object({
|
|
|
45
45
|
country: z.string().describe("Two-letter ISO country code"),
|
|
46
46
|
street1: z.string().describe("First street line of the address"),
|
|
47
47
|
street2: z.string().nullable().optional()
|
|
48
|
-
}).describe("Full address object for live rate calculation.")]).optional(),
|
|
48
|
+
}).passthrough().describe("Full address object for live rate calculation.")]).optional(),
|
|
49
49
|
shippo_api_version: z.string().describe("String used to pick a non-default API version to use").optional()
|
|
50
50
|
}).describe("Request model for generating live shipping rates.");
|
|
51
51
|
const ShippoCreateLiveRate_RateResultSchema = z.object({
|
|
@@ -55,7 +55,7 @@ const ShippoCreateLiveRate_RateResultSchema = z.object({
|
|
|
55
55
|
amount_local: z.string().describe("Cost in local currency if different from main currency").nullable().optional(),
|
|
56
56
|
currency_local: z.string().describe("Local currency code if different").nullable().optional(),
|
|
57
57
|
estimated_days: z.number().int().describe("Estimated number of days for delivery").nullable().optional()
|
|
58
|
-
}).describe("A single shipping rate result.");
|
|
58
|
+
}).passthrough().describe("A single shipping rate result.");
|
|
59
59
|
const shippoCreateLiveRate = action("SHIPPO_CREATE_LIVE_RATE", {
|
|
60
60
|
slug: "shippo-create-live-rate",
|
|
61
61
|
name: "Create Live Rate",
|
|
@@ -66,7 +66,7 @@ const shippoCreateLiveRate = action("SHIPPO_CREATE_LIVE_RATE", {
|
|
|
66
66
|
count: z.number().int().describe("Total number of rate results available").nullable().optional(),
|
|
67
67
|
results: z.array(ShippoCreateLiveRate_RateResultSchema).describe("Array of shipping rate objects from various carriers").nullable().optional(),
|
|
68
68
|
previous: z.string().describe("URL to the previous page of results if pagination is available").nullable().optional()
|
|
69
|
-
}).describe("Response model containing available shipping rates.")
|
|
69
|
+
}).passthrough().describe("Response model containing available shipping rates.")
|
|
70
70
|
});
|
|
71
71
|
//#endregion
|
|
72
72
|
export { shippoCreateLiveRate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-live-rate.mjs","names":[],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), z.object({\n width: z.string().describe(\"Width of the parcel\"),\n height: z.string().describe(\"Height of the parcel\"),\n length: z.string().describe(\"Length of the parcel\"),\n weight: z.string().describe(\"Weight of the parcel\"),\n metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;
|
|
1
|
+
{"version":3,"file":"create-live-rate.mjs","names":[],"sources":["../../src/actions/create-live-rate.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateLiveRateInput = z.object({\n parcel: z.array(z.union([z.string(), z.object({\n width: z.string().describe(\"Width of the parcel\"),\n height: z.string().describe(\"Height of the parcel\"),\n length: z.string().describe(\"Length of the parcel\"),\n weight: z.string().describe(\"Weight of the parcel\"),\n metadata: z.string().nullable().optional(),\n mass_unit: z.string().describe(\"Unit of mass measurement (lb, oz, kg, g)\"),\n distance_unit: z.string().describe(\"Unit of distance measurement (in, cm, ft, mm, m, yd)\"),\n}).passthrough().describe(\"Parcel dimensions and weight.\")])).describe(\"Array of parcel objects or parcel template IDs. If not provided, dimensions are calculated from line items.\").optional(),\n address_to: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]),\n line_items: z.array(z.object({\n sku: z.string().describe(\"Stock keeping unit identifier\").optional(),\n title: z.string().describe(\"Title or name of the item being shipped\"),\n weight: z.string().describe(\"Weight of a single item as a string\"),\n currency: z.string().describe(\"Three-letter ISO currency code\"),\n quantity: z.number().int().describe(\"Number of items in this line\"),\n total_price: z.string().describe(\"Total price of this line item as a string\"),\n weight_unit: z.string().describe(\"Unit of weight measurement (lb, oz, kg, g)\"),\n max_ship_time: z.string().describe(\"Maximum ship time in ISO 8601 duration format\").optional(),\n variant_title: z.string().describe(\"Variant title for the item\").optional(),\n max_delivery_time: z.string().describe(\"Maximum delivery time in ISO 8601 duration format\").optional(),\n manufacture_country: z.string().describe(\"Two-letter ISO country code where the item was manufactured\").optional(),\n}).passthrough().describe(\"A single line item in the shipment.\")).describe(\"Array of line item objects describing what is being shipped. At least one item is required.\"),\n address_from: z.union([z.string(), z.object({\n zip: z.string().describe(\"Postal code or ZIP code\"),\n city: z.string().describe(\"City name\"),\n name: z.string().describe(\"Full name of the person at this address\"),\n email: z.string().nullable().optional(),\n phone: z.string().nullable().optional(),\n state: z.string().describe(\"State or province code\"),\n country: z.string().describe(\"Two-letter ISO country code\"),\n street1: z.string().describe(\"First street line of the address\"),\n street2: z.string().nullable().optional(),\n}).passthrough().describe(\"Full address object for live rate calculation.\")]).optional(),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use\").optional(),\n}).describe(\"Request model for generating live shipping rates.\");\nconst ShippoCreateLiveRate_RateResultSchema = z.object({\n title: z.string().describe(\"Name or title of the shipping service\").nullable().optional(),\n amount: z.string().describe(\"Cost of the shipping rate in the currency specified\").nullable().optional(),\n currency: z.string().describe(\"Three-letter ISO currency code for the rate\").nullable().optional(),\n amount_local: z.string().describe(\"Cost in local currency if different from main currency\").nullable().optional(),\n currency_local: z.string().describe(\"Local currency code if different\").nullable().optional(),\n estimated_days: z.number().int().describe(\"Estimated number of days for delivery\").nullable().optional(),\n}).passthrough().describe(\"A single shipping rate result.\");\nexport const ShippoCreateLiveRateOutput = z.object({\n next: z.string().describe(\"URL to the next page of results if pagination is available\").nullable().optional(),\n count: z.number().int().describe(\"Total number of rate results available\").nullable().optional(),\n results: z.array(ShippoCreateLiveRate_RateResultSchema).describe(\"Array of shipping rate objects from various carriers\").nullable().optional(),\n previous: z.string().describe(\"URL to the previous page of results if pagination is available\").nullable().optional(),\n}).passthrough().describe(\"Response model containing available shipping rates.\");\n\nexport const shippoCreateLiveRate = action(\"SHIPPO_CREATE_LIVE_RATE\", {\n slug: \"shippo-create-live-rate\",\n name: \"Create Live Rate\",\n description: \"Tool to generate live shipping rates from multiple carriers for a given shipment. Use when you need real-time pricing for shipping from origin to destination with specific items. Returns available rates with costs and delivery estimates.\",\n input: ShippoCreateLiveRateInput,\n output: ShippoCreateLiveRateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EAC9C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;EAChD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzC,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EACzE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6GAA6G,CAAC,CAAC,SAAS;CAC7L,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO;EAC1C,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,WAAW;EACrC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACnE,OAAO,EAAE,OAAO,CAAC,CAAC,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CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAQ1D,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAZwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qDAOhB;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const ShippoCreateManifestInput = zod.z.object({
|
|
|
12
12
|
const ShippoCreateManifest_ManifestDocumentSchema = zod.z.object({
|
|
13
13
|
url: zod.z.string().describe("URL where the manifest document can be downloaded.").nullable().optional(),
|
|
14
14
|
type: zod.z.string().describe("Type of document (e.g., 'PDF').").nullable().optional()
|
|
15
|
-
}).describe("Model for manifest document information.");
|
|
15
|
+
}).passthrough().describe("Model for manifest document information.");
|
|
16
16
|
const ShippoCreateManifestOutput = zod.z.object({
|
|
17
17
|
status: zod.z.string().describe("Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.").nullable(),
|
|
18
18
|
documents: zod.z.array(ShippoCreateManifest_ManifestDocumentSchema).describe("List of documents associated with the manifest."),
|
|
@@ -24,7 +24,7 @@ const ShippoCreateManifestOutput = zod.z.object({
|
|
|
24
24
|
object_created: zod.z.string().describe("Timestamp when the manifest was created in ISO 8601 format.").nullable(),
|
|
25
25
|
object_updated: zod.z.string().describe("Timestamp when the manifest was last updated in ISO 8601 format.").nullable(),
|
|
26
26
|
carrier_account: zod.z.string().describe("Object ID of the carrier account used for this manifest.").nullable()
|
|
27
|
-
}).describe("Response model containing the created manifest.");
|
|
27
|
+
}).passthrough().describe("Response model containing the created manifest.");
|
|
28
28
|
const shippoCreateManifest = require_action.action("SHIPPO_CREATE_MANIFEST", {
|
|
29
29
|
slug: "shippo-create-manifest",
|
|
30
30
|
name: "Create Manifest",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-manifest.cjs","names":["z","action"],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,0CAA0C;
|
|
1
|
+
{"version":3,"file":"create-manifest.cjs","names":["z","action"],"sources":["../../src/actions/create-manifest.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ShippoCreateManifestInput = z.object({\n address_from: z.string().describe(\"Object ID of the address the manifest will be sent from. Must be a valid address object ID.\"),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs to be included in the manifest. Each ID must be a valid transaction object ID.\").optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format. This is the date that will be printed on the manifest.\"),\n async_manifest: z.boolean().describe(\"If true, the manifest will be created asynchronously. If false or not specified, it will be created synchronously.\").optional(),\n carrier_account: z.string().describe(\"Object ID of the carrier account to be used for this manifest. Must be a valid carrier account object ID.\"),\n shippo_api_version: z.string().describe(\"String used to pick a non-default API version to use for this request.\").optional(),\n}).describe(\"Request model for creating a manifest.\");\nconst ShippoCreateManifest_ManifestDocumentSchema = z.object({\n url: z.string().describe(\"URL where the manifest document can be downloaded.\").nullable().optional(),\n type: z.string().describe(\"Type of document (e.g., 'PDF').\").nullable().optional(),\n}).passthrough().describe(\"Model for manifest document information.\");\nexport const ShippoCreateManifestOutput = z.object({\n status: z.string().describe(\"Status of the manifest. Possible values include 'SUCCESS', 'QUEUED', 'ERROR'.\").nullable(),\n documents: z.array(ShippoCreateManifest_ManifestDocumentSchema).describe(\"List of documents associated with the manifest.\"),\n object_id: z.string().describe(\"Unique identifier for the manifest object.\").nullable(),\n address_from: z.string().describe(\"Object ID of the address the manifest is sent from.\").nullable(),\n object_owner: z.string().describe(\"Owner of the manifest object.\").nullable(),\n transactions: z.array(z.string()).describe(\"List of transaction object IDs included in the manifest.\").nullable().optional(),\n shipment_date: z.string().describe(\"Date and time of the shipment in ISO 8601 format.\").nullable(),\n object_created: z.string().describe(\"Timestamp when the manifest was created in ISO 8601 format.\").nullable(),\n object_updated: z.string().describe(\"Timestamp when the manifest was last updated in ISO 8601 format.\").nullable(),\n carrier_account: z.string().describe(\"Object ID of the carrier account used for this manifest.\").nullable(),\n}).passthrough().describe(\"Response model containing the created manifest.\");\n\nexport const shippoCreateManifest = action(\"SHIPPO_CREATE_MANIFEST\", {\n slug: \"shippo-create-manifest\",\n name: \"Create Manifest\",\n description: \"Tool to create a new shipping manifest with Shippo. Use when you need to generate a manifest document for a carrier with multiple shipments that need to be scanned at pickup.\",\n input: ShippoCreateManifestInput,\n output: ShippoCreateManifestOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;CAC/H,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+GAA+G,CAAC,CAAC,SAAS;CACrK,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G;CAC7I,gBAAgBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G;CAChJ,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,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: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
object_id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
address_from: z.ZodNullable<z.ZodString>;
|
|
20
20
|
object_owner: z.ZodNullable<z.ZodString>;
|
|
@@ -23,7 +23,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
23
23
|
object_created: z.ZodNullable<z.ZodString>;
|
|
24
24
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
25
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
address_from: string;
|
|
29
29
|
shipment_date: string;
|
|
@@ -31,7 +31,19 @@ declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowAction
|
|
|
31
31
|
transactions?: string[] | undefined;
|
|
32
32
|
async_manifest?: boolean | undefined;
|
|
33
33
|
shippo_api_version?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
35
|
+
connectionId: z.ZodString;
|
|
36
|
+
entityId: z.ZodString;
|
|
37
|
+
instanceId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
accessToken: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
41
|
+
connectionId: z.ZodString;
|
|
42
|
+
entityId: z.ZodString;
|
|
43
|
+
instanceId: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
accessToken: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>]>;
|
|
35
47
|
//#endregion
|
|
36
48
|
export { shippoCreateManifest };
|
|
37
49
|
//# sourceMappingURL=create-manifest.d.cts.map
|
|
@@ -14,7 +14,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
14
14
|
documents: z.ZodArray<z.ZodObject<{
|
|
15
15
|
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
-
}, z.core.$
|
|
17
|
+
}, z.core.$loose>>;
|
|
18
18
|
object_id: z.ZodNullable<z.ZodString>;
|
|
19
19
|
address_from: z.ZodNullable<z.ZodString>;
|
|
20
20
|
object_owner: z.ZodNullable<z.ZodString>;
|
|
@@ -23,7 +23,7 @@ declare const ShippoCreateManifestOutput: z.ZodObject<{
|
|
|
23
23
|
object_created: z.ZodNullable<z.ZodString>;
|
|
24
24
|
object_updated: z.ZodNullable<z.ZodString>;
|
|
25
25
|
carrier_account: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
address_from: string;
|
|
29
29
|
shipment_date: string;
|
|
@@ -31,7 +31,19 @@ declare const shippoCreateManifest: import("@keystrokehq/action").WorkflowAction
|
|
|
31
31
|
transactions?: string[] | undefined;
|
|
32
32
|
async_manifest?: boolean | undefined;
|
|
33
33
|
shippo_api_version?: string | undefined;
|
|
34
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
34
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
35
|
+
connectionId: z.ZodString;
|
|
36
|
+
entityId: z.ZodString;
|
|
37
|
+
instanceId: z.ZodString;
|
|
38
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
39
|
+
accessToken: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
41
|
+
connectionId: z.ZodString;
|
|
42
|
+
entityId: z.ZodString;
|
|
43
|
+
instanceId: z.ZodString;
|
|
44
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
45
|
+
accessToken: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>]>;
|
|
35
47
|
//#endregion
|
|
36
48
|
export { shippoCreateManifest };
|
|
37
49
|
//# sourceMappingURL=create-manifest.d.mts.map
|
|
@@ -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,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,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: 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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
|
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;
|
|
@@ -62,7 +62,19 @@ declare const shippoCreateMerchantAddress: import("@keystrokehq/action").Workflo
|
|
|
62
62
|
validate?: boolean | undefined;
|
|
63
63
|
is_residential?: boolean | undefined;
|
|
64
64
|
"SHIPPO-API-VERSION"?: string | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
66
|
+
connectionId: z.ZodString;
|
|
67
|
+
entityId: z.ZodString;
|
|
68
|
+
instanceId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
accessToken: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
72
|
+
connectionId: z.ZodString;
|
|
73
|
+
entityId: z.ZodString;
|
|
74
|
+
instanceId: z.ZodString;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
accessToken: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>]>;
|
|
66
78
|
//#endregion
|
|
67
79
|
export { shippoCreateMerchantAddress };
|
|
68
80
|
//# sourceMappingURL=create-merchant-address.d.cts.map
|
|
@@ -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;
|
|
@@ -62,7 +62,19 @@ declare const shippoCreateMerchantAddress: import("@keystrokehq/action").Workflo
|
|
|
62
62
|
validate?: boolean | undefined;
|
|
63
63
|
is_residential?: boolean | undefined;
|
|
64
64
|
"SHIPPO-API-VERSION"?: string | undefined;
|
|
65
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
65
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
66
|
+
connectionId: z.ZodString;
|
|
67
|
+
entityId: z.ZodString;
|
|
68
|
+
instanceId: z.ZodString;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
accessToken: z.ZodString;
|
|
71
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"shippo", z.ZodObject<{
|
|
72
|
+
connectionId: z.ZodString;
|
|
73
|
+
entityId: z.ZodString;
|
|
74
|
+
instanceId: z.ZodString;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
accessToken: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>]>;
|
|
66
78
|
//#endregion
|
|
67
79
|
export { shippoCreateMerchantAddress };
|
|
68
80
|
//# sourceMappingURL=create-merchant-address.d.mts.map
|
|
@@ -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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EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,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,CA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SAAS;EAC5G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,oBAAoB,oDAAoD,SAAS,CAAC,CAAC,SAAS;CAC9F,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,C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