ce-storefront 0.7.3 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +93 -7
- package/bin/mcp-server.js +50005 -0
- package/bin/mcp-server.js.map +465 -0
- package/docs/sdks/catalog/README.md +0 -90
- package/esm/funcs/authCheckVerificationStatus.d.ts +2 -1
- package/esm/funcs/authCheckVerificationStatus.d.ts.map +1 -1
- package/esm/funcs/authCheckVerificationStatus.js +11 -7
- package/esm/funcs/authCheckVerificationStatus.js.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authCreateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authCreateNotificationPreferences.js +11 -7
- package/esm/funcs/authCreateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGenerateOtp.d.ts +2 -1
- package/esm/funcs/authGenerateOtp.d.ts.map +1 -1
- package/esm/funcs/authGenerateOtp.js +11 -7
- package/esm/funcs/authGenerateOtp.js.map +1 -1
- package/esm/funcs/authGetAnonymousToken.d.ts +2 -1
- package/esm/funcs/authGetAnonymousToken.d.ts.map +1 -1
- package/esm/funcs/authGetAnonymousToken.js +10 -6
- package/esm/funcs/authGetAnonymousToken.js.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authGetNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authGetNotificationPreferences.js +11 -7
- package/esm/funcs/authGetNotificationPreferences.js.map +1 -1
- package/esm/funcs/authGetUserDetail.d.ts +2 -1
- package/esm/funcs/authGetUserDetail.d.ts.map +1 -1
- package/esm/funcs/authGetUserDetail.js +11 -7
- package/esm/funcs/authGetUserDetail.js.map +1 -1
- package/esm/funcs/authLoginWithEmail.d.ts +2 -1
- package/esm/funcs/authLoginWithEmail.d.ts.map +1 -1
- package/esm/funcs/authLoginWithEmail.js +11 -7
- package/esm/funcs/authLoginWithEmail.js.map +1 -1
- package/esm/funcs/authLoginWithPhone.d.ts +2 -1
- package/esm/funcs/authLoginWithPhone.d.ts.map +1 -1
- package/esm/funcs/authLoginWithPhone.js +11 -7
- package/esm/funcs/authLoginWithPhone.js.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts +2 -1
- package/esm/funcs/authLoginWithWhatsapp.d.ts.map +1 -1
- package/esm/funcs/authLoginWithWhatsapp.js +11 -7
- package/esm/funcs/authLoginWithWhatsapp.js.map +1 -1
- package/esm/funcs/authLogout.d.ts +2 -1
- package/esm/funcs/authLogout.d.ts.map +1 -1
- package/esm/funcs/authLogout.js +10 -6
- package/esm/funcs/authLogout.js.map +1 -1
- package/esm/funcs/authRefreshToken.d.ts +2 -1
- package/esm/funcs/authRefreshToken.d.ts.map +1 -1
- package/esm/funcs/authRefreshToken.js +11 -7
- package/esm/funcs/authRefreshToken.js.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts +2 -1
- package/esm/funcs/authUpdateNotificationPreferences.d.ts.map +1 -1
- package/esm/funcs/authUpdateNotificationPreferences.js +11 -7
- package/esm/funcs/authUpdateNotificationPreferences.js.map +1 -1
- package/esm/funcs/authUpdateUser.d.ts +2 -1
- package/esm/funcs/authUpdateUser.d.ts.map +1 -1
- package/esm/funcs/authUpdateUser.js +11 -7
- package/esm/funcs/authUpdateUser.js.map +1 -1
- package/esm/funcs/authVerifyOtp.d.ts +2 -1
- package/esm/funcs/authVerifyOtp.d.ts.map +1 -1
- package/esm/funcs/authVerifyOtp.js +11 -7
- package/esm/funcs/authVerifyOtp.js.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts +2 -1
- package/esm/funcs/campaignsSubscribeNewsletter.d.ts.map +1 -1
- package/esm/funcs/campaignsSubscribeNewsletter.js +11 -7
- package/esm/funcs/campaignsSubscribeNewsletter.js.map +1 -1
- package/esm/funcs/cartsApplyCoupon.d.ts +2 -1
- package/esm/funcs/cartsApplyCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsApplyCoupon.js +11 -7
- package/esm/funcs/cartsApplyCoupon.js.map +1 -1
- package/esm/funcs/cartsCreateCart.d.ts +2 -1
- package/esm/funcs/cartsCreateCart.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCart.js +11 -7
- package/esm/funcs/cartsCreateCart.js.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts +2 -1
- package/esm/funcs/cartsCreateCartAddress.d.ts.map +1 -1
- package/esm/funcs/cartsCreateCartAddress.js +11 -7
- package/esm/funcs/cartsCreateCartAddress.js.map +1 -1
- package/esm/funcs/cartsDeleteCart.d.ts +2 -1
- package/esm/funcs/cartsDeleteCart.d.ts.map +1 -1
- package/esm/funcs/cartsDeleteCart.js +11 -7
- package/esm/funcs/cartsDeleteCart.js.map +1 -1
- package/esm/funcs/cartsGetCart.d.ts +2 -1
- package/esm/funcs/cartsGetCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetCart.js +11 -7
- package/esm/funcs/cartsGetCart.js.map +1 -1
- package/esm/funcs/cartsGetUserCart.d.ts +2 -1
- package/esm/funcs/cartsGetUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsGetUserCart.js +11 -7
- package/esm/funcs/cartsGetUserCart.js.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts +2 -1
- package/esm/funcs/cartsRemoveCoupon.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveCoupon.js +11 -7
- package/esm/funcs/cartsRemoveCoupon.js.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts +2 -1
- package/esm/funcs/cartsRemoveUserCart.d.ts.map +1 -1
- package/esm/funcs/cartsRemoveUserCart.js +11 -7
- package/esm/funcs/cartsRemoveUserCart.js.map +1 -1
- package/esm/funcs/cartsUpdateCart.d.ts +2 -1
- package/esm/funcs/cartsUpdateCart.d.ts.map +1 -1
- package/esm/funcs/cartsUpdateCart.js +11 -7
- package/esm/funcs/cartsUpdateCart.js.map +1 -1
- package/esm/funcs/catalogGetProductDetail.d.ts +2 -1
- package/esm/funcs/catalogGetProductDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetProductDetail.js +11 -7
- package/esm/funcs/catalogGetProductDetail.js.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts +2 -1
- package/esm/funcs/catalogGetVariantDetail.d.ts.map +1 -1
- package/esm/funcs/catalogGetVariantDetail.js +11 -7
- package/esm/funcs/catalogGetVariantDetail.js.map +1 -1
- package/esm/funcs/catalogListCategories.d.ts +2 -1
- package/esm/funcs/catalogListCategories.d.ts.map +1 -1
- package/esm/funcs/catalogListCategories.js +11 -7
- package/esm/funcs/catalogListCategories.js.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts +2 -1
- package/esm/funcs/catalogListCrosssellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListCrosssellProducts.js +11 -7
- package/esm/funcs/catalogListCrosssellProducts.js.map +1 -1
- package/esm/funcs/catalogListProductReviews.d.ts +2 -1
- package/esm/funcs/catalogListProductReviews.d.ts.map +1 -1
- package/esm/funcs/catalogListProductReviews.js +11 -7
- package/esm/funcs/catalogListProductReviews.js.map +1 -1
- package/esm/funcs/catalogListProductVariants.d.ts +2 -1
- package/esm/funcs/catalogListProductVariants.d.ts.map +1 -1
- package/esm/funcs/catalogListProductVariants.js +11 -7
- package/esm/funcs/catalogListProductVariants.js.map +1 -1
- package/esm/funcs/catalogListProducts.d.ts +2 -1
- package/esm/funcs/catalogListProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListProducts.js +11 -7
- package/esm/funcs/catalogListProducts.js.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts +2 -1
- package/esm/funcs/catalogListSimilarProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListSimilarProducts.js +11 -7
- package/esm/funcs/catalogListSimilarProducts.js.map +1 -1
- package/esm/funcs/catalogListSkus.d.ts +2 -1
- package/esm/funcs/catalogListSkus.d.ts.map +1 -1
- package/esm/funcs/catalogListSkus.js +11 -7
- package/esm/funcs/catalogListSkus.js.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts +2 -1
- package/esm/funcs/catalogListUpsellProducts.d.ts.map +1 -1
- package/esm/funcs/catalogListUpsellProducts.js +11 -7
- package/esm/funcs/catalogListUpsellProducts.js.map +1 -1
- package/esm/funcs/catalogSearchProducts.d.ts +2 -1
- package/esm/funcs/catalogSearchProducts.d.ts.map +1 -1
- package/esm/funcs/catalogSearchProducts.js +11 -7
- package/esm/funcs/catalogSearchProducts.js.map +1 -1
- package/esm/funcs/commonListCountryPincodes.d.ts +2 -1
- package/esm/funcs/commonListCountryPincodes.d.ts.map +1 -1
- package/esm/funcs/commonListCountryPincodes.js +11 -7
- package/esm/funcs/commonListCountryPincodes.js.map +1 -1
- package/esm/funcs/customersCreateAddress.d.ts +2 -1
- package/esm/funcs/customersCreateAddress.d.ts.map +1 -1
- package/esm/funcs/customersCreateAddress.js +11 -7
- package/esm/funcs/customersCreateAddress.js.map +1 -1
- package/esm/funcs/customersDeleteAddress.d.ts +2 -1
- package/esm/funcs/customersDeleteAddress.d.ts.map +1 -1
- package/esm/funcs/customersDeleteAddress.js +11 -7
- package/esm/funcs/customersDeleteAddress.js.map +1 -1
- package/esm/funcs/customersGetAddressDetail.d.ts +2 -1
- package/esm/funcs/customersGetAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersGetAddressDetail.js +11 -7
- package/esm/funcs/customersGetAddressDetail.js.map +1 -1
- package/esm/funcs/customersListAddresses.d.ts +2 -1
- package/esm/funcs/customersListAddresses.d.ts.map +1 -1
- package/esm/funcs/customersListAddresses.js +11 -7
- package/esm/funcs/customersListAddresses.js.map +1 -1
- package/esm/funcs/customersListUserReviews.d.ts +2 -1
- package/esm/funcs/customersListUserReviews.d.ts.map +1 -1
- package/esm/funcs/customersListUserReviews.js +11 -7
- package/esm/funcs/customersListUserReviews.js.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts +2 -1
- package/esm/funcs/customersUpdateAddressDetail.d.ts.map +1 -1
- package/esm/funcs/customersUpdateAddressDetail.js +11 -7
- package/esm/funcs/customersUpdateAddressDetail.js.map +1 -1
- package/esm/funcs/ordersCancelOrder.d.ts +2 -1
- package/esm/funcs/ordersCancelOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCancelOrder.js +11 -7
- package/esm/funcs/ordersCancelOrder.js.map +1 -1
- package/esm/funcs/ordersCreateOrder.d.ts +2 -1
- package/esm/funcs/ordersCreateOrder.d.ts.map +1 -1
- package/esm/funcs/ordersCreateOrder.js +11 -7
- package/esm/funcs/ordersCreateOrder.js.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts +2 -1
- package/esm/funcs/ordersGetOrderDetail.d.ts.map +1 -1
- package/esm/funcs/ordersGetOrderDetail.js +11 -7
- package/esm/funcs/ordersGetOrderDetail.js.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts +2 -1
- package/esm/funcs/ordersGetPaymentStatus.d.ts.map +1 -1
- package/esm/funcs/ordersGetPaymentStatus.js +11 -7
- package/esm/funcs/ordersGetPaymentStatus.js.map +1 -1
- package/esm/funcs/ordersListOrderShipments.d.ts +2 -1
- package/esm/funcs/ordersListOrderShipments.d.ts.map +1 -1
- package/esm/funcs/ordersListOrderShipments.js +11 -7
- package/esm/funcs/ordersListOrderShipments.js.map +1 -1
- package/esm/funcs/ordersListOrders.d.ts +2 -1
- package/esm/funcs/ordersListOrders.d.ts.map +1 -1
- package/esm/funcs/ordersListOrders.js +11 -7
- package/esm/funcs/ordersListOrders.js.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts +2 -1
- package/esm/funcs/ordersRetryOrderPayment.d.ts.map +1 -1
- package/esm/funcs/ordersRetryOrderPayment.js +11 -7
- package/esm/funcs/ordersRetryOrderPayment.js.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts +2 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.d.ts.map +1 -1
- package/esm/funcs/shippingCheckDeliveryAvailability.js +11 -7
- package/esm/funcs/shippingCheckDeliveryAvailability.js.map +1 -1
- package/esm/hooks/types.d.ts +1 -1
- package/esm/hooks/types.d.ts.map +1 -1
- package/esm/lib/config.d.ts +7 -7
- package/esm/lib/config.d.ts.map +1 -1
- package/esm/lib/config.js +3 -3
- package/esm/lib/files.js.map +1 -1
- package/esm/lib/primitives.d.ts +3 -0
- package/esm/lib/primitives.d.ts.map +1 -1
- package/esm/lib/primitives.js +6 -0
- package/esm/lib/primitives.js.map +1 -1
- package/esm/lib/sdks.d.ts +1 -1
- package/esm/lib/sdks.d.ts.map +1 -1
- package/esm/lib/sdks.js +2 -8
- package/esm/lib/sdks.js.map +1 -1
- package/esm/lib/security.d.ts +4 -3
- package/esm/lib/security.d.ts.map +1 -1
- package/esm/lib/security.js +6 -1
- package/esm/lib/security.js.map +1 -1
- package/esm/mcp-server/build.d.mts.map +1 -0
- package/esm/mcp-server/build.mjs +14 -0
- package/esm/mcp-server/build.mjs.map +1 -0
- package/esm/mcp-server/cli/start/command.d.ts +2 -0
- package/esm/mcp-server/cli/start/command.d.ts.map +1 -0
- package/esm/mcp-server/cli/start/command.js +108 -0
- package/esm/mcp-server/cli/start/command.js.map +1 -0
- package/esm/mcp-server/cli/start/impl.d.ts +19 -0
- package/esm/mcp-server/cli/start/impl.d.ts.map +1 -0
- package/esm/mcp-server/cli/start/impl.js +100 -0
- package/esm/mcp-server/cli/start/impl.js.map +1 -0
- package/esm/mcp-server/cli.d.ts +6 -0
- package/esm/mcp-server/cli.d.ts.map +1 -0
- package/esm/mcp-server/cli.js +7 -0
- package/esm/mcp-server/cli.js.map +1 -0
- package/esm/mcp-server/console-logger.d.ts +7 -0
- package/esm/mcp-server/console-logger.d.ts.map +1 -0
- package/esm/mcp-server/console-logger.js +55 -0
- package/esm/mcp-server/console-logger.js.map +1 -0
- package/esm/mcp-server/extensions.d.ts +11 -0
- package/esm/mcp-server/extensions.d.ts.map +1 -0
- package/esm/mcp-server/extensions.js +5 -0
- package/esm/mcp-server/extensions.js.map +1 -0
- package/esm/mcp-server/mcp-server.d.ts +2 -0
- package/esm/mcp-server/mcp-server.d.ts.map +1 -0
- package/esm/mcp-server/mcp-server.js +23 -0
- package/esm/mcp-server/mcp-server.js.map +1 -0
- package/esm/mcp-server/prompts.d.ts +26 -0
- package/esm/mcp-server/prompts.d.ts.map +1 -0
- package/esm/mcp-server/prompts.js +43 -0
- package/esm/mcp-server/prompts.js.map +1 -0
- package/esm/mcp-server/resources.d.ts +32 -0
- package/esm/mcp-server/resources.d.ts.map +1 -0
- package/esm/mcp-server/resources.js +74 -0
- package/esm/mcp-server/resources.js.map +1 -0
- package/esm/mcp-server/scopes.d.ts +3 -0
- package/esm/mcp-server/scopes.d.ts.map +1 -0
- package/esm/mcp-server/scopes.js +5 -0
- package/esm/mcp-server/scopes.js.map +1 -0
- package/esm/mcp-server/server.d.ts +14 -0
- package/esm/mcp-server/server.d.ts.map +1 -0
- package/esm/mcp-server/server.js +129 -0
- package/esm/mcp-server/server.js.map +1 -0
- package/esm/mcp-server/shared.d.ts +7 -0
- package/esm/mcp-server/shared.d.ts.map +1 -0
- package/esm/mcp-server/shared.js +59 -0
- package/esm/mcp-server/shared.js.map +1 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.d.ts +8 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.d.ts.map +1 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.js +28 -0
- package/esm/mcp-server/tools/authCheckVerificationStatus.js.map +1 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authCreateNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authGenerateOtp.d.ts +8 -0
- package/esm/mcp-server/tools/authGenerateOtp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGenerateOtp.js +28 -0
- package/esm/mcp-server/tools/authGenerateOtp.js.map +1 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authGetNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authGetUserDetail.d.ts +8 -0
- package/esm/mcp-server/tools/authGetUserDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/authGetUserDetail.js +28 -0
- package/esm/mcp-server/tools/authGetUserDetail.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithEmail.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithEmail.js +28 -0
- package/esm/mcp-server/tools/authLoginWithEmail.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithPhone.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithPhone.js +28 -0
- package/esm/mcp-server/tools/authLoginWithPhone.js.map +1 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts +8 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js +28 -0
- package/esm/mcp-server/tools/authLoginWithWhatsapp.js.map +1 -0
- package/esm/mcp-server/tools/authLogout.d.ts +3 -0
- package/esm/mcp-server/tools/authLogout.d.ts.map +1 -0
- package/esm/mcp-server/tools/authLogout.js +23 -0
- package/esm/mcp-server/tools/authLogout.js.map +1 -0
- package/esm/mcp-server/tools/authRefreshToken.d.ts +8 -0
- package/esm/mcp-server/tools/authRefreshToken.d.ts.map +1 -0
- package/esm/mcp-server/tools/authRefreshToken.js +28 -0
- package/esm/mcp-server/tools/authRefreshToken.js.map +1 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.d.ts +8 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.d.ts.map +1 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.js +28 -0
- package/esm/mcp-server/tools/authUpdateNotificationPreferences.js.map +1 -0
- package/esm/mcp-server/tools/authUpdateUser.d.ts +8 -0
- package/esm/mcp-server/tools/authUpdateUser.d.ts.map +1 -0
- package/esm/mcp-server/tools/authUpdateUser.js +28 -0
- package/esm/mcp-server/tools/authUpdateUser.js.map +1 -0
- package/esm/mcp-server/tools/authVerifyOtp.d.ts +8 -0
- package/esm/mcp-server/tools/authVerifyOtp.d.ts.map +1 -0
- package/esm/mcp-server/tools/authVerifyOtp.js +28 -0
- package/esm/mcp-server/tools/authVerifyOtp.js.map +1 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.d.ts +8 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.d.ts.map +1 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.js +28 -0
- package/esm/mcp-server/tools/campaignsSubscribeNewsletter.js.map +1 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts +8 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.js +28 -0
- package/esm/mcp-server/tools/cartsApplyCoupon.js.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsCreateCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCart.js +28 -0
- package/esm/mcp-server/tools/cartsCreateCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts +8 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.js +28 -0
- package/esm/mcp-server/tools/cartsCreateCartAddress.js.map +1 -0
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsDeleteCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsDeleteCart.js +28 -0
- package/esm/mcp-server/tools/cartsDeleteCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsGetCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsGetCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsGetCart.js +28 -0
- package/esm/mcp-server/tools/cartsGetCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsGetUserCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsGetUserCart.js +28 -0
- package/esm/mcp-server/tools/cartsGetUserCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts +8 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.js +28 -0
- package/esm/mcp-server/tools/cartsRemoveCoupon.js.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.js +28 -0
- package/esm/mcp-server/tools/cartsRemoveUserCart.js.map +1 -0
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts +8 -0
- package/esm/mcp-server/tools/cartsUpdateCart.d.ts.map +1 -0
- package/esm/mcp-server/tools/cartsUpdateCart.js +28 -0
- package/esm/mcp-server/tools/cartsUpdateCart.js.map +1 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts +8 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.js +28 -0
- package/esm/mcp-server/tools/catalogGetProductDetail.js.map +1 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts +8 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.js +28 -0
- package/esm/mcp-server/tools/catalogGetVariantDetail.js.map +1 -0
- package/esm/mcp-server/tools/catalogListCategories.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListCategories.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListCategories.js +28 -0
- package/esm/mcp-server/tools/catalogListCategories.js.map +1 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListCrosssellProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProductReviews.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProductReviews.js +28 -0
- package/esm/mcp-server/tools/catalogListProductReviews.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProductVariants.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProductVariants.js +28 -0
- package/esm/mcp-server/tools/catalogListProductVariants.js.map +1 -0
- package/esm/mcp-server/tools/catalogListProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListSimilarProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogListSkus.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListSkus.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListSkus.js +28 -0
- package/esm/mcp-server/tools/catalogListSkus.js.map +1 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.js +28 -0
- package/esm/mcp-server/tools/catalogListUpsellProducts.js.map +1 -0
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts +8 -0
- package/esm/mcp-server/tools/catalogSearchProducts.d.ts.map +1 -0
- package/esm/mcp-server/tools/catalogSearchProducts.js +28 -0
- package/esm/mcp-server/tools/catalogSearchProducts.js.map +1 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts +8 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.d.ts.map +1 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.js +28 -0
- package/esm/mcp-server/tools/commonListCountryPincodes.js.map +1 -0
- package/esm/mcp-server/tools/customersCreateAddress.d.ts +8 -0
- package/esm/mcp-server/tools/customersCreateAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersCreateAddress.js +28 -0
- package/esm/mcp-server/tools/customersCreateAddress.js.map +1 -0
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts +8 -0
- package/esm/mcp-server/tools/customersDeleteAddress.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersDeleteAddress.js +28 -0
- package/esm/mcp-server/tools/customersDeleteAddress.js.map +1 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts +8 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.js +28 -0
- package/esm/mcp-server/tools/customersGetAddressDetail.js.map +1 -0
- package/esm/mcp-server/tools/customersListAddresses.d.ts +8 -0
- package/esm/mcp-server/tools/customersListAddresses.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersListAddresses.js +28 -0
- package/esm/mcp-server/tools/customersListAddresses.js.map +1 -0
- package/esm/mcp-server/tools/customersListUserReviews.d.ts +8 -0
- package/esm/mcp-server/tools/customersListUserReviews.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersListUserReviews.js +28 -0
- package/esm/mcp-server/tools/customersListUserReviews.js.map +1 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts +8 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js +28 -0
- package/esm/mcp-server/tools/customersUpdateAddressDetail.js.map +1 -0
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts +8 -0
- package/esm/mcp-server/tools/ordersCancelOrder.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersCancelOrder.js +28 -0
- package/esm/mcp-server/tools/ordersCancelOrder.js.map +1 -0
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts +8 -0
- package/esm/mcp-server/tools/ordersCreateOrder.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersCreateOrder.js +28 -0
- package/esm/mcp-server/tools/ordersCreateOrder.js.map +1 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts +8 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.js +28 -0
- package/esm/mcp-server/tools/ordersGetOrderDetail.js.map +1 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts +8 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js +28 -0
- package/esm/mcp-server/tools/ordersGetPaymentStatus.js.map +1 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts +8 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.js +28 -0
- package/esm/mcp-server/tools/ordersListOrderShipments.js.map +1 -0
- package/esm/mcp-server/tools/ordersListOrders.d.ts +8 -0
- package/esm/mcp-server/tools/ordersListOrders.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersListOrders.js +28 -0
- package/esm/mcp-server/tools/ordersListOrders.js.map +1 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts +8 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.d.ts.map +1 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js +28 -0
- package/esm/mcp-server/tools/ordersRetryOrderPayment.js.map +1 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts +8 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.d.ts.map +1 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js +28 -0
- package/esm/mcp-server/tools/shippingCheckDeliveryAvailability.js.map +1 -0
- package/esm/mcp-server/tools.d.ts +25 -0
- package/esm/mcp-server/tools.d.ts.map +1 -0
- package/esm/mcp-server/tools.js +77 -0
- package/esm/mcp-server/tools.js.map +1 -0
- package/esm/models/components/index.d.ts +1 -2
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +1 -2
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/{sku.d.ts → item.d.ts} +22 -22
- package/esm/models/components/item.d.ts.map +1 -0
- package/esm/models/components/{sku.js → item.js} +26 -27
- package/esm/models/components/item.js.map +1 -0
- package/esm/models/components/juspaypaymentinfo.d.ts +9 -9
- package/esm/models/components/juspaypaymentinfo.js +3 -3
- package/esm/models/components/juspaypaymentinfo.js.map +1 -1
- package/esm/models/components/productdetail.d.ts +2 -2
- package/esm/models/components/productdetail.d.ts.map +1 -1
- package/esm/models/components/productdetail.js +2 -2
- package/esm/models/components/productdetail.js.map +1 -1
- package/esm/models/operations/index.d.ts +0 -1
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +0 -1
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listaddresses.d.ts +2 -2
- package/esm/models/operations/listaddresses.d.ts.map +1 -1
- package/esm/models/operations/listaddresses.js +2 -2
- package/esm/models/operations/listaddresses.js.map +1 -1
- package/esm/models/operations/listcrosssellproducts.d.ts +2 -2
- package/esm/models/operations/listcrosssellproducts.d.ts.map +1 -1
- package/esm/models/operations/listcrosssellproducts.js +2 -2
- package/esm/models/operations/listcrosssellproducts.js.map +1 -1
- package/esm/models/operations/listsimilarproducts.d.ts +2 -2
- package/esm/models/operations/listsimilarproducts.d.ts.map +1 -1
- package/esm/models/operations/listsimilarproducts.js +2 -2
- package/esm/models/operations/listsimilarproducts.js.map +1 -1
- package/esm/models/operations/listskus.d.ts +2 -2
- package/esm/models/operations/listskus.d.ts.map +1 -1
- package/esm/models/operations/listskus.js +2 -2
- package/esm/models/operations/listskus.js.map +1 -1
- package/esm/models/operations/listupsellproducts.d.ts +2 -2
- package/esm/models/operations/listupsellproducts.d.ts.map +1 -1
- package/esm/models/operations/listupsellproducts.js +2 -2
- package/esm/models/operations/listupsellproducts.js.map +1 -1
- package/esm/models/operations/searchproducts.d.ts +2 -2
- package/esm/models/operations/searchproducts.d.ts.map +1 -1
- package/esm/models/operations/searchproducts.js +2 -2
- package/esm/models/operations/searchproducts.js.map +1 -1
- package/esm/sdk/catalog.d.ts +0 -7
- package/esm/sdk/catalog.d.ts.map +1 -1
- package/esm/sdk/catalog.js +0 -10
- package/esm/sdk/catalog.js.map +1 -1
- package/esm/types/async.d.ts +23 -0
- package/esm/types/async.d.ts.map +1 -0
- package/esm/types/async.js +40 -0
- package/esm/types/async.js.map +1 -0
- package/jsr.json +1 -1
- package/package.json +16 -2
- package/src/funcs/authCheckVerificationStatus.ts +35 -8
- package/src/funcs/authCreateNotificationPreferences.ts +35 -8
- package/src/funcs/authGenerateOtp.ts +35 -8
- package/src/funcs/authGetAnonymousToken.ts +34 -7
- package/src/funcs/authGetNotificationPreferences.ts +35 -8
- package/src/funcs/authGetUserDetail.ts +35 -8
- package/src/funcs/authLoginWithEmail.ts +35 -8
- package/src/funcs/authLoginWithPhone.ts +35 -8
- package/src/funcs/authLoginWithWhatsapp.ts +35 -8
- package/src/funcs/authLogout.ts +32 -7
- package/src/funcs/authRefreshToken.ts +35 -8
- package/src/funcs/authUpdateNotificationPreferences.ts +35 -8
- package/src/funcs/authUpdateUser.ts +35 -8
- package/src/funcs/authVerifyOtp.ts +35 -8
- package/src/funcs/campaignsSubscribeNewsletter.ts +35 -8
- package/src/funcs/cartsApplyCoupon.ts +37 -8
- package/src/funcs/cartsCreateCart.ts +35 -8
- package/src/funcs/cartsCreateCartAddress.ts +38 -8
- package/src/funcs/cartsDeleteCart.ts +37 -8
- package/src/funcs/cartsGetCart.ts +37 -8
- package/src/funcs/cartsGetUserCart.ts +37 -8
- package/src/funcs/cartsRemoveCoupon.ts +37 -8
- package/src/funcs/cartsRemoveUserCart.ts +37 -8
- package/src/funcs/cartsUpdateCart.ts +38 -8
- package/src/funcs/catalogGetProductDetail.ts +37 -8
- package/src/funcs/catalogGetVariantDetail.ts +37 -8
- package/src/funcs/catalogListCategories.ts +35 -8
- package/src/funcs/catalogListCrosssellProducts.ts +37 -8
- package/src/funcs/catalogListProductReviews.ts +37 -8
- package/src/funcs/catalogListProductVariants.ts +37 -8
- package/src/funcs/catalogListProducts.ts +37 -8
- package/src/funcs/catalogListSimilarProducts.ts +37 -8
- package/src/funcs/catalogListSkus.ts +37 -8
- package/src/funcs/catalogListUpsellProducts.ts +37 -8
- package/src/funcs/catalogSearchProducts.ts +36 -8
- package/src/funcs/commonListCountryPincodes.ts +35 -8
- package/src/funcs/customersCreateAddress.ts +37 -8
- package/src/funcs/customersDeleteAddress.ts +37 -8
- package/src/funcs/customersGetAddressDetail.ts +37 -8
- package/src/funcs/customersListAddresses.ts +35 -8
- package/src/funcs/customersListUserReviews.ts +35 -8
- package/src/funcs/customersUpdateAddressDetail.ts +38 -8
- package/src/funcs/ordersCancelOrder.ts +37 -8
- package/src/funcs/ordersCreateOrder.ts +38 -8
- package/src/funcs/ordersGetOrderDetail.ts +37 -8
- package/src/funcs/ordersGetPaymentStatus.ts +35 -8
- package/src/funcs/ordersListOrderShipments.ts +37 -8
- package/src/funcs/ordersListOrders.ts +35 -8
- package/src/funcs/ordersRetryOrderPayment.ts +38 -8
- package/src/funcs/shippingCheckDeliveryAvailability.ts +36 -8
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +7 -7
- package/src/lib/files.ts +1 -1
- package/src/lib/primitives.ts +14 -0
- package/src/lib/sdks.ts +3 -8
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/cli/start/command.ts +113 -0
- package/src/mcp-server/cli/start/impl.ts +137 -0
- package/src/mcp-server/cli.ts +13 -0
- package/src/mcp-server/console-logger.ts +71 -0
- package/src/mcp-server/extensions.ts +17 -0
- package/src/mcp-server/mcp-server.ts +26 -0
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +158 -0
- package/src/mcp-server/scopes.ts +7 -0
- package/src/mcp-server/server.ts +159 -0
- package/src/mcp-server/shared.ts +75 -0
- package/src/mcp-server/tools/authCheckVerificationStatus.ts +37 -0
- package/src/mcp-server/tools/authCreateNotificationPreferences.ts +39 -0
- package/src/mcp-server/tools/authGenerateOtp.ts +37 -0
- package/src/mcp-server/tools/authGetNotificationPreferences.ts +38 -0
- package/src/mcp-server/tools/authGetUserDetail.ts +37 -0
- package/src/mcp-server/tools/authLoginWithEmail.ts +37 -0
- package/src/mcp-server/tools/authLoginWithPhone.ts +37 -0
- package/src/mcp-server/tools/authLoginWithWhatsapp.ts +37 -0
- package/src/mcp-server/tools/authLogout.ts +30 -0
- package/src/mcp-server/tools/authRefreshToken.ts +37 -0
- package/src/mcp-server/tools/authUpdateNotificationPreferences.ts +39 -0
- package/src/mcp-server/tools/authUpdateUser.ts +37 -0
- package/src/mcp-server/tools/authVerifyOtp.ts +37 -0
- package/src/mcp-server/tools/campaignsSubscribeNewsletter.ts +37 -0
- package/src/mcp-server/tools/cartsApplyCoupon.ts +37 -0
- package/src/mcp-server/tools/cartsCreateCart.ts +37 -0
- package/src/mcp-server/tools/cartsCreateCartAddress.ts +37 -0
- package/src/mcp-server/tools/cartsDeleteCart.ts +37 -0
- package/src/mcp-server/tools/cartsGetCart.ts +37 -0
- package/src/mcp-server/tools/cartsGetUserCart.ts +37 -0
- package/src/mcp-server/tools/cartsRemoveCoupon.ts +37 -0
- package/src/mcp-server/tools/cartsRemoveUserCart.ts +37 -0
- package/src/mcp-server/tools/cartsUpdateCart.ts +37 -0
- package/src/mcp-server/tools/catalogGetProductDetail.ts +37 -0
- package/src/mcp-server/tools/catalogGetVariantDetail.ts +37 -0
- package/src/mcp-server/tools/catalogListCategories.ts +37 -0
- package/src/mcp-server/tools/catalogListCrosssellProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListProductReviews.ts +37 -0
- package/src/mcp-server/tools/catalogListProductVariants.ts +37 -0
- package/src/mcp-server/tools/catalogListProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListSimilarProducts.ts +37 -0
- package/src/mcp-server/tools/catalogListSkus.ts +37 -0
- package/src/mcp-server/tools/catalogListUpsellProducts.ts +37 -0
- package/src/mcp-server/tools/catalogSearchProducts.ts +37 -0
- package/src/mcp-server/tools/commonListCountryPincodes.ts +37 -0
- package/src/mcp-server/tools/customersCreateAddress.ts +37 -0
- package/src/mcp-server/tools/customersDeleteAddress.ts +37 -0
- package/src/mcp-server/tools/customersGetAddressDetail.ts +37 -0
- package/src/mcp-server/tools/customersListAddresses.ts +37 -0
- package/src/mcp-server/tools/customersListUserReviews.ts +37 -0
- package/src/mcp-server/tools/customersUpdateAddressDetail.ts +37 -0
- package/src/mcp-server/tools/ordersCancelOrder.ts +37 -0
- package/src/mcp-server/tools/ordersCreateOrder.ts +37 -0
- package/src/mcp-server/tools/ordersGetOrderDetail.ts +37 -0
- package/src/mcp-server/tools/ordersGetPaymentStatus.ts +37 -0
- package/src/mcp-server/tools/ordersListOrderShipments.ts +37 -0
- package/src/mcp-server/tools/ordersListOrders.ts +37 -0
- package/src/mcp-server/tools/ordersRetryOrderPayment.ts +37 -0
- package/src/mcp-server/tools/shippingCheckDeliveryAvailability.ts +39 -0
- package/src/mcp-server/tools.ts +126 -0
- package/src/models/components/index.ts +1 -2
- package/src/models/components/{sku.ts → item.ts} +34 -34
- package/src/models/components/juspaypaymentinfo.ts +3 -3
- package/src/models/components/productdetail.ts +4 -4
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/listaddresses.ts +4 -4
- package/src/models/operations/listcrosssellproducts.ts +4 -4
- package/src/models/operations/listsimilarproducts.ts +4 -4
- package/src/models/operations/listskus.ts +4 -4
- package/src/models/operations/listupsellproducts.ts +4 -4
- package/src/models/operations/searchproducts.ts +4 -4
- package/src/sdk/catalog.ts +0 -18
- package/src/types/async.ts +68 -0
- package/esm/funcs/catalogCreateProductReview.d.ts +0 -16
- package/esm/funcs/catalogCreateProductReview.d.ts.map +0 -1
- package/esm/funcs/catalogCreateProductReview.js +0 -93
- package/esm/funcs/catalogCreateProductReview.js.map +0 -1
- package/esm/models/components/createreview.d.ts +0 -42
- package/esm/models/components/createreview.d.ts.map +0 -1
- package/esm/models/components/createreview.js +0 -54
- package/esm/models/components/createreview.js.map +0 -1
- package/esm/models/components/sku.d.ts.map +0 -1
- package/esm/models/components/sku.js.map +0 -1
- package/esm/models/operations/createproductreview.d.ts +0 -65
- package/esm/models/operations/createproductreview.d.ts.map +0 -1
- package/esm/models/operations/createproductreview.js +0 -72
- package/esm/models/operations/createproductreview.js.map +0 -1
- package/src/funcs/catalogCreateProductReview.ts +0 -161
- package/src/models/components/createreview.ts +0 -98
- package/src/models/operations/createproductreview.ts +0 -152
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authGetNotificationPreferences } from "../../funcs/authGetNotificationPreferences.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetNotificationPreferencesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authGetNotificationPreferences: ToolDefinition<typeof args> =
|
|
14
|
+
{
|
|
15
|
+
name: "auth-get-notification-preferences",
|
|
16
|
+
description: `Retrieve user notification preferences
|
|
17
|
+
|
|
18
|
+
The Retrieve Notification Preferences API allows clients to fetch a user's notification preferences based on their unique user identifier (user_id).`,
|
|
19
|
+
args,
|
|
20
|
+
tool: async (client, args, ctx) => {
|
|
21
|
+
const [result, apiCall] = await authGetNotificationPreferences(
|
|
22
|
+
client,
|
|
23
|
+
args.request,
|
|
24
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
25
|
+
).$inspect();
|
|
26
|
+
|
|
27
|
+
if (!result.ok) {
|
|
28
|
+
return {
|
|
29
|
+
content: [{ type: "text", text: result.error.message }],
|
|
30
|
+
isError: true,
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const value = result.value;
|
|
35
|
+
|
|
36
|
+
return formatResult(value, apiCall);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authGetUserDetail } from "../../funcs/authGetUserDetail.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetUserDetailRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authGetUserDetail: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-get-user-detail",
|
|
15
|
+
description: `Retrieve a user
|
|
16
|
+
|
|
17
|
+
The Retrieve User API is designed to facilitate the retrieval of comprehensive user information from the system. A required parameter is a user-id of the user whose information needs to be retrieved.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authGetUserDetail(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authLoginWithEmail } from "../../funcs/authLoginWithEmail.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.LoginWithEmailRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authLoginWithEmail: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-login-with-email",
|
|
15
|
+
description: `Login with email
|
|
16
|
+
|
|
17
|
+
This API enables users to authenticate into the system using their email address. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their email address.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authLoginWithEmail(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authLoginWithPhone } from "../../funcs/authLoginWithPhone.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.LoginWithPhoneRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authLoginWithPhone: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-login-with-phone",
|
|
15
|
+
description: `Login with phone
|
|
16
|
+
|
|
17
|
+
This API enables users to authenticate into the system using their phone number. It provides a secure way for users to log in by verifying their identity through a one-time password (OTP) sent to their registered phone.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authLoginWithPhone(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authLoginWithWhatsapp } from "../../funcs/authLoginWithWhatsapp.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.LoginWithWhatsappRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authLoginWithWhatsapp: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-login-with-whatsapp",
|
|
15
|
+
description: `Login with whatsapp
|
|
16
|
+
|
|
17
|
+
This API enables users to authenticate into the system using their WhatsApp Number. It provides a secure way for users to Login by verifying their identity through a one-time password (OTP) sent to their WhatsApp Number.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authLoginWithWhatsapp(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authLogout } from "../../funcs/authLogout.js";
|
|
6
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
7
|
+
|
|
8
|
+
export const tool$authLogout: ToolDefinition = {
|
|
9
|
+
name: "auth-logout",
|
|
10
|
+
description: `Logout user
|
|
11
|
+
|
|
12
|
+
The Logout User API initiate the logout process for a user. Upon a successful request, the API responds with a confirmation message. If the user is not found or there's an issue with the request, an error response is returned with an appropriate message.`,
|
|
13
|
+
tool: async (client, ctx) => {
|
|
14
|
+
const [result, apiCall] = await authLogout(
|
|
15
|
+
client,
|
|
16
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
17
|
+
).$inspect();
|
|
18
|
+
|
|
19
|
+
if (!result.ok) {
|
|
20
|
+
return {
|
|
21
|
+
content: [{ type: "text", text: result.error.message }],
|
|
22
|
+
isError: true,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const value = result.value;
|
|
27
|
+
|
|
28
|
+
return formatResult(value, apiCall);
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authRefreshToken } from "../../funcs/authRefreshToken.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.RefreshTokenRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authRefreshToken: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-refresh-token",
|
|
15
|
+
description: `Refresh access token
|
|
16
|
+
|
|
17
|
+
The Refresh Access Token API is an integral component designed to enhance security and user experience. It enables clients to refresh their access tokens seamlessly, extending user sessions without compromising security.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authRefreshToken(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authUpdateNotificationPreferences } from "../../funcs/authUpdateNotificationPreferences.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateNotificationPreferencesRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authUpdateNotificationPreferences: ToolDefinition<
|
|
14
|
+
typeof args
|
|
15
|
+
> = {
|
|
16
|
+
name: "auth-update-notification-preferences",
|
|
17
|
+
description: `Update user notification preferences
|
|
18
|
+
|
|
19
|
+
Update Notification Preferences API allows clients to update a user's notification preferences based on their unique user identifier (user_id).`,
|
|
20
|
+
args,
|
|
21
|
+
tool: async (client, args, ctx) => {
|
|
22
|
+
const [result, apiCall] = await authUpdateNotificationPreferences(
|
|
23
|
+
client,
|
|
24
|
+
args.request,
|
|
25
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
26
|
+
).$inspect();
|
|
27
|
+
|
|
28
|
+
if (!result.ok) {
|
|
29
|
+
return {
|
|
30
|
+
content: [{ type: "text", text: result.error.message }],
|
|
31
|
+
isError: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const value = result.value;
|
|
36
|
+
|
|
37
|
+
return formatResult(value, apiCall);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authUpdateUser } from "../../funcs/authUpdateUser.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.UpdateUserRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authUpdateUser: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-update-user",
|
|
15
|
+
description: `Update a user
|
|
16
|
+
|
|
17
|
+
The Update User API helps to efficiently modify and enhance user information within the system, ensuring that user profiles remain accurate and up-to-date. This API provides a secure and flexible mechanism for updating specific details while maintaining adherence to established conventions.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authUpdateUser(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { authVerifyOtp } from "../../funcs/authVerifyOtp.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.VerifyOtpRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$authVerifyOtp: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "auth-verify-otp",
|
|
15
|
+
description: `Verify OTP
|
|
16
|
+
|
|
17
|
+
This API endpoint allows you to verify a one-time password (OTP) for authentication purposes. By sending a request to this endpoint with the necessary parameters, you can confirm the validity of the OTP provided by the user.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await authVerifyOtp(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { campaignsSubscribeNewsletter } from "../../funcs/campaignsSubscribeNewsletter.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.SubscribeNewsletterRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$campaignsSubscribeNewsletter: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "campaigns-subscribe-newsletter",
|
|
15
|
+
description: `Subscribe to newsletter
|
|
16
|
+
|
|
17
|
+
Subscribe to newsletter`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await campaignsSubscribeNewsletter(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsApplyCoupon } from "../../funcs/cartsApplyCoupon.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.ApplyCouponRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsApplyCoupon: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-apply-coupon",
|
|
15
|
+
description: `Apply coupon
|
|
16
|
+
|
|
17
|
+
Apply coupon`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsApplyCoupon(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsCreateCart } from "../../funcs/cartsCreateCart.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateCartRequestBody$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsCreateCart: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-create-cart",
|
|
15
|
+
description: `Create cart
|
|
16
|
+
|
|
17
|
+
Create cart`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsCreateCart(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsCreateCartAddress } from "../../funcs/cartsCreateCartAddress.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.CreateCartAddressRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsCreateCartAddress: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-create-cart-address",
|
|
15
|
+
description: `Update cart address
|
|
16
|
+
|
|
17
|
+
Update billing and shipping address`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsCreateCartAddress(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsDeleteCart } from "../../funcs/cartsDeleteCart.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.DeleteCartRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsDeleteCart: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-delete-cart",
|
|
15
|
+
description: `Delete cart
|
|
16
|
+
|
|
17
|
+
delete all items from the cart.`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsDeleteCart(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsGetCart } from "../../funcs/cartsGetCart.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetCartRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsGetCart: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-get-cart",
|
|
15
|
+
description: `Retrieve cart detail
|
|
16
|
+
|
|
17
|
+
Retrieve cart detail`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsGetCart(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsGetUserCart } from "../../funcs/cartsGetUserCart.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.GetUserCartRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsGetUserCart: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-get-user-cart",
|
|
15
|
+
description: `Retrieve cart using user id
|
|
16
|
+
|
|
17
|
+
Retrieve cart detail using user id`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsGetUserCart(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { cartsRemoveCoupon } from "../../funcs/cartsRemoveCoupon.js";
|
|
6
|
+
import * as operations from "../../models/operations/index.js";
|
|
7
|
+
import { formatResult, ToolDefinition } from "../tools.js";
|
|
8
|
+
|
|
9
|
+
const args = {
|
|
10
|
+
request: operations.RemoveCouponRequest$inboundSchema,
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const tool$cartsRemoveCoupon: ToolDefinition<typeof args> = {
|
|
14
|
+
name: "carts-remove-coupon",
|
|
15
|
+
description: `Remove coupon
|
|
16
|
+
|
|
17
|
+
remove coupon from cart`,
|
|
18
|
+
args,
|
|
19
|
+
tool: async (client, args, ctx) => {
|
|
20
|
+
const [result, apiCall] = await cartsRemoveCoupon(
|
|
21
|
+
client,
|
|
22
|
+
args.request,
|
|
23
|
+
{ fetchOptions: { signal: ctx.signal } },
|
|
24
|
+
).$inspect();
|
|
25
|
+
|
|
26
|
+
if (!result.ok) {
|
|
27
|
+
return {
|
|
28
|
+
content: [{ type: "text", text: result.error.message }],
|
|
29
|
+
isError: true,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const value = result.value;
|
|
34
|
+
|
|
35
|
+
return formatResult(value, apiCall);
|
|
36
|
+
},
|
|
37
|
+
};
|