@commercengine/storefront-sdk 0.3.11 → 0.4.0

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.
@@ -1,9 +1,11 @@
1
+ import createClient from 'openapi-fetch';
2
+
1
3
  /**
2
4
  * This file was auto-generated by openapi-typescript.
3
5
  * Do not make direct changes to the file.
4
6
  */
5
7
 
6
- export interface paths {
8
+ interface paths {
7
9
  "/catalog/products": {
8
10
  parameters: {
9
11
  query?: never;
@@ -1840,8 +1842,7 @@ export interface paths {
1840
1842
  trace?: never;
1841
1843
  };
1842
1844
  }
1843
- export type webhooks = Record<string, never>;
1844
- export interface components {
1845
+ interface components {
1845
1846
  schemas: {
1846
1847
  /** Product */
1847
1848
  Product: {
@@ -4545,8 +4546,7 @@ export interface components {
4545
4546
  headers: never;
4546
4547
  pathItems: never;
4547
4548
  }
4548
- export type $defs = Record<string, never>;
4549
- export interface operations {
4549
+ interface operations {
4550
4550
  "list-products": {
4551
4551
  parameters: {
4552
4552
  query?: {
@@ -8681,3 +8681,1487 @@ export interface operations {
8681
8681
  };
8682
8682
  };
8683
8683
  }
8684
+
8685
+ type ApiResult<T> = {
8686
+ data: T;
8687
+ error: null;
8688
+ response: Response;
8689
+ } | {
8690
+ data: null;
8691
+ error: ApiErrorResponse;
8692
+ response: Response;
8693
+ };
8694
+ type ApiErrorResponse = {
8695
+ success?: boolean;
8696
+ error?: any;
8697
+ code?: string;
8698
+ message?: string;
8699
+ };
8700
+ type ListProductsResponse = paths['/catalog/products']['get']['responses'][200]['content']['application/json'];
8701
+ type ListProductsContent = ListProductsResponse['content'];
8702
+ type ListProductsQuery = paths['/catalog/products']['get']['parameters']['query'];
8703
+ type ListProductsHeaderParams = paths['/catalog/products']['get']['parameters']['header'];
8704
+ type ListSkusResponse = paths['/catalog/skus']['get']['responses'][200]['content']['application/json'];
8705
+ type ListSkusContent = ListSkusResponse['content'];
8706
+ type ListSkusQuery = paths['/catalog/skus']['get']['parameters']['query'];
8707
+ type ListSkusHeaderParams = paths['/catalog/skus']['get']['parameters']['header'];
8708
+ type GetProductDetailResponse = paths['/catalog/products/{product_id_or_slug}']['get']['responses'][200]['content']['application/json'];
8709
+ type GetProductDetailContent = GetProductDetailResponse['content'];
8710
+ type GetProductDetailPathParams = paths['/catalog/products/{product_id_or_slug}']['get']['parameters']['path'];
8711
+ type GetProductDetailHeaderParams = paths['/catalog/products/{product_id_or_slug}']['get']['parameters']['header'];
8712
+ type ListProductVariantsResponse = paths['/catalog/products/{product_id}/variants']['get']['responses'][200]['content']['application/json'];
8713
+ type ListProductVariantsContent = ListProductVariantsResponse['content'];
8714
+ type ListProductVariantsPathParams = paths['/catalog/products/{product_id}/variants']['get']['parameters']['path'];
8715
+ type ListProductVariantsHeaderParams = paths['/catalog/products/{product_id}/variants']['get']['parameters']['header'];
8716
+ type GetVariantDetailResponse = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['responses'][200]['content']['application/json'];
8717
+ type GetVariantDetailContent = GetVariantDetailResponse['content'];
8718
+ type GetVariantDetailPathParams = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['path'];
8719
+ type GetVariantDetailHeaderParams = paths['/catalog/products/{product_id}/variants/{variant_id}']['get']['parameters']['header'];
8720
+ type ListCategoriesResponse = paths['/catalog/categories']['get']['responses'][200]['content']['application/json'];
8721
+ type ListCategoriesContent = ListCategoriesResponse['content'];
8722
+ type ListCategoriesQuery = paths['/catalog/categories']['get']['parameters']['query'];
8723
+ type ListProductReviewsResponse = paths['/catalog/products/{product_id}/reviews']['get']['responses'][200]['content']['application/json'];
8724
+ type ListProductReviewsContent = ListProductReviewsResponse['content'];
8725
+ type ListProductReviewsQuery = paths['/catalog/products/{product_id}/reviews']['get']['parameters']['query'];
8726
+ type ListProductReviewsPathParams = paths['/catalog/products/{product_id}/reviews']['get']['parameters']['path'];
8727
+ type CreateProductReviewResponse = paths['/catalog/products/{product_id}/reviews']['post']['responses'][200]['content']['application/json'];
8728
+ type CreateProductReviewPathParams = paths['/catalog/products/{product_id}/reviews']['post']['parameters']['path'];
8729
+ type CreateProductReviewFormData = NonNullable<paths['/catalog/products/{product_id}/reviews']['post']['requestBody']>['content']['multipart/form-data'];
8730
+ type ListSimilarProductsResponse = paths['/catalog/products/similar']['get']['responses'][200]['content']['application/json'];
8731
+ type ListSimilarProductsContent = ListSimilarProductsResponse['content'];
8732
+ type ListSimilarProductsQuery = paths['/catalog/products/similar']['get']['parameters']['query'];
8733
+ type ListSimilarProductsHeaderParams = paths['/catalog/products/similar']['get']['parameters']['header'];
8734
+ type ListUpsellProductsResponse = paths['/catalog/products/up-sell']['get']['responses'][200]['content']['application/json'];
8735
+ type ListUpsellProductsContent = ListUpsellProductsResponse['content'];
8736
+ type ListUpsellProductsQuery = paths['/catalog/products/up-sell']['get']['parameters']['query'];
8737
+ type ListUpsellProductsHeaderParams = paths['/catalog/products/up-sell']['get']['parameters']['header'];
8738
+ type ListCrosssellProductsResponse = paths['/catalog/products/cross-sell']['get']['responses'][200]['content']['application/json'];
8739
+ type ListCrosssellProductsContent = ListCrosssellProductsResponse['content'];
8740
+ type ListCrosssellProductsQuery = paths['/catalog/products/cross-sell']['get']['parameters']['query'];
8741
+ type ListCrosssellProductsHeaderParams = paths['/catalog/products/cross-sell']['get']['parameters']['header'];
8742
+ type SearchProductsResponse = paths['/catalog/products/search']['post']['responses'][200]['content']['application/json'];
8743
+ type SearchProductsContent = SearchProductsResponse['content'];
8744
+ type SearchProductsHeaderParams = paths['/catalog/products/search']['post']['parameters']['header'];
8745
+ type SearchProductsBody = NonNullable<paths['/catalog/products/search']['post']['requestBody']>['content']['application/json'];
8746
+ type CreateCartResponse = paths['/carts']['post']['responses'][200]['content']['application/json'];
8747
+ type CreateCartContent = CreateCartResponse['content'];
8748
+ type CreateCartBody = NonNullable<paths['/carts']['post']['requestBody']>['content']['application/json'];
8749
+ type GetCartResponse = paths['/carts/{id}']['get']['responses'][200]['content']['application/json'];
8750
+ type GetCartContent = GetCartResponse['content'];
8751
+ type GetCartPathParams = paths['/carts/{id}']['get']['parameters']['path'];
8752
+ type DeleteCartResponse = paths['/carts/{id}']['delete']['responses'][200]['content']['application/json'];
8753
+ type DeleteCartPathParams = paths['/carts/{id}']['delete']['parameters']['path'];
8754
+ type GetUserCartResponse = paths['/carts/users/{user_id}']['get']['responses'][200]['content']['application/json'];
8755
+ type GetUserCartContent = GetUserCartResponse['content'];
8756
+ type GetUserCartPathParams = paths['/carts/users/{user_id}']['get']['parameters']['path'];
8757
+ type DeleteUserCartResponse = paths['/carts/users/{user_id}']['delete']['responses'][200]['content']['application/json'];
8758
+ type DeleteUserCartPathParams = paths['/carts/users/{user_id}']['delete']['parameters']['path'];
8759
+ type UpdateCartResponse = paths['/carts/{id}/items']['post']['responses'][200]['content']['application/json'];
8760
+ type UpdateCartContent = UpdateCartResponse['content'];
8761
+ type UpdateCartPathParams = paths['/carts/{id}/items']['post']['parameters']['path'];
8762
+ type UpdateCartBody = NonNullable<paths['/carts/{id}/items']['post']['requestBody']>['content']['application/json'];
8763
+ type CreateCartAddressResponse = paths['/carts/{id}/address']['post']['responses'][200]['content']['application/json'];
8764
+ type CreateCartAddressContent = CreateCartAddressResponse['content'];
8765
+ type CreateCartAddressPathParams = paths['/carts/{id}/address']['post']['parameters']['path'];
8766
+ type CreateCartAddressBody = NonNullable<paths['/carts/{id}/address']['post']['requestBody']>['content']['application/json'];
8767
+ type UpdateShippingMethodResponse = paths['/carts/{id}/shipping-method']['post']['responses'][200]['content']['application/json'];
8768
+ type UpdateShippingMethodContent = UpdateShippingMethodResponse['content'];
8769
+ type UpdateShippingMethodPathParams = paths['/carts/{id}/shipping-method']['post']['parameters']['path'];
8770
+ type UpdateShippingMethodBody = NonNullable<paths['/carts/{id}/shipping-method']['post']['requestBody']>['content']['application/json'];
8771
+ type ApplyCouponResponse = paths['/carts/{id}/coupon']['post']['responses'][200]['content']['application/json'];
8772
+ type ApplyCouponContent = ApplyCouponResponse['content'];
8773
+ type ApplyCouponPathParams = paths['/carts/{id}/coupon']['post']['parameters']['path'];
8774
+ type ApplyCouponBody = NonNullable<paths['/carts/{id}/coupon']['post']['requestBody']>['content']['application/json'];
8775
+ type RemoveCouponResponse = paths['/carts/{id}/coupon']['delete']['responses'][200]['content']['application/json'];
8776
+ type RemoveCouponContent = RemoveCouponResponse['content'];
8777
+ type RemoveCouponPathParams = paths['/carts/{id}/coupon']['delete']['parameters']['path'];
8778
+ type RedeemLoyaltyPointsResponse = paths['/carts/{id}/loyalty-points']['post']['responses'][200]['content']['application/json'];
8779
+ type RedeemLoyaltyPointsContent = RedeemLoyaltyPointsResponse['content'];
8780
+ type RedeemLoyaltyPointsPathParams = paths['/carts/{id}/loyalty-points']['post']['parameters']['path'];
8781
+ type RedeemLoyaltyPointsBody = NonNullable<paths['/carts/{id}/loyalty-points']['post']['requestBody']>['content']['application/json'];
8782
+ type RemoveLoyaltyPointsResponse = paths['/carts/{id}/loyalty-points']['delete']['responses'][200]['content']['application/json'];
8783
+ type RemoveLoyaltyPointsContent = RemoveLoyaltyPointsResponse['content'];
8784
+ type RemoveLoyaltyPointsPathParams = paths['/carts/{id}/loyalty-points']['delete']['parameters']['path'];
8785
+ type RedeemCreditBalanceResponse = paths['/carts/{id}/credit-balance']['post']['responses'][200]['content']['application/json'];
8786
+ type RedeemCreditBalanceContent = RedeemCreditBalanceResponse['content'];
8787
+ type RedeemCreditBalancePathParams = paths['/carts/{id}/credit-balance']['post']['parameters']['path'];
8788
+ type RedeemCreditBalanceBody = NonNullable<paths['/carts/{id}/credit-balance']['post']['requestBody']>['content']['application/json'];
8789
+ type RemoveCreditBalanceResponse = paths['/carts/{id}/credit-balance']['delete']['responses'][200]['content']['application/json'];
8790
+ type RemoveCreditBalanceContent = RemoveCreditBalanceResponse['content'];
8791
+ type RemoveCreditBalancePathParams = paths['/carts/{id}/credit-balance']['delete']['parameters']['path'];
8792
+ type RedeemGiftCardResponse = paths['/carts/{id}/gift-card']['post']['responses'][200]['content']['application/json'];
8793
+ type RedeemGiftCardContent = RedeemGiftCardResponse['content'];
8794
+ type RedeemGiftCardPathParams = paths['/carts/{id}/gift-card']['post']['parameters']['path'];
8795
+ type RedeemGiftCardBody = NonNullable<paths['/carts/{id}/gift-card']['post']['requestBody']>['content']['application/json'];
8796
+ type RemoveGiftCardResponse = paths['/carts/{id}/gift-card']['delete']['responses'][200]['content']['application/json'];
8797
+ type RemoveGiftCardContent = RemoveGiftCardResponse['content'];
8798
+ type RemoveGiftCardPathParams = paths['/carts/{id}/gift-card']['delete']['parameters']['path'];
8799
+ type ListCouponsResponse = paths['/carts/available-coupons']['get']['responses'][200]['content']['application/json'];
8800
+ type ListCouponsContent = ListCouponsResponse['content'];
8801
+ type ListCouponsHeaderParams = paths['/carts/available-coupons']['get']['parameters']['header'];
8802
+ type ListPromotionsResponse = paths['/carts/available-promotions']['get']['responses'][200]['content']['application/json'];
8803
+ type ListPromotionsContent = ListPromotionsResponse['content'];
8804
+ type ListPromotionsHeaderParams = paths['/carts/available-promotions']['get']['parameters']['header'];
8805
+ type GetWishlistResponse = paths['/wishlist/{user_id}']['get']['responses'][200]['content']['application/json'];
8806
+ type GetWishlistContent = GetWishlistResponse['content'];
8807
+ type GetWishlistPathParams = paths['/wishlist/{user_id}']['get']['parameters']['path'];
8808
+ type AddToWishlistResponse = paths['/wishlist/{user_id}']['post']['responses'][200]['content']['application/json'];
8809
+ type AddToWishlistContent = AddToWishlistResponse['content'];
8810
+ type AddToWishlistPathParams = paths['/wishlist/{user_id}']['post']['parameters']['path'];
8811
+ type AddToWishlistBody = NonNullable<paths['/wishlist/{user_id}']['post']['requestBody']>['content']['application/json'];
8812
+ type DeleteFromWishlistResponse = paths['/wishlist/{user_id}']['delete']['responses'][200]['content']['application/json'];
8813
+ type DeleteFromWishlistContent = DeleteFromWishlistResponse['content'];
8814
+ type DeleteFromWishlistPathParams = paths['/wishlist/{user_id}']['delete']['parameters']['path'];
8815
+ type DeleteFromWishlistBody = NonNullable<paths['/wishlist/{user_id}']['delete']['requestBody']>['content']['application/json'];
8816
+ type CreateCustomerResponse = paths['/customers']['post']['responses'][200]['content']['application/json'];
8817
+ type CreateCustomerContent = CreateCustomerResponse['content'];
8818
+ type CreateCustomerBody = NonNullable<paths['/customers']['post']['requestBody']>['content']['application/json'];
8819
+ type GetCustomerDetailResponse = paths['/customers/{id}']['get']['responses'][200]['content']['application/json'];
8820
+ type GetCustomerDetailContent = GetCustomerDetailResponse['content'];
8821
+ type GetCustomerDetailPathParams = paths['/customers/{id}']['get']['parameters']['path'];
8822
+ type UpdateCustomerResponse = paths['/customers/{id}']['put']['responses'][200]['content']['application/json'];
8823
+ type UpdateCustomerContent = UpdateCustomerResponse['content'];
8824
+ type UpdateCustomerPathParams = paths['/customers/{id}']['put']['parameters']['path'];
8825
+ type UpdateCustomerBody = NonNullable<paths['/customers/{id}']['put']['requestBody']>['content']['application/json'];
8826
+ type ListAddressesResponse = paths['/customers/{user_id}/addresses']['get']['responses'][200]['content']['application/json'];
8827
+ type ListAddressesContent = ListAddressesResponse['content'];
8828
+ type ListAddressesQuery = paths['/customers/{user_id}/addresses']['get']['parameters']['query'];
8829
+ type ListAddressesPathParams = paths['/customers/{user_id}/addresses']['get']['parameters']['path'];
8830
+ type CreateAddressResponse = paths['/customers/{user_id}/addresses']['post']['responses'][200]['content']['application/json'];
8831
+ type CreateAddressContent = CreateAddressResponse['content'];
8832
+ type CreateAddressPathParams = paths['/customers/{user_id}/addresses']['post']['parameters']['path'];
8833
+ type CreateAddressBody = NonNullable<paths['/customers/{user_id}/addresses']['post']['requestBody']>['content']['application/json'];
8834
+ type GetAddressDetailResponse = paths['/customers/{user_id}/addresses/{address_id}']['get']['responses'][200]['content']['application/json'];
8835
+ type GetAddressDetailContent = GetAddressDetailResponse['content'];
8836
+ type GetAddressDetailPathParams = paths['/customers/{user_id}/addresses/{address_id}']['get']['parameters']['path'];
8837
+ type UpdateAddressDetailResponse = paths['/customers/{user_id}/addresses/{address_id}']['put']['responses'][200]['content']['application/json'];
8838
+ type UpdateAddressDetailContent = UpdateAddressDetailResponse['content'];
8839
+ type UpdateAddressDetailPathParams = paths['/customers/{user_id}/addresses/{address_id}']['put']['parameters']['path'];
8840
+ type UpdateAddressDetailBody = NonNullable<paths['/customers/{user_id}/addresses/{address_id}']['put']['requestBody']>['content']['application/json'];
8841
+ type DeleteAddressResponse = paths['/customers/{user_id}/addresses/{address_id}']['delete']['responses'][200]['content']['application/json'];
8842
+ type DeleteAddressPathParams = paths['/customers/{user_id}/addresses/{address_id}']['delete']['parameters']['path'];
8843
+ type ListKycDocumentResponse = paths['/store/kyc-document']['get']['responses'][200]['content']['application/json'];
8844
+ type ListKycDocumentContent = ListKycDocumentResponse['content'];
8845
+ type GetConfigResponse = paths['/store/config']['get']['responses'][200]['content']['application/json'];
8846
+ type GetConfigContent = GetConfigResponse['content'];
8847
+ type ListDocumentsResponse = paths['/customers/{id}/documents']['get']['responses'][200]['content']['application/json'];
8848
+ type ListDocumentsContent = ListDocumentsResponse['content'];
8849
+ type ListDocumentsPathParams = paths['/customers/{id}/documents']['get']['parameters']['path'];
8850
+ type CreateDocumentResponse = paths['/customers/{id}/documents']['post']['responses'][200]['content']['application/json'];
8851
+ type CreateDocumentContent = CreateDocumentResponse['content'];
8852
+ type CreateDocumentPathParams = paths['/customers/{id}/documents']['post']['parameters']['path'];
8853
+ type CreateDocumentFormData = NonNullable<paths['/customers/{id}/documents']['post']['requestBody']>['content']['multipart/form-data'];
8854
+ type GetDocumentResponse = paths['/customers/{id}/documents/{document_id}']['get']['responses'][200]['content']['application/json'];
8855
+ type GetDocumentContent = GetDocumentResponse['content'];
8856
+ type GetDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['get']['parameters']['path'];
8857
+ type UpdateDocumentResponse = paths['/customers/{id}/documents/{document_id}']['put']['responses'][200]['content']['application/json'];
8858
+ type UpdateDocumentContent = UpdateDocumentResponse['content'];
8859
+ type UpdateDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['put']['parameters']['path'];
8860
+ type UpdateDocumentFormData = NonNullable<paths['/customers/{id}/documents/{document_id}']['put']['requestBody']>['content']['multipart/form-data'];
8861
+ type DeleteDocumentResponse = paths['/customers/{id}/documents/{document_id}']['delete']['responses'][200]['content']['application/json'];
8862
+ type DeleteDocumentPathParams = paths['/customers/{id}/documents/{document_id}']['delete']['parameters']['path'];
8863
+ type VerifyDocumentResponse = paths['/customers/{id}/documents/verify']['post']['responses'][200]['content']['application/json'];
8864
+ type VerifyDocumentContent = VerifyDocumentResponse['content'];
8865
+ type VerifyDocumentPathParams = paths['/customers/{id}/documents/verify']['post']['parameters']['path'];
8866
+ type VerifyDocumentBody = NonNullable<paths['/customers/{id}/documents/verify']['post']['requestBody']>['content']['application/json'];
8867
+ type GetLoyaltyDetailsResponse = paths['/customers/{user_id}/loyalty']['get']['responses'][200]['content']['application/json'];
8868
+ type GetLoyaltyDetailsContent = GetLoyaltyDetailsResponse['content'];
8869
+ type GetLoyaltyDetailsPathParams = paths['/customers/{user_id}/loyalty']['get']['parameters']['path'];
8870
+ type ListLoyaltyActivitiesResponse = paths['/customers/{user_id}/loyalty-points-activity']['get']['responses'][200]['content']['application/json'];
8871
+ type ListLoyaltyActivitiesContent = ListLoyaltyActivitiesResponse['content'];
8872
+ type ListLoyaltyActivitiesQuery = paths['/customers/{user_id}/loyalty-points-activity']['get']['parameters']['query'];
8873
+ type ListLoyaltyActivitiesPathParams = paths['/customers/{user_id}/loyalty-points-activity']['get']['parameters']['path'];
8874
+ type ListOrdersResponse = paths['/orders']['get']['responses'][200]['content']['application/json'];
8875
+ type ListOrdersContent = ListOrdersResponse['content'];
8876
+ type ListOrdersQuery = paths['/orders']['get']['parameters']['query'];
8877
+ type CreateOrderResponse = paths['/orders']['post']['responses'][200]['content']['application/json'];
8878
+ type CreateOrderContent = CreateOrderResponse['content'];
8879
+ type CreateOrderBody = NonNullable<paths['/orders']['post']['requestBody']>['content']['application/json'];
8880
+ type GetOrderDetailResponse = paths['/orders/{order_number}']['get']['responses'][200]['content']['application/json'];
8881
+ type GetOrderDetailContent = GetOrderDetailResponse['content'];
8882
+ type GetOrderDetailPathParams = paths['/orders/{order_number}']['get']['parameters']['path'];
8883
+ type GetPaymentStatusResponse = paths['/orders/{order_number}/payment-status']['get']['responses'][200]['content']['application/json'];
8884
+ type GetPaymentStatusContent = GetPaymentStatusResponse['content'];
8885
+ type GetPaymentStatusPathParams = paths['/orders/{order_number}/payment-status']['get']['parameters']['path'];
8886
+ type ListOrderShipmentsResponse = paths['/orders/{order_number}/shipments']['get']['responses'][200]['content']['application/json'];
8887
+ type ListOrderShipmentsContent = ListOrderShipmentsResponse['content'];
8888
+ type ListOrderShipmentsPathParams = paths['/orders/{order_number}/shipments']['get']['parameters']['path'];
8889
+ type ListOrderRefundsResponse = paths['/orders/{order_number}/refunds']['get']['responses'][200]['content']['application/json'];
8890
+ type ListOrderRefundsContent = ListOrderRefundsResponse['content'];
8891
+ type ListOrderRefundsPathParams = paths['/orders/{order_number}/refunds']['get']['parameters']['path'];
8892
+ type ListOrderPaymentsResponse = paths['/orders/{order_number}/payments']['get']['responses'][200]['content']['application/json'];
8893
+ type ListOrderPaymentsContent = ListOrderPaymentsResponse['content'];
8894
+ type ListOrderPaymentsPathParams = paths['/orders/{order_number}/payments']['get']['parameters']['path'];
8895
+ type CreateOrderReturnResponse = paths['/orders/{order_number}/return']['post']['responses'][200]['content']['application/json'];
8896
+ type CreateOrderReturnContent = CreateOrderReturnResponse['content'];
8897
+ type CreateOrderReturnPathParams = paths['/orders/{order_number}/return']['post']['parameters']['path'];
8898
+ type CreateOrderReturnBody = NonNullable<paths['/orders/{order_number}/return']['post']['requestBody']>['content']['application/json'];
8899
+ type GetOrderReturnDetailResponse = paths['/orders/{order_number}/return/{return_id}']['get']['responses'][200]['content']['application/json'];
8900
+ type GetOrderReturnDetailContent = GetOrderReturnDetailResponse['content'];
8901
+ type GetOrderReturnDetailPathParams = paths['/orders/{order_number}/return/{return_id}']['get']['parameters']['path'];
8902
+ type CancelOrderResponse = paths['/orders/{order_number}/cancel']['post']['responses'][200]['content']['application/json'];
8903
+ type CancelOrderContent = CancelOrderResponse['content'];
8904
+ type CancelOrderPathParams = paths['/orders/{order_number}/cancel']['post']['parameters']['path'];
8905
+ type CancelOrderBody = NonNullable<paths['/orders/{order_number}/cancel']['post']['requestBody']>['content']['application/json'];
8906
+ type RetryOrderPaymentResponse = paths['/orders/{order_number}/retry-payment']['post']['responses'][200]['content']['application/json'];
8907
+ type RetryOrderPaymentContent = RetryOrderPaymentResponse['content'];
8908
+ type RetryOrderPaymentPathParams = paths['/orders/{order_number}/retry-payment']['post']['parameters']['path'];
8909
+ type RetryOrderPaymentBody = NonNullable<paths['/orders/{order_number}/retry-payment']['post']['requestBody']>['content']['application/json'];
8910
+ type GetShippingMethodsResponse = paths['/shipping/shipping-methods']['post']['responses'][200]['content']['application/json'];
8911
+ type GetShippingMethodsContent = GetShippingMethodsResponse['content'];
8912
+ type GetShippingMethodsBody = NonNullable<paths['/shipping/shipping-methods']['post']['requestBody']>['content']['application/json'];
8913
+ type CheckPincodeServiceabilityResponse = paths['/shipping/serviceability/{pincode}']['get']['responses'][200]['content']['application/json'];
8914
+ type CheckPincodeServiceabilityContent = CheckPincodeServiceabilityResponse['content'];
8915
+ type CheckPincodeServiceabilityPathParams = paths['/shipping/serviceability/{pincode}']['get']['parameters']['path'];
8916
+ type GetAnonymousTokenResponse = paths['/auth/anonymous']['post']['responses'][200]['content']['application/json'];
8917
+ type GetAnonymousTokenContent = GetAnonymousTokenResponse['content'];
8918
+ type LoginWithPhoneResponse = paths['/auth/login/phone']['post']['responses'][200]['content']['application/json'];
8919
+ type LoginWithPhoneContent = LoginWithPhoneResponse['content'];
8920
+ type LoginWithPhoneBody = NonNullable<paths['/auth/login/phone']['post']['requestBody']>['content']['application/json'];
8921
+ type LoginWithEmailResponse = paths['/auth/login/email']['post']['responses'][200]['content']['application/json'];
8922
+ type LoginWithEmailContent = LoginWithEmailResponse['content'];
8923
+ type LoginWithEmailBody = NonNullable<paths['/auth/login/email']['post']['requestBody']>['content']['application/json'];
8924
+ type LoginWithWhatsappResponse = paths['/auth/login/whatsapp']['post']['responses'][200]['content']['application/json'];
8925
+ type LoginWithWhatsappContent = LoginWithWhatsappResponse['content'];
8926
+ type LoginWithWhatsappBody = NonNullable<paths['/auth/login/whatsapp']['post']['requestBody']>['content']['application/json'];
8927
+ type LoginWithPasswordResponse = paths['/auth/login/password']['post']['responses'][200]['content']['application/json'];
8928
+ type LoginWithPasswordContent = LoginWithPasswordResponse['content'];
8929
+ type LoginWithPasswordBody = NonNullable<paths['/auth/login/password']['post']['requestBody']>['content']['application/json'];
8930
+ type VerifyOtpResponse = paths['/auth/verify-otp']['post']['responses'][200]['content']['application/json'];
8931
+ type VerifyOtpContent = VerifyOtpResponse['content'];
8932
+ type VerifyOtpBody = NonNullable<paths['/auth/verify-otp']['post']['requestBody']>['content']['application/json'];
8933
+ type RegisterWithPhoneResponse = paths['/auth/register/phone']['post']['responses'][200]['content']['application/json'];
8934
+ type RegisterWithPhoneContent = RegisterWithPhoneResponse['content'];
8935
+ type RegisterWithPhoneBody = NonNullable<paths['/auth/register/phone']['post']['requestBody']>['content']['application/json'];
8936
+ type RegisterWithEmailResponse = paths['/auth/register/email']['post']['responses'][200]['content']['application/json'];
8937
+ type RegisterWithEmailContent = RegisterWithEmailResponse['content'];
8938
+ type RegisterWithEmailBody = NonNullable<paths['/auth/register/email']['post']['requestBody']>['content']['application/json'];
8939
+ type RegisterWithWhatsappResponse = paths['/auth/register/whatsapp']['post']['responses'][200]['content']['application/json'];
8940
+ type RegisterWithWhatsappContent = RegisterWithWhatsappResponse['content'];
8941
+ type RegisterWithWhatsappBody = NonNullable<paths['/auth/register/whatsapp']['post']['requestBody']>['content']['application/json'];
8942
+ type RegisterWithPasswordResponse = paths['/auth/register/password']['post']['responses'][200]['content']['application/json'];
8943
+ type RegisterWithPasswordContent = RegisterWithPasswordResponse['content'];
8944
+ type RegisterWithPasswordBody = NonNullable<paths['/auth/register/password']['post']['requestBody']>['content']['application/json'];
8945
+ type GetUserDetailResponse = paths['/auth/user/{id}']['get']['responses'][200]['content']['application/json'];
8946
+ type GetUserDetailContent = GetUserDetailResponse['content'];
8947
+ type GetUserDetailPathParams = paths['/auth/user/{id}']['get']['parameters']['path'];
8948
+ type UpdateUserResponse = paths['/auth/user/{id}']['put']['responses'][200]['content']['application/json'];
8949
+ type UpdateUserContent = UpdateUserResponse['content'];
8950
+ type UpdateUserPathParams = paths['/auth/user/{id}']['put']['parameters']['path'];
8951
+ type UpdateUserBody = NonNullable<paths['/auth/user/{id}']['put']['requestBody']>['content']['application/json'];
8952
+ type GetProfileImageResponse = paths['/auth/user/{id}/profile-image']['get']['responses'][200]['content']['application/json'];
8953
+ type GetProfileImageContent = GetProfileImageResponse['content'];
8954
+ type GetProfileImagePathParams = paths['/auth/user/{id}/profile-image']['get']['parameters']['path'];
8955
+ type UpdateProfileImageResponse = paths['/auth/user/{id}/profile-image']['put']['responses'][200]['content']['application/json'];
8956
+ type UpdateProfileImageContent = UpdateProfileImageResponse['content'];
8957
+ type UpdateProfileImagePathParams = paths['/auth/user/{id}/profile-image']['put']['parameters']['path'];
8958
+ type UpdateProfileImageFormData = NonNullable<paths['/auth/user/{id}/profile-image']['put']['requestBody']>['content']['multipart/form-data'];
8959
+ type AddProfileImageResponse = paths['/auth/user/{id}/profile-image']['post']['responses'][200]['content']['application/json'];
8960
+ type AddProfileImageContent = AddProfileImageResponse['content'];
8961
+ type AddProfileImagePathParams = paths['/auth/user/{id}/profile-image']['post']['parameters']['path'];
8962
+ type AddProfileImageFormData = NonNullable<paths['/auth/user/{id}/profile-image']['post']['requestBody']>['content']['multipart/form-data'];
8963
+ type RemoveProfileImageResponse = paths['/auth/user/{id}/profile-image']['delete']['responses'][200]['content']['application/json'];
8964
+ type RemoveProfileImagePathParams = paths['/auth/user/{id}/profile-image']['delete']['parameters']['path'];
8965
+ type DeactivateUserResponse = paths['/auth/user/{id}/deactivate']['put']['responses'][200]['content']['application/json'];
8966
+ type DeactivateUserPathParams = paths['/auth/user/{id}/deactivate']['put']['parameters']['path'];
8967
+ type RefreshTokenResponse = paths['/auth/refresh-token']['post']['responses'][200]['content']['application/json'];
8968
+ type RefreshTokenContent = RefreshTokenResponse['content'];
8969
+ type RefreshTokenBody = NonNullable<paths['/auth/refresh-token']['post']['requestBody']>['content']['application/json'];
8970
+ type ChangePasswordResponse = paths['/auth/change-password']['post']['responses'][200]['content']['application/json'];
8971
+ type ChangePasswordContent = ChangePasswordResponse['content'];
8972
+ type ChangePasswordBody = NonNullable<paths['/auth/change-password']['post']['requestBody']>['content']['application/json'];
8973
+ type ForgotPasswordResponse = paths['/auth/forgot-password']['post']['responses'][200]['content']['application/json'];
8974
+ type ForgotPasswordContent = ForgotPasswordResponse['content'];
8975
+ type ForgotPasswordBody = NonNullable<paths['/auth/forgot-password']['post']['requestBody']>['content']['application/json'];
8976
+ type ResetPasswordResponse = paths['/auth/reset-password']['post']['responses'][200]['content']['application/json'];
8977
+ type ResetPasswordContent = ResetPasswordResponse['content'];
8978
+ type ResetPasswordBody = NonNullable<paths['/auth/reset-password']['post']['requestBody']>['content']['application/json'];
8979
+ type GetNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['get']['responses'][200]['content']['application/json'];
8980
+ type GetNotificationPreferencesContent = GetNotificationPreferencesResponse['content'];
8981
+ type GetNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['get']['parameters']['path'];
8982
+ type UpdateNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['put']['responses'][200]['content']['application/json'];
8983
+ type UpdateNotificationPreferencesContent = UpdateNotificationPreferencesResponse['content'];
8984
+ type UpdateNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['put']['parameters']['path'];
8985
+ type UpdateNotificationPreferencesBody = NonNullable<paths['/auth/user/{id}/notification-preferences']['put']['requestBody']>['content']['application/json'];
8986
+ type CreateNotificationPreferencesResponse = paths['/auth/user/{id}/notification-preferences']['post']['responses'][200]['content']['application/json'];
8987
+ type CreateNotificationPreferencesContent = CreateNotificationPreferencesResponse['content'];
8988
+ type CreateNotificationPreferencesPathParams = paths['/auth/user/{id}/notification-preferences']['post']['parameters']['path'];
8989
+ type CreateNotificationPreferencesBody = NonNullable<paths['/auth/user/{id}/notification-preferences']['post']['requestBody']>['content']['application/json'];
8990
+ type GenerateOtpResponse = paths['/auth/generate-otp']['post']['responses'][200]['content']['application/json'];
8991
+ type GenerateOtpContent = GenerateOtpResponse['content'];
8992
+ type GenerateOtpBody = NonNullable<paths['/auth/generate-otp']['post']['requestBody']>['content']['application/json'];
8993
+ type LogoutResponse = paths['/auth/logout']['post']['responses'][200]['content']['application/json'];
8994
+ type LogoutContent = LogoutResponse['content'];
8995
+ type ListUserReviewsResponse = paths['/customers/{user_id}/reviews']['get']['responses'][200]['content']['application/json'];
8996
+ type ListUserReviewsContent = ListUserReviewsResponse['content'];
8997
+ type ListUserReviewsPathParams = paths['/customers/{user_id}/reviews']['get']['parameters']['path'];
8998
+ type CheckVerificationStatusResponse = paths['/auth/verified-email-phone']['post']['responses'][200]['content']['application/json'];
8999
+ type CheckVerificationStatusContent = CheckVerificationStatusResponse['content'];
9000
+ type CheckVerificationStatusBody = NonNullable<paths['/auth/verified-email-phone']['post']['requestBody']>['content']['application/json'];
9001
+ type GenerateHashResponse = paths['/payments/generate-hash']['post']['responses'][200]['content']['application/json'];
9002
+ type GenerateHashContent = GenerateHashResponse['content'];
9003
+ type GenerateHashBody = NonNullable<paths['/payments/generate-hash']['post']['requestBody']>['content']['application/json'];
9004
+ type ListPaymentMethodsResponse = paths['/payments/payment-methods']['get']['responses'][200]['content']['application/json'];
9005
+ type ListPaymentMethodsContent = ListPaymentMethodsResponse['content'];
9006
+ type ListPaymentMethodsQuery = paths['/payments/payment-methods']['get']['parameters']['query'];
9007
+ type ListSavedCardsResponse = paths['/payments/cards']['get']['responses'][200]['content']['application/json'];
9008
+ type ListSavedCardsContent = ListSavedCardsResponse['content'];
9009
+ type ListSavedCardsQuery = paths['/payments/cards']['get']['parameters']['query'];
9010
+ type AddCardResponse = paths['/payments/cards']['post']['responses'][200]['content']['application/json'];
9011
+ type AddCardContent = AddCardResponse['content'];
9012
+ type AddCardBody = NonNullable<paths['/payments/cards']['post']['requestBody']>['content']['application/json'];
9013
+ type VerifyVpaResponse = paths['/payments/verify-vpa']['get']['responses'][200]['content']['application/json'];
9014
+ type VerifyVpaContent = VerifyVpaResponse['content'];
9015
+ type VerifyVpaQuery = paths['/payments/verify-vpa']['get']['parameters']['query'];
9016
+ type CreateJuspayOrderResponse = paths['/payments/juspay/create-order']['post']['responses'][200]['content']['application/json'];
9017
+ type CreateJuspayOrderContent = CreateJuspayOrderResponse['content'];
9018
+ type CreateJuspayOrderBody = NonNullable<paths['/payments/juspay/create-order']['post']['requestBody']>['content']['application/json'];
9019
+ type CreateJuspayCustomerResponse = paths['/payments/juspay/customers']['post']['responses'][200]['content']['application/json'];
9020
+ type CreateJuspayCustomerContent = CreateJuspayCustomerResponse['content'];
9021
+ type CreateJuspayCustomerBody = NonNullable<paths['/payments/juspay/customers']['post']['requestBody']>['content']['application/json'];
9022
+ type GetJuspayCustomerResponse = paths['/payments/juspay/customers/{user-id}']['get']['responses'][200]['content']['application/json'];
9023
+ type GetJuspayCustomerContent = GetJuspayCustomerResponse['content'];
9024
+ type GetJuspayCustomerPathParams = paths['/payments/juspay/customers/{user-id}']['get']['parameters']['path'];
9025
+ type ListCountriesResponse = paths['/common/countries']['get']['responses'][200]['content']['application/json'];
9026
+ type ListCountriesContent = ListCountriesResponse['content'];
9027
+ type ListCountryStatesResponse = paths['/common/countries/{country_iso_code}/states']['get']['responses'][200]['content']['application/json'];
9028
+ type ListCountryStatesContent = ListCountryStatesResponse['content'];
9029
+ type ListCountryStatesPathParams = paths['/common/countries/{country_iso_code}/states']['get']['parameters']['path'];
9030
+ type ListCountryPincodesResponse = paths['/common/countries/{country_iso_code}/pincodes']['get']['responses'][200]['content']['application/json'];
9031
+ type ListCountryPincodesContent = ListCountryPincodesResponse['content'];
9032
+ type ListCountryPincodesQuery = paths['/common/countries/{country_iso_code}/pincodes']['get']['parameters']['query'];
9033
+ type ListCountryPincodesPathParams = paths['/common/countries/{country_iso_code}/pincodes']['get']['parameters']['path'];
9034
+ type ListReturnsResponse = paths['/orders/returns']['get']['responses'][200]['content']['application/json'];
9035
+ type ListReturnsContent = ListReturnsResponse['content'];
9036
+ type TrackAnalyticsEventResponse = paths['/analytics/track']['post']['responses'][200]['content']['application/json'];
9037
+ type TrackAnalyticsEventBody = NonNullable<paths['/analytics/track']['post']['requestBody']>['content']['application/json'];
9038
+ type SubscribeNewsletterResponse = paths['/campaigns/newsletter-subscribe']['post']['responses'][200]['content']['application/json'];
9039
+ type SubscribeNewsletterBody = NonNullable<paths['/campaigns/newsletter-subscribe']['post']['requestBody']>['content']['application/json'];
9040
+ type ListSubscriptionsResponse = paths['/subscriptions']['get']['responses'][200]['content']['application/json'];
9041
+ type ListSubscriptionsContent = ListSubscriptionsResponse['content'];
9042
+ type CreateSubscriptionResponse = paths['/subscriptions']['post']['responses'][200]['content']['application/json'];
9043
+ type CreateSubscriptionContent = CreateSubscriptionResponse['content'];
9044
+ type CreateSubscriptionBody = NonNullable<paths['/subscriptions']['post']['requestBody']>['content']['application/json'];
9045
+ type GetSubscriptionResponse = paths['/subscriptions/{id}']['get']['responses'][200]['content']['application/json'];
9046
+ type GetSubscriptionContent = GetSubscriptionResponse['content'];
9047
+ type GetSubscriptionPathParams = paths['/subscriptions/{id}']['get']['parameters']['path'];
9048
+ type UpdateSubscriptionResponse = paths['/subscriptions/{id}']['put']['responses'][200]['content']['application/json'];
9049
+ type UpdateSubscriptionContent = UpdateSubscriptionResponse['content'];
9050
+ type UpdateSubscriptionPathParams = paths['/subscriptions/{id}']['put']['parameters']['path'];
9051
+ type UpdateSubscriptionBody = NonNullable<paths['/subscriptions/{id}']['put']['requestBody']>['content']['application/json'];
9052
+
9053
+ /**
9054
+ * Available API environments
9055
+ */
9056
+ declare enum Environment {
9057
+ /**
9058
+ * Staging environment
9059
+ */
9060
+ Staging = "staging",
9061
+ /**
9062
+ * Production environment
9063
+ */
9064
+ Production = "production"
9065
+ }
9066
+ /**
9067
+ * Base API client for Storefront API
9068
+ */
9069
+ declare class StorefrontAPIClient {
9070
+ protected client: ReturnType<typeof createClient<paths>>;
9071
+ protected config: StorefrontSDKOptions;
9072
+ private readonly baseUrl;
9073
+ private initializationPromise;
9074
+ /**
9075
+ * Create a new StorefrontAPIClient
9076
+ *
9077
+ * @param config - Configuration for the API client
9078
+ */
9079
+ constructor(config: StorefrontSDKOptions);
9080
+ /**
9081
+ * Set up timeout middleware
9082
+ */
9083
+ private setupTimeoutMiddleware;
9084
+ /**
9085
+ * Constructs the base URL from the configuration
9086
+ *
9087
+ * @param config - The client configuration
9088
+ * @returns The constructed base URL
9089
+ */
9090
+ private getBaseUrlFromConfig;
9091
+ /**
9092
+ * Get the base URL of the API
9093
+ *
9094
+ * @returns The base URL of the API
9095
+ */
9096
+ getBaseUrl(): string;
9097
+ /**
9098
+ * Get the authorization header value
9099
+ * If using token storage, gets the current token from storage
9100
+ * Otherwise returns the manual token
9101
+ *
9102
+ * @returns The Authorization header value or empty string if no token is set
9103
+ */
9104
+ getAuthorizationHeader(): Promise<string>;
9105
+ /**
9106
+ * Set authentication tokens
9107
+ *
9108
+ * @param accessToken - The access token (required)
9109
+ * @param refreshToken - The refresh token (optional)
9110
+ *
9111
+ * Behavior:
9112
+ * - If tokenStorage is provided: Stores tokens for automatic management
9113
+ * - If tokenStorage is not provided: Only stores access token for manual management
9114
+ */
9115
+ setTokens(accessToken: string, refreshToken?: string): Promise<void>;
9116
+ /**
9117
+ * Clear all authentication tokens
9118
+ *
9119
+ * Behavior:
9120
+ * - If tokenStorage is provided: Clears both access and refresh tokens from storage
9121
+ * - If tokenStorage is not provided: Clears the manual access token
9122
+ */
9123
+ clearTokens(): Promise<void>;
9124
+ /**
9125
+ * Set the X-Api-Key header
9126
+ *
9127
+ * @param apiKey - The API key to set
9128
+ */
9129
+ setApiKey(apiKey: string): void;
9130
+ /**
9131
+ * Clear the X-Api-Key header
9132
+ */
9133
+ clearApiKey(): void;
9134
+ /**
9135
+ * Execute a request and handle the response
9136
+ *
9137
+ * @param apiCall - Function that executes the API request
9138
+ * @returns Promise with the API response
9139
+ */
9140
+ protected executeRequest<T>(apiCall: () => Promise<{
9141
+ data?: {
9142
+ message?: string;
9143
+ success?: boolean;
9144
+ content?: T;
9145
+ };
9146
+ error?: ApiErrorResponse;
9147
+ response: Response;
9148
+ }>): Promise<ApiResult<T>>;
9149
+ /**
9150
+ * Initialize tokens in storage (private helper method)
9151
+ */
9152
+ private initializeTokens;
9153
+ /**
9154
+ * Merge default headers with method-level headers
9155
+ * Method-level headers take precedence over default headers
9156
+ *
9157
+ * @param methodHeaders - Headers passed to the specific method call
9158
+ * @returns Merged headers object with proper HTTP header names
9159
+ */
9160
+ protected mergeHeaders<T extends Record<string, any> = Record<string, any>>(methodHeaders?: T): T;
9161
+ }
9162
+
9163
+ /**
9164
+ * Client for interacting with catalog endpoints
9165
+ */
9166
+ declare class CatalogClient extends StorefrontAPIClient {
9167
+ /**
9168
+ * List all products
9169
+ *
9170
+ * @param options - Optional query parameters
9171
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9172
+ * @returns Promise with products and pagination info
9173
+ */
9174
+ listProducts(options?: ListProductsQuery, headers?: ListProductsHeaderParams): Promise<ApiResult<ListProductsContent>>;
9175
+ /**
9176
+ * List all skus
9177
+ *
9178
+ * @param options - Optional query parameters
9179
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9180
+ * @returns Promise with skus and pagination info
9181
+ */
9182
+ listSkus(options?: ListSkusQuery, headers?: ListSkusHeaderParams): Promise<ApiResult<ListSkusContent>>;
9183
+ /**
9184
+ * Get details for a specific product
9185
+ *
9186
+ * @param pathParams - The path parameters (product ID or slug)
9187
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9188
+ * @returns Promise with product details
9189
+ */
9190
+ getProductDetail(pathParams: GetProductDetailPathParams, headers?: GetProductDetailHeaderParams): Promise<ApiResult<GetProductDetailContent>>;
9191
+ /**
9192
+ * List variants for a specific product
9193
+ *
9194
+ * @param pathParams - The path parameters (product ID)
9195
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9196
+ * @returns Promise with variants
9197
+ */
9198
+ listProductVariants(pathParams: ListProductVariantsPathParams, headers?: ListProductVariantsHeaderParams): Promise<ApiResult<ListProductVariantsContent>>;
9199
+ /**
9200
+ * Get details for a specific variant
9201
+ *
9202
+ * @param pathParams - The path parameters (product ID and variant ID)
9203
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9204
+ * @returns Promise with variant details
9205
+ */
9206
+ getVariantDetail(pathParams: GetVariantDetailPathParams, headers?: GetVariantDetailHeaderParams): Promise<ApiResult<GetVariantDetailContent>>;
9207
+ /**
9208
+ * List all categories
9209
+ *
9210
+ * @param options - Optional query parameters
9211
+ * @returns Promise with categories and pagination info
9212
+ */
9213
+ listCategories(options?: ListCategoriesQuery): Promise<ApiResult<ListCategoriesContent>>;
9214
+ /**
9215
+ * List reviews for a specific product
9216
+ *
9217
+ * @param pathParams - The path parameters (product ID)
9218
+ * @param queryParams - Optional query parameters
9219
+ * @returns Promise with reviews and pagination info
9220
+ */
9221
+ listProductReviews(pathParams: ListProductReviewsPathParams, queryParams?: ListProductReviewsQuery): Promise<ApiResult<ListProductReviewsContent>>;
9222
+ /**
9223
+ * Create a review for a specific product
9224
+ *
9225
+ * @param pathParams - The path parameters (product ID)
9226
+ * @param formData - The review data
9227
+ * @returns Promise that resolves when the review is created
9228
+ */
9229
+ createProductReview(pathParams: CreateProductReviewPathParams, formData: CreateProductReviewFormData): Promise<ApiResult<CreateProductReviewResponse>>;
9230
+ /**
9231
+ * Search for products
9232
+ *
9233
+ * @param searchData - The search parameters
9234
+ * @returns Promise with search results, facet distribution, facet stats, and pagination
9235
+ */
9236
+ searchProducts(searchData: SearchProductsBody, headers?: SearchProductsHeaderParams): Promise<ApiResult<SearchProductsContent>>;
9237
+ /**
9238
+ * List cross-sell products
9239
+ *
9240
+ * @param options - Optional query parameters
9241
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9242
+ * @returns Promise with cross-sell products
9243
+ */
9244
+ listCrossSellProducts(options?: ListCrosssellProductsQuery, headers?: ListCrosssellProductsHeaderParams): Promise<ApiResult<ListCrosssellProductsContent>>;
9245
+ /**
9246
+ * List up-sell products
9247
+ *
9248
+ * @param options - Optional query parameters
9249
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9250
+ * @returns Promise with up-sell products
9251
+ */
9252
+ listUpSellProducts(options?: ListUpsellProductsQuery, headers?: ListUpsellProductsHeaderParams): Promise<ApiResult<ListUpsellProductsContent>>;
9253
+ /**
9254
+ * List similar products
9255
+ *
9256
+ * @param options - Optional query parameters
9257
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9258
+ * @returns Promise with similar products
9259
+ */
9260
+ listSimilarProducts(options?: ListSimilarProductsQuery, headers?: ListSimilarProductsHeaderParams): Promise<ApiResult<ListSimilarProductsContent>>;
9261
+ }
9262
+
9263
+ /**
9264
+ * Client for interacting with cart endpoints
9265
+ */
9266
+ declare class CartClient extends StorefrontAPIClient {
9267
+ /**
9268
+ * Create a new cart
9269
+ *
9270
+ * @param payload - Object containing the items to add to the cart
9271
+ * @returns Promise with the created cart
9272
+ */
9273
+ createCart(payload: CreateCartBody): Promise<ApiResult<CreateCartContent>>;
9274
+ /**
9275
+ * Get cart details - either by ID or using the stored cart ID
9276
+ *
9277
+ * @param cartId - The ID of the cart
9278
+ * @returns Promise with cart details
9279
+ */
9280
+ getCart(cartId: GetCartPathParams): Promise<ApiResult<GetCartContent>>;
9281
+ /**
9282
+ * Delete a cart - either by ID or using the stored cart ID
9283
+ *
9284
+ * @param cartId - The ID of the cart
9285
+ * @returns Promise that resolves when the cart is deleted
9286
+ */
9287
+ deleteCart(cartId: DeleteCartPathParams): Promise<ApiResult<DeleteCartResponse>>;
9288
+ /**
9289
+ * Update cart items (add, update quantity, remove)
9290
+ *
9291
+ * @param cartId - The cart id
9292
+ * @param body - The body of the request
9293
+ * @returns Promise with updated cart
9294
+ */
9295
+ addDeleteCartItem(cartId: UpdateCartPathParams, body: UpdateCartBody): Promise<ApiResult<UpdateCartContent>>;
9296
+ /**
9297
+ * Get cart details by user ID
9298
+ *
9299
+ * @param userId - The ID of the user
9300
+ * @returns Promise with cart details
9301
+ */
9302
+ getUserCart(userId: GetUserCartPathParams): Promise<ApiResult<GetUserCartContent>>;
9303
+ /**
9304
+ * Delete a cart by user ID
9305
+ *
9306
+ * @param userId - The ID of the user
9307
+ * @returns Promise that resolves when the cart is deleted
9308
+ */
9309
+ deleteUserCart(userId: DeleteUserCartPathParams): Promise<ApiResult<DeleteUserCartResponse>>;
9310
+ /**
9311
+ * Update cart addresses
9312
+ *
9313
+ * @param cartId - The ID of the cart
9314
+ * @param addressData - The address data
9315
+ * @returns Promise with updated cart
9316
+ */
9317
+ updateCartAddress(cartId: CreateCartAddressPathParams, addressData: CreateCartAddressBody): Promise<ApiResult<CreateCartAddressContent>>;
9318
+ /**
9319
+ * Apply a coupon to the cart
9320
+ *
9321
+ * @param cartId - The ID of the cart
9322
+ * @param couponCode - The coupon code
9323
+ * @returns Promise with updated cart
9324
+ */
9325
+ applyCoupon(cartId: ApplyCouponPathParams, couponCode: ApplyCouponBody): Promise<ApiResult<ApplyCouponContent>>;
9326
+ /**
9327
+ * Remove a coupon from the cart
9328
+ *
9329
+ * @param cartId - The ID of the cart
9330
+ * @returns Promise with updated cart
9331
+ */
9332
+ removeCoupon(cartId: RemoveCouponPathParams): Promise<ApiResult<RemoveCouponContent>>;
9333
+ /**
9334
+ * Redeem loyalty points
9335
+ *
9336
+ * @param cartId - The ID of the cart
9337
+ * @param points - The number of points to redeem
9338
+ * @returns Promise with updated cart
9339
+ */
9340
+ redeemLoyaltyPoints(cartId: RedeemLoyaltyPointsPathParams, points: RedeemLoyaltyPointsBody): Promise<ApiResult<RedeemLoyaltyPointsContent>>;
9341
+ /**
9342
+ * Remove loyalty points
9343
+ *
9344
+ * @param cartId - The ID of the cart
9345
+ * @returns Promise with updated cart
9346
+ */
9347
+ removeLoyaltyPoints(cartId: RemoveLoyaltyPointsPathParams): Promise<ApiResult<RemoveLoyaltyPointsContent>>;
9348
+ /**
9349
+ * Update shipping method
9350
+ *
9351
+ * @param cartId - The ID of the cart
9352
+ * @param body - The body of the request
9353
+ * @returns Promise with updated cart
9354
+ */
9355
+ updateShippingMethod(cartId: UpdateShippingMethodPathParams, body: UpdateShippingMethodBody): Promise<ApiResult<UpdateShippingMethodContent>>;
9356
+ /**
9357
+ * Use credit balance
9358
+ *
9359
+ * @param cartId - The ID of the cart
9360
+ * @param body - The body of the request
9361
+ * @returns Promise with updated cart
9362
+ */
9363
+ redeemCreditBalance(cartId: RedeemCreditBalancePathParams, body: RedeemCreditBalanceBody): Promise<ApiResult<RedeemCreditBalanceContent>>;
9364
+ /**
9365
+ * Remove credit balance
9366
+ *
9367
+ * @param cartId - The ID of the cart
9368
+ * @returns Promise with updated cart
9369
+ */
9370
+ removeCreditBalance(cartId: RemoveCreditBalancePathParams): Promise<ApiResult<RemoveCreditBalanceContent>>;
9371
+ /**
9372
+ * Redeem gift card
9373
+ *
9374
+ * @param cartId - The ID of the cart
9375
+ * @param body - The body of the request
9376
+ * @returns Promise with updated cart
9377
+ */
9378
+ redeemGiftCard(cartId: RedeemGiftCardPathParams, body: RedeemGiftCardBody): Promise<ApiResult<RedeemGiftCardContent>>;
9379
+ /**
9380
+ * Remove gift card
9381
+ *
9382
+ * @param cartId - The ID of the cart
9383
+ * @returns Promise with updated cart
9384
+ */
9385
+ removeGiftCard(cartId: RemoveGiftCardPathParams): Promise<ApiResult<RemoveGiftCardContent>>;
9386
+ /**
9387
+ * Get wishlist items
9388
+ *
9389
+ * @param userId - The ID of the user
9390
+ * @returns Promise with wishlist items
9391
+ */
9392
+ getWishlist(userId: GetWishlistPathParams): Promise<ApiResult<GetWishlistContent>>;
9393
+ /**
9394
+ * Add item to wishlist
9395
+ *
9396
+ * @param userId - The ID of the user
9397
+ * @param itemId - The ID of the item
9398
+ * @returns Promise with updated wishlist
9399
+ */
9400
+ addToWishlist(userId: AddToWishlistPathParams, itemId: AddToWishlistBody): Promise<ApiResult<AddToWishlistContent>>;
9401
+ /**
9402
+ * Remove item from wishlist
9403
+ *
9404
+ * @param userId - The ID of the user
9405
+ * @param itemId - The ID of the item
9406
+ * @returns Promise with updated wishlist
9407
+ */
9408
+ removeFromWishlist(userId: DeleteFromWishlistPathParams, body: DeleteFromWishlistBody): Promise<ApiResult<DeleteFromWishlistContent>>;
9409
+ /**
9410
+ * Get all available coupons
9411
+ *
9412
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9413
+ * @returns Promise with all available coupons
9414
+ */
9415
+ getAvailableCoupons(headers?: ListCouponsHeaderParams): Promise<ApiResult<ListCouponsContent>>;
9416
+ /**
9417
+ * Get all available promotions
9418
+ *
9419
+ * @param headers - Optional header parameters (customer_group_id, etc.)
9420
+ * @returns Promise with all available promotions
9421
+ */
9422
+ getAvailablePromotions(headers?: ListPromotionsHeaderParams): Promise<ApiResult<ListPromotionsContent>>;
9423
+ }
9424
+
9425
+ /**
9426
+ * Client for interacting with authentication endpoints
9427
+ */
9428
+ declare class AuthClient extends StorefrontAPIClient {
9429
+ /**
9430
+ * Get anonymous token for guest users
9431
+ */
9432
+ getAnonymousToken(): Promise<ApiResult<GetAnonymousTokenContent>>;
9433
+ /**
9434
+ * Login with phone number
9435
+ *
9436
+ * @param phoneNumber - Phone number (without country code)
9437
+ * @param countryCode - Country code (defaults to +91)
9438
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9439
+ * @returns Promise with OTP token and action
9440
+ */
9441
+ loginWithPhone(body: LoginWithPhoneBody): Promise<ApiResult<LoginWithPhoneContent>>;
9442
+ /**
9443
+ * Login with WhatsApp
9444
+ *
9445
+ * @param phoneNumber - Phone number (without country code)
9446
+ * @param countryCode - Country code (defaults to +91)
9447
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9448
+ * @returns Promise with OTP token and action
9449
+ */
9450
+ loginWithWhatsApp(body: LoginWithWhatsappBody): Promise<ApiResult<LoginWithWhatsappContent>>;
9451
+ /**
9452
+ * Login with email
9453
+ *
9454
+ * @param email - Email address
9455
+ * @param registerIfNotExists - Whether to register if user doesn't exist
9456
+ * @returns Promise with OTP token and action
9457
+ */
9458
+ loginWithEmail(body: LoginWithEmailBody): Promise<ApiResult<LoginWithEmailContent>>;
9459
+ /**
9460
+ * Login with password
9461
+ *
9462
+ * @param credentials - Login credentials
9463
+ * @returns Promise with user info and tokens
9464
+ */
9465
+ loginWithPassword(body: LoginWithPasswordBody): Promise<ApiResult<LoginWithPasswordContent>>;
9466
+ /**
9467
+ * Forgot password
9468
+ *
9469
+ * @param email - Email address
9470
+ * @returns Promise with user info and tokens
9471
+ */
9472
+ forgotPassword(body: ForgotPasswordBody): Promise<ApiResult<ForgotPasswordContent>>;
9473
+ /**
9474
+ * Reset password
9475
+ *
9476
+ * @param email - Email address
9477
+ * @returns Promise with user info and tokens
9478
+ */
9479
+ resetPassword(body: ResetPasswordBody): Promise<ApiResult<ResetPasswordContent>>;
9480
+ /**
9481
+ * Change password
9482
+ *
9483
+ * @param oldPassword - Old password
9484
+ * @param newPassword - New password
9485
+ * @param newPasswordConfirmation - New password confirmation
9486
+ * @returns Promise with new access token and refresh token
9487
+ */
9488
+ changePassword(body: ChangePasswordBody): Promise<ApiResult<ChangePasswordContent>>;
9489
+ /**
9490
+ * Verify OTP
9491
+ *
9492
+ * @param otp - One-time password
9493
+ * @param otpToken - OTP token from login request
9494
+ * @param otpAction - OTP action from login request
9495
+ * @returns Promise with user info and tokens
9496
+ */
9497
+ verifyOtp(body: VerifyOtpBody): Promise<ApiResult<VerifyOtpContent>>;
9498
+ /**
9499
+ * Register with phone
9500
+ *
9501
+ * @param options - Registration details
9502
+ * @returns Promise with user info and tokens
9503
+ */
9504
+ registerWithPhone(body: RegisterWithPhoneBody): Promise<ApiResult<RegisterWithPhoneContent>>;
9505
+ /**
9506
+ * Register with email
9507
+ *
9508
+ * @param options - Registration details
9509
+ * @returns Promise with user info and tokens
9510
+ */
9511
+ registerWithEmail(body: RegisterWithEmailBody): Promise<ApiResult<RegisterWithEmailContent>>;
9512
+ /**
9513
+ * Refresh the access token using a refresh token
9514
+ * @param refreshToken - The refresh token to use for refreshing the access token
9515
+ * @returns Promise with the new access token and refresh token
9516
+ */
9517
+ refreshToken(body: RefreshTokenBody): Promise<ApiResult<RefreshTokenContent>>;
9518
+ /**
9519
+ * Logout
9520
+ *
9521
+ * @returns Promise that resolves when logout is complete
9522
+ */
9523
+ logout(): Promise<ApiResult<LogoutContent>>;
9524
+ /**
9525
+ * Get user details
9526
+ *
9527
+ * @param userId - User ID
9528
+ * @returns Promise with user details
9529
+ */
9530
+ getUserDetails(pathParams: GetUserDetailPathParams): Promise<ApiResult<GetUserDetailContent>>;
9531
+ /**
9532
+ * Update user details
9533
+ *
9534
+ * @param userId - User ID
9535
+ * @returns Promise with user details
9536
+ */
9537
+ updateUserDetails(pathParams: UpdateUserPathParams, body: UpdateUserBody): Promise<ApiResult<UpdateUserContent>>;
9538
+ /**
9539
+ * Add profile image
9540
+ *
9541
+ * @param userId - User ID
9542
+ * @returns Promise with user details
9543
+ */
9544
+ addProfileImage(pathParams: AddProfileImagePathParams, formData: AddProfileImageFormData): Promise<ApiResult<AddProfileImageContent>>;
9545
+ /**
9546
+ * Update profile image
9547
+ *
9548
+ * @param userId - User ID
9549
+ * @returns Promise with user details
9550
+ */
9551
+ updateProfileImage(pathParams: UpdateProfileImagePathParams, formData: UpdateProfileImageFormData): Promise<ApiResult<UpdateProfileImageContent>>;
9552
+ /**
9553
+ * Delete profile image
9554
+ *
9555
+ * @param userId - User ID
9556
+ * @returns Promise with user details
9557
+ */
9558
+ deleteProfileImage(pathParams: RemoveProfileImagePathParams): Promise<ApiResult<RemoveProfileImageResponse>>;
9559
+ /**
9560
+ * Get profile image
9561
+ *
9562
+ * @param userId - User ID
9563
+ * @returns Promise with user details
9564
+ */
9565
+ getProfileImage(pathParams: GetProfileImagePathParams): Promise<ApiResult<GetProfileImageContent>>;
9566
+ /**
9567
+ * Deactivate user account
9568
+ *
9569
+ * @param userId - User ID
9570
+ * @returns Promise with user details
9571
+ */
9572
+ deactivateUserAccount(pathParams: DeactivateUserPathParams): Promise<ApiResult<DeactivateUserResponse>>;
9573
+ /**
9574
+ * Get user notification preferences
9575
+ *
9576
+ * @param userId - User ID
9577
+ * @returns Promise with user details
9578
+ */
9579
+ getUserNotificationPreferences(pathParams: GetNotificationPreferencesPathParams): Promise<ApiResult<GetNotificationPreferencesContent>>;
9580
+ /**
9581
+ * Update user notification preferences
9582
+ *
9583
+ * @param userId - User ID
9584
+ * @returns Promise with user details
9585
+ */
9586
+ updateUserNotificationPreferences(pathParams: UpdateNotificationPreferencesPathParams, body: UpdateNotificationPreferencesBody): Promise<ApiResult<UpdateNotificationPreferencesContent>>;
9587
+ /**
9588
+ * Create user notification preference
9589
+ *
9590
+ * @param userId - User ID
9591
+ * @returns Promise with user details
9592
+ */
9593
+ createUserNotificationPreference(pathParams: CreateNotificationPreferencesPathParams, body: CreateNotificationPreferencesBody): Promise<ApiResult<CreateNotificationPreferencesContent>>;
9594
+ /**
9595
+ * Generate OTP
9596
+ *
9597
+ * @param body - OTP generation body
9598
+ * @returns Promise with OTP generation response
9599
+ */
9600
+ generateOtp(body: GenerateOtpBody): Promise<ApiResult<GenerateOtpContent>>;
9601
+ /**
9602
+ * Check whether email or phone is already verified
9603
+ *
9604
+ * @param body - OTP generation body
9605
+ * @returns Promise with OTP generation response
9606
+ */
9607
+ checkEmailOrPhoneIsVerified(body: CheckVerificationStatusBody): Promise<ApiResult<CheckVerificationStatusContent>>;
9608
+ }
9609
+
9610
+ /**
9611
+ * Client for interacting with order endpoints
9612
+ */
9613
+ declare class OrderClient extends StorefrontAPIClient {
9614
+ /**
9615
+ * Get order details
9616
+ *
9617
+ * @param orderNumber - Order number
9618
+ * @returns Promise with order details
9619
+ */
9620
+ getOrderDetails(pathParams: GetOrderDetailPathParams): Promise<ApiResult<GetOrderDetailContent>>;
9621
+ /**
9622
+ * Create order
9623
+ *
9624
+ * @param cartId - Cart ID
9625
+ * @param paymentGateway - Payment gateway
9626
+ * @param paymentGatewayParams - Params for the selected payment gateway
9627
+ * @returns Promise with order details
9628
+ */
9629
+ createOrder(body: CreateOrderBody): Promise<ApiResult<CreateOrderContent>>;
9630
+ /**
9631
+ * List all orders
9632
+ *
9633
+ * @param queryParams - Query parameters
9634
+ * @returns Promise with order details
9635
+ */
9636
+ listOrders(queryParams: ListOrdersQuery): Promise<ApiResult<ListOrdersContent>>;
9637
+ /**
9638
+ * Get payment status for an order
9639
+ *
9640
+ * @param orderNumber - Order number
9641
+ * @returns Promise with payment status
9642
+ */
9643
+ getPaymentStatus(orderNumber: string): Promise<ApiResult<GetPaymentStatusContent>>;
9644
+ /**
9645
+ * Get all shipments for an order
9646
+ *
9647
+ * @param orderNumber - Order number
9648
+ * @returns Promise with shipments
9649
+ */
9650
+ listOrderShipments(pathParams: ListOrderShipmentsPathParams): Promise<ApiResult<ListOrderShipmentsContent>>;
9651
+ /**
9652
+ * List order payments
9653
+ *
9654
+ * @param orderNumber - Order number
9655
+ * @returns Promise with payments
9656
+ */
9657
+ listOrderPayments(pathParams: ListOrderPaymentsPathParams): Promise<ApiResult<ListOrderPaymentsContent>>;
9658
+ /**
9659
+ * List order refunds
9660
+ *
9661
+ * @param orderNumber - Order number
9662
+ * @returns Promise with refunds
9663
+ */
9664
+ listOrderRefunds(pathParams: ListOrderRefundsPathParams): Promise<ApiResult<ListOrderRefundsContent>>;
9665
+ /**
9666
+ * Cancel an order
9667
+ *
9668
+ * @param orderNumber - Order number
9669
+ * @returns Promise with order details
9670
+ */
9671
+ cancelOrder(pathParams: CancelOrderPathParams, body: CancelOrderBody): Promise<ApiResult<CancelOrderContent>>;
9672
+ /**
9673
+ * Retry payment for an order
9674
+ *
9675
+ * @param orderNumber - Order number
9676
+ * @returns Promise with order details
9677
+ */
9678
+ retryOrderPayment(pathParams: RetryOrderPaymentPathParams, body: RetryOrderPaymentBody): Promise<ApiResult<RetryOrderPaymentContent>>;
9679
+ }
9680
+
9681
+ /**
9682
+ * Client for interacting with shipping endpoints
9683
+ */
9684
+ declare class ShippingClient extends StorefrontAPIClient {
9685
+ /**
9686
+ * Get shipping options for an order
9687
+ *
9688
+ * @param body - Shipping methods body
9689
+ * @returns Promise with shipping options
9690
+ */
9691
+ getShippingMethods(body: GetShippingMethodsBody): Promise<ApiResult<GetShippingMethodsContent>>;
9692
+ /**
9693
+ * Check pincode deliverability
9694
+ *
9695
+ * @param pathParams - Path parameters
9696
+ * @returns Promise with pincode deliverability result
9697
+ */
9698
+ checkPincodeDeliverability(pathParams: CheckPincodeServiceabilityPathParams): Promise<ApiResult<CheckPincodeServiceabilityContent>>;
9699
+ }
9700
+
9701
+ /**
9702
+ * Client for interacting with helper endpoints
9703
+ */
9704
+ declare class HelpersClient extends StorefrontAPIClient {
9705
+ /**
9706
+ * Get a list of countries
9707
+ *
9708
+ * @returns Promise with countries
9709
+ */
9710
+ listCountries(): Promise<ApiResult<ListCountriesContent>>;
9711
+ /**
9712
+ * - Get a list of states for a country
9713
+ *
9714
+ * @param pathParams - Path parameters
9715
+ * @returns Promise with states
9716
+ */
9717
+ listCountryStates(pathParams: ListCountryStatesPathParams): Promise<ApiResult<ListCountryStatesContent>>;
9718
+ /**
9719
+ * Get pincodes for a country
9720
+ *
9721
+ * @param pathParams - Path parameters
9722
+ * @returns Promise with pincodes
9723
+ */
9724
+ listCountryPincodes(pathParams: ListCountryPincodesPathParams): Promise<ApiResult<ListCountryPincodesContent>>;
9725
+ }
9726
+
9727
+ /**
9728
+ * Client for interacting with customer endpoints
9729
+ */
9730
+ declare class CustomerClient extends StorefrontAPIClient {
9731
+ /**
9732
+ * Create a customer
9733
+ *
9734
+ * @param body - Customer creation body
9735
+ * @returns Promise with customer details
9736
+ */
9737
+ createCustomer(body: CreateCustomerBody): Promise<ApiResult<CreateCustomerContent>>;
9738
+ /**
9739
+ * Get customer details
9740
+ *
9741
+ * @param pathParams - Path parameters
9742
+ * @returns Promise with customer details
9743
+ */
9744
+ getCustomer(pathParams: GetCustomerDetailPathParams): Promise<ApiResult<GetCustomerDetailContent>>;
9745
+ /**
9746
+ * Update a customer
9747
+ *
9748
+ * @param pathParams - Path parameters
9749
+ * @param body - Customer update body
9750
+ * @returns Promise with customer details
9751
+ */
9752
+ updateCustomer(pathParams: UpdateCustomerPathParams, body: UpdateCustomerBody): Promise<ApiResult<UpdateCustomerContent>>;
9753
+ /**
9754
+ * Get all saved addresses for a customer
9755
+ *
9756
+ * @param pathParams - Path parameters
9757
+ * @returns Promise with addresses
9758
+ */
9759
+ listAddresses(pathParams: ListAddressesPathParams): Promise<ApiResult<ListAddressesContent>>;
9760
+ /**
9761
+ * Create a new address for a customer
9762
+ *
9763
+ * @param pathParams - Path parameters
9764
+ * @param body - Address creation body
9765
+ * @returns Promise with address details
9766
+ */
9767
+ createAddress(pathParams: CreateAddressPathParams, body: CreateAddressBody): Promise<ApiResult<CreateAddressContent>>;
9768
+ /**
9769
+ * Get an address for a customer
9770
+ *
9771
+ * @param pathParams - Path parameters
9772
+ * @returns Promise with address details
9773
+ */
9774
+ getAddress(pathParams: GetAddressDetailPathParams): Promise<ApiResult<GetAddressDetailContent>>;
9775
+ /**
9776
+ * Update an address for a customer
9777
+ *
9778
+ * @param pathParams - Path parameters
9779
+ * @param body - Address update body
9780
+ * @returns Promise with address details
9781
+ */
9782
+ updateAddress(pathParams: UpdateAddressDetailPathParams, body: UpdateAddressDetailBody): Promise<ApiResult<UpdateAddressDetailContent>>;
9783
+ /**
9784
+ * Delete an address for a customer
9785
+ *
9786
+ * @param pathParams - Path parameters
9787
+ * @returns Promise with address details
9788
+ */
9789
+ deleteAddress(pathParams: DeleteAddressPathParams): Promise<ApiResult<DeleteAddressResponse>>;
9790
+ /**
9791
+ * Get customer loyalty details
9792
+ *
9793
+ * @param pathParams - Path parameters
9794
+ * @returns Promise with loyalty details
9795
+ */
9796
+ getLoyaltyDetails(pathParams: GetLoyaltyDetailsPathParams): Promise<ApiResult<GetLoyaltyDetailsContent>>;
9797
+ /**
9798
+ * List all loyalty points activity for a customer
9799
+ *
9800
+ * @param pathParams - Path parameters
9801
+ * @returns Promise with loyalty points activity
9802
+ */
9803
+ listLoyaltyPointsActivity(pathParams: ListLoyaltyActivitiesPathParams): Promise<ApiResult<ListLoyaltyActivitiesContent>>;
9804
+ /**
9805
+ * List all reviews left by a customer
9806
+ *
9807
+ * @param pathParams - Path parameters
9808
+ * @returns Promise with reviews
9809
+ */
9810
+ listCustomerReviews(pathParams: ListUserReviewsPathParams): Promise<ApiResult<ListUserReviewsContent>>;
9811
+ }
9812
+
9813
+ /**
9814
+ * Token storage interface for the auth middleware
9815
+ */
9816
+ interface TokenStorage {
9817
+ getAccessToken(): Promise<string | null>;
9818
+ setAccessToken(token: string): Promise<void>;
9819
+ getRefreshToken(): Promise<string | null>;
9820
+ setRefreshToken(token: string): Promise<void>;
9821
+ clearTokens(): Promise<void>;
9822
+ }
9823
+ /**
9824
+ * Simple in-memory token storage implementation
9825
+ */
9826
+ declare class MemoryTokenStorage implements TokenStorage {
9827
+ private accessToken;
9828
+ private refreshToken;
9829
+ getAccessToken(): Promise<string | null>;
9830
+ setAccessToken(token: string): Promise<void>;
9831
+ getRefreshToken(): Promise<string | null>;
9832
+ setRefreshToken(token: string): Promise<void>;
9833
+ clearTokens(): Promise<void>;
9834
+ }
9835
+ /**
9836
+ * Browser localStorage token storage implementation
9837
+ */
9838
+ declare class BrowserTokenStorage implements TokenStorage {
9839
+ private accessTokenKey;
9840
+ private refreshTokenKey;
9841
+ constructor(prefix?: string);
9842
+ getAccessToken(): Promise<string | null>;
9843
+ setAccessToken(token: string): Promise<void>;
9844
+ getRefreshToken(): Promise<string | null>;
9845
+ setRefreshToken(token: string): Promise<void>;
9846
+ clearTokens(): Promise<void>;
9847
+ }
9848
+ /**
9849
+ * Cookie-based token storage implementation
9850
+ */
9851
+ declare class CookieTokenStorage implements TokenStorage {
9852
+ private accessTokenKey;
9853
+ private refreshTokenKey;
9854
+ private options;
9855
+ constructor(options?: CookieTokenStorageOptions);
9856
+ getAccessToken(): Promise<string | null>;
9857
+ setAccessToken(token: string): Promise<void>;
9858
+ getRefreshToken(): Promise<string | null>;
9859
+ setRefreshToken(token: string): Promise<void>;
9860
+ clearTokens(): Promise<void>;
9861
+ private getCookie;
9862
+ private setCookie;
9863
+ private deleteCookie;
9864
+ }
9865
+ /**
9866
+ * Configuration options for CookieTokenStorage
9867
+ */
9868
+ interface CookieTokenStorageOptions {
9869
+ /**
9870
+ * Prefix for cookie names (default: "storefront_")
9871
+ */
9872
+ prefix?: string;
9873
+ /**
9874
+ * Maximum age of cookies in seconds (default: 7 days)
9875
+ */
9876
+ maxAge?: number;
9877
+ /**
9878
+ * Cookie path (default: "/")
9879
+ */
9880
+ path?: string;
9881
+ /**
9882
+ * Cookie domain (default: current domain)
9883
+ */
9884
+ domain?: string;
9885
+ /**
9886
+ * Whether cookies should be secure (default: auto-detect based on protocol)
9887
+ */
9888
+ secure?: boolean;
9889
+ /**
9890
+ * SameSite cookie attribute (default: "Lax")
9891
+ */
9892
+ sameSite?: "Strict" | "Lax" | "None";
9893
+ }
9894
+
9895
+ /**
9896
+ * User information extracted from JWT token
9897
+ */
9898
+ interface UserInfo {
9899
+ id: string;
9900
+ email: string | null;
9901
+ phone: string | null;
9902
+ username: string;
9903
+ firstName: string | null;
9904
+ lastName: string | null;
9905
+ storeId: string;
9906
+ isLoggedIn: boolean;
9907
+ isAnonymous: boolean;
9908
+ customerId: string | null;
9909
+ customerGroupId: string | null;
9910
+ anonymousId: string;
9911
+ tokenExpiry: Date;
9912
+ tokenIssuedAt: Date;
9913
+ }
9914
+
9915
+ /**
9916
+ * Debug logger function interface
9917
+ */
9918
+ interface DebugLoggerFn {
9919
+ (level: "info" | "warn" | "error", message: string, data?: any): void;
9920
+ }
9921
+ /**
9922
+ * Response utilities for debugging and working with Response objects
9923
+ */
9924
+ declare class ResponseUtils {
9925
+ /**
9926
+ * Get response headers as a plain object
9927
+ */
9928
+ static getHeaders(response: Response): Record<string, string>;
9929
+ /**
9930
+ * Get specific header value
9931
+ */
9932
+ static getHeader(response: Response, name: string): string | null;
9933
+ /**
9934
+ * Check if response was successful
9935
+ */
9936
+ static isSuccess(response: Response): boolean;
9937
+ /**
9938
+ * Get response metadata
9939
+ */
9940
+ static getMetadata(response: Response): {
9941
+ status: number;
9942
+ statusText: string;
9943
+ ok: boolean;
9944
+ url: string;
9945
+ redirected: boolean;
9946
+ type: ResponseType;
9947
+ headers: {
9948
+ [k: string]: string;
9949
+ };
9950
+ };
9951
+ /**
9952
+ * Clone and read response as text (useful for debugging)
9953
+ * Note: This can only be called once per response
9954
+ */
9955
+ static getText(response: Response): Promise<string>;
9956
+ /**
9957
+ * Clone and read response as JSON (useful for debugging)
9958
+ * Note: This can only be called once per response
9959
+ */
9960
+ static getJSON(response: Response): Promise<any>;
9961
+ /**
9962
+ * Format response information for debugging
9963
+ */
9964
+ static format(response: Response): string;
9965
+ }
9966
+
9967
+ /**
9968
+ * Supported default headers that can be set at the SDK level
9969
+ * Only includes headers that are actually supported by API endpoints
9970
+ */
9971
+ interface SupportedDefaultHeaders {
9972
+ /**
9973
+ * Customer group ID used for pricing, promotions, and subscription rates
9974
+ * If not provided, the API will use default pricing
9975
+ */
9976
+ customer_group_id?: string;
9977
+ }
9978
+ /**
9979
+ * SDK initialization options
9980
+ */
9981
+ interface StorefrontSDKOptions {
9982
+ /**
9983
+ * Store ID for the API requests
9984
+ */
9985
+ storeId: string;
9986
+ /**
9987
+ * Environment to use (defaults to Production)
9988
+ */
9989
+ environment?: Environment;
9990
+ /**
9991
+ * Custom base URL (overrides environment if provided)
9992
+ */
9993
+ baseUrl?: string;
9994
+ /**
9995
+ * Optional initial access token
9996
+ * - If tokenStorage is provided: Used as initial token value, then managed automatically
9997
+ * - If tokenStorage is not provided: Used for manual token management
9998
+ */
9999
+ accessToken?: string;
10000
+ /**
10001
+ * Optional initial refresh token
10002
+ * - Only used when tokenStorage is provided
10003
+ * - Allows initialization with both access and refresh tokens
10004
+ */
10005
+ refreshToken?: string;
10006
+ /**
10007
+ * X-Api-Key for anonymous authentication endpoints
10008
+ * Required for initial authentication
10009
+ */
10010
+ apiKey?: string;
10011
+ /**
10012
+ * Optional timeout in milliseconds
10013
+ */
10014
+ timeout?: number;
10015
+ /**
10016
+ * Optional token storage for automatic token management
10017
+ * If provided, enables automatic token refresh and management
10018
+ */
10019
+ tokenStorage?: TokenStorage;
10020
+ /**
10021
+ * Callback when tokens are updated (login/refresh)
10022
+ */
10023
+ onTokensUpdated?: (accessToken: string, refreshToken: string) => void;
10024
+ /**
10025
+ * Callback when tokens are cleared (logout/error)
10026
+ */
10027
+ onTokensCleared?: () => void;
10028
+ /**
10029
+ * Default headers to include with API requests
10030
+ * These can be overridden at the method level
10031
+ * Only supports headers that are actually available in the API
10032
+ */
10033
+ defaultHeaders?: SupportedDefaultHeaders;
10034
+ /**
10035
+ * Enable debug mode for detailed request/response logging
10036
+ * When enabled, detailed debug information will be logged via the logger
10037
+ * Note: Response objects are always included in ApiResult regardless of debug mode
10038
+ */
10039
+ debug?: boolean;
10040
+ /**
10041
+ * Custom logger function for debug information
10042
+ * If not provided and debug is enabled, will use console.log
10043
+ */
10044
+ logger?: DebugLoggerFn;
10045
+ }
10046
+ /**
10047
+ * Main SDK class for the Storefront API
10048
+ */
10049
+ declare class StorefrontSDK {
10050
+ /**
10051
+ * Client for catalog-related endpoints (products, categories, etc.)
10052
+ */
10053
+ readonly catalog: CatalogClient;
10054
+ /**
10055
+ * Client for cart-related endpoints
10056
+ */
10057
+ readonly cart: CartClient;
10058
+ /**
10059
+ * Client for authentication-related endpoints
10060
+ */
10061
+ readonly auth: AuthClient;
10062
+ /**
10063
+ * Client for customer-related endpoints
10064
+ */
10065
+ readonly customer: CustomerClient;
10066
+ /**
10067
+ * Client for helper-related endpoints
10068
+ */
10069
+ readonly helpers: HelpersClient;
10070
+ /**
10071
+ * Client for shipping-related endpoints
10072
+ */
10073
+ readonly shipping: ShippingClient;
10074
+ /**
10075
+ * Client for order-related endpoints
10076
+ */
10077
+ readonly order: OrderClient;
10078
+ /**
10079
+ * Create a new StorefrontSDK instance
10080
+ *
10081
+ * @param options - Configuration options for the SDK
10082
+ */
10083
+ constructor(options: StorefrontSDKOptions);
10084
+ /**
10085
+ * Set authentication tokens for all clients
10086
+ *
10087
+ * @param accessToken - The access token (required)
10088
+ * @param refreshToken - The refresh token (optional)
10089
+ *
10090
+ * Behavior:
10091
+ * - If tokenStorage is provided: Stores tokens for automatic management
10092
+ * - If tokenStorage is not provided: Only stores access token for manual management
10093
+ */
10094
+ setTokens(accessToken: string, refreshToken?: string): Promise<void>;
10095
+ /**
10096
+ * Clear all authentication tokens from all clients
10097
+ *
10098
+ * Behavior:
10099
+ * - If tokenStorage is provided: Clears both access and refresh tokens from storage
10100
+ * - If tokenStorage is not provided: Clears the manual access token
10101
+ */
10102
+ clearTokens(): Promise<void>;
10103
+ /**
10104
+ * Set the API key for all clients
10105
+ *
10106
+ * @param apiKey - The API key to set
10107
+ */
10108
+ setApiKey(apiKey: string): void;
10109
+ /**
10110
+ * Clear the API key from all clients
10111
+ */
10112
+ clearApiKey(): void;
10113
+ /**
10114
+ * Get the current access token if using token storage
10115
+ */
10116
+ getAccessToken(): Promise<string | null>;
10117
+ /**
10118
+ * Get user information from the current access token
10119
+ *
10120
+ * @returns User information extracted from JWT token, or null if no token or invalid token
10121
+ */
10122
+ getUserInfo(): Promise<UserInfo | null>;
10123
+ /**
10124
+ * Get the current user ID from the access token
10125
+ *
10126
+ * @returns User ID (ulid) or null if no token or invalid token
10127
+ */
10128
+ getUserId(): Promise<string | null>;
10129
+ /**
10130
+ * Check if the current user is logged in (not anonymous)
10131
+ *
10132
+ * @returns True if user is logged in, false if anonymous or no token
10133
+ */
10134
+ isLoggedIn(): Promise<boolean>;
10135
+ /**
10136
+ * Check if the current user is anonymous
10137
+ *
10138
+ * @returns True if user is anonymous or no token, false if logged in
10139
+ */
10140
+ isAnonymous(): Promise<boolean>;
10141
+ /**
10142
+ * Get the customer ID from the current access token
10143
+ *
10144
+ * @returns Customer ID or null if no token, invalid token, or user has no customer ID
10145
+ */
10146
+ getCustomerId(): Promise<string | null>;
10147
+ /**
10148
+ * Get the customer group ID from the current access token
10149
+ *
10150
+ * @returns Customer group ID or null if no token, invalid token, or user has no customer group
10151
+ */
10152
+ getCustomerGroupId(): Promise<string | null>;
10153
+ /**
10154
+ * Set default headers for all clients
10155
+ *
10156
+ * @param headers - Default headers to set (only supported headers allowed)
10157
+ */
10158
+ setDefaultHeaders(headers: SupportedDefaultHeaders): void;
10159
+ /**
10160
+ * Get current default headers
10161
+ *
10162
+ * @returns Current default headers
10163
+ */
10164
+ getDefaultHeaders(): SupportedDefaultHeaders | undefined;
10165
+ }
10166
+
10167
+ export { type AddCardBody, type AddCardContent, type AddCardResponse, type AddProfileImageContent, type AddProfileImageFormData, type AddProfileImagePathParams, type AddProfileImageResponse, type AddToWishlistBody, type AddToWishlistContent, type AddToWishlistPathParams, type AddToWishlistResponse, type ApiErrorResponse, type ApiResult, type ApplyCouponBody, type ApplyCouponContent, type ApplyCouponPathParams, type ApplyCouponResponse, AuthClient, BrowserTokenStorage, type CancelOrderBody, type CancelOrderContent, type CancelOrderPathParams, type CancelOrderResponse, CartClient, CatalogClient, type ChangePasswordBody, type ChangePasswordContent, type ChangePasswordResponse, type CheckPincodeServiceabilityContent, type CheckPincodeServiceabilityPathParams, type CheckPincodeServiceabilityResponse, type CheckVerificationStatusBody, type CheckVerificationStatusContent, type CheckVerificationStatusResponse, CookieTokenStorage, type CookieTokenStorageOptions, type CreateAddressBody, type CreateAddressContent, type CreateAddressPathParams, type CreateAddressResponse, type CreateCartAddressBody, type CreateCartAddressContent, type CreateCartAddressPathParams, type CreateCartAddressResponse, type CreateCartBody, type CreateCartContent, type CreateCartResponse, type CreateCustomerBody, type CreateCustomerContent, type CreateCustomerResponse, type CreateDocumentContent, type CreateDocumentFormData, type CreateDocumentPathParams, type CreateDocumentResponse, type CreateJuspayCustomerBody, type CreateJuspayCustomerContent, type CreateJuspayCustomerResponse, type CreateJuspayOrderBody, type CreateJuspayOrderContent, type CreateJuspayOrderResponse, type CreateNotificationPreferencesBody, type CreateNotificationPreferencesContent, type CreateNotificationPreferencesPathParams, type CreateNotificationPreferencesResponse, type CreateOrderBody, type CreateOrderContent, type CreateOrderResponse, type CreateOrderReturnBody, type CreateOrderReturnContent, type CreateOrderReturnPathParams, type CreateOrderReturnResponse, type CreateProductReviewFormData, type CreateProductReviewPathParams, type CreateProductReviewResponse, type CreateSubscriptionBody, type CreateSubscriptionContent, type CreateSubscriptionResponse, CustomerClient, type DeactivateUserPathParams, type DeactivateUserResponse, type DebugLoggerFn, type DeleteAddressPathParams, type DeleteAddressResponse, type DeleteCartPathParams, type DeleteCartResponse, type DeleteDocumentPathParams, type DeleteDocumentResponse, type DeleteFromWishlistBody, type DeleteFromWishlistContent, type DeleteFromWishlistPathParams, type DeleteFromWishlistResponse, type DeleteUserCartPathParams, type DeleteUserCartResponse, Environment, type ForgotPasswordBody, type ForgotPasswordContent, type ForgotPasswordResponse, type GenerateHashBody, type GenerateHashContent, type GenerateHashResponse, type GenerateOtpBody, type GenerateOtpContent, type GenerateOtpResponse, type GetAddressDetailContent, type GetAddressDetailPathParams, type GetAddressDetailResponse, type GetAnonymousTokenContent, type GetAnonymousTokenResponse, type GetCartContent, type GetCartPathParams, type GetCartResponse, type GetConfigContent, type GetConfigResponse, type GetCustomerDetailContent, type GetCustomerDetailPathParams, type GetCustomerDetailResponse, type GetDocumentContent, type GetDocumentPathParams, type GetDocumentResponse, type GetJuspayCustomerContent, type GetJuspayCustomerPathParams, type GetJuspayCustomerResponse, type GetLoyaltyDetailsContent, type GetLoyaltyDetailsPathParams, type GetLoyaltyDetailsResponse, type GetNotificationPreferencesContent, type GetNotificationPreferencesPathParams, type GetNotificationPreferencesResponse, type GetOrderDetailContent, type GetOrderDetailPathParams, type GetOrderDetailResponse, type GetOrderReturnDetailContent, type GetOrderReturnDetailPathParams, type GetOrderReturnDetailResponse, type GetPaymentStatusContent, type GetPaymentStatusPathParams, type GetPaymentStatusResponse, type GetProductDetailContent, type GetProductDetailHeaderParams, type GetProductDetailPathParams, type GetProductDetailResponse, type GetProfileImageContent, type GetProfileImagePathParams, type GetProfileImageResponse, type GetShippingMethodsBody, type GetShippingMethodsContent, type GetShippingMethodsResponse, type GetSubscriptionContent, type GetSubscriptionPathParams, type GetSubscriptionResponse, type GetUserCartContent, type GetUserCartPathParams, type GetUserCartResponse, type GetUserDetailContent, type GetUserDetailPathParams, type GetUserDetailResponse, type GetVariantDetailContent, type GetVariantDetailHeaderParams, type GetVariantDetailPathParams, type GetVariantDetailResponse, type GetWishlistContent, type GetWishlistPathParams, type GetWishlistResponse, HelpersClient, type ListAddressesContent, type ListAddressesPathParams, type ListAddressesQuery, type ListAddressesResponse, type ListCategoriesContent, type ListCategoriesQuery, type ListCategoriesResponse, type ListCountriesContent, type ListCountriesResponse, type ListCountryPincodesContent, type ListCountryPincodesPathParams, type ListCountryPincodesQuery, type ListCountryPincodesResponse, type ListCountryStatesContent, type ListCountryStatesPathParams, type ListCountryStatesResponse, type ListCouponsContent, type ListCouponsHeaderParams, type ListCouponsResponse, type ListCrosssellProductsContent, type ListCrosssellProductsHeaderParams, type ListCrosssellProductsQuery, type ListCrosssellProductsResponse, type ListDocumentsContent, type ListDocumentsPathParams, type ListDocumentsResponse, type ListKycDocumentContent, type ListKycDocumentResponse, type ListLoyaltyActivitiesContent, type ListLoyaltyActivitiesPathParams, type ListLoyaltyActivitiesQuery, type ListLoyaltyActivitiesResponse, type ListOrderPaymentsContent, type ListOrderPaymentsPathParams, type ListOrderPaymentsResponse, type ListOrderRefundsContent, type ListOrderRefundsPathParams, type ListOrderRefundsResponse, type ListOrderShipmentsContent, type ListOrderShipmentsPathParams, type ListOrderShipmentsResponse, type ListOrdersContent, type ListOrdersQuery, type ListOrdersResponse, type ListPaymentMethodsContent, type ListPaymentMethodsQuery, type ListPaymentMethodsResponse, type ListProductReviewsContent, type ListProductReviewsPathParams, type ListProductReviewsQuery, type ListProductReviewsResponse, type ListProductVariantsContent, type ListProductVariantsHeaderParams, type ListProductVariantsPathParams, type ListProductVariantsResponse, type ListProductsContent, type ListProductsHeaderParams, type ListProductsQuery, type ListProductsResponse, type ListPromotionsContent, type ListPromotionsHeaderParams, type ListPromotionsResponse, type ListReturnsContent, type ListReturnsResponse, type ListSavedCardsContent, type ListSavedCardsQuery, type ListSavedCardsResponse, type ListSimilarProductsContent, type ListSimilarProductsHeaderParams, type ListSimilarProductsQuery, type ListSimilarProductsResponse, type ListSkusContent, type ListSkusHeaderParams, type ListSkusQuery, type ListSkusResponse, type ListSubscriptionsContent, type ListSubscriptionsResponse, type ListUpsellProductsContent, type ListUpsellProductsHeaderParams, type ListUpsellProductsQuery, type ListUpsellProductsResponse, type ListUserReviewsContent, type ListUserReviewsPathParams, type ListUserReviewsResponse, type LoginWithEmailBody, type LoginWithEmailContent, type LoginWithEmailResponse, type LoginWithPasswordBody, type LoginWithPasswordContent, type LoginWithPasswordResponse, type LoginWithPhoneBody, type LoginWithPhoneContent, type LoginWithPhoneResponse, type LoginWithWhatsappBody, type LoginWithWhatsappContent, type LoginWithWhatsappResponse, type LogoutContent, type LogoutResponse, MemoryTokenStorage, OrderClient, type RedeemCreditBalanceBody, type RedeemCreditBalanceContent, type RedeemCreditBalancePathParams, type RedeemCreditBalanceResponse, type RedeemGiftCardBody, type RedeemGiftCardContent, type RedeemGiftCardPathParams, type RedeemGiftCardResponse, type RedeemLoyaltyPointsBody, type RedeemLoyaltyPointsContent, type RedeemLoyaltyPointsPathParams, type RedeemLoyaltyPointsResponse, type RefreshTokenBody, type RefreshTokenContent, type RefreshTokenResponse, type RegisterWithEmailBody, type RegisterWithEmailContent, type RegisterWithEmailResponse, type RegisterWithPasswordBody, type RegisterWithPasswordContent, type RegisterWithPasswordResponse, type RegisterWithPhoneBody, type RegisterWithPhoneContent, type RegisterWithPhoneResponse, type RegisterWithWhatsappBody, type RegisterWithWhatsappContent, type RegisterWithWhatsappResponse, type RemoveCouponContent, type RemoveCouponPathParams, type RemoveCouponResponse, type RemoveCreditBalanceContent, type RemoveCreditBalancePathParams, type RemoveCreditBalanceResponse, type RemoveGiftCardContent, type RemoveGiftCardPathParams, type RemoveGiftCardResponse, type RemoveLoyaltyPointsContent, type RemoveLoyaltyPointsPathParams, type RemoveLoyaltyPointsResponse, type RemoveProfileImagePathParams, type RemoveProfileImageResponse, type ResetPasswordBody, type ResetPasswordContent, type ResetPasswordResponse, ResponseUtils, type RetryOrderPaymentBody, type RetryOrderPaymentContent, type RetryOrderPaymentPathParams, type RetryOrderPaymentResponse, type SearchProductsBody, type SearchProductsContent, type SearchProductsHeaderParams, type SearchProductsResponse, ShippingClient, StorefrontAPIClient, StorefrontSDK, type StorefrontSDKOptions, type SubscribeNewsletterBody, type SubscribeNewsletterResponse, type SupportedDefaultHeaders, type TokenStorage, type TrackAnalyticsEventBody, type TrackAnalyticsEventResponse, type UpdateAddressDetailBody, type UpdateAddressDetailContent, type UpdateAddressDetailPathParams, type UpdateAddressDetailResponse, type UpdateCartBody, type UpdateCartContent, type UpdateCartPathParams, type UpdateCartResponse, type UpdateCustomerBody, type UpdateCustomerContent, type UpdateCustomerPathParams, type UpdateCustomerResponse, type UpdateDocumentContent, type UpdateDocumentFormData, type UpdateDocumentPathParams, type UpdateDocumentResponse, type UpdateNotificationPreferencesBody, type UpdateNotificationPreferencesContent, type UpdateNotificationPreferencesPathParams, type UpdateNotificationPreferencesResponse, type UpdateProfileImageContent, type UpdateProfileImageFormData, type UpdateProfileImagePathParams, type UpdateProfileImageResponse, type UpdateShippingMethodBody, type UpdateShippingMethodContent, type UpdateShippingMethodPathParams, type UpdateShippingMethodResponse, type UpdateSubscriptionBody, type UpdateSubscriptionContent, type UpdateSubscriptionPathParams, type UpdateSubscriptionResponse, type UpdateUserBody, type UpdateUserContent, type UpdateUserPathParams, type UpdateUserResponse, type UserInfo, type VerifyDocumentBody, type VerifyDocumentContent, type VerifyDocumentPathParams, type VerifyDocumentResponse, type VerifyOtpBody, type VerifyOtpContent, type VerifyOtpResponse, type VerifyVpaContent, type VerifyVpaQuery, type VerifyVpaResponse, type components, StorefrontSDK as default, type operations, type paths };