ce-storefront 0.9.2 → 0.10.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.
Files changed (254) hide show
  1. package/README.md +6 -55
  2. package/bin/mcp-server.js +763 -2034
  3. package/bin/mcp-server.js.map +22 -45
  4. package/docs/sdks/carts/README.md +164 -0
  5. package/docs/sdks/customers/README.md +79 -77
  6. package/esm/funcs/{kycCreateDocument.d.ts → cartsRedeemLoyaltyPoints.d.ts} +4 -4
  7. package/esm/funcs/cartsRedeemLoyaltyPoints.d.ts.map +1 -0
  8. package/esm/funcs/{kycVerifyDocument.js → cartsRedeemLoyaltyPoints.js} +9 -9
  9. package/esm/funcs/cartsRedeemLoyaltyPoints.js.map +1 -0
  10. package/esm/funcs/{kycListDocuments.d.ts → cartsRemoveLoyaltyPoints.d.ts} +4 -4
  11. package/esm/funcs/cartsRemoveLoyaltyPoints.d.ts.map +1 -0
  12. package/esm/funcs/{kycListDocuments.js → cartsRemoveLoyaltyPoints.js} +9 -9
  13. package/esm/funcs/cartsRemoveLoyaltyPoints.js.map +1 -0
  14. package/esm/funcs/{kycListKycDocument.d.ts → customersGetLoyaltyDetails.d.ts} +4 -4
  15. package/esm/funcs/customersGetLoyaltyDetails.d.ts.map +1 -0
  16. package/esm/funcs/{kycGetDocument.js → customersGetLoyaltyDetails.js} +10 -14
  17. package/esm/funcs/customersGetLoyaltyDetails.js.map +1 -0
  18. package/esm/lib/config.d.ts +4 -4
  19. package/esm/lib/config.js +4 -4
  20. package/esm/lib/config.js.map +1 -1
  21. package/esm/mcp-server/mcp-server.js +1 -1
  22. package/esm/mcp-server/mcp-server.js.map +1 -1
  23. package/esm/mcp-server/server.d.ts.map +1 -1
  24. package/esm/mcp-server/server.js +7 -17
  25. package/esm/mcp-server/server.js.map +1 -1
  26. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts +8 -0
  27. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.d.ts.map +1 -0
  28. package/esm/mcp-server/tools/{kycListDocuments.js → cartsRedeemLoyaltyPoints.js} +8 -8
  29. package/esm/mcp-server/tools/cartsRedeemLoyaltyPoints.js.map +1 -0
  30. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts +8 -0
  31. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.d.ts.map +1 -0
  32. package/esm/mcp-server/tools/{kycGetDocument.js → cartsRemoveLoyaltyPoints.js} +8 -8
  33. package/esm/mcp-server/tools/cartsRemoveLoyaltyPoints.js.map +1 -0
  34. package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts +8 -0
  35. package/esm/mcp-server/tools/customersGetLoyaltyDetails.d.ts.map +1 -0
  36. package/esm/mcp-server/tools/{kycCreateDocument.js → customersGetLoyaltyDetails.js} +8 -8
  37. package/esm/mcp-server/tools/customersGetLoyaltyDetails.js.map +1 -0
  38. package/esm/models/components/customerloyalty.d.ts +41 -0
  39. package/esm/models/components/customerloyalty.d.ts.map +1 -0
  40. package/esm/models/components/customerloyalty.js +64 -0
  41. package/esm/models/components/customerloyalty.js.map +1 -0
  42. package/esm/models/components/index.d.ts +1 -6
  43. package/esm/models/components/index.d.ts.map +1 -1
  44. package/esm/models/components/index.js +1 -6
  45. package/esm/models/components/index.js.map +1 -1
  46. package/esm/models/operations/createorder.d.ts +14 -14
  47. package/esm/models/operations/createorder.d.ts.map +1 -1
  48. package/esm/models/operations/createorder.js +12 -12
  49. package/esm/models/operations/createorder.js.map +1 -1
  50. package/esm/models/operations/getaddressdetail.d.ts +15 -15
  51. package/esm/models/operations/getaddressdetail.d.ts.map +1 -1
  52. package/esm/models/operations/getaddressdetail.js +15 -17
  53. package/esm/models/operations/getaddressdetail.js.map +1 -1
  54. package/esm/models/operations/getloyaltydetails.d.ts +92 -0
  55. package/esm/models/operations/getloyaltydetails.d.ts.map +1 -0
  56. package/esm/models/operations/getloyaltydetails.js +105 -0
  57. package/esm/models/operations/getloyaltydetails.js.map +1 -0
  58. package/esm/models/operations/getorderdetail.d.ts +6 -6
  59. package/esm/models/operations/getorderdetail.d.ts.map +1 -1
  60. package/esm/models/operations/getorderdetail.js +6 -6
  61. package/esm/models/operations/getorderdetail.js.map +1 -1
  62. package/esm/models/operations/index.d.ts +3 -8
  63. package/esm/models/operations/index.d.ts.map +1 -1
  64. package/esm/models/operations/index.js +3 -8
  65. package/esm/models/operations/index.js.map +1 -1
  66. package/esm/models/operations/redeemloyaltypoints.d.ts +120 -0
  67. package/esm/models/operations/redeemloyaltypoints.d.ts.map +1 -0
  68. package/esm/models/operations/redeemloyaltypoints.js +130 -0
  69. package/esm/models/operations/redeemloyaltypoints.js.map +1 -0
  70. package/esm/models/operations/removeloyaltypoints.d.ts +93 -0
  71. package/esm/models/operations/removeloyaltypoints.d.ts.map +1 -0
  72. package/esm/models/operations/removeloyaltypoints.js +86 -0
  73. package/esm/models/operations/removeloyaltypoints.js.map +1 -0
  74. package/esm/models/operations/retryorderpayment.d.ts +14 -12
  75. package/esm/models/operations/retryorderpayment.d.ts.map +1 -1
  76. package/esm/models/operations/retryorderpayment.js +12 -10
  77. package/esm/models/operations/retryorderpayment.js.map +1 -1
  78. package/esm/sdk/carts.d.ts +14 -0
  79. package/esm/sdk/carts.d.ts.map +1 -1
  80. package/esm/sdk/carts.js +20 -0
  81. package/esm/sdk/carts.js.map +1 -1
  82. package/esm/sdk/customers.d.ts +7 -7
  83. package/esm/sdk/customers.d.ts.map +1 -1
  84. package/esm/sdk/customers.js +10 -10
  85. package/esm/sdk/customers.js.map +1 -1
  86. package/esm/sdk/sdk.d.ts +0 -3
  87. package/esm/sdk/sdk.d.ts.map +1 -1
  88. package/esm/sdk/sdk.js +0 -4
  89. package/esm/sdk/sdk.js.map +1 -1
  90. package/jsr.json +1 -1
  91. package/package.json +1 -1
  92. package/src/funcs/{kycVerifyDocument.ts → cartsRedeemLoyaltyPoints.ts} +19 -14
  93. package/src/funcs/{kycListDocuments.ts → cartsRemoveLoyaltyPoints.ts} +15 -18
  94. package/src/funcs/{kycGetDocument.ts → customersGetLoyaltyDetails.ts} +14 -24
  95. package/src/lib/config.ts +4 -4
  96. package/src/mcp-server/mcp-server.ts +1 -1
  97. package/src/mcp-server/server.ts +7 -17
  98. package/src/mcp-server/tools/{kycListDocuments.ts → cartsRedeemLoyaltyPoints.ts} +7 -7
  99. package/src/mcp-server/tools/{kycDeleteDocument.ts → cartsRemoveLoyaltyPoints.ts} +7 -7
  100. package/src/mcp-server/tools/{kycCreateDocument.ts → customersGetLoyaltyDetails.ts} +7 -7
  101. package/src/models/components/customerloyalty.ts +109 -0
  102. package/src/models/components/index.ts +1 -6
  103. package/src/models/operations/createorder.ts +26 -28
  104. package/src/models/operations/getaddressdetail.ts +57 -66
  105. package/src/models/operations/getloyaltydetails.ts +220 -0
  106. package/src/models/operations/getorderdetail.ts +12 -12
  107. package/src/models/operations/index.ts +3 -8
  108. package/src/models/operations/redeemloyaltypoints.ts +283 -0
  109. package/src/models/operations/removeloyaltypoints.ts +202 -0
  110. package/src/models/operations/retryorderpayment.ts +26 -24
  111. package/src/sdk/carts.ts +36 -0
  112. package/src/sdk/customers.ts +18 -18
  113. package/src/sdk/sdk.ts +0 -6
  114. package/docs/sdks/kyc/README.md +0 -566
  115. package/esm/funcs/customersListAddresses.d.ts +0 -16
  116. package/esm/funcs/customersListAddresses.d.ts.map +0 -1
  117. package/esm/funcs/customersListAddresses.js +0 -86
  118. package/esm/funcs/customersListAddresses.js.map +0 -1
  119. package/esm/funcs/kycCreateDocument.d.ts.map +0 -1
  120. package/esm/funcs/kycCreateDocument.js +0 -110
  121. package/esm/funcs/kycCreateDocument.js.map +0 -1
  122. package/esm/funcs/kycDeleteDocument.d.ts +0 -17
  123. package/esm/funcs/kycDeleteDocument.d.ts.map +0 -1
  124. package/esm/funcs/kycDeleteDocument.js +0 -89
  125. package/esm/funcs/kycDeleteDocument.js.map +0 -1
  126. package/esm/funcs/kycGetDocument.d.ts +0 -17
  127. package/esm/funcs/kycGetDocument.d.ts.map +0 -1
  128. package/esm/funcs/kycGetDocument.js.map +0 -1
  129. package/esm/funcs/kycListDocuments.d.ts.map +0 -1
  130. package/esm/funcs/kycListDocuments.js.map +0 -1
  131. package/esm/funcs/kycListKycDocument.d.ts.map +0 -1
  132. package/esm/funcs/kycListKycDocument.js +0 -70
  133. package/esm/funcs/kycListKycDocument.js.map +0 -1
  134. package/esm/funcs/kycUpdateDocument.d.ts +0 -17
  135. package/esm/funcs/kycUpdateDocument.d.ts.map +0 -1
  136. package/esm/funcs/kycUpdateDocument.js +0 -115
  137. package/esm/funcs/kycUpdateDocument.js.map +0 -1
  138. package/esm/funcs/kycVerifyDocument.d.ts +0 -17
  139. package/esm/funcs/kycVerifyDocument.d.ts.map +0 -1
  140. package/esm/funcs/kycVerifyDocument.js.map +0 -1
  141. package/esm/mcp-server/tools/customersListAddresses.d.ts +0 -8
  142. package/esm/mcp-server/tools/customersListAddresses.d.ts.map +0 -1
  143. package/esm/mcp-server/tools/customersListAddresses.js +0 -28
  144. package/esm/mcp-server/tools/customersListAddresses.js.map +0 -1
  145. package/esm/mcp-server/tools/kycCreateDocument.d.ts +0 -8
  146. package/esm/mcp-server/tools/kycCreateDocument.d.ts.map +0 -1
  147. package/esm/mcp-server/tools/kycCreateDocument.js.map +0 -1
  148. package/esm/mcp-server/tools/kycDeleteDocument.d.ts +0 -8
  149. package/esm/mcp-server/tools/kycDeleteDocument.d.ts.map +0 -1
  150. package/esm/mcp-server/tools/kycDeleteDocument.js +0 -28
  151. package/esm/mcp-server/tools/kycDeleteDocument.js.map +0 -1
  152. package/esm/mcp-server/tools/kycGetDocument.d.ts +0 -8
  153. package/esm/mcp-server/tools/kycGetDocument.d.ts.map +0 -1
  154. package/esm/mcp-server/tools/kycGetDocument.js.map +0 -1
  155. package/esm/mcp-server/tools/kycListDocuments.d.ts +0 -8
  156. package/esm/mcp-server/tools/kycListDocuments.d.ts.map +0 -1
  157. package/esm/mcp-server/tools/kycListDocuments.js.map +0 -1
  158. package/esm/mcp-server/tools/kycListKycDocument.d.ts +0 -3
  159. package/esm/mcp-server/tools/kycListKycDocument.d.ts.map +0 -1
  160. package/esm/mcp-server/tools/kycListKycDocument.js +0 -23
  161. package/esm/mcp-server/tools/kycListKycDocument.js.map +0 -1
  162. package/esm/mcp-server/tools/kycUpdateDocument.d.ts +0 -8
  163. package/esm/mcp-server/tools/kycUpdateDocument.d.ts.map +0 -1
  164. package/esm/mcp-server/tools/kycUpdateDocument.js +0 -28
  165. package/esm/mcp-server/tools/kycUpdateDocument.js.map +0 -1
  166. package/esm/mcp-server/tools/kycVerifyDocument.d.ts +0 -8
  167. package/esm/mcp-server/tools/kycVerifyDocument.d.ts.map +0 -1
  168. package/esm/mcp-server/tools/kycVerifyDocument.js +0 -28
  169. package/esm/mcp-server/tools/kycVerifyDocument.js.map +0 -1
  170. package/esm/models/components/document.d.ts +0 -164
  171. package/esm/models/components/document.d.ts.map +0 -1
  172. package/esm/models/components/document.js +0 -172
  173. package/esm/models/components/document.js.map +0 -1
  174. package/esm/models/components/documentinput.d.ts +0 -65
  175. package/esm/models/components/documentinput.d.ts.map +0 -1
  176. package/esm/models/components/documentinput.js +0 -87
  177. package/esm/models/components/documentinput.js.map +0 -1
  178. package/esm/models/components/gstindetail.d.ts +0 -29
  179. package/esm/models/components/gstindetail.d.ts.map +0 -1
  180. package/esm/models/components/gstindetail.js +0 -31
  181. package/esm/models/components/gstindetail.js.map +0 -1
  182. package/esm/models/components/kycdocument.d.ts +0 -103
  183. package/esm/models/components/kycdocument.d.ts.map +0 -1
  184. package/esm/models/components/kycdocument.js +0 -101
  185. package/esm/models/components/kycdocument.js.map +0 -1
  186. package/esm/models/components/pandetail.d.ts +0 -29
  187. package/esm/models/components/pandetail.d.ts.map +0 -1
  188. package/esm/models/components/pandetail.js +0 -31
  189. package/esm/models/components/pandetail.js.map +0 -1
  190. package/esm/models/components/updatedocument.d.ts +0 -67
  191. package/esm/models/components/updatedocument.d.ts.map +0 -1
  192. package/esm/models/components/updatedocument.js +0 -91
  193. package/esm/models/components/updatedocument.js.map +0 -1
  194. package/esm/models/operations/createdocument.d.ts +0 -92
  195. package/esm/models/operations/createdocument.d.ts.map +0 -1
  196. package/esm/models/operations/createdocument.js +0 -97
  197. package/esm/models/operations/createdocument.js.map +0 -1
  198. package/esm/models/operations/deletedocument.d.ts +0 -67
  199. package/esm/models/operations/deletedocument.d.ts.map +0 -1
  200. package/esm/models/operations/deletedocument.js +0 -69
  201. package/esm/models/operations/deletedocument.js.map +0 -1
  202. package/esm/models/operations/getdocument.d.ts +0 -95
  203. package/esm/models/operations/getdocument.d.ts.map +0 -1
  204. package/esm/models/operations/getdocument.js +0 -97
  205. package/esm/models/operations/getdocument.js.map +0 -1
  206. package/esm/models/operations/listaddresses.d.ts +0 -183
  207. package/esm/models/operations/listaddresses.d.ts.map +0 -1
  208. package/esm/models/operations/listaddresses.js +0 -190
  209. package/esm/models/operations/listaddresses.js.map +0 -1
  210. package/esm/models/operations/listdocuments.d.ts +0 -90
  211. package/esm/models/operations/listdocuments.d.ts.map +0 -1
  212. package/esm/models/operations/listdocuments.js +0 -86
  213. package/esm/models/operations/listdocuments.js.map +0 -1
  214. package/esm/models/operations/listkycdocument.d.ts +0 -64
  215. package/esm/models/operations/listkycdocument.d.ts.map +0 -1
  216. package/esm/models/operations/listkycdocument.js +0 -74
  217. package/esm/models/operations/listkycdocument.js.map +0 -1
  218. package/esm/models/operations/updatedocument.d.ts +0 -97
  219. package/esm/models/operations/updatedocument.d.ts.map +0 -1
  220. package/esm/models/operations/updatedocument.js +0 -101
  221. package/esm/models/operations/updatedocument.js.map +0 -1
  222. package/esm/models/operations/verifydocument.d.ts +0 -140
  223. package/esm/models/operations/verifydocument.d.ts.map +0 -1
  224. package/esm/models/operations/verifydocument.js +0 -168
  225. package/esm/models/operations/verifydocument.js.map +0 -1
  226. package/esm/sdk/kyc.d.ts +0 -54
  227. package/esm/sdk/kyc.d.ts.map +0 -1
  228. package/esm/sdk/kyc.js +0 -78
  229. package/esm/sdk/kyc.js.map +0 -1
  230. package/src/funcs/customersListAddresses.ts +0 -166
  231. package/src/funcs/kycCreateDocument.ts +0 -207
  232. package/src/funcs/kycDeleteDocument.ts +0 -183
  233. package/src/funcs/kycListKycDocument.ts +0 -153
  234. package/src/funcs/kycUpdateDocument.ts +0 -214
  235. package/src/mcp-server/tools/customersListAddresses.ts +0 -37
  236. package/src/mcp-server/tools/kycGetDocument.ts +0 -37
  237. package/src/mcp-server/tools/kycListKycDocument.ts +0 -30
  238. package/src/mcp-server/tools/kycUpdateDocument.ts +0 -37
  239. package/src/mcp-server/tools/kycVerifyDocument.ts +0 -37
  240. package/src/models/components/document.ts +0 -260
  241. package/src/models/components/documentinput.ts +0 -154
  242. package/src/models/components/gstindetail.ts +0 -62
  243. package/src/models/components/kycdocument.ts +0 -161
  244. package/src/models/components/pandetail.ts +0 -62
  245. package/src/models/components/updatedocument.ts +0 -168
  246. package/src/models/operations/createdocument.ts +0 -210
  247. package/src/models/operations/deletedocument.ts +0 -150
  248. package/src/models/operations/getdocument.ts +0 -213
  249. package/src/models/operations/listaddresses.ts +0 -395
  250. package/src/models/operations/listdocuments.ts +0 -197
  251. package/src/models/operations/listkycdocument.ts +0 -153
  252. package/src/models/operations/updatedocument.ts +0 -219
  253. package/src/models/operations/verifydocument.ts +0 -346
  254. package/src/sdk/kyc.ts +0 -133
package/bin/mcp-server.js CHANGED
@@ -4020,15 +4020,15 @@ var ServerStaging = "staging", ServerProd = "prod", ServerList, SDK_METADATA;
4020
4020
  var init_config = __esm(() => {
4021
4021
  init_url();
4022
4022
  ServerList = {
4023
- [ServerStaging]: "https://staging.api.commercengine.io/api/v1/{store_id}/storefront",
4023
+ [ServerStaging]: "https://staging.api.commercengine.io/api/v1/store_id/storefront",
4024
4024
  [ServerProd]: "https://prod.api.commercengine.io/api/v1/{store_id}/storefront"
4025
4025
  };
4026
4026
  SDK_METADATA = {
4027
4027
  language: "typescript",
4028
4028
  openapiDocVersion: "1.0",
4029
- sdkVersion: "0.9.2",
4030
- genVersion: "2.593.3",
4031
- userAgent: "speakeasy-sdk/typescript 0.9.2 2.593.3 1.0 ce-storefront"
4029
+ sdkVersion: "0.10.0",
4030
+ genVersion: "2.593.4",
4031
+ userAgent: "speakeasy-sdk/typescript 0.10.0 2.593.4 1.0 ce-storefront"
4032
4032
  };
4033
4033
  });
4034
4034
 
@@ -34358,17 +34358,6 @@ function queryEncoder(f) {
34358
34358
  };
34359
34359
  return bulkEncode;
34360
34360
  }
34361
- function appendForm(fd, key, value, fileName) {
34362
- if (value == null) {
34363
- return;
34364
- } else if (value instanceof Blob && fileName) {
34365
- fd.append(key, value, fileName);
34366
- } else if (value instanceof Blob) {
34367
- fd.append(key, value);
34368
- } else {
34369
- fd.append(key, String(value));
34370
- }
34371
- }
34372
34361
  var EncodingError, encodeForm, encodeSpaceDelimited, encodePipeDelimited, encodeSimple = (key, value, options) => {
34373
34362
  let out = "";
34374
34363
  const pairs = options?.explode ? explode(key, value) : [[key, value]];
@@ -36510,6 +36499,55 @@ var init_customeraddressinput = __esm(() => {
36510
36499
  })(CustomerAddressInput$ ||= {});
36511
36500
  });
36512
36501
 
36502
+ // src/models/components/customerloyalty.ts
36503
+ var CustomerLoyalty$inboundSchema, CustomerLoyalty$outboundSchema, CustomerLoyalty$;
36504
+ var init_customerloyalty = __esm(() => {
36505
+ init_lib();
36506
+ init_primitives();
36507
+ CustomerLoyalty$inboundSchema = objectType({
36508
+ membership_number: stringType().optional(),
36509
+ loyalty_tier: stringType().optional(),
36510
+ loyalty_point_earned: numberType().int().optional(),
36511
+ loyalty_point_redeemed: numberType().int().optional(),
36512
+ loyalty_point_balance: numberType().int().optional(),
36513
+ loyalty_point_redeemable: numberType().int().optional(),
36514
+ loyalty_point_bonus_accrued: numberType().int().optional()
36515
+ }).transform((v2) => {
36516
+ return remap(v2, {
36517
+ membership_number: "membershipNumber",
36518
+ loyalty_tier: "loyaltyTier",
36519
+ loyalty_point_earned: "loyaltyPointEarned",
36520
+ loyalty_point_redeemed: "loyaltyPointRedeemed",
36521
+ loyalty_point_balance: "loyaltyPointBalance",
36522
+ loyalty_point_redeemable: "loyaltyPointRedeemable",
36523
+ loyalty_point_bonus_accrued: "loyaltyPointBonusAccrued"
36524
+ });
36525
+ });
36526
+ CustomerLoyalty$outboundSchema = objectType({
36527
+ membershipNumber: stringType().optional(),
36528
+ loyaltyTier: stringType().optional(),
36529
+ loyaltyPointEarned: numberType().int().optional(),
36530
+ loyaltyPointRedeemed: numberType().int().optional(),
36531
+ loyaltyPointBalance: numberType().int().optional(),
36532
+ loyaltyPointRedeemable: numberType().int().optional(),
36533
+ loyaltyPointBonusAccrued: numberType().int().optional()
36534
+ }).transform((v2) => {
36535
+ return remap(v2, {
36536
+ membershipNumber: "membership_number",
36537
+ loyaltyTier: "loyalty_tier",
36538
+ loyaltyPointEarned: "loyalty_point_earned",
36539
+ loyaltyPointRedeemed: "loyalty_point_redeemed",
36540
+ loyaltyPointBalance: "loyalty_point_balance",
36541
+ loyaltyPointRedeemable: "loyalty_point_redeemable",
36542
+ loyaltyPointBonusAccrued: "loyalty_point_bonus_accrued"
36543
+ });
36544
+ });
36545
+ ((CustomerLoyalty$) => {
36546
+ CustomerLoyalty$.inboundSchema = CustomerLoyalty$inboundSchema;
36547
+ CustomerLoyalty$.outboundSchema = CustomerLoyalty$outboundSchema;
36548
+ })(CustomerLoyalty$ ||= {});
36549
+ });
36550
+
36513
36551
  // src/models/components/customerreadyforreview.ts
36514
36552
  var CustomerReadyForReview$inboundSchema, CustomerReadyForReview$outboundSchema, CustomerReadyForReview$;
36515
36553
  var init_customerreadyforreview = __esm(() => {
@@ -36771,203 +36809,6 @@ var init_discountbasedpromotion = __esm(() => {
36771
36809
  })(DiscountBasedPromotion$ ||= {});
36772
36810
  });
36773
36811
 
36774
- // src/models/components/document.ts
36775
- var DocumentStatus, DocumentVerificationType, CreatedBy, ModifiedBy, DocumentStatus$inboundSchema, DocumentStatus$outboundSchema, DocumentStatus$, DocumentVerificationType$inboundSchema, DocumentVerificationType$outboundSchema, DocumentVerificationType$, CreatedBy$inboundSchema, CreatedBy$outboundSchema, CreatedBy$, ModifiedBy$inboundSchema, ModifiedBy$outboundSchema, ModifiedBy$, Document$inboundSchema, Document$outboundSchema, Document$;
36776
- var init_document = __esm(() => {
36777
- init_lib();
36778
- init_primitives();
36779
- DocumentStatus = {
36780
- Submitted: "submitted",
36781
- Approved: "approved",
36782
- Rejected: "rejected",
36783
- Expired: "expired"
36784
- };
36785
- DocumentVerificationType = {
36786
- Automatic: "automatic",
36787
- Manual: "manual"
36788
- };
36789
- CreatedBy = {
36790
- Customer: "customer",
36791
- Admin: "admin"
36792
- };
36793
- ModifiedBy = {
36794
- Customer: "customer",
36795
- Admin: "admin"
36796
- };
36797
- DocumentStatus$inboundSchema = nativeEnumType(DocumentStatus);
36798
- DocumentStatus$outboundSchema = DocumentStatus$inboundSchema;
36799
- ((DocumentStatus$) => {
36800
- DocumentStatus$.inboundSchema = DocumentStatus$inboundSchema;
36801
- DocumentStatus$.outboundSchema = DocumentStatus$outboundSchema;
36802
- })(DocumentStatus$ ||= {});
36803
- DocumentVerificationType$inboundSchema = nativeEnumType(DocumentVerificationType);
36804
- DocumentVerificationType$outboundSchema = DocumentVerificationType$inboundSchema;
36805
- ((DocumentVerificationType$) => {
36806
- DocumentVerificationType$.inboundSchema = DocumentVerificationType$inboundSchema;
36807
- DocumentVerificationType$.outboundSchema = DocumentVerificationType$outboundSchema;
36808
- })(DocumentVerificationType$ ||= {});
36809
- CreatedBy$inboundSchema = nativeEnumType(CreatedBy);
36810
- CreatedBy$outboundSchema = CreatedBy$inboundSchema;
36811
- ((CreatedBy$) => {
36812
- CreatedBy$.inboundSchema = CreatedBy$inboundSchema;
36813
- CreatedBy$.outboundSchema = CreatedBy$outboundSchema;
36814
- })(CreatedBy$ ||= {});
36815
- ModifiedBy$inboundSchema = nativeEnumType(ModifiedBy);
36816
- ModifiedBy$outboundSchema = ModifiedBy$inboundSchema;
36817
- ((ModifiedBy$) => {
36818
- ModifiedBy$.inboundSchema = ModifiedBy$inboundSchema;
36819
- ModifiedBy$.outboundSchema = ModifiedBy$outboundSchema;
36820
- })(ModifiedBy$ ||= {});
36821
- Document$inboundSchema = objectType({
36822
- id: stringType().optional(),
36823
- document_number: stringType(),
36824
- note: stringType().optional(),
36825
- status: DocumentStatus$inboundSchema.optional(),
36826
- title: stringType().optional(),
36827
- file_url: stringType().optional(),
36828
- verification_type: DocumentVerificationType$inboundSchema.optional(),
36829
- is_verified: booleanType().optional(),
36830
- verified_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36831
- created_by: CreatedBy$inboundSchema.optional(),
36832
- created_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36833
- modified_by: ModifiedBy$inboundSchema.optional(),
36834
- modified_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional(),
36835
- modified_reason: stringType().optional(),
36836
- expires_at: stringType().datetime({ offset: true }).transform((v2) => new Date(v2)).optional()
36837
- }).transform((v2) => {
36838
- return remap(v2, {
36839
- document_number: "documentNumber",
36840
- file_url: "fileUrl",
36841
- verification_type: "verificationType",
36842
- is_verified: "isVerified",
36843
- verified_at: "verifiedAt",
36844
- created_by: "createdBy",
36845
- created_at: "createdAt",
36846
- modified_by: "modifiedBy",
36847
- modified_at: "modifiedAt",
36848
- modified_reason: "modifiedReason",
36849
- expires_at: "expiresAt"
36850
- });
36851
- });
36852
- Document$outboundSchema = objectType({
36853
- id: stringType().optional(),
36854
- documentNumber: stringType(),
36855
- note: stringType().optional(),
36856
- status: DocumentStatus$outboundSchema.optional(),
36857
- title: stringType().optional(),
36858
- fileUrl: stringType().optional(),
36859
- verificationType: DocumentVerificationType$outboundSchema.optional(),
36860
- isVerified: booleanType().optional(),
36861
- verifiedAt: dateType().transform((v2) => v2.toISOString()).optional(),
36862
- createdBy: CreatedBy$outboundSchema.optional(),
36863
- createdAt: dateType().transform((v2) => v2.toISOString()).optional(),
36864
- modifiedBy: ModifiedBy$outboundSchema.optional(),
36865
- modifiedAt: dateType().transform((v2) => v2.toISOString()).optional(),
36866
- modifiedReason: stringType().optional(),
36867
- expiresAt: dateType().transform((v2) => v2.toISOString()).optional()
36868
- }).transform((v2) => {
36869
- return remap(v2, {
36870
- documentNumber: "document_number",
36871
- fileUrl: "file_url",
36872
- verificationType: "verification_type",
36873
- isVerified: "is_verified",
36874
- verifiedAt: "verified_at",
36875
- createdBy: "created_by",
36876
- createdAt: "created_at",
36877
- modifiedBy: "modified_by",
36878
- modifiedAt: "modified_at",
36879
- modifiedReason: "modified_reason",
36880
- expiresAt: "expires_at"
36881
- });
36882
- });
36883
- ((Document$) => {
36884
- Document$.inboundSchema = Document$inboundSchema;
36885
- Document$.outboundSchema = Document$outboundSchema;
36886
- })(Document$ ||= {});
36887
- });
36888
-
36889
- // src/types/blobs.ts
36890
- function isBlobLike(val) {
36891
- if (val instanceof Blob) {
36892
- return true;
36893
- }
36894
- if (typeof val !== "object" || val == null || !(Symbol.toStringTag in val)) {
36895
- return false;
36896
- }
36897
- const name = val[Symbol.toStringTag];
36898
- if (typeof name !== "string") {
36899
- return false;
36900
- }
36901
- if (name !== "Blob" && name !== "File") {
36902
- return false;
36903
- }
36904
- return "stream" in val && typeof val.stream === "function";
36905
- }
36906
- var blobLikeSchema;
36907
- var init_blobs = __esm(() => {
36908
- init_lib();
36909
- blobLikeSchema = custom(isBlobLike, {
36910
- message: "expected a Blob, File or Blob-like object",
36911
- fatal: true
36912
- });
36913
- });
36914
-
36915
- // src/models/components/documentinput.ts
36916
- var FileT$inboundSchema, FileT$outboundSchema, FileT$, DocumentInput$inboundSchema, DocumentInput$outboundSchema, DocumentInput$;
36917
- var init_documentinput = __esm(() => {
36918
- init_lib();
36919
- init_primitives();
36920
- init_blobs();
36921
- FileT$inboundSchema = objectType({
36922
- fileName: stringType(),
36923
- content: unionType([
36924
- instanceOfType(ReadableStream),
36925
- instanceOfType(Blob),
36926
- instanceOfType(ArrayBuffer),
36927
- instanceOfType(Uint8Array)
36928
- ])
36929
- });
36930
- FileT$outboundSchema = objectType({
36931
- fileName: stringType(),
36932
- content: unionType([
36933
- instanceOfType(ReadableStream),
36934
- instanceOfType(Blob),
36935
- instanceOfType(ArrayBuffer),
36936
- instanceOfType(Uint8Array)
36937
- ])
36938
- });
36939
- ((FileT$) => {
36940
- FileT$.inboundSchema = FileT$inboundSchema;
36941
- FileT$.outboundSchema = FileT$outboundSchema;
36942
- })(FileT$ ||= {});
36943
- DocumentInput$inboundSchema = objectType({
36944
- document_number: stringType(),
36945
- kyc_document_id: stringType(),
36946
- note: stringType().optional(),
36947
- file: lazyType(() => FileT$inboundSchema).optional()
36948
- }).transform((v2) => {
36949
- return remap(v2, {
36950
- document_number: "documentNumber",
36951
- kyc_document_id: "kycDocumentId"
36952
- });
36953
- });
36954
- DocumentInput$outboundSchema = objectType({
36955
- documentNumber: stringType(),
36956
- kycDocumentId: stringType(),
36957
- note: stringType().optional(),
36958
- file: lazyType(() => FileT$outboundSchema).or(blobLikeSchema).optional()
36959
- }).transform((v2) => {
36960
- return remap(v2, {
36961
- documentNumber: "document_number",
36962
- kycDocumentId: "kyc_document_id"
36963
- });
36964
- });
36965
- ((DocumentInput$) => {
36966
- DocumentInput$.inboundSchema = DocumentInput$inboundSchema;
36967
- DocumentInput$.outboundSchema = DocumentInput$outboundSchema;
36968
- })(DocumentInput$ ||= {});
36969
- });
36970
-
36971
36812
  // src/models/components/fixedpricepromotion.ts
36972
36813
  var FixedPricePromotion$inboundSchema, FixedPricePromotion$outboundSchema, FixedPricePromotion$;
36973
36814
  var init_fixedpricepromotion = __esm(() => {
@@ -37030,22 +36871,6 @@ var init_freegoodspromotion = __esm(() => {
37030
36871
  })(FreeGoodsPromotion$ ||= {});
37031
36872
  });
37032
36873
 
37033
- // src/models/components/gstindetail.ts
37034
- var GstinDetail$inboundSchema, GstinDetail$outboundSchema, GstinDetail$;
37035
- var init_gstindetail = __esm(() => {
37036
- init_lib();
37037
- GstinDetail$inboundSchema = objectType({
37038
- id: stringType().optional()
37039
- });
37040
- GstinDetail$outboundSchema = objectType({
37041
- id: stringType().optional()
37042
- });
37043
- ((GstinDetail$) => {
37044
- GstinDetail$.inboundSchema = GstinDetail$inboundSchema;
37045
- GstinDetail$.outboundSchema = GstinDetail$outboundSchema;
37046
- })(GstinDetail$ ||= {});
37047
- });
37048
-
37049
36874
  // src/models/components/multiselectattribute.ts
37050
36875
  var MultiSelectAttribute$inboundSchema, MultiSelectAttribute$outboundSchema, MultiSelectAttribute$;
37051
36876
  var init_multiselectattribute = __esm(() => {
@@ -37758,74 +37583,6 @@ var init_juspaypaymentinfo = __esm(() => {
37758
37583
  })(JuspayPaymentInfo$ ||= {});
37759
37584
  });
37760
37585
 
37761
- // src/models/components/kycdocument.ts
37762
- var DocumentType, VerificationType, DocumentType$inboundSchema, DocumentType$outboundSchema, DocumentType$, VerificationType$inboundSchema, VerificationType$outboundSchema, VerificationType$, KycDocument$inboundSchema, KycDocument$outboundSchema, KycDocument$;
37763
- var init_kycdocument = __esm(() => {
37764
- init_lib();
37765
- init_primitives();
37766
- DocumentType = {
37767
- Gst: "gst",
37768
- Pan: "pan",
37769
- Tin: "tin",
37770
- Cin: "cin",
37771
- Other: "other"
37772
- };
37773
- VerificationType = {
37774
- Auto: "auto",
37775
- Manual: "manual"
37776
- };
37777
- DocumentType$inboundSchema = nativeEnumType(DocumentType);
37778
- DocumentType$outboundSchema = DocumentType$inboundSchema;
37779
- ((DocumentType$) => {
37780
- DocumentType$.inboundSchema = DocumentType$inboundSchema;
37781
- DocumentType$.outboundSchema = DocumentType$outboundSchema;
37782
- })(DocumentType$ ||= {});
37783
- VerificationType$inboundSchema = nativeEnumType(VerificationType);
37784
- VerificationType$outboundSchema = VerificationType$inboundSchema;
37785
- ((VerificationType$) => {
37786
- VerificationType$.inboundSchema = VerificationType$inboundSchema;
37787
- VerificationType$.outboundSchema = VerificationType$outboundSchema;
37788
- })(VerificationType$ ||= {});
37789
- KycDocument$inboundSchema = objectType({
37790
- id: stringType().optional(),
37791
- document_type: DocumentType$inboundSchema.optional(),
37792
- title: stringType().optional(),
37793
- description: nullableType(stringType()).optional(),
37794
- active: booleanType().default(true),
37795
- is_mandatory: booleanType().optional(),
37796
- is_attachment_required: booleanType().optional(),
37797
- verification_type: VerificationType$inboundSchema.optional()
37798
- }).transform((v2) => {
37799
- return remap(v2, {
37800
- document_type: "documentType",
37801
- is_mandatory: "isMandatory",
37802
- is_attachment_required: "isAttachmentRequired",
37803
- verification_type: "verificationType"
37804
- });
37805
- });
37806
- KycDocument$outboundSchema = objectType({
37807
- id: stringType().optional(),
37808
- documentType: DocumentType$outboundSchema.optional(),
37809
- title: stringType().optional(),
37810
- description: nullableType(stringType()).optional(),
37811
- active: booleanType().default(true),
37812
- isMandatory: booleanType().optional(),
37813
- isAttachmentRequired: booleanType().optional(),
37814
- verificationType: VerificationType$outboundSchema.optional()
37815
- }).transform((v2) => {
37816
- return remap(v2, {
37817
- documentType: "document_type",
37818
- isMandatory: "is_mandatory",
37819
- isAttachmentRequired: "is_attachment_required",
37820
- verificationType: "verification_type"
37821
- });
37822
- });
37823
- ((KycDocument$) => {
37824
- KycDocument$.inboundSchema = KycDocument$inboundSchema;
37825
- KycDocument$.outboundSchema = KycDocument$outboundSchema;
37826
- })(KycDocument$ ||= {});
37827
- });
37828
-
37829
37586
  // src/models/components/netbankingpayment.ts
37830
37587
  var NetbankingPaymentTransactionType, NetbankingPaymentPaymentStatus, NetbankingPaymentPaymentMethod, NetbankingPaymentTransactionType$inboundSchema, NetbankingPaymentTransactionType$outboundSchema, NetbankingPaymentTransactionType$, NetbankingPaymentPaymentStatus$inboundSchema, NetbankingPaymentPaymentStatus$outboundSchema, NetbankingPaymentPaymentStatus$, NetbankingPaymentPaymentMethod$inboundSchema, NetbankingPaymentPaymentMethod$outboundSchema, NetbankingPaymentPaymentMethod$, NetbankingPayment$inboundSchema, NetbankingPayment$outboundSchema, NetbankingPayment$;
37831
37588
  var init_netbankingpayment = __esm(() => {
@@ -38872,22 +38629,6 @@ var init_pagination = __esm(() => {
38872
38629
  })(Pagination$ ||= {});
38873
38630
  });
38874
38631
 
38875
- // src/models/components/pandetail.ts
38876
- var PanDetail$inboundSchema, PanDetail$outboundSchema, PanDetail$;
38877
- var init_pandetail = __esm(() => {
38878
- init_lib();
38879
- PanDetail$inboundSchema = objectType({
38880
- id: stringType().optional()
38881
- });
38882
- PanDetail$outboundSchema = objectType({
38883
- id: stringType().optional()
38884
- });
38885
- ((PanDetail$) => {
38886
- PanDetail$.inboundSchema = PanDetail$inboundSchema;
38887
- PanDetail$.outboundSchema = PanDetail$outboundSchema;
38888
- })(PanDetail$ ||= {});
38889
- });
38890
-
38891
38632
  // src/models/components/payupaymentgatewayparams.ts
38892
38633
  var PayuPaymentGatewayParams$inboundSchema, PayuPaymentGatewayParams$outboundSchema, PayuPaymentGatewayParams$;
38893
38634
  var init_payupaymentgatewayparams = __esm(() => {
@@ -39938,66 +39679,6 @@ var init_updatecartitem = __esm(() => {
39938
39679
  })(UpdateCartItem$ ||= {});
39939
39680
  });
39940
39681
 
39941
- // src/models/components/updatedocument.ts
39942
- var UpdateDocumentFile$inboundSchema, UpdateDocumentFile$outboundSchema, UpdateDocumentFile$, UpdateDocument$inboundSchema, UpdateDocument$outboundSchema, UpdateDocument$;
39943
- var init_updatedocument = __esm(() => {
39944
- init_lib();
39945
- init_primitives();
39946
- init_blobs();
39947
- UpdateDocumentFile$inboundSchema = objectType({
39948
- fileName: stringType(),
39949
- content: unionType([
39950
- instanceOfType(ReadableStream),
39951
- instanceOfType(Blob),
39952
- instanceOfType(ArrayBuffer),
39953
- instanceOfType(Uint8Array)
39954
- ])
39955
- });
39956
- UpdateDocumentFile$outboundSchema = objectType({
39957
- fileName: stringType(),
39958
- content: unionType([
39959
- instanceOfType(ReadableStream),
39960
- instanceOfType(Blob),
39961
- instanceOfType(ArrayBuffer),
39962
- instanceOfType(Uint8Array)
39963
- ])
39964
- });
39965
- ((UpdateDocumentFile$) => {
39966
- UpdateDocumentFile$.inboundSchema = UpdateDocumentFile$inboundSchema;
39967
- UpdateDocumentFile$.outboundSchema = UpdateDocumentFile$outboundSchema;
39968
- })(UpdateDocumentFile$ ||= {});
39969
- UpdateDocument$inboundSchema = objectType({
39970
- document_number: stringType(),
39971
- kyc_document_id: stringType(),
39972
- note: stringType().optional(),
39973
- file: lazyType(() => UpdateDocumentFile$inboundSchema).optional(),
39974
- modified_reason: stringType()
39975
- }).transform((v2) => {
39976
- return remap(v2, {
39977
- document_number: "documentNumber",
39978
- kyc_document_id: "kycDocumentId",
39979
- modified_reason: "modifiedReason"
39980
- });
39981
- });
39982
- UpdateDocument$outboundSchema = objectType({
39983
- documentNumber: stringType(),
39984
- kycDocumentId: stringType(),
39985
- note: stringType().optional(),
39986
- file: lazyType(() => UpdateDocumentFile$outboundSchema).or(blobLikeSchema).optional(),
39987
- modifiedReason: stringType()
39988
- }).transform((v2) => {
39989
- return remap(v2, {
39990
- documentNumber: "document_number",
39991
- kycDocumentId: "kyc_document_id",
39992
- modifiedReason: "modified_reason"
39993
- });
39994
- });
39995
- ((UpdateDocument$) => {
39996
- UpdateDocument$.inboundSchema = UpdateDocument$inboundSchema;
39997
- UpdateDocument$.outboundSchema = UpdateDocument$outboundSchema;
39998
- })(UpdateDocument$ ||= {});
39999
- });
40000
-
40001
39682
  // src/models/components/user.ts
40002
39683
  var LoginMethods, LoginMethods$inboundSchema, LoginMethods$outboundSchema, LoginMethods$, User$inboundSchema, User$outboundSchema, User$, UserInput$inboundSchema, UserInput$outboundSchema, UserInput$;
40003
39684
  var init_user = __esm(() => {
@@ -40283,19 +39964,16 @@ var init_components = __esm(() => {
40283
39964
  init_currency();
40284
39965
  init_customeraddress();
40285
39966
  init_customeraddressinput();
39967
+ init_customerloyalty();
40286
39968
  init_customerreadyforreview();
40287
39969
  init_customerreview();
40288
39970
  init_dateattribute();
40289
39971
  init_discountbasedpromotion();
40290
- init_document();
40291
- init_documentinput();
40292
39972
  init_fixedpricepromotion();
40293
39973
  init_freegoodspromotion();
40294
- init_gstindetail();
40295
39974
  init_item();
40296
39975
  init_juspaypaymentgatewayparams();
40297
39976
  init_juspaypaymentinfo();
40298
- init_kycdocument();
40299
39977
  init_multiselectattribute();
40300
39978
  init_netbankingpayment();
40301
39979
  init_notificationchannelpreferences();
@@ -40307,7 +39985,6 @@ var init_components = __esm(() => {
40307
39985
  init_orderpayment();
40308
39986
  init_ordershipment();
40309
39987
  init_pagination();
40310
- init_pandetail();
40311
39988
  init_payupaymentgatewayparams();
40312
39989
  init_payupaymentinfo();
40313
39990
  init_pincode();
@@ -40331,7 +40008,6 @@ var init_components = __esm(() => {
40331
40008
  init_singleselectoption();
40332
40009
  init_textattribute();
40333
40010
  init_updatecartitem();
40334
- init_updatedocument();
40335
40011
  init_upipayment();
40336
40012
  init_user();
40337
40013
  init_variant();
@@ -40861,58 +40537,6 @@ var init_createcartaddress = __esm(() => {
40861
40537
  })(CreateCartAddressResponseBody$ ||= {});
40862
40538
  });
40863
40539
 
40864
- // src/models/operations/createdocument.ts
40865
- var CreateDocumentRequest$inboundSchema, CreateDocumentRequest$outboundSchema, CreateDocumentRequest$, CreateDocumentContent$inboundSchema, CreateDocumentContent$outboundSchema, CreateDocumentContent$, CreateDocumentResponseBody$inboundSchema, CreateDocumentResponseBody$outboundSchema, CreateDocumentResponseBody$;
40866
- var init_createdocument = __esm(() => {
40867
- init_lib();
40868
- init_primitives();
40869
- init_components();
40870
- CreateDocumentRequest$inboundSchema = objectType({
40871
- id: stringType(),
40872
- Document: DocumentInput$inboundSchema.optional()
40873
- }).transform((v2) => {
40874
- return remap(v2, {
40875
- Document: "document"
40876
- });
40877
- });
40878
- CreateDocumentRequest$outboundSchema = objectType({
40879
- id: stringType(),
40880
- document: DocumentInput$outboundSchema.optional()
40881
- }).transform((v2) => {
40882
- return remap(v2, {
40883
- document: "Document"
40884
- });
40885
- });
40886
- ((CreateDocumentRequest$) => {
40887
- CreateDocumentRequest$.inboundSchema = CreateDocumentRequest$inboundSchema;
40888
- CreateDocumentRequest$.outboundSchema = CreateDocumentRequest$outboundSchema;
40889
- })(CreateDocumentRequest$ ||= {});
40890
- CreateDocumentContent$inboundSchema = objectType({
40891
- document: Document$inboundSchema.optional()
40892
- });
40893
- CreateDocumentContent$outboundSchema = objectType({
40894
- document: Document$outboundSchema.optional()
40895
- });
40896
- ((CreateDocumentContent$) => {
40897
- CreateDocumentContent$.inboundSchema = CreateDocumentContent$inboundSchema;
40898
- CreateDocumentContent$.outboundSchema = CreateDocumentContent$outboundSchema;
40899
- })(CreateDocumentContent$ ||= {});
40900
- CreateDocumentResponseBody$inboundSchema = objectType({
40901
- message: stringType().optional(),
40902
- success: booleanType().optional(),
40903
- content: lazyType(() => CreateDocumentContent$inboundSchema).optional()
40904
- });
40905
- CreateDocumentResponseBody$outboundSchema = objectType({
40906
- message: stringType().optional(),
40907
- success: booleanType().optional(),
40908
- content: lazyType(() => CreateDocumentContent$outboundSchema).optional()
40909
- });
40910
- ((CreateDocumentResponseBody$) => {
40911
- CreateDocumentResponseBody$.inboundSchema = CreateDocumentResponseBody$inboundSchema;
40912
- CreateDocumentResponseBody$.outboundSchema = CreateDocumentResponseBody$outboundSchema;
40913
- })(CreateDocumentResponseBody$ ||= {});
40914
- });
40915
-
40916
40540
  // src/models/operations/createnotificationpreferences.ts
40917
40541
  var CreateNotificationPreferencesRequestBody$inboundSchema, CreateNotificationPreferencesRequestBody$outboundSchema, CreateNotificationPreferencesRequestBody$, CreateNotificationPreferencesRequest$inboundSchema, CreateNotificationPreferencesRequest$outboundSchema, CreateNotificationPreferencesRequest$, CreateNotificationPreferencesContent$inboundSchema, CreateNotificationPreferencesContent$outboundSchema, CreateNotificationPreferencesContent$, CreateNotificationPreferencesResponseBody$inboundSchema, CreateNotificationPreferencesResponseBody$outboundSchema, CreateNotificationPreferencesResponseBody$;
40918
40542
  var init_createnotificationpreferences = __esm(() => {
@@ -41088,8 +40712,8 @@ var init_createorder = __esm(() => {
41088
40712
  PaymentInfo$.outboundSchema = PaymentInfo$outboundSchema;
41089
40713
  })(PaymentInfo$ ||= {});
41090
40714
  CreateOrderContent$inboundSchema = objectType({
41091
- order: OrderDetail$inboundSchema.optional(),
41092
- payment_required: booleanType().optional(),
40715
+ order: OrderDetail$inboundSchema,
40716
+ payment_required: booleanType(),
41093
40717
  payment_info: unionType([
41094
40718
  JuspayPaymentInfo$inboundSchema.and(objectType({ payment_gateway: literalType("JUSPAY") }).transform((v2) => ({
41095
40719
  paymentGateway: v2.payment_gateway
@@ -41097,7 +40721,7 @@ var init_createorder = __esm(() => {
41097
40721
  PayuPaymentInfo$inboundSchema.and(objectType({ payment_gateway: literalType("PAYU") }).transform((v2) => ({
41098
40722
  paymentGateway: v2.payment_gateway
41099
40723
  })))
41100
- ]).optional()
40724
+ ])
41101
40725
  }).transform((v2) => {
41102
40726
  return remap(v2, {
41103
40727
  payment_required: "paymentRequired",
@@ -41105,8 +40729,8 @@ var init_createorder = __esm(() => {
41105
40729
  });
41106
40730
  });
41107
40731
  CreateOrderContent$outboundSchema = objectType({
41108
- order: OrderDetail$outboundSchema.optional(),
41109
- paymentRequired: booleanType().optional(),
40732
+ order: OrderDetail$outboundSchema,
40733
+ paymentRequired: booleanType(),
41110
40734
  paymentInfo: unionType([
41111
40735
  JuspayPaymentInfo$outboundSchema.and(objectType({ paymentGateway: literalType("JUSPAY") }).transform((v2) => ({
41112
40736
  payment_gateway: v2.paymentGateway
@@ -41114,7 +40738,7 @@ var init_createorder = __esm(() => {
41114
40738
  PayuPaymentInfo$outboundSchema.and(objectType({ paymentGateway: literalType("PAYU") }).transform((v2) => ({
41115
40739
  payment_gateway: v2.paymentGateway
41116
40740
  })))
41117
- ]).optional()
40741
+ ])
41118
40742
  }).transform((v2) => {
41119
40743
  return remap(v2, {
41120
40744
  paymentRequired: "payment_required",
@@ -41126,14 +40750,14 @@ var init_createorder = __esm(() => {
41126
40750
  CreateOrderContent$.outboundSchema = CreateOrderContent$outboundSchema;
41127
40751
  })(CreateOrderContent$ ||= {});
41128
40752
  CreateOrderResponseBody$inboundSchema = objectType({
41129
- message: stringType().optional(),
41130
- success: booleanType().optional(),
41131
- content: lazyType(() => CreateOrderContent$inboundSchema).optional()
40753
+ message: stringType(),
40754
+ success: booleanType(),
40755
+ content: lazyType(() => CreateOrderContent$inboundSchema)
41132
40756
  });
41133
40757
  CreateOrderResponseBody$outboundSchema = objectType({
41134
- message: stringType().optional(),
41135
- success: booleanType().optional(),
41136
- content: lazyType(() => CreateOrderContent$outboundSchema).optional()
40758
+ message: stringType(),
40759
+ success: booleanType(),
40760
+ content: lazyType(() => CreateOrderContent$outboundSchema)
41137
40761
  });
41138
40762
  ((CreateOrderResponseBody$) => {
41139
40763
  CreateOrderResponseBody$.inboundSchema = CreateOrderResponseBody$inboundSchema;
@@ -41210,45 +40834,6 @@ var init_deletecart = __esm(() => {
41210
40834
  })(DeleteCartResponseBody$ ||= {});
41211
40835
  });
41212
40836
 
41213
- // src/models/operations/deletedocument.ts
41214
- var DeleteDocumentRequest$inboundSchema, DeleteDocumentRequest$outboundSchema, DeleteDocumentRequest$, DeleteDocumentResponseBody$inboundSchema, DeleteDocumentResponseBody$outboundSchema, DeleteDocumentResponseBody$;
41215
- var init_deletedocument = __esm(() => {
41216
- init_lib();
41217
- init_primitives();
41218
- DeleteDocumentRequest$inboundSchema = objectType({
41219
- id: stringType(),
41220
- document_id: stringType()
41221
- }).transform((v2) => {
41222
- return remap(v2, {
41223
- document_id: "documentId"
41224
- });
41225
- });
41226
- DeleteDocumentRequest$outboundSchema = objectType({
41227
- id: stringType(),
41228
- documentId: stringType()
41229
- }).transform((v2) => {
41230
- return remap(v2, {
41231
- documentId: "document_id"
41232
- });
41233
- });
41234
- ((DeleteDocumentRequest$) => {
41235
- DeleteDocumentRequest$.inboundSchema = DeleteDocumentRequest$inboundSchema;
41236
- DeleteDocumentRequest$.outboundSchema = DeleteDocumentRequest$outboundSchema;
41237
- })(DeleteDocumentRequest$ ||= {});
41238
- DeleteDocumentResponseBody$inboundSchema = objectType({
41239
- message: stringType().optional(),
41240
- success: booleanType().optional()
41241
- });
41242
- DeleteDocumentResponseBody$outboundSchema = objectType({
41243
- message: stringType().optional(),
41244
- success: booleanType().optional()
41245
- });
41246
- ((DeleteDocumentResponseBody$) => {
41247
- DeleteDocumentResponseBody$.inboundSchema = DeleteDocumentResponseBody$inboundSchema;
41248
- DeleteDocumentResponseBody$.outboundSchema = DeleteDocumentResponseBody$outboundSchema;
41249
- })(DeleteDocumentResponseBody$ ||= {});
41250
- });
41251
-
41252
40837
  // src/models/operations/deleteusercart.ts
41253
40838
  var DeleteUserCartRequest$inboundSchema, DeleteUserCartRequest$outboundSchema, DeleteUserCartRequest$, DeleteUserCartResponseBody$inboundSchema, DeleteUserCartResponseBody$outboundSchema, DeleteUserCartResponseBody$;
41254
40839
  var init_deleteusercart = __esm(() => {
@@ -41384,7 +40969,7 @@ var init_generateotp = __esm(() => {
41384
40969
  });
41385
40970
 
41386
40971
  // src/models/operations/getaddressdetail.ts
41387
- var GetAddressDetailRequest$inboundSchema, GetAddressDetailRequest$outboundSchema, GetAddressDetailRequest$, GetAddressDetailAddress$inboundSchema, GetAddressDetailAddress$outboundSchema, GetAddressDetailAddress$, GetAddressDetailContent$inboundSchema, GetAddressDetailContent$outboundSchema, GetAddressDetailContent$, GetAddressDetailResponseBody$inboundSchema, GetAddressDetailResponseBody$outboundSchema, GetAddressDetailResponseBody$;
40972
+ var GetAddressDetailRequest$inboundSchema, GetAddressDetailRequest$outboundSchema, GetAddressDetailRequest$, Address$inboundSchema, Address$outboundSchema, Address$, GetAddressDetailContent$inboundSchema, GetAddressDetailContent$outboundSchema, GetAddressDetailContent$, GetAddressDetailResponseBody$inboundSchema, GetAddressDetailResponseBody$outboundSchema, GetAddressDetailResponseBody$;
41388
40973
  var init_getaddressdetail = __esm(() => {
41389
40974
  init_lib();
41390
40975
  init_primitives();
@@ -41410,7 +40995,7 @@ var init_getaddressdetail = __esm(() => {
41410
40995
  GetAddressDetailRequest$.inboundSchema = GetAddressDetailRequest$inboundSchema;
41411
40996
  GetAddressDetailRequest$.outboundSchema = GetAddressDetailRequest$outboundSchema;
41412
40997
  })(GetAddressDetailRequest$ ||= {});
41413
- GetAddressDetailAddress$inboundSchema = objectType({
40998
+ Address$inboundSchema = objectType({
41414
40999
  id: nullableType(stringType()),
41415
41000
  first_name: stringType(),
41416
41001
  last_name: nullableType(stringType()),
@@ -41445,7 +41030,7 @@ var init_getaddressdetail = __esm(() => {
41445
41030
  is_default_shipping: "isDefaultShipping"
41446
41031
  });
41447
41032
  });
41448
- GetAddressDetailAddress$outboundSchema = objectType({
41033
+ Address$outboundSchema = objectType({
41449
41034
  id: nullableType(stringType()),
41450
41035
  firstName: stringType(),
41451
41036
  lastName: nullableType(stringType()),
@@ -41480,15 +41065,15 @@ var init_getaddressdetail = __esm(() => {
41480
41065
  isDefaultShipping: "is_default_shipping"
41481
41066
  });
41482
41067
  });
41483
- ((GetAddressDetailAddress$) => {
41484
- GetAddressDetailAddress$.inboundSchema = GetAddressDetailAddress$inboundSchema;
41485
- GetAddressDetailAddress$.outboundSchema = GetAddressDetailAddress$outboundSchema;
41486
- })(GetAddressDetailAddress$ ||= {});
41068
+ ((Address$) => {
41069
+ Address$.inboundSchema = Address$inboundSchema;
41070
+ Address$.outboundSchema = Address$outboundSchema;
41071
+ })(Address$ ||= {});
41487
41072
  GetAddressDetailContent$inboundSchema = objectType({
41488
- address: nullableType(lazyType(() => GetAddressDetailAddress$inboundSchema)).optional()
41073
+ address: nullableType(lazyType(() => Address$inboundSchema)).optional()
41489
41074
  });
41490
41075
  GetAddressDetailContent$outboundSchema = objectType({
41491
- address: nullableType(lazyType(() => GetAddressDetailAddress$outboundSchema)).optional()
41076
+ address: nullableType(lazyType(() => Address$outboundSchema)).optional()
41492
41077
  });
41493
41078
  ((GetAddressDetailContent$) => {
41494
41079
  GetAddressDetailContent$.inboundSchema = GetAddressDetailContent$inboundSchema;
@@ -41615,56 +41200,64 @@ var init_getcart = __esm(() => {
41615
41200
  })(GetCartResponseBody$ ||= {});
41616
41201
  });
41617
41202
 
41618
- // src/models/operations/getdocument.ts
41619
- var GetDocumentRequest$inboundSchema, GetDocumentRequest$outboundSchema, GetDocumentRequest$, GetDocumentContent$inboundSchema, GetDocumentContent$outboundSchema, GetDocumentContent$, GetDocumentResponseBody$inboundSchema, GetDocumentResponseBody$outboundSchema, GetDocumentResponseBody$;
41620
- var init_getdocument = __esm(() => {
41203
+ // src/models/operations/getloyaltydetails.ts
41204
+ var GetLoyaltyDetailsRequest$inboundSchema, GetLoyaltyDetailsRequest$outboundSchema, GetLoyaltyDetailsRequest$, GetLoyaltyDetailsContent$inboundSchema, GetLoyaltyDetailsContent$outboundSchema, GetLoyaltyDetailsContent$, GetLoyaltyDetailsResponseBody$inboundSchema, GetLoyaltyDetailsResponseBody$outboundSchema, GetLoyaltyDetailsResponseBody$;
41205
+ var init_getloyaltydetails = __esm(() => {
41621
41206
  init_lib();
41622
41207
  init_primitives();
41623
41208
  init_components();
41624
- GetDocumentRequest$inboundSchema = objectType({
41625
- id: stringType(),
41626
- document_id: stringType()
41209
+ GetLoyaltyDetailsRequest$inboundSchema = objectType({
41210
+ user_id: stringType()
41627
41211
  }).transform((v2) => {
41628
41212
  return remap(v2, {
41629
- document_id: "documentId"
41213
+ user_id: "userId"
41630
41214
  });
41631
41215
  });
41632
- GetDocumentRequest$outboundSchema = objectType({
41633
- id: stringType(),
41634
- documentId: stringType()
41216
+ GetLoyaltyDetailsRequest$outboundSchema = objectType({
41217
+ userId: stringType()
41635
41218
  }).transform((v2) => {
41636
41219
  return remap(v2, {
41637
- documentId: "document_id"
41220
+ userId: "user_id"
41638
41221
  });
41639
41222
  });
41640
- ((GetDocumentRequest$) => {
41641
- GetDocumentRequest$.inboundSchema = GetDocumentRequest$inboundSchema;
41642
- GetDocumentRequest$.outboundSchema = GetDocumentRequest$outboundSchema;
41643
- })(GetDocumentRequest$ ||= {});
41644
- GetDocumentContent$inboundSchema = objectType({
41645
- document: Document$inboundSchema.optional()
41223
+ ((GetLoyaltyDetailsRequest$) => {
41224
+ GetLoyaltyDetailsRequest$.inboundSchema = GetLoyaltyDetailsRequest$inboundSchema;
41225
+ GetLoyaltyDetailsRequest$.outboundSchema = GetLoyaltyDetailsRequest$outboundSchema;
41226
+ })(GetLoyaltyDetailsRequest$ ||= {});
41227
+ GetLoyaltyDetailsContent$inboundSchema = objectType({
41228
+ loyalty: CustomerLoyalty$inboundSchema.optional(),
41229
+ loyalty_point_balance: numberType().int().optional()
41230
+ }).transform((v2) => {
41231
+ return remap(v2, {
41232
+ loyalty_point_balance: "loyaltyPointBalance"
41233
+ });
41646
41234
  });
41647
- GetDocumentContent$outboundSchema = objectType({
41648
- document: Document$outboundSchema.optional()
41235
+ GetLoyaltyDetailsContent$outboundSchema = objectType({
41236
+ loyalty: CustomerLoyalty$outboundSchema.optional(),
41237
+ loyaltyPointBalance: numberType().int().optional()
41238
+ }).transform((v2) => {
41239
+ return remap(v2, {
41240
+ loyaltyPointBalance: "loyalty_point_balance"
41241
+ });
41649
41242
  });
41650
- ((GetDocumentContent$) => {
41651
- GetDocumentContent$.inboundSchema = GetDocumentContent$inboundSchema;
41652
- GetDocumentContent$.outboundSchema = GetDocumentContent$outboundSchema;
41653
- })(GetDocumentContent$ ||= {});
41654
- GetDocumentResponseBody$inboundSchema = objectType({
41243
+ ((GetLoyaltyDetailsContent$) => {
41244
+ GetLoyaltyDetailsContent$.inboundSchema = GetLoyaltyDetailsContent$inboundSchema;
41245
+ GetLoyaltyDetailsContent$.outboundSchema = GetLoyaltyDetailsContent$outboundSchema;
41246
+ })(GetLoyaltyDetailsContent$ ||= {});
41247
+ GetLoyaltyDetailsResponseBody$inboundSchema = objectType({
41655
41248
  message: stringType().optional(),
41656
41249
  success: booleanType().optional(),
41657
- content: lazyType(() => GetDocumentContent$inboundSchema).optional()
41250
+ content: lazyType(() => GetLoyaltyDetailsContent$inboundSchema).optional()
41658
41251
  });
41659
- GetDocumentResponseBody$outboundSchema = objectType({
41252
+ GetLoyaltyDetailsResponseBody$outboundSchema = objectType({
41660
41253
  message: stringType().optional(),
41661
41254
  success: booleanType().optional(),
41662
- content: lazyType(() => GetDocumentContent$outboundSchema).optional()
41255
+ content: lazyType(() => GetLoyaltyDetailsContent$outboundSchema).optional()
41663
41256
  });
41664
- ((GetDocumentResponseBody$) => {
41665
- GetDocumentResponseBody$.inboundSchema = GetDocumentResponseBody$inboundSchema;
41666
- GetDocumentResponseBody$.outboundSchema = GetDocumentResponseBody$outboundSchema;
41667
- })(GetDocumentResponseBody$ ||= {});
41257
+ ((GetLoyaltyDetailsResponseBody$) => {
41258
+ GetLoyaltyDetailsResponseBody$.inboundSchema = GetLoyaltyDetailsResponseBody$inboundSchema;
41259
+ GetLoyaltyDetailsResponseBody$.outboundSchema = GetLoyaltyDetailsResponseBody$outboundSchema;
41260
+ })(GetLoyaltyDetailsResponseBody$ ||= {});
41668
41261
  });
41669
41262
 
41670
41263
  // src/models/operations/getnotificationpreferences.ts
@@ -41742,10 +41335,10 @@ var init_getorderdetail = __esm(() => {
41742
41335
  GetOrderDetailRequest$.outboundSchema = GetOrderDetailRequest$outboundSchema;
41743
41336
  })(GetOrderDetailRequest$ ||= {});
41744
41337
  GetOrderDetailContent$inboundSchema = objectType({
41745
- order: OrderDetail$inboundSchema.optional()
41338
+ order: OrderDetail$inboundSchema
41746
41339
  });
41747
41340
  GetOrderDetailContent$outboundSchema = objectType({
41748
- order: OrderDetail$outboundSchema.optional()
41341
+ order: OrderDetail$outboundSchema
41749
41342
  });
41750
41343
  ((GetOrderDetailContent$) => {
41751
41344
  GetOrderDetailContent$.inboundSchema = GetOrderDetailContent$inboundSchema;
@@ -41753,13 +41346,13 @@ var init_getorderdetail = __esm(() => {
41753
41346
  })(GetOrderDetailContent$ ||= {});
41754
41347
  GetOrderDetailResponseBody$inboundSchema = objectType({
41755
41348
  message: stringType().default("order details"),
41756
- success: booleanType().optional(),
41757
- content: lazyType(() => GetOrderDetailContent$inboundSchema).optional()
41349
+ success: booleanType(),
41350
+ content: lazyType(() => GetOrderDetailContent$inboundSchema)
41758
41351
  });
41759
41352
  GetOrderDetailResponseBody$outboundSchema = objectType({
41760
41353
  message: stringType().default("order details"),
41761
- success: booleanType().optional(),
41762
- content: lazyType(() => GetOrderDetailContent$outboundSchema).optional()
41354
+ success: booleanType(),
41355
+ content: lazyType(() => GetOrderDetailContent$outboundSchema)
41763
41356
  });
41764
41357
  ((GetOrderDetailResponseBody$) => {
41765
41358
  GetOrderDetailResponseBody$.inboundSchema = GetOrderDetailResponseBody$inboundSchema;
@@ -42049,136 +41642,6 @@ var init_getvariantdetail = __esm(() => {
42049
41642
  })(GetVariantDetailResponseBody$ ||= {});
42050
41643
  });
42051
41644
 
42052
- // src/models/operations/listaddresses.ts
42053
- var ListAddressesRequest$inboundSchema, ListAddressesRequest$outboundSchema, ListAddressesRequest$, Address$inboundSchema, Address$outboundSchema, Address$, ListAddressesContent$inboundSchema, ListAddressesContent$outboundSchema, ListAddressesContent$, ListAddressesResponseBody$inboundSchema, ListAddressesResponseBody$outboundSchema, ListAddressesResponseBody$;
42054
- var init_listaddresses = __esm(() => {
42055
- init_lib();
42056
- init_primitives();
42057
- init_components();
42058
- ListAddressesRequest$inboundSchema = objectType({
42059
- page: numberType().optional(),
42060
- limit: numberType().int().optional(),
42061
- user_id: stringType()
42062
- }).transform((v2) => {
42063
- return remap(v2, {
42064
- user_id: "userId"
42065
- });
42066
- });
42067
- ListAddressesRequest$outboundSchema = objectType({
42068
- page: numberType().optional(),
42069
- limit: numberType().int().optional(),
42070
- userId: stringType()
42071
- }).transform((v2) => {
42072
- return remap(v2, {
42073
- userId: "user_id"
42074
- });
42075
- });
42076
- ((ListAddressesRequest$) => {
42077
- ListAddressesRequest$.inboundSchema = ListAddressesRequest$inboundSchema;
42078
- ListAddressesRequest$.outboundSchema = ListAddressesRequest$outboundSchema;
42079
- })(ListAddressesRequest$ ||= {});
42080
- Address$inboundSchema = objectType({
42081
- id: nullableType(stringType()),
42082
- first_name: stringType(),
42083
- last_name: nullableType(stringType()),
42084
- country_code: stringType(),
42085
- phone: stringType(),
42086
- email: stringType(),
42087
- address_line1: stringType(),
42088
- address_line2: nullableType(stringType()),
42089
- landmark: nullableType(stringType()),
42090
- pincode: stringType(),
42091
- city: stringType(),
42092
- state: stringType(),
42093
- country: literalType("India").optional(),
42094
- tax_identification_number: nullableType(stringType()),
42095
- business_name: nullableType(stringType()),
42096
- is_phone_verified: booleanType(),
42097
- is_email_verified: booleanType(),
42098
- is_default_billing: booleanType().optional(),
42099
- is_default_shipping: booleanType().optional()
42100
- }).transform((v2) => {
42101
- return remap(v2, {
42102
- first_name: "firstName",
42103
- last_name: "lastName",
42104
- country_code: "countryCode",
42105
- address_line1: "addressLine1",
42106
- address_line2: "addressLine2",
42107
- tax_identification_number: "taxIdentificationNumber",
42108
- business_name: "businessName",
42109
- is_phone_verified: "isPhoneVerified",
42110
- is_email_verified: "isEmailVerified",
42111
- is_default_billing: "isDefaultBilling",
42112
- is_default_shipping: "isDefaultShipping"
42113
- });
42114
- });
42115
- Address$outboundSchema = objectType({
42116
- id: nullableType(stringType()),
42117
- firstName: stringType(),
42118
- lastName: nullableType(stringType()),
42119
- countryCode: stringType(),
42120
- phone: stringType(),
42121
- email: stringType(),
42122
- addressLine1: stringType(),
42123
- addressLine2: nullableType(stringType()),
42124
- landmark: nullableType(stringType()),
42125
- pincode: stringType(),
42126
- city: stringType(),
42127
- state: stringType(),
42128
- country: literalType("India").default("India"),
42129
- taxIdentificationNumber: nullableType(stringType()),
42130
- businessName: nullableType(stringType()),
42131
- isPhoneVerified: booleanType(),
42132
- isEmailVerified: booleanType(),
42133
- isDefaultBilling: booleanType().optional(),
42134
- isDefaultShipping: booleanType().optional()
42135
- }).transform((v2) => {
42136
- return remap(v2, {
42137
- firstName: "first_name",
42138
- lastName: "last_name",
42139
- countryCode: "country_code",
42140
- addressLine1: "address_line1",
42141
- addressLine2: "address_line2",
42142
- taxIdentificationNumber: "tax_identification_number",
42143
- businessName: "business_name",
42144
- isPhoneVerified: "is_phone_verified",
42145
- isEmailVerified: "is_email_verified",
42146
- isDefaultBilling: "is_default_billing",
42147
- isDefaultShipping: "is_default_shipping"
42148
- });
42149
- });
42150
- ((Address$) => {
42151
- Address$.inboundSchema = Address$inboundSchema;
42152
- Address$.outboundSchema = Address$outboundSchema;
42153
- })(Address$ ||= {});
42154
- ListAddressesContent$inboundSchema = objectType({
42155
- address: arrayType(nullableType(lazyType(() => Address$inboundSchema))).optional(),
42156
- pagination: Pagination$inboundSchema.optional()
42157
- });
42158
- ListAddressesContent$outboundSchema = objectType({
42159
- address: arrayType(nullableType(lazyType(() => Address$outboundSchema))).optional(),
42160
- pagination: Pagination$outboundSchema.optional()
42161
- });
42162
- ((ListAddressesContent$) => {
42163
- ListAddressesContent$.inboundSchema = ListAddressesContent$inboundSchema;
42164
- ListAddressesContent$.outboundSchema = ListAddressesContent$outboundSchema;
42165
- })(ListAddressesContent$ ||= {});
42166
- ListAddressesResponseBody$inboundSchema = objectType({
42167
- message: stringType().optional(),
42168
- success: booleanType().optional(),
42169
- content: lazyType(() => ListAddressesContent$inboundSchema).optional()
42170
- });
42171
- ListAddressesResponseBody$outboundSchema = objectType({
42172
- message: stringType().optional(),
42173
- success: booleanType().optional(),
42174
- content: lazyType(() => ListAddressesContent$outboundSchema).optional()
42175
- });
42176
- ((ListAddressesResponseBody$) => {
42177
- ListAddressesResponseBody$.inboundSchema = ListAddressesResponseBody$inboundSchema;
42178
- ListAddressesResponseBody$.outboundSchema = ListAddressesResponseBody$outboundSchema;
42179
- })(ListAddressesResponseBody$ ||= {});
42180
- });
42181
-
42182
41645
  // src/models/operations/listcategories.ts
42183
41646
  var ListCategoriesRequest$inboundSchema, ListCategoriesRequest$outboundSchema, ListCategoriesRequest$, ListCategoriesContent$inboundSchema, ListCategoriesContent$outboundSchema, ListCategoriesContent$, ListCategoriesResponseBody$inboundSchema, ListCategoriesResponseBody$outboundSchema, ListCategoriesResponseBody$;
42184
41647
  var init_listcategories = __esm(() => {
@@ -42357,91 +41820,6 @@ var init_listcrosssellproducts = __esm(() => {
42357
41820
  })(ListCrosssellProductsResponseBody$ ||= {});
42358
41821
  });
42359
41822
 
42360
- // src/models/operations/listdocuments.ts
42361
- var ListDocumentsRequest$inboundSchema, ListDocumentsRequest$outboundSchema, ListDocumentsRequest$, ListDocumentsContent$inboundSchema, ListDocumentsContent$outboundSchema, ListDocumentsContent$, ListDocumentsResponseBody$inboundSchema, ListDocumentsResponseBody$outboundSchema, ListDocumentsResponseBody$;
42362
- var init_listdocuments = __esm(() => {
42363
- init_lib();
42364
- init_components();
42365
- ListDocumentsRequest$inboundSchema = objectType({
42366
- id: stringType()
42367
- });
42368
- ListDocumentsRequest$outboundSchema = objectType({
42369
- id: stringType()
42370
- });
42371
- ((ListDocumentsRequest$) => {
42372
- ListDocumentsRequest$.inboundSchema = ListDocumentsRequest$inboundSchema;
42373
- ListDocumentsRequest$.outboundSchema = ListDocumentsRequest$outboundSchema;
42374
- })(ListDocumentsRequest$ ||= {});
42375
- ListDocumentsContent$inboundSchema = objectType({
42376
- documents: arrayType(Document$inboundSchema).optional()
42377
- });
42378
- ListDocumentsContent$outboundSchema = objectType({
42379
- documents: arrayType(Document$outboundSchema).optional()
42380
- });
42381
- ((ListDocumentsContent$) => {
42382
- ListDocumentsContent$.inboundSchema = ListDocumentsContent$inboundSchema;
42383
- ListDocumentsContent$.outboundSchema = ListDocumentsContent$outboundSchema;
42384
- })(ListDocumentsContent$ ||= {});
42385
- ListDocumentsResponseBody$inboundSchema = objectType({
42386
- message: stringType().optional(),
42387
- success: booleanType().optional(),
42388
- content: lazyType(() => ListDocumentsContent$inboundSchema).optional()
42389
- });
42390
- ListDocumentsResponseBody$outboundSchema = objectType({
42391
- message: stringType().optional(),
42392
- success: booleanType().optional(),
42393
- content: lazyType(() => ListDocumentsContent$outboundSchema).optional()
42394
- });
42395
- ((ListDocumentsResponseBody$) => {
42396
- ListDocumentsResponseBody$.inboundSchema = ListDocumentsResponseBody$inboundSchema;
42397
- ListDocumentsResponseBody$.outboundSchema = ListDocumentsResponseBody$outboundSchema;
42398
- })(ListDocumentsResponseBody$ ||= {});
42399
- });
42400
-
42401
- // src/models/operations/listkycdocument.ts
42402
- var ListKycDocumentContent$inboundSchema, ListKycDocumentContent$outboundSchema, ListKycDocumentContent$, ListKycDocumentResponseBody$inboundSchema, ListKycDocumentResponseBody$outboundSchema, ListKycDocumentResponseBody$;
42403
- var init_listkycdocument = __esm(() => {
42404
- init_lib();
42405
- init_primitives();
42406
- init_components();
42407
- ListKycDocumentContent$inboundSchema = objectType({
42408
- kyc_documents: arrayType(KycDocument$inboundSchema).optional(),
42409
- is_kyc_enabled: booleanType().default(false)
42410
- }).transform((v2) => {
42411
- return remap(v2, {
42412
- kyc_documents: "kycDocuments",
42413
- is_kyc_enabled: "isKycEnabled"
42414
- });
42415
- });
42416
- ListKycDocumentContent$outboundSchema = objectType({
42417
- kycDocuments: arrayType(KycDocument$outboundSchema).optional(),
42418
- isKycEnabled: booleanType().default(false)
42419
- }).transform((v2) => {
42420
- return remap(v2, {
42421
- kycDocuments: "kyc_documents",
42422
- isKycEnabled: "is_kyc_enabled"
42423
- });
42424
- });
42425
- ((ListKycDocumentContent$) => {
42426
- ListKycDocumentContent$.inboundSchema = ListKycDocumentContent$inboundSchema;
42427
- ListKycDocumentContent$.outboundSchema = ListKycDocumentContent$outboundSchema;
42428
- })(ListKycDocumentContent$ ||= {});
42429
- ListKycDocumentResponseBody$inboundSchema = objectType({
42430
- message: stringType().optional(),
42431
- success: booleanType().optional(),
42432
- content: lazyType(() => ListKycDocumentContent$inboundSchema).optional()
42433
- });
42434
- ListKycDocumentResponseBody$outboundSchema = objectType({
42435
- message: stringType().optional(),
42436
- success: booleanType().optional(),
42437
- content: lazyType(() => ListKycDocumentContent$outboundSchema).optional()
42438
- });
42439
- ((ListKycDocumentResponseBody$) => {
42440
- ListKycDocumentResponseBody$.inboundSchema = ListKycDocumentResponseBody$inboundSchema;
42441
- ListKycDocumentResponseBody$.outboundSchema = ListKycDocumentResponseBody$outboundSchema;
42442
- })(ListKycDocumentResponseBody$ ||= {});
42443
- });
42444
-
42445
41823
  // src/models/operations/listorders.ts
42446
41824
  var ListOrdersRequest$inboundSchema, ListOrdersRequest$outboundSchema, ListOrdersRequest$, ListOrdersContent$inboundSchema, ListOrdersContent$outboundSchema, ListOrdersContent$, ListOrdersResponseBody$inboundSchema, ListOrdersResponseBody$outboundSchema, ListOrdersResponseBody$;
42447
41825
  var init_listorders = __esm(() => {
@@ -43237,6 +42615,76 @@ var init_logout = __esm(() => {
43237
42615
  })(LogoutResponseBody$ ||= {});
43238
42616
  });
43239
42617
 
42618
+ // src/models/operations/redeemloyaltypoints.ts
42619
+ var RedeemLoyaltyPointsRequestBody$inboundSchema, RedeemLoyaltyPointsRequestBody$outboundSchema, RedeemLoyaltyPointsRequestBody$, RedeemLoyaltyPointsRequest$inboundSchema, RedeemLoyaltyPointsRequest$outboundSchema, RedeemLoyaltyPointsRequest$, RedeemLoyaltyPointsContent$inboundSchema, RedeemLoyaltyPointsContent$outboundSchema, RedeemLoyaltyPointsContent$, RedeemLoyaltyPointsResponseBody$inboundSchema, RedeemLoyaltyPointsResponseBody$outboundSchema, RedeemLoyaltyPointsResponseBody$;
42620
+ var init_redeemloyaltypoints = __esm(() => {
42621
+ init_lib();
42622
+ init_primitives();
42623
+ init_components();
42624
+ RedeemLoyaltyPointsRequestBody$inboundSchema = objectType({
42625
+ loyalty_point_redeemed: numberType().int()
42626
+ }).transform((v2) => {
42627
+ return remap(v2, {
42628
+ loyalty_point_redeemed: "loyaltyPointRedeemed"
42629
+ });
42630
+ });
42631
+ RedeemLoyaltyPointsRequestBody$outboundSchema = objectType({
42632
+ loyaltyPointRedeemed: numberType().int()
42633
+ }).transform((v2) => {
42634
+ return remap(v2, {
42635
+ loyaltyPointRedeemed: "loyalty_point_redeemed"
42636
+ });
42637
+ });
42638
+ ((RedeemLoyaltyPointsRequestBody$) => {
42639
+ RedeemLoyaltyPointsRequestBody$.inboundSchema = RedeemLoyaltyPointsRequestBody$inboundSchema;
42640
+ RedeemLoyaltyPointsRequestBody$.outboundSchema = RedeemLoyaltyPointsRequestBody$outboundSchema;
42641
+ })(RedeemLoyaltyPointsRequestBody$ ||= {});
42642
+ RedeemLoyaltyPointsRequest$inboundSchema = objectType({
42643
+ id: stringType(),
42644
+ RequestBody: lazyType(() => RedeemLoyaltyPointsRequestBody$inboundSchema)
42645
+ }).transform((v2) => {
42646
+ return remap(v2, {
42647
+ RequestBody: "requestBody"
42648
+ });
42649
+ });
42650
+ RedeemLoyaltyPointsRequest$outboundSchema = objectType({
42651
+ id: stringType(),
42652
+ requestBody: lazyType(() => RedeemLoyaltyPointsRequestBody$outboundSchema)
42653
+ }).transform((v2) => {
42654
+ return remap(v2, {
42655
+ requestBody: "RequestBody"
42656
+ });
42657
+ });
42658
+ ((RedeemLoyaltyPointsRequest$) => {
42659
+ RedeemLoyaltyPointsRequest$.inboundSchema = RedeemLoyaltyPointsRequest$inboundSchema;
42660
+ RedeemLoyaltyPointsRequest$.outboundSchema = RedeemLoyaltyPointsRequest$outboundSchema;
42661
+ })(RedeemLoyaltyPointsRequest$ ||= {});
42662
+ RedeemLoyaltyPointsContent$inboundSchema = objectType({
42663
+ cart: Cart$inboundSchema
42664
+ });
42665
+ RedeemLoyaltyPointsContent$outboundSchema = objectType({
42666
+ cart: Cart$outboundSchema
42667
+ });
42668
+ ((RedeemLoyaltyPointsContent$) => {
42669
+ RedeemLoyaltyPointsContent$.inboundSchema = RedeemLoyaltyPointsContent$inboundSchema;
42670
+ RedeemLoyaltyPointsContent$.outboundSchema = RedeemLoyaltyPointsContent$outboundSchema;
42671
+ })(RedeemLoyaltyPointsContent$ ||= {});
42672
+ RedeemLoyaltyPointsResponseBody$inboundSchema = objectType({
42673
+ message: stringType(),
42674
+ success: booleanType(),
42675
+ content: lazyType(() => RedeemLoyaltyPointsContent$inboundSchema)
42676
+ });
42677
+ RedeemLoyaltyPointsResponseBody$outboundSchema = objectType({
42678
+ message: stringType(),
42679
+ success: booleanType(),
42680
+ content: lazyType(() => RedeemLoyaltyPointsContent$outboundSchema)
42681
+ });
42682
+ ((RedeemLoyaltyPointsResponseBody$) => {
42683
+ RedeemLoyaltyPointsResponseBody$.inboundSchema = RedeemLoyaltyPointsResponseBody$inboundSchema;
42684
+ RedeemLoyaltyPointsResponseBody$.outboundSchema = RedeemLoyaltyPointsResponseBody$outboundSchema;
42685
+ })(RedeemLoyaltyPointsResponseBody$ ||= {});
42686
+ });
42687
+
43240
42688
  // src/models/operations/refreshtoken.ts
43241
42689
  var RefreshTokenRequestBody$inboundSchema, RefreshTokenRequestBody$outboundSchema, RefreshTokenRequestBody$, RefreshTokenContent$inboundSchema, RefreshTokenContent$outboundSchema, RefreshTokenContent$, RefreshTokenResponseBody$inboundSchema, RefreshTokenResponseBody$outboundSchema, RefreshTokenResponseBody$;
43242
42690
  var init_refreshtoken = __esm(() => {
@@ -43339,6 +42787,47 @@ var init_removecoupon = __esm(() => {
43339
42787
  })(RemoveCouponResponseBody$ ||= {});
43340
42788
  });
43341
42789
 
42790
+ // src/models/operations/removeloyaltypoints.ts
42791
+ var RemoveLoyaltyPointsRequest$inboundSchema, RemoveLoyaltyPointsRequest$outboundSchema, RemoveLoyaltyPointsRequest$, RemoveLoyaltyPointsContent$inboundSchema, RemoveLoyaltyPointsContent$outboundSchema, RemoveLoyaltyPointsContent$, RemoveLoyaltyPointsResponseBody$inboundSchema, RemoveLoyaltyPointsResponseBody$outboundSchema, RemoveLoyaltyPointsResponseBody$;
42792
+ var init_removeloyaltypoints = __esm(() => {
42793
+ init_lib();
42794
+ init_components();
42795
+ RemoveLoyaltyPointsRequest$inboundSchema = objectType({
42796
+ id: stringType()
42797
+ });
42798
+ RemoveLoyaltyPointsRequest$outboundSchema = objectType({
42799
+ id: stringType()
42800
+ });
42801
+ ((RemoveLoyaltyPointsRequest$) => {
42802
+ RemoveLoyaltyPointsRequest$.inboundSchema = RemoveLoyaltyPointsRequest$inboundSchema;
42803
+ RemoveLoyaltyPointsRequest$.outboundSchema = RemoveLoyaltyPointsRequest$outboundSchema;
42804
+ })(RemoveLoyaltyPointsRequest$ ||= {});
42805
+ RemoveLoyaltyPointsContent$inboundSchema = objectType({
42806
+ cart: Cart$inboundSchema
42807
+ });
42808
+ RemoveLoyaltyPointsContent$outboundSchema = objectType({
42809
+ cart: Cart$outboundSchema
42810
+ });
42811
+ ((RemoveLoyaltyPointsContent$) => {
42812
+ RemoveLoyaltyPointsContent$.inboundSchema = RemoveLoyaltyPointsContent$inboundSchema;
42813
+ RemoveLoyaltyPointsContent$.outboundSchema = RemoveLoyaltyPointsContent$outboundSchema;
42814
+ })(RemoveLoyaltyPointsContent$ ||= {});
42815
+ RemoveLoyaltyPointsResponseBody$inboundSchema = objectType({
42816
+ message: stringType(),
42817
+ success: booleanType(),
42818
+ content: lazyType(() => RemoveLoyaltyPointsContent$inboundSchema)
42819
+ });
42820
+ RemoveLoyaltyPointsResponseBody$outboundSchema = objectType({
42821
+ message: stringType(),
42822
+ success: booleanType(),
42823
+ content: lazyType(() => RemoveLoyaltyPointsContent$outboundSchema)
42824
+ });
42825
+ ((RemoveLoyaltyPointsResponseBody$) => {
42826
+ RemoveLoyaltyPointsResponseBody$.inboundSchema = RemoveLoyaltyPointsResponseBody$inboundSchema;
42827
+ RemoveLoyaltyPointsResponseBody$.outboundSchema = RemoveLoyaltyPointsResponseBody$outboundSchema;
42828
+ })(RemoveLoyaltyPointsResponseBody$ ||= {});
42829
+ });
42830
+
43342
42831
  // src/models/operations/retryorderpayment.ts
43343
42832
  var RetryOrderPaymentPaymentGatewayParams$inboundSchema, RetryOrderPaymentPaymentGatewayParams$outboundSchema, RetryOrderPaymentPaymentGatewayParams$, RetryOrderPaymentRequestBody$inboundSchema, RetryOrderPaymentRequestBody$outboundSchema, RetryOrderPaymentRequestBody$, RetryOrderPaymentRequest$inboundSchema, RetryOrderPaymentRequest$outboundSchema, RetryOrderPaymentRequest$, RetryOrderPaymentPaymentInfo$inboundSchema, RetryOrderPaymentPaymentInfo$outboundSchema, RetryOrderPaymentPaymentInfo$, RetryOrderPaymentContent$inboundSchema, RetryOrderPaymentContent$outboundSchema, RetryOrderPaymentContent$, RetryOrderPaymentResponseBody$inboundSchema, RetryOrderPaymentResponseBody$outboundSchema, RetryOrderPaymentResponseBody$;
43344
42833
  var init_retryorderpayment = __esm(() => {
@@ -43440,7 +42929,8 @@ var init_retryorderpayment = __esm(() => {
43440
42929
  RetryOrderPaymentPaymentInfo$.outboundSchema = RetryOrderPaymentPaymentInfo$outboundSchema;
43441
42930
  })(RetryOrderPaymentPaymentInfo$ ||= {});
43442
42931
  RetryOrderPaymentContent$inboundSchema = objectType({
43443
- payment_required: booleanType().optional(),
42932
+ order: OrderDetail$inboundSchema,
42933
+ payment_required: booleanType(),
43444
42934
  payment_info: unionType([
43445
42935
  JuspayPaymentInfo$inboundSchema.and(objectType({ payment_gateway: literalType("JUSPAY") }).transform((v2) => ({
43446
42936
  paymentGateway: v2.payment_gateway
@@ -43448,7 +42938,7 @@ var init_retryorderpayment = __esm(() => {
43448
42938
  PayuPaymentInfo$inboundSchema.and(objectType({ payment_gateway: literalType("PAYU") }).transform((v2) => ({
43449
42939
  paymentGateway: v2.payment_gateway
43450
42940
  })))
43451
- ]).optional()
42941
+ ])
43452
42942
  }).transform((v2) => {
43453
42943
  return remap(v2, {
43454
42944
  payment_required: "paymentRequired",
@@ -43456,7 +42946,8 @@ var init_retryorderpayment = __esm(() => {
43456
42946
  });
43457
42947
  });
43458
42948
  RetryOrderPaymentContent$outboundSchema = objectType({
43459
- paymentRequired: booleanType().optional(),
42949
+ order: OrderDetail$outboundSchema,
42950
+ paymentRequired: booleanType(),
43460
42951
  paymentInfo: unionType([
43461
42952
  JuspayPaymentInfo$outboundSchema.and(objectType({ paymentGateway: literalType("JUSPAY") }).transform((v2) => ({
43462
42953
  payment_gateway: v2.paymentGateway
@@ -43464,7 +42955,7 @@ var init_retryorderpayment = __esm(() => {
43464
42955
  PayuPaymentInfo$outboundSchema.and(objectType({ paymentGateway: literalType("PAYU") }).transform((v2) => ({
43465
42956
  payment_gateway: v2.paymentGateway
43466
42957
  })))
43467
- ]).optional()
42958
+ ])
43468
42959
  }).transform((v2) => {
43469
42960
  return remap(v2, {
43470
42961
  paymentRequired: "payment_required",
@@ -43476,14 +42967,14 @@ var init_retryorderpayment = __esm(() => {
43476
42967
  RetryOrderPaymentContent$.outboundSchema = RetryOrderPaymentContent$outboundSchema;
43477
42968
  })(RetryOrderPaymentContent$ ||= {});
43478
42969
  RetryOrderPaymentResponseBody$inboundSchema = objectType({
43479
- message: stringType().optional(),
43480
- success: booleanType().optional(),
43481
- content: lazyType(() => RetryOrderPaymentContent$inboundSchema).optional()
42970
+ message: stringType(),
42971
+ success: booleanType(),
42972
+ content: lazyType(() => RetryOrderPaymentContent$inboundSchema)
43482
42973
  });
43483
42974
  RetryOrderPaymentResponseBody$outboundSchema = objectType({
43484
- message: stringType().optional(),
43485
- success: booleanType().optional(),
43486
- content: lazyType(() => RetryOrderPaymentContent$outboundSchema).optional()
42975
+ message: stringType(),
42976
+ success: booleanType(),
42977
+ content: lazyType(() => RetryOrderPaymentContent$outboundSchema)
43487
42978
  });
43488
42979
  ((RetryOrderPaymentResponseBody$) => {
43489
42980
  RetryOrderPaymentResponseBody$.inboundSchema = RetryOrderPaymentResponseBody$inboundSchema;
@@ -43755,62 +43246,6 @@ var init_updatecart = __esm(() => {
43755
43246
  })(UpdateCartResponseBody$ ||= {});
43756
43247
  });
43757
43248
 
43758
- // src/models/operations/updatedocument.ts
43759
- var UpdateDocumentRequest$inboundSchema, UpdateDocumentRequest$outboundSchema, UpdateDocumentRequest$, UpdateDocumentContent$inboundSchema, UpdateDocumentContent$outboundSchema, UpdateDocumentContent$, UpdateDocumentResponseBody$inboundSchema, UpdateDocumentResponseBody$outboundSchema, UpdateDocumentResponseBody$;
43760
- var init_updatedocument2 = __esm(() => {
43761
- init_lib();
43762
- init_primitives();
43763
- init_components();
43764
- UpdateDocumentRequest$inboundSchema = objectType({
43765
- id: stringType(),
43766
- document_id: stringType(),
43767
- UpdateDocument: UpdateDocument$inboundSchema.optional()
43768
- }).transform((v2) => {
43769
- return remap(v2, {
43770
- document_id: "documentId",
43771
- UpdateDocument: "updateDocument"
43772
- });
43773
- });
43774
- UpdateDocumentRequest$outboundSchema = objectType({
43775
- id: stringType(),
43776
- documentId: stringType(),
43777
- updateDocument: UpdateDocument$outboundSchema.optional()
43778
- }).transform((v2) => {
43779
- return remap(v2, {
43780
- documentId: "document_id",
43781
- updateDocument: "UpdateDocument"
43782
- });
43783
- });
43784
- ((UpdateDocumentRequest$) => {
43785
- UpdateDocumentRequest$.inboundSchema = UpdateDocumentRequest$inboundSchema;
43786
- UpdateDocumentRequest$.outboundSchema = UpdateDocumentRequest$outboundSchema;
43787
- })(UpdateDocumentRequest$ ||= {});
43788
- UpdateDocumentContent$inboundSchema = objectType({
43789
- document: Document$inboundSchema.optional()
43790
- });
43791
- UpdateDocumentContent$outboundSchema = objectType({
43792
- document: Document$outboundSchema.optional()
43793
- });
43794
- ((UpdateDocumentContent$) => {
43795
- UpdateDocumentContent$.inboundSchema = UpdateDocumentContent$inboundSchema;
43796
- UpdateDocumentContent$.outboundSchema = UpdateDocumentContent$outboundSchema;
43797
- })(UpdateDocumentContent$ ||= {});
43798
- UpdateDocumentResponseBody$inboundSchema = objectType({
43799
- message: stringType().optional(),
43800
- success: booleanType().optional(),
43801
- content: lazyType(() => UpdateDocumentContent$inboundSchema).optional()
43802
- });
43803
- UpdateDocumentResponseBody$outboundSchema = objectType({
43804
- message: stringType().optional(),
43805
- success: booleanType().optional(),
43806
- content: lazyType(() => UpdateDocumentContent$outboundSchema).optional()
43807
- });
43808
- ((UpdateDocumentResponseBody$) => {
43809
- UpdateDocumentResponseBody$.inboundSchema = UpdateDocumentResponseBody$inboundSchema;
43810
- UpdateDocumentResponseBody$.outboundSchema = UpdateDocumentResponseBody$outboundSchema;
43811
- })(UpdateDocumentResponseBody$ ||= {});
43812
- });
43813
-
43814
43249
  // src/models/operations/updatenotificationpreferences.ts
43815
43250
  var UpdateNotificationPreferencesRequestBody$inboundSchema, UpdateNotificationPreferencesRequestBody$outboundSchema, UpdateNotificationPreferencesRequestBody$, UpdateNotificationPreferencesRequest$inboundSchema, UpdateNotificationPreferencesRequest$outboundSchema, UpdateNotificationPreferencesRequest$, UpdateNotificationPreferencesContent$inboundSchema, UpdateNotificationPreferencesContent$outboundSchema, UpdateNotificationPreferencesContent$, UpdateNotificationPreferencesResponseBody$inboundSchema, UpdateNotificationPreferencesResponseBody$outboundSchema, UpdateNotificationPreferencesResponseBody$;
43816
43251
  var init_updatenotificationpreferences = __esm(() => {
@@ -43941,98 +43376,6 @@ var init_updateuser = __esm(() => {
43941
43376
  })(UpdateUserResponseBody$ ||= {});
43942
43377
  });
43943
43378
 
43944
- // src/models/operations/verifydocument.ts
43945
- var VerifyDocumentRequestBody$inboundSchema, VerifyDocumentRequestBody$outboundSchema, VerifyDocumentRequestBody$, VerifyDocumentRequest$inboundSchema, VerifyDocumentRequest$outboundSchema, VerifyDocumentRequest$, Document$inboundSchema2, Document$outboundSchema2, Document$2, VerifyDocumentContent$inboundSchema, VerifyDocumentContent$outboundSchema, VerifyDocumentContent$, VerifyDocumentResponseBody$inboundSchema, VerifyDocumentResponseBody$outboundSchema, VerifyDocumentResponseBody$;
43946
- var init_verifydocument = __esm(() => {
43947
- init_lib();
43948
- init_primitives();
43949
- init_components();
43950
- VerifyDocumentRequestBody$inboundSchema = objectType({
43951
- document_number: stringType(),
43952
- document_type_id: stringType()
43953
- }).transform((v2) => {
43954
- return remap(v2, {
43955
- document_number: "documentNumber",
43956
- document_type_id: "documentTypeId"
43957
- });
43958
- });
43959
- VerifyDocumentRequestBody$outboundSchema = objectType({
43960
- documentNumber: stringType(),
43961
- documentTypeId: stringType()
43962
- }).transform((v2) => {
43963
- return remap(v2, {
43964
- documentNumber: "document_number",
43965
- documentTypeId: "document_type_id"
43966
- });
43967
- });
43968
- ((VerifyDocumentRequestBody$) => {
43969
- VerifyDocumentRequestBody$.inboundSchema = VerifyDocumentRequestBody$inboundSchema;
43970
- VerifyDocumentRequestBody$.outboundSchema = VerifyDocumentRequestBody$outboundSchema;
43971
- })(VerifyDocumentRequestBody$ ||= {});
43972
- VerifyDocumentRequest$inboundSchema = objectType({
43973
- id: stringType(),
43974
- RequestBody: lazyType(() => VerifyDocumentRequestBody$inboundSchema).optional()
43975
- }).transform((v2) => {
43976
- return remap(v2, {
43977
- RequestBody: "requestBody"
43978
- });
43979
- });
43980
- VerifyDocumentRequest$outboundSchema = objectType({
43981
- id: stringType(),
43982
- requestBody: lazyType(() => VerifyDocumentRequestBody$outboundSchema).optional()
43983
- }).transform((v2) => {
43984
- return remap(v2, {
43985
- requestBody: "RequestBody"
43986
- });
43987
- });
43988
- ((VerifyDocumentRequest$) => {
43989
- VerifyDocumentRequest$.inboundSchema = VerifyDocumentRequest$inboundSchema;
43990
- VerifyDocumentRequest$.outboundSchema = VerifyDocumentRequest$outboundSchema;
43991
- })(VerifyDocumentRequest$ ||= {});
43992
- Document$inboundSchema2 = unionType([
43993
- GstinDetail$inboundSchema,
43994
- PanDetail$inboundSchema
43995
- ]);
43996
- Document$outboundSchema2 = unionType([
43997
- GstinDetail$outboundSchema,
43998
- PanDetail$outboundSchema
43999
- ]);
44000
- ((Document$) => {
44001
- Document$.inboundSchema = Document$inboundSchema2;
44002
- Document$.outboundSchema = Document$outboundSchema2;
44003
- })(Document$2 ||= {});
44004
- VerifyDocumentContent$inboundSchema = objectType({
44005
- document: unionType([
44006
- GstinDetail$inboundSchema,
44007
- PanDetail$inboundSchema
44008
- ]).optional()
44009
- });
44010
- VerifyDocumentContent$outboundSchema = objectType({
44011
- document: unionType([
44012
- GstinDetail$outboundSchema,
44013
- PanDetail$outboundSchema
44014
- ]).optional()
44015
- });
44016
- ((VerifyDocumentContent$) => {
44017
- VerifyDocumentContent$.inboundSchema = VerifyDocumentContent$inboundSchema;
44018
- VerifyDocumentContent$.outboundSchema = VerifyDocumentContent$outboundSchema;
44019
- })(VerifyDocumentContent$ ||= {});
44020
- VerifyDocumentResponseBody$inboundSchema = objectType({
44021
- message: stringType().optional(),
44022
- success: booleanType().optional(),
44023
- content: lazyType(() => VerifyDocumentContent$inboundSchema).optional()
44024
- });
44025
- VerifyDocumentResponseBody$outboundSchema = objectType({
44026
- message: stringType().optional(),
44027
- success: booleanType().optional(),
44028
- content: lazyType(() => VerifyDocumentContent$outboundSchema).optional()
44029
- });
44030
- ((VerifyDocumentResponseBody$) => {
44031
- VerifyDocumentResponseBody$.inboundSchema = VerifyDocumentResponseBody$inboundSchema;
44032
- VerifyDocumentResponseBody$.outboundSchema = VerifyDocumentResponseBody$outboundSchema;
44033
- })(VerifyDocumentResponseBody$ ||= {});
44034
- });
44035
-
44036
43379
  // src/models/operations/verifyotp.ts
44037
43380
  var OtpAction, OtpAction$inboundSchema, OtpAction$outboundSchema, OtpAction$, VerifyOtpRequestBody$inboundSchema, VerifyOtpRequestBody$outboundSchema, VerifyOtpRequestBody$, VerifyOtpContent$inboundSchema, VerifyOtpContent$outboundSchema, VerifyOtpContent$, VerifyOtpResponseBody$inboundSchema, VerifyOtpResponseBody$outboundSchema, VerifyOtpResponseBody$;
44038
43381
  var init_verifyotp = __esm(() => {
@@ -44127,18 +43470,16 @@ var init_operations = __esm(() => {
44127
43470
  init_createaddress();
44128
43471
  init_createcart();
44129
43472
  init_createcartaddress();
44130
- init_createdocument();
44131
43473
  init_createnotificationpreferences();
44132
43474
  init_createorder();
44133
43475
  init_deleteaddress();
44134
43476
  init_deletecart();
44135
- init_deletedocument();
44136
43477
  init_deleteusercart();
44137
43478
  init_generateotp();
44138
43479
  init_getaddressdetail();
44139
43480
  init_getanonymoustoken();
44140
43481
  init_getcart();
44141
- init_getdocument();
43482
+ init_getloyaltydetails();
44142
43483
  init_getnotificationpreferences();
44143
43484
  init_getorderdetail();
44144
43485
  init_getpaymentstatus();
@@ -44146,12 +43487,9 @@ var init_operations = __esm(() => {
44146
43487
  init_getusercart();
44147
43488
  init_getuserdetail();
44148
43489
  init_getvariantdetail();
44149
- init_listaddresses();
44150
43490
  init_listcategories();
44151
43491
  init_listcountrypincodes();
44152
43492
  init_listcrosssellproducts();
44153
- init_listdocuments();
44154
- init_listkycdocument();
44155
43493
  init_listorders();
44156
43494
  init_listordershipments();
44157
43495
  init_listproductreviews();
@@ -44165,17 +43503,17 @@ var init_operations = __esm(() => {
44165
43503
  init_loginwithphone();
44166
43504
  init_loginwithwhatsapp();
44167
43505
  init_logout();
43506
+ init_redeemloyaltypoints();
44168
43507
  init_refreshtoken();
44169
43508
  init_removecoupon();
43509
+ init_removeloyaltypoints();
44170
43510
  init_retryorderpayment();
44171
43511
  init_searchproducts();
44172
43512
  init_subscribenewsletter();
44173
43513
  init_updateaddressdetail();
44174
43514
  init_updatecart();
44175
- init_updatedocument2();
44176
43515
  init_updatenotificationpreferences();
44177
43516
  init_updateuser();
44178
- init_verifydocument();
44179
43517
  init_verifyotp();
44180
43518
  });
44181
43519
 
@@ -46341,11 +45679,118 @@ Retrieve cart detail using user id`,
46341
45679
  };
46342
45680
  });
46343
45681
 
46344
- // src/funcs/cartsRemoveCoupon.ts
46345
- function cartsRemoveCoupon(client, request, options) {
45682
+ // src/funcs/cartsRedeemLoyaltyPoints.ts
45683
+ function cartsRedeemLoyaltyPoints(client, request, options) {
46346
45684
  return new APIPromise($do21(client, request, options));
46347
45685
  }
46348
45686
  async function $do21(client, request, options) {
45687
+ const parsed = safeParse(request, (value) => RedeemLoyaltyPointsRequest$outboundSchema.parse(value), "Input validation failed");
45688
+ if (!parsed.ok) {
45689
+ return [parsed, { status: "invalid" }];
45690
+ }
45691
+ const payload = parsed.value;
45692
+ const body = encodeJSON("body", payload.RequestBody, { explode: true });
45693
+ const pathParams = {
45694
+ id: encodeSimple("id", payload.id, {
45695
+ explode: false,
45696
+ charEncoding: "percent"
45697
+ })
45698
+ };
45699
+ const path = pathToFunc("/carts/{id}/loyalty-points")(pathParams);
45700
+ const headers = new Headers(compactMap({
45701
+ "Content-Type": "application/json",
45702
+ Accept: "application/json"
45703
+ }));
45704
+ const secConfig = await extractSecurity(client._options.authorization);
45705
+ const securityInput = secConfig == null ? {} : { authorization: secConfig };
45706
+ const requestSecurity = resolveGlobalSecurity(securityInput);
45707
+ const context = {
45708
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
45709
+ operationID: "redeem-loyalty-points",
45710
+ oAuth2Scopes: [],
45711
+ resolvedSecurity: requestSecurity,
45712
+ securitySource: client._options.authorization,
45713
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45714
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45715
+ };
45716
+ const requestRes = client._createRequest(context, {
45717
+ security: requestSecurity,
45718
+ method: "POST",
45719
+ baseURL: options?.serverURL,
45720
+ path,
45721
+ headers,
45722
+ body,
45723
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45724
+ }, options);
45725
+ if (!requestRes.ok) {
45726
+ return [requestRes, { status: "invalid" }];
45727
+ }
45728
+ const req = requestRes.value;
45729
+ const doResult = await client._do(req, {
45730
+ context,
45731
+ errorCodes: ["400", "401", "4XX", "5XX"],
45732
+ retryConfig: context.retryConfig,
45733
+ retryCodes: context.retryCodes
45734
+ });
45735
+ if (!doResult.ok) {
45736
+ return [doResult, { status: "request-error", request: req }];
45737
+ }
45738
+ const response = doResult.value;
45739
+ const responseFields = {
45740
+ HttpMeta: { Response: response, Request: req }
45741
+ };
45742
+ const [result] = await match(json(200, RedeemLoyaltyPointsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
45743
+ if (!result.ok) {
45744
+ return [result, { status: "complete", request: req, response }];
45745
+ }
45746
+ return [result, { status: "complete", request: req, response }];
45747
+ }
45748
+ var init_cartsRedeemLoyaltyPoints = __esm(() => {
45749
+ init_encodings();
45750
+ init_matchers();
45751
+ init_primitives();
45752
+ init_schemas();
45753
+ init_security();
45754
+ init_url();
45755
+ init_errors();
45756
+ init_operations();
45757
+ init_async();
45758
+ });
45759
+
45760
+ // src/mcp-server/tools/cartsRedeemLoyaltyPoints.ts
45761
+ var args20, tool$cartsRedeemLoyaltyPoints;
45762
+ var init_cartsRedeemLoyaltyPoints2 = __esm(() => {
45763
+ init_cartsRedeemLoyaltyPoints();
45764
+ init_operations();
45765
+ init_tools();
45766
+ args20 = {
45767
+ request: RedeemLoyaltyPointsRequest$inboundSchema
45768
+ };
45769
+ tool$cartsRedeemLoyaltyPoints = {
45770
+ name: "carts-redeem-loyalty-points",
45771
+ description: `Redeem loyalty points
45772
+
45773
+ Redeem loyalty points`,
45774
+ args: args20,
45775
+ tool: async (client, args21, ctx) => {
45776
+ const [result, apiCall] = await cartsRedeemLoyaltyPoints(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45777
+ if (!result.ok) {
45778
+ return {
45779
+ content: [{ type: "text", text: result.error.message }],
45780
+ isError: true
45781
+ };
45782
+ }
45783
+ const value = result.value;
45784
+ return formatResult(value, apiCall);
45785
+ }
45786
+ };
45787
+ });
45788
+
45789
+ // src/funcs/cartsRemoveCoupon.ts
45790
+ function cartsRemoveCoupon(client, request, options) {
45791
+ return new APIPromise($do22(client, request, options));
45792
+ }
45793
+ async function $do22(client, request, options) {
46349
45794
  const parsed = safeParse(request, (value) => RemoveCouponRequest$outboundSchema.parse(value), "Input validation failed");
46350
45795
  if (!parsed.ok) {
46351
45796
  return [parsed, { status: "invalid" }];
@@ -46419,12 +45864,12 @@ var init_cartsRemoveCoupon = __esm(() => {
46419
45864
  });
46420
45865
 
46421
45866
  // src/mcp-server/tools/cartsRemoveCoupon.ts
46422
- var args20, tool$cartsRemoveCoupon;
45867
+ var args21, tool$cartsRemoveCoupon;
46423
45868
  var init_cartsRemoveCoupon2 = __esm(() => {
46424
45869
  init_cartsRemoveCoupon();
46425
45870
  init_operations();
46426
45871
  init_tools();
46427
- args20 = {
45872
+ args21 = {
46428
45873
  request: RemoveCouponRequest$inboundSchema
46429
45874
  };
46430
45875
  tool$cartsRemoveCoupon = {
@@ -46432,9 +45877,9 @@ var init_cartsRemoveCoupon2 = __esm(() => {
46432
45877
  description: `Remove coupon
46433
45878
 
46434
45879
  remove coupon from cart`,
46435
- args: args20,
46436
- tool: async (client, args21, ctx) => {
46437
- const [result, apiCall] = await cartsRemoveCoupon(client, args21.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45880
+ args: args21,
45881
+ tool: async (client, args22, ctx) => {
45882
+ const [result, apiCall] = await cartsRemoveCoupon(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46438
45883
  if (!result.ok) {
46439
45884
  return {
46440
45885
  content: [{ type: "text", text: result.error.message }],
@@ -46447,24 +45892,24 @@ remove coupon from cart`,
46447
45892
  };
46448
45893
  });
46449
45894
 
46450
- // src/funcs/cartsRemoveUserCart.ts
46451
- function cartsRemoveUserCart(client, request, options) {
46452
- return new APIPromise($do22(client, request, options));
45895
+ // src/funcs/cartsRemoveLoyaltyPoints.ts
45896
+ function cartsRemoveLoyaltyPoints(client, request, options) {
45897
+ return new APIPromise($do23(client, request, options));
46453
45898
  }
46454
- async function $do22(client, request, options) {
46455
- const parsed = safeParse(request, (value) => DeleteUserCartRequest$outboundSchema.parse(value), "Input validation failed");
45899
+ async function $do23(client, request, options) {
45900
+ const parsed = safeParse(request, (value) => RemoveLoyaltyPointsRequest$outboundSchema.parse(value), "Input validation failed");
46456
45901
  if (!parsed.ok) {
46457
45902
  return [parsed, { status: "invalid" }];
46458
45903
  }
46459
45904
  const payload = parsed.value;
46460
45905
  const body = null;
46461
45906
  const pathParams = {
46462
- user_id: encodeSimple("user_id", payload.user_id, {
45907
+ id: encodeSimple("id", payload.id, {
46463
45908
  explode: false,
46464
45909
  charEncoding: "percent"
46465
45910
  })
46466
45911
  };
46467
- const path = pathToFunc("/carts/users/{user_id}")(pathParams);
45912
+ const path = pathToFunc("/carts/{id}/loyalty-points")(pathParams);
46468
45913
  const headers = new Headers(compactMap({
46469
45914
  Accept: "application/json"
46470
45915
  }));
@@ -46473,7 +45918,113 @@ async function $do22(client, request, options) {
46473
45918
  const requestSecurity = resolveGlobalSecurity(securityInput);
46474
45919
  const context = {
46475
45920
  baseURL: options?.serverURL ?? client._baseURL ?? "",
46476
- operationID: "delete-user-cart",
45921
+ operationID: "remove-loyalty-points",
45922
+ oAuth2Scopes: [],
45923
+ resolvedSecurity: requestSecurity,
45924
+ securitySource: client._options.authorization,
45925
+ retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
45926
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
45927
+ };
45928
+ const requestRes = client._createRequest(context, {
45929
+ security: requestSecurity,
45930
+ method: "DELETE",
45931
+ baseURL: options?.serverURL,
45932
+ path,
45933
+ headers,
45934
+ body,
45935
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
45936
+ }, options);
45937
+ if (!requestRes.ok) {
45938
+ return [requestRes, { status: "invalid" }];
45939
+ }
45940
+ const req = requestRes.value;
45941
+ const doResult = await client._do(req, {
45942
+ context,
45943
+ errorCodes: ["400", "401", "404", "4XX", "5XX"],
45944
+ retryConfig: context.retryConfig,
45945
+ retryCodes: context.retryCodes
45946
+ });
45947
+ if (!doResult.ok) {
45948
+ return [doResult, { status: "request-error", request: req }];
45949
+ }
45950
+ const response = doResult.value;
45951
+ const responseFields = {
45952
+ HttpMeta: { Response: response, Request: req }
45953
+ };
45954
+ const [result] = await match(json(200, RemoveLoyaltyPointsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), fail([404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
45955
+ if (!result.ok) {
45956
+ return [result, { status: "complete", request: req, response }];
45957
+ }
45958
+ return [result, { status: "complete", request: req, response }];
45959
+ }
45960
+ var init_cartsRemoveLoyaltyPoints = __esm(() => {
45961
+ init_encodings();
45962
+ init_matchers();
45963
+ init_primitives();
45964
+ init_schemas();
45965
+ init_security();
45966
+ init_url();
45967
+ init_errors();
45968
+ init_operations();
45969
+ init_async();
45970
+ });
45971
+
45972
+ // src/mcp-server/tools/cartsRemoveLoyaltyPoints.ts
45973
+ var args22, tool$cartsRemoveLoyaltyPoints;
45974
+ var init_cartsRemoveLoyaltyPoints2 = __esm(() => {
45975
+ init_cartsRemoveLoyaltyPoints();
45976
+ init_operations();
45977
+ init_tools();
45978
+ args22 = {
45979
+ request: RemoveLoyaltyPointsRequest$inboundSchema
45980
+ };
45981
+ tool$cartsRemoveLoyaltyPoints = {
45982
+ name: "carts-remove-loyalty-points",
45983
+ description: `Remove loyalty points
45984
+
45985
+ Remove loyalty points applied in cart`,
45986
+ args: args22,
45987
+ tool: async (client, args23, ctx) => {
45988
+ const [result, apiCall] = await cartsRemoveLoyaltyPoints(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
45989
+ if (!result.ok) {
45990
+ return {
45991
+ content: [{ type: "text", text: result.error.message }],
45992
+ isError: true
45993
+ };
45994
+ }
45995
+ const value = result.value;
45996
+ return formatResult(value, apiCall);
45997
+ }
45998
+ };
45999
+ });
46000
+
46001
+ // src/funcs/cartsRemoveUserCart.ts
46002
+ function cartsRemoveUserCart(client, request, options) {
46003
+ return new APIPromise($do24(client, request, options));
46004
+ }
46005
+ async function $do24(client, request, options) {
46006
+ const parsed = safeParse(request, (value) => DeleteUserCartRequest$outboundSchema.parse(value), "Input validation failed");
46007
+ if (!parsed.ok) {
46008
+ return [parsed, { status: "invalid" }];
46009
+ }
46010
+ const payload = parsed.value;
46011
+ const body = null;
46012
+ const pathParams = {
46013
+ user_id: encodeSimple("user_id", payload.user_id, {
46014
+ explode: false,
46015
+ charEncoding: "percent"
46016
+ })
46017
+ };
46018
+ const path = pathToFunc("/carts/users/{user_id}")(pathParams);
46019
+ const headers = new Headers(compactMap({
46020
+ Accept: "application/json"
46021
+ }));
46022
+ const secConfig = await extractSecurity(client._options.authorization);
46023
+ const securityInput = secConfig == null ? {} : { authorization: secConfig };
46024
+ const requestSecurity = resolveGlobalSecurity(securityInput);
46025
+ const context = {
46026
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
46027
+ operationID: "delete-user-cart",
46477
46028
  oAuth2Scopes: [],
46478
46029
  resolvedSecurity: requestSecurity,
46479
46030
  securitySource: client._options.authorization,
@@ -46525,12 +46076,12 @@ var init_cartsRemoveUserCart = __esm(() => {
46525
46076
  });
46526
46077
 
46527
46078
  // src/mcp-server/tools/cartsRemoveUserCart.ts
46528
- var args21, tool$cartsRemoveUserCart;
46079
+ var args23, tool$cartsRemoveUserCart;
46529
46080
  var init_cartsRemoveUserCart2 = __esm(() => {
46530
46081
  init_cartsRemoveUserCart();
46531
46082
  init_operations();
46532
46083
  init_tools();
46533
- args21 = {
46084
+ args23 = {
46534
46085
  request: DeleteUserCartRequest$inboundSchema
46535
46086
  };
46536
46087
  tool$cartsRemoveUserCart = {
@@ -46538,9 +46089,9 @@ var init_cartsRemoveUserCart2 = __esm(() => {
46538
46089
  description: `Delete cart using user id
46539
46090
 
46540
46091
  delete all items from the cart using user id.`,
46541
- args: args21,
46542
- tool: async (client, args22, ctx) => {
46543
- const [result, apiCall] = await cartsRemoveUserCart(client, args22.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46092
+ args: args23,
46093
+ tool: async (client, args24, ctx) => {
46094
+ const [result, apiCall] = await cartsRemoveUserCart(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46544
46095
  if (!result.ok) {
46545
46096
  return {
46546
46097
  content: [{ type: "text", text: result.error.message }],
@@ -46555,9 +46106,9 @@ delete all items from the cart using user id.`,
46555
46106
 
46556
46107
  // src/funcs/cartsUpdateCart.ts
46557
46108
  function cartsUpdateCart(client, request, options) {
46558
- return new APIPromise($do23(client, request, options));
46109
+ return new APIPromise($do25(client, request, options));
46559
46110
  }
46560
- async function $do23(client, request, options) {
46111
+ async function $do25(client, request, options) {
46561
46112
  const parsed = safeParse(request, (value) => UpdateCartRequest$outboundSchema.parse(value), "Input validation failed");
46562
46113
  if (!parsed.ok) {
46563
46114
  return [parsed, { status: "invalid" }];
@@ -46632,12 +46183,12 @@ var init_cartsUpdateCart = __esm(() => {
46632
46183
  });
46633
46184
 
46634
46185
  // src/mcp-server/tools/cartsUpdateCart.ts
46635
- var args22, tool$cartsUpdateCart;
46186
+ var args24, tool$cartsUpdateCart;
46636
46187
  var init_cartsUpdateCart2 = __esm(() => {
46637
46188
  init_cartsUpdateCart();
46638
46189
  init_operations();
46639
46190
  init_tools();
46640
- args22 = {
46191
+ args24 = {
46641
46192
  request: UpdateCartRequest$inboundSchema
46642
46193
  };
46643
46194
  tool$cartsUpdateCart = {
@@ -46645,9 +46196,9 @@ var init_cartsUpdateCart2 = __esm(() => {
46645
46196
  description: `Add/delete cart item
46646
46197
 
46647
46198
  Add Item to cart. To delete item from cart, pass quantity = 0`,
46648
- args: args22,
46649
- tool: async (client, args23, ctx) => {
46650
- const [result, apiCall] = await cartsUpdateCart(client, args23.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46199
+ args: args24,
46200
+ tool: async (client, args25, ctx) => {
46201
+ const [result, apiCall] = await cartsUpdateCart(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46651
46202
  if (!result.ok) {
46652
46203
  return {
46653
46204
  content: [{ type: "text", text: result.error.message }],
@@ -46662,9 +46213,9 @@ Add Item to cart. To delete item from cart, pass quantity = 0`,
46662
46213
 
46663
46214
  // src/funcs/catalogGetProductDetail.ts
46664
46215
  function catalogGetProductDetail(client, request, options) {
46665
- return new APIPromise($do24(client, request, options));
46216
+ return new APIPromise($do26(client, request, options));
46666
46217
  }
46667
- async function $do24(client, request, options) {
46218
+ async function $do26(client, request, options) {
46668
46219
  const parsed = safeParse(request, (value) => GetProductDetailRequest$outboundSchema.parse(value), "Input validation failed");
46669
46220
  if (!parsed.ok) {
46670
46221
  return [parsed, { status: "invalid" }];
@@ -46742,12 +46293,12 @@ var init_catalogGetProductDetail = __esm(() => {
46742
46293
  });
46743
46294
 
46744
46295
  // src/mcp-server/tools/catalogGetProductDetail.ts
46745
- var args23, tool$catalogGetProductDetail;
46296
+ var args25, tool$catalogGetProductDetail;
46746
46297
  var init_catalogGetProductDetail2 = __esm(() => {
46747
46298
  init_catalogGetProductDetail();
46748
46299
  init_operations();
46749
46300
  init_tools();
46750
- args23 = {
46301
+ args25 = {
46751
46302
  request: GetProductDetailRequest$inboundSchema
46752
46303
  };
46753
46304
  tool$catalogGetProductDetail = {
@@ -46755,9 +46306,9 @@ var init_catalogGetProductDetail2 = __esm(() => {
46755
46306
  description: `Retrieve a product detail
46756
46307
 
46757
46308
  Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Commerce Engine will return the corresponding product information.`,
46758
- args: args23,
46759
- tool: async (client, args24, ctx) => {
46760
- const [result, apiCall] = await catalogGetProductDetail(client, args24.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46309
+ args: args25,
46310
+ tool: async (client, args26, ctx) => {
46311
+ const [result, apiCall] = await catalogGetProductDetail(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46761
46312
  if (!result.ok) {
46762
46313
  return {
46763
46314
  content: [{ type: "text", text: result.error.message }],
@@ -46772,9 +46323,9 @@ Retrieves the details of an existing product. Supply the unique product ID from
46772
46323
 
46773
46324
  // src/funcs/catalogGetVariantDetail.ts
46774
46325
  function catalogGetVariantDetail(client, request, options) {
46775
- return new APIPromise($do25(client, request, options));
46326
+ return new APIPromise($do27(client, request, options));
46776
46327
  }
46777
- async function $do25(client, request, options) {
46328
+ async function $do27(client, request, options) {
46778
46329
  const parsed = safeParse(request, (value) => GetVariantDetailRequest$outboundSchema.parse(value), "Input validation failed");
46779
46330
  if (!parsed.ok) {
46780
46331
  return [parsed, { status: "invalid" }];
@@ -46856,12 +46407,12 @@ var init_catalogGetVariantDetail = __esm(() => {
46856
46407
  });
46857
46408
 
46858
46409
  // src/mcp-server/tools/catalogGetVariantDetail.ts
46859
- var args24, tool$catalogGetVariantDetail;
46410
+ var args26, tool$catalogGetVariantDetail;
46860
46411
  var init_catalogGetVariantDetail2 = __esm(() => {
46861
46412
  init_catalogGetVariantDetail();
46862
46413
  init_operations();
46863
46414
  init_tools();
46864
- args24 = {
46415
+ args26 = {
46865
46416
  request: GetVariantDetailRequest$inboundSchema
46866
46417
  };
46867
46418
  tool$catalogGetVariantDetail = {
@@ -46869,9 +46420,9 @@ var init_catalogGetVariantDetail2 = __esm(() => {
46869
46420
  description: `Retrieve variant detail
46870
46421
 
46871
46422
  Retrieves the details of a particular variant. Supply the unique product ID, and variant ID.`,
46872
- args: args24,
46873
- tool: async (client, args25, ctx) => {
46874
- const [result, apiCall] = await catalogGetVariantDetail(client, args25.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46423
+ args: args26,
46424
+ tool: async (client, args27, ctx) => {
46425
+ const [result, apiCall] = await catalogGetVariantDetail(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46875
46426
  if (!result.ok) {
46876
46427
  return {
46877
46428
  content: [{ type: "text", text: result.error.message }],
@@ -46886,9 +46437,9 @@ Retrieves the details of a particular variant. Supply the unique product ID, and
46886
46437
 
46887
46438
  // src/funcs/catalogListCategories.ts
46888
46439
  function catalogListCategories(client, request, options) {
46889
- return new APIPromise($do26(client, request, options));
46440
+ return new APIPromise($do28(client, request, options));
46890
46441
  }
46891
- async function $do26(client, request, options) {
46442
+ async function $do28(client, request, options) {
46892
46443
  const parsed = safeParse(request, (value) => ListCategoriesRequest$outboundSchema.parse(value), "Input validation failed");
46893
46444
  if (!parsed.ok) {
46894
46445
  return [parsed, { status: "invalid" }];
@@ -46959,12 +46510,12 @@ var init_catalogListCategories = __esm(() => {
46959
46510
  });
46960
46511
 
46961
46512
  // src/mcp-server/tools/catalogListCategories.ts
46962
- var args25, tool$catalogListCategories;
46513
+ var args27, tool$catalogListCategories;
46963
46514
  var init_catalogListCategories2 = __esm(() => {
46964
46515
  init_catalogListCategories();
46965
46516
  init_operations();
46966
46517
  init_tools();
46967
- args25 = {
46518
+ args27 = {
46968
46519
  request: ListCategoriesRequest$inboundSchema
46969
46520
  };
46970
46521
  tool$catalogListCategories = {
@@ -46972,9 +46523,9 @@ var init_catalogListCategories2 = __esm(() => {
46972
46523
  description: `List all categories
46973
46524
 
46974
46525
  Returns a list of your product categories. The categories are returned sorted by creation date, with the most recently created categories appearing first.`,
46975
- args: args25,
46976
- tool: async (client, args26, ctx) => {
46977
- const [result, apiCall] = await catalogListCategories(client, args26.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46526
+ args: args27,
46527
+ tool: async (client, args28, ctx) => {
46528
+ const [result, apiCall] = await catalogListCategories(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46978
46529
  if (!result.ok) {
46979
46530
  return {
46980
46531
  content: [{ type: "text", text: result.error.message }],
@@ -46989,9 +46540,9 @@ Returns a list of your product categories. The categories are returned sorted by
46989
46540
 
46990
46541
  // src/funcs/catalogListCrosssellProducts.ts
46991
46542
  function catalogListCrosssellProducts(client, request, options) {
46992
- return new APIPromise($do27(client, request, options));
46543
+ return new APIPromise($do29(client, request, options));
46993
46544
  }
46994
- async function $do27(client, request, options) {
46545
+ async function $do29(client, request, options) {
46995
46546
  const parsed = safeParse(request, (value) => ListCrosssellProductsRequest$outboundSchema.parse(value), "Input validation failed");
46996
46547
  if (!parsed.ok) {
46997
46548
  return [parsed, { status: "invalid" }];
@@ -47066,12 +46617,12 @@ var init_catalogListCrosssellProducts = __esm(() => {
47066
46617
  });
47067
46618
 
47068
46619
  // src/mcp-server/tools/catalogListCrosssellProducts.ts
47069
- var args26, tool$catalogListCrosssellProducts;
46620
+ var args28, tool$catalogListCrosssellProducts;
47070
46621
  var init_catalogListCrosssellProducts2 = __esm(() => {
47071
46622
  init_catalogListCrosssellProducts();
47072
46623
  init_operations();
47073
46624
  init_tools();
47074
- args26 = {
46625
+ args28 = {
47075
46626
  request: ListCrosssellProductsRequest$inboundSchema
47076
46627
  };
47077
46628
  tool$catalogListCrosssellProducts = {
@@ -47079,9 +46630,9 @@ var init_catalogListCrosssellProducts2 = __esm(() => {
47079
46630
  description: `Retrieve cross-sell products
47080
46631
 
47081
46632
  Retrieves a list of products specified for cross selling. The cross-sell products are returned based on product ids specified in request param.`,
47082
- args: args26,
47083
- tool: async (client, args27, ctx) => {
47084
- const [result, apiCall] = await catalogListCrosssellProducts(client, args27.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46633
+ args: args28,
46634
+ tool: async (client, args29, ctx) => {
46635
+ const [result, apiCall] = await catalogListCrosssellProducts(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47085
46636
  if (!result.ok) {
47086
46637
  return {
47087
46638
  content: [{ type: "text", text: result.error.message }],
@@ -47096,9 +46647,9 @@ Retrieves a list of products specified for cross selling. The cross-sell product
47096
46647
 
47097
46648
  // src/funcs/catalogListProductReviews.ts
47098
46649
  function catalogListProductReviews(client, request, options) {
47099
- return new APIPromise($do28(client, request, options));
46650
+ return new APIPromise($do30(client, request, options));
47100
46651
  }
47101
- async function $do28(client, request, options) {
46652
+ async function $do30(client, request, options) {
47102
46653
  const parsed = safeParse(request, (value) => ListProductReviewsRequest$outboundSchema.parse(value), "Input validation failed");
47103
46654
  if (!parsed.ok) {
47104
46655
  return [parsed, { status: "invalid" }];
@@ -47180,12 +46731,12 @@ var init_catalogListProductReviews = __esm(() => {
47180
46731
  });
47181
46732
 
47182
46733
  // src/mcp-server/tools/catalogListProductReviews.ts
47183
- var args27, tool$catalogListProductReviews;
46734
+ var args29, tool$catalogListProductReviews;
47184
46735
  var init_catalogListProductReviews2 = __esm(() => {
47185
46736
  init_catalogListProductReviews();
47186
46737
  init_operations();
47187
46738
  init_tools();
47188
- args27 = {
46739
+ args29 = {
47189
46740
  request: ListProductReviewsRequest$inboundSchema
47190
46741
  };
47191
46742
  tool$catalogListProductReviews = {
@@ -47193,9 +46744,9 @@ var init_catalogListProductReviews2 = __esm(() => {
47193
46744
  description: `List all product reviews
47194
46745
 
47195
46746
  List of reviews for a specified product. The reviews are returned sorted by submission date, with the most recent reviews appearing first. You can filter the reviews by rating, reviewer, or date for more detailed analysis.`,
47196
- args: args27,
47197
- tool: async (client, args28, ctx) => {
47198
- const [result, apiCall] = await catalogListProductReviews(client, args28.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46747
+ args: args29,
46748
+ tool: async (client, args30, ctx) => {
46749
+ const [result, apiCall] = await catalogListProductReviews(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47199
46750
  if (!result.ok) {
47200
46751
  return {
47201
46752
  content: [{ type: "text", text: result.error.message }],
@@ -47210,9 +46761,9 @@ List of reviews for a specified product. The reviews are returned sorted by subm
47210
46761
 
47211
46762
  // src/funcs/catalogListProducts.ts
47212
46763
  function catalogListProducts(client, request, options) {
47213
- return new APIPromise($do29(client, request, options));
46764
+ return new APIPromise($do31(client, request, options));
47214
46765
  }
47215
- async function $do29(client, request, options) {
46766
+ async function $do31(client, request, options) {
47216
46767
  const parsed = safeParse(request, (value) => ListProductsRequest$outboundSchema.parse(value), "Input validation failed");
47217
46768
  if (!parsed.ok) {
47218
46769
  return [parsed, { status: "invalid" }];
@@ -47288,12 +46839,12 @@ var init_catalogListProducts = __esm(() => {
47288
46839
  });
47289
46840
 
47290
46841
  // src/mcp-server/tools/catalogListProducts.ts
47291
- var args28, tool$catalogListProducts;
46842
+ var args30, tool$catalogListProducts;
47292
46843
  var init_catalogListProducts2 = __esm(() => {
47293
46844
  init_catalogListProducts();
47294
46845
  init_operations();
47295
46846
  init_tools();
47296
- args28 = {
46847
+ args30 = {
47297
46848
  request: ListProductsRequest$inboundSchema
47298
46849
  };
47299
46850
  tool$catalogListProducts = {
@@ -47301,9 +46852,9 @@ var init_catalogListProducts2 = __esm(() => {
47301
46852
  description: `List all products
47302
46853
 
47303
46854
  Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.`,
47304
- args: args28,
47305
- tool: async (client, args29, ctx) => {
47306
- const [result, apiCall] = await catalogListProducts(client, args29.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46855
+ args: args30,
46856
+ tool: async (client, args31, ctx) => {
46857
+ const [result, apiCall] = await catalogListProducts(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47307
46858
  if (!result.ok) {
47308
46859
  return {
47309
46860
  content: [{ type: "text", text: result.error.message }],
@@ -47318,9 +46869,9 @@ Returns a list of your products. The products are returned sorted by creation da
47318
46869
 
47319
46870
  // src/funcs/catalogListProductVariants.ts
47320
46871
  function catalogListProductVariants(client, request, options) {
47321
- return new APIPromise($do30(client, request, options));
46872
+ return new APIPromise($do32(client, request, options));
47322
46873
  }
47323
- async function $do30(client, request, options) {
46874
+ async function $do32(client, request, options) {
47324
46875
  const parsed = safeParse(request, (value) => ListProductVariantsRequest$outboundSchema.parse(value), "Input validation failed");
47325
46876
  if (!parsed.ok) {
47326
46877
  return [parsed, { status: "invalid" }];
@@ -47398,12 +46949,12 @@ var init_catalogListProductVariants = __esm(() => {
47398
46949
  });
47399
46950
 
47400
46951
  // src/mcp-server/tools/catalogListProductVariants.ts
47401
- var args29, tool$catalogListProductVariants;
46952
+ var args31, tool$catalogListProductVariants;
47402
46953
  var init_catalogListProductVariants2 = __esm(() => {
47403
46954
  init_catalogListProductVariants();
47404
46955
  init_operations();
47405
46956
  init_tools();
47406
- args29 = {
46957
+ args31 = {
47407
46958
  request: ListProductVariantsRequest$inboundSchema
47408
46959
  };
47409
46960
  tool$catalogListProductVariants = {
@@ -47411,9 +46962,9 @@ var init_catalogListProductVariants2 = __esm(() => {
47411
46962
  description: `Retrieve product variants
47412
46963
 
47413
46964
  Retrieves the variants of an existing product. Supply the unique product ID, and Commerce Engine will return the corresponding product variants information.`,
47414
- args: args29,
47415
- tool: async (client, args30, ctx) => {
47416
- const [result, apiCall] = await catalogListProductVariants(client, args30.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
46965
+ args: args31,
46966
+ tool: async (client, args32, ctx) => {
46967
+ const [result, apiCall] = await catalogListProductVariants(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47417
46968
  if (!result.ok) {
47418
46969
  return {
47419
46970
  content: [{ type: "text", text: result.error.message }],
@@ -47428,9 +46979,9 @@ Retrieves the variants of an existing product. Supply the unique product ID, and
47428
46979
 
47429
46980
  // src/funcs/catalogListSimilarProducts.ts
47430
46981
  function catalogListSimilarProducts(client, request, options) {
47431
- return new APIPromise($do31(client, request, options));
46982
+ return new APIPromise($do33(client, request, options));
47432
46983
  }
47433
- async function $do31(client, request, options) {
46984
+ async function $do33(client, request, options) {
47434
46985
  const parsed = safeParse(request, (value) => ListSimilarProductsRequest$outboundSchema.parse(value), "Input validation failed");
47435
46986
  if (!parsed.ok) {
47436
46987
  return [parsed, { status: "invalid" }];
@@ -47505,12 +47056,12 @@ var init_catalogListSimilarProducts = __esm(() => {
47505
47056
  });
47506
47057
 
47507
47058
  // src/mcp-server/tools/catalogListSimilarProducts.ts
47508
- var args30, tool$catalogListSimilarProducts;
47059
+ var args32, tool$catalogListSimilarProducts;
47509
47060
  var init_catalogListSimilarProducts2 = __esm(() => {
47510
47061
  init_catalogListSimilarProducts();
47511
47062
  init_operations();
47512
47063
  init_tools();
47513
- args30 = {
47064
+ args32 = {
47514
47065
  request: ListSimilarProductsRequest$inboundSchema
47515
47066
  };
47516
47067
  tool$catalogListSimilarProducts = {
@@ -47518,9 +47069,9 @@ var init_catalogListSimilarProducts2 = __esm(() => {
47518
47069
  description: `Retrieve similar products
47519
47070
 
47520
47071
  Retrieves a list of products similar to a specified product based on their attributes and category. The similar products are returned sorted by relevance, with the most closely matching products appearing first. Useful for providing product recommendations to your customers.`,
47521
- args: args30,
47522
- tool: async (client, args31, ctx) => {
47523
- const [result, apiCall] = await catalogListSimilarProducts(client, args31.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47072
+ args: args32,
47073
+ tool: async (client, args33, ctx) => {
47074
+ const [result, apiCall] = await catalogListSimilarProducts(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47524
47075
  if (!result.ok) {
47525
47076
  return {
47526
47077
  content: [{ type: "text", text: result.error.message }],
@@ -47535,9 +47086,9 @@ Retrieves a list of products similar to a specified product based on their attri
47535
47086
 
47536
47087
  // src/funcs/catalogListSkus.ts
47537
47088
  function catalogListSkus(client, request, options) {
47538
- return new APIPromise($do32(client, request, options));
47089
+ return new APIPromise($do34(client, request, options));
47539
47090
  }
47540
- async function $do32(client, request, options) {
47091
+ async function $do34(client, request, options) {
47541
47092
  const parsed = safeParse(request, (value) => ListSkusRequest$outboundSchema.parse(value), "Input validation failed");
47542
47093
  if (!parsed.ok) {
47543
47094
  return [parsed, { status: "invalid" }];
@@ -47614,12 +47165,12 @@ var init_catalogListSkus = __esm(() => {
47614
47165
  });
47615
47166
 
47616
47167
  // src/mcp-server/tools/catalogListSkus.ts
47617
- var args31, tool$catalogListSkus;
47168
+ var args33, tool$catalogListSkus;
47618
47169
  var init_catalogListSkus2 = __esm(() => {
47619
47170
  init_catalogListSkus();
47620
47171
  init_operations();
47621
47172
  init_tools();
47622
- args31 = {
47173
+ args33 = {
47623
47174
  request: ListSkusRequest$inboundSchema
47624
47175
  };
47625
47176
  tool$catalogListSkus = {
@@ -47627,9 +47178,9 @@ var init_catalogListSkus2 = __esm(() => {
47627
47178
  description: `List all SKUs
47628
47179
 
47629
47180
  Returns a list of SKUs. The SKUs are returned sorted by creation date, with the most recently created SKUs appearing first.`,
47630
- args: args31,
47631
- tool: async (client, args32, ctx) => {
47632
- const [result, apiCall] = await catalogListSkus(client, args32.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47181
+ args: args33,
47182
+ tool: async (client, args34, ctx) => {
47183
+ const [result, apiCall] = await catalogListSkus(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47633
47184
  if (!result.ok) {
47634
47185
  return {
47635
47186
  content: [{ type: "text", text: result.error.message }],
@@ -47644,9 +47195,9 @@ Returns a list of SKUs. The SKUs are returned sorted by creation date, with the
47644
47195
 
47645
47196
  // src/funcs/catalogListUpsellProducts.ts
47646
47197
  function catalogListUpsellProducts(client, request, options) {
47647
- return new APIPromise($do33(client, request, options));
47198
+ return new APIPromise($do35(client, request, options));
47648
47199
  }
47649
- async function $do33(client, request, options) {
47200
+ async function $do35(client, request, options) {
47650
47201
  const parsed = safeParse(request, (value) => ListUpsellProductsRequest$outboundSchema.parse(value), "Input validation failed");
47651
47202
  if (!parsed.ok) {
47652
47203
  return [parsed, { status: "invalid" }];
@@ -47721,12 +47272,12 @@ var init_catalogListUpsellProducts = __esm(() => {
47721
47272
  });
47722
47273
 
47723
47274
  // src/mcp-server/tools/catalogListUpsellProducts.ts
47724
- var args32, tool$catalogListUpsellProducts;
47275
+ var args34, tool$catalogListUpsellProducts;
47725
47276
  var init_catalogListUpsellProducts2 = __esm(() => {
47726
47277
  init_catalogListUpsellProducts();
47727
47278
  init_operations();
47728
47279
  init_tools();
47729
- args32 = {
47280
+ args34 = {
47730
47281
  request: ListUpsellProductsRequest$inboundSchema
47731
47282
  };
47732
47283
  tool$catalogListUpsellProducts = {
@@ -47734,9 +47285,9 @@ var init_catalogListUpsellProducts2 = __esm(() => {
47734
47285
  description: `Retrieve up-sell products
47735
47286
 
47736
47287
  Retrieves a list of products specified for upsell. The upsell products are returned based on product ids specified in request param.`,
47737
- args: args32,
47738
- tool: async (client, args33, ctx) => {
47739
- const [result, apiCall] = await catalogListUpsellProducts(client, args33.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47288
+ args: args34,
47289
+ tool: async (client, args35, ctx) => {
47290
+ const [result, apiCall] = await catalogListUpsellProducts(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47740
47291
  if (!result.ok) {
47741
47292
  return {
47742
47293
  content: [{ type: "text", text: result.error.message }],
@@ -47751,9 +47302,9 @@ Retrieves a list of products specified for upsell. The upsell products are retur
47751
47302
 
47752
47303
  // src/funcs/catalogSearchProducts.ts
47753
47304
  function catalogSearchProducts(client, request, options) {
47754
- return new APIPromise($do34(client, request, options));
47305
+ return new APIPromise($do36(client, request, options));
47755
47306
  }
47756
- async function $do34(client, request, options) {
47307
+ async function $do36(client, request, options) {
47757
47308
  const parsed = safeParse(request, (value) => SearchProduct$outboundSchema.parse(value), "Input validation failed");
47758
47309
  if (!parsed.ok) {
47759
47310
  return [parsed, { status: "invalid" }];
@@ -47823,12 +47374,12 @@ var init_catalogSearchProducts = __esm(() => {
47823
47374
  });
47824
47375
 
47825
47376
  // src/mcp-server/tools/catalogSearchProducts.ts
47826
- var args33, tool$catalogSearchProducts;
47377
+ var args35, tool$catalogSearchProducts;
47827
47378
  var init_catalogSearchProducts2 = __esm(() => {
47828
47379
  init_catalogSearchProducts();
47829
47380
  init_components();
47830
47381
  init_tools();
47831
- args33 = {
47382
+ args35 = {
47832
47383
  request: SearchProduct$inboundSchema
47833
47384
  };
47834
47385
  tool$catalogSearchProducts = {
@@ -47836,9 +47387,9 @@ var init_catalogSearchProducts2 = __esm(() => {
47836
47387
  description: `Search products
47837
47388
 
47838
47389
  Search for products matching a specific words or characters given.`,
47839
- args: args33,
47840
- tool: async (client, args34, ctx) => {
47841
- const [result, apiCall] = await catalogSearchProducts(client, args34.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47390
+ args: args35,
47391
+ tool: async (client, args36, ctx) => {
47392
+ const [result, apiCall] = await catalogSearchProducts(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47842
47393
  if (!result.ok) {
47843
47394
  return {
47844
47395
  content: [{ type: "text", text: result.error.message }],
@@ -47853,9 +47404,9 @@ Search for products matching a specific words or characters given.`,
47853
47404
 
47854
47405
  // src/funcs/commonListCountryPincodes.ts
47855
47406
  function commonListCountryPincodes(client, request, options) {
47856
- return new APIPromise($do35(client, request, options));
47407
+ return new APIPromise($do37(client, request, options));
47857
47408
  }
47858
- async function $do35(client, request, options) {
47409
+ async function $do37(client, request, options) {
47859
47410
  const parsed = safeParse(request, (value) => ListCountryPincodesRequest$outboundSchema.parse(value), "Input validation failed");
47860
47411
  if (!parsed.ok) {
47861
47412
  return [parsed, { status: "invalid" }];
@@ -47928,12 +47479,12 @@ var init_commonListCountryPincodes = __esm(() => {
47928
47479
  });
47929
47480
 
47930
47481
  // src/mcp-server/tools/commonListCountryPincodes.ts
47931
- var args34, tool$commonListCountryPincodes;
47482
+ var args36, tool$commonListCountryPincodes;
47932
47483
  var init_commonListCountryPincodes2 = __esm(() => {
47933
47484
  init_commonListCountryPincodes();
47934
47485
  init_operations();
47935
47486
  init_tools();
47936
- args34 = {
47487
+ args36 = {
47937
47488
  request: ListCountryPincodesRequest$inboundSchema
47938
47489
  };
47939
47490
  tool$commonListCountryPincodes = {
@@ -47941,9 +47492,9 @@ var init_commonListCountryPincodes2 = __esm(() => {
47941
47492
  description: `Retrieve pincodes
47942
47493
 
47943
47494
  Retrieve pincodes`,
47944
- args: args34,
47945
- tool: async (client, args35, ctx) => {
47946
- const [result, apiCall] = await commonListCountryPincodes(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47495
+ args: args36,
47496
+ tool: async (client, args37, ctx) => {
47497
+ const [result, apiCall] = await commonListCountryPincodes(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47947
47498
  if (!result.ok) {
47948
47499
  return {
47949
47500
  content: [{ type: "text", text: result.error.message }],
@@ -47958,9 +47509,9 @@ Retrieve pincodes`,
47958
47509
 
47959
47510
  // src/funcs/customersCreateAddress.ts
47960
47511
  function customersCreateAddress(client, request, options) {
47961
- return new APIPromise($do36(client, request, options));
47512
+ return new APIPromise($do38(client, request, options));
47962
47513
  }
47963
- async function $do36(client, request, options) {
47514
+ async function $do38(client, request, options) {
47964
47515
  const parsed = safeParse(request, (value) => CreateAddressRequest$outboundSchema.parse(value), "Input validation failed");
47965
47516
  if (!parsed.ok) {
47966
47517
  return [parsed, { status: "invalid" }];
@@ -48035,12 +47586,12 @@ var init_customersCreateAddress = __esm(() => {
48035
47586
  });
48036
47587
 
48037
47588
  // src/mcp-server/tools/customersCreateAddress.ts
48038
- var args35, tool$customersCreateAddress;
47589
+ var args37, tool$customersCreateAddress;
48039
47590
  var init_customersCreateAddress2 = __esm(() => {
48040
47591
  init_customersCreateAddress();
48041
47592
  init_operations();
48042
47593
  init_tools();
48043
- args35 = {
47594
+ args37 = {
48044
47595
  request: CreateAddressRequest$inboundSchema
48045
47596
  };
48046
47597
  tool$customersCreateAddress = {
@@ -48048,229 +47599,9 @@ var init_customersCreateAddress2 = __esm(() => {
48048
47599
  description: `Create address
48049
47600
 
48050
47601
  Add new address`,
48051
- args: args35,
48052
- tool: async (client, args36, ctx) => {
48053
- const [result, apiCall] = await customersCreateAddress(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48054
- if (!result.ok) {
48055
- return {
48056
- content: [{ type: "text", text: result.error.message }],
48057
- isError: true
48058
- };
48059
- }
48060
- const value = result.value;
48061
- return formatResult(value, apiCall);
48062
- }
48063
- };
48064
- });
48065
-
48066
- // src/funcs/customersDeleteAddress.ts
48067
- function customersDeleteAddress(client, request, options) {
48068
- return new APIPromise($do37(client, request, options));
48069
- }
48070
- async function $do37(client, request, options) {
48071
- const parsed = safeParse(request, (value) => DeleteAddressRequest$outboundSchema.parse(value), "Input validation failed");
48072
- if (!parsed.ok) {
48073
- return [parsed, { status: "invalid" }];
48074
- }
48075
- const payload = parsed.value;
48076
- const body = null;
48077
- const pathParams = {
48078
- address_id: encodeSimple("address_id", payload.address_id, {
48079
- explode: false,
48080
- charEncoding: "percent"
48081
- }),
48082
- user_id: encodeSimple("user_id", payload.user_id, {
48083
- explode: false,
48084
- charEncoding: "percent"
48085
- })
48086
- };
48087
- const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
48088
- const headers = new Headers(compactMap({
48089
- Accept: "application/json"
48090
- }));
48091
- const secConfig = await extractSecurity(client._options.authorization);
48092
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48093
- const requestSecurity = resolveGlobalSecurity(securityInput);
48094
- const context = {
48095
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48096
- operationID: "delete-address",
48097
- oAuth2Scopes: [],
48098
- resolvedSecurity: requestSecurity,
48099
- securitySource: client._options.authorization,
48100
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48101
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48102
- };
48103
- const requestRes = client._createRequest(context, {
48104
- security: requestSecurity,
48105
- method: "DELETE",
48106
- baseURL: options?.serverURL,
48107
- path,
48108
- headers,
48109
- body,
48110
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48111
- }, options);
48112
- if (!requestRes.ok) {
48113
- return [requestRes, { status: "invalid" }];
48114
- }
48115
- const req = requestRes.value;
48116
- const doResult = await client._do(req, {
48117
- context,
48118
- errorCodes: ["401", "404", "4XX", "5XX"],
48119
- retryConfig: context.retryConfig,
48120
- retryCodes: context.retryCodes
48121
- });
48122
- if (!doResult.ok) {
48123
- return [doResult, { status: "request-error", request: req }];
48124
- }
48125
- const response = doResult.value;
48126
- const responseFields = {
48127
- HttpMeta: { Response: response, Request: req }
48128
- };
48129
- const [result] = await match(json(200, DeleteAddressResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48130
- if (!result.ok) {
48131
- return [result, { status: "complete", request: req, response }];
48132
- }
48133
- return [result, { status: "complete", request: req, response }];
48134
- }
48135
- var init_customersDeleteAddress = __esm(() => {
48136
- init_encodings();
48137
- init_matchers();
48138
- init_primitives();
48139
- init_schemas();
48140
- init_security();
48141
- init_url();
48142
- init_errors();
48143
- init_operations();
48144
- init_async();
48145
- });
48146
-
48147
- // src/mcp-server/tools/customersDeleteAddress.ts
48148
- var args36, tool$customersDeleteAddress;
48149
- var init_customersDeleteAddress2 = __esm(() => {
48150
- init_customersDeleteAddress();
48151
- init_operations();
48152
- init_tools();
48153
- args36 = {
48154
- request: DeleteAddressRequest$inboundSchema
48155
- };
48156
- tool$customersDeleteAddress = {
48157
- name: "customers-delete-address",
48158
- description: `Remove particular address
48159
-
48160
- Delete address`,
48161
- args: args36,
48162
- tool: async (client, args37, ctx) => {
48163
- const [result, apiCall] = await customersDeleteAddress(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48164
- if (!result.ok) {
48165
- return {
48166
- content: [{ type: "text", text: result.error.message }],
48167
- isError: true
48168
- };
48169
- }
48170
- const value = result.value;
48171
- return formatResult(value, apiCall);
48172
- }
48173
- };
48174
- });
48175
-
48176
- // src/funcs/customersGetAddressDetail.ts
48177
- function customersGetAddressDetail(client, request, options) {
48178
- return new APIPromise($do38(client, request, options));
48179
- }
48180
- async function $do38(client, request, options) {
48181
- const parsed = safeParse(request, (value) => GetAddressDetailRequest$outboundSchema.parse(value), "Input validation failed");
48182
- if (!parsed.ok) {
48183
- return [parsed, { status: "invalid" }];
48184
- }
48185
- const payload = parsed.value;
48186
- const body = null;
48187
- const pathParams = {
48188
- address_id: encodeSimple("address_id", payload.address_id, {
48189
- explode: false,
48190
- charEncoding: "percent"
48191
- }),
48192
- user_id: encodeSimple("user_id", payload.user_id, {
48193
- explode: false,
48194
- charEncoding: "percent"
48195
- })
48196
- };
48197
- const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
48198
- const headers = new Headers(compactMap({
48199
- Accept: "application/json"
48200
- }));
48201
- const secConfig = await extractSecurity(client._options.authorization);
48202
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48203
- const requestSecurity = resolveGlobalSecurity(securityInput);
48204
- const context = {
48205
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48206
- operationID: "get-address-detail",
48207
- oAuth2Scopes: [],
48208
- resolvedSecurity: requestSecurity,
48209
- securitySource: client._options.authorization,
48210
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48211
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48212
- };
48213
- const requestRes = client._createRequest(context, {
48214
- security: requestSecurity,
48215
- method: "GET",
48216
- baseURL: options?.serverURL,
48217
- path,
48218
- headers,
48219
- body,
48220
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48221
- }, options);
48222
- if (!requestRes.ok) {
48223
- return [requestRes, { status: "invalid" }];
48224
- }
48225
- const req = requestRes.value;
48226
- const doResult = await client._do(req, {
48227
- context,
48228
- errorCodes: ["401", "404", "4XX", "5XX"],
48229
- retryConfig: context.retryConfig,
48230
- retryCodes: context.retryCodes
48231
- });
48232
- if (!doResult.ok) {
48233
- return [doResult, { status: "request-error", request: req }];
48234
- }
48235
- const response = doResult.value;
48236
- const responseFields = {
48237
- HttpMeta: { Response: response, Request: req }
48238
- };
48239
- const [result] = await match(json(200, GetAddressDetailResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48240
- if (!result.ok) {
48241
- return [result, { status: "complete", request: req, response }];
48242
- }
48243
- return [result, { status: "complete", request: req, response }];
48244
- }
48245
- var init_customersGetAddressDetail = __esm(() => {
48246
- init_encodings();
48247
- init_matchers();
48248
- init_primitives();
48249
- init_schemas();
48250
- init_security();
48251
- init_url();
48252
- init_errors();
48253
- init_operations();
48254
- init_async();
48255
- });
48256
-
48257
- // src/mcp-server/tools/customersGetAddressDetail.ts
48258
- var args37, tool$customersGetAddressDetail;
48259
- var init_customersGetAddressDetail2 = __esm(() => {
48260
- init_customersGetAddressDetail();
48261
- init_operations();
48262
- init_tools();
48263
- args37 = {
48264
- request: GetAddressDetailRequest$inboundSchema
48265
- };
48266
- tool$customersGetAddressDetail = {
48267
- name: "customers-get-address-detail",
48268
- description: `Retrieve particular address
48269
-
48270
- Retrieve address`,
48271
47602
  args: args37,
48272
47603
  tool: async (client, args38, ctx) => {
48273
- const [result, apiCall] = await customersGetAddressDetail(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47604
+ const [result, apiCall] = await customersCreateAddress(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48274
47605
  if (!result.ok) {
48275
47606
  return {
48276
47607
  content: [{ type: "text", text: result.error.message }],
@@ -48283,226 +47614,17 @@ Retrieve address`,
48283
47614
  };
48284
47615
  });
48285
47616
 
48286
- // src/funcs/customersListAddresses.ts
48287
- function customersListAddresses(client, request, options) {
47617
+ // src/funcs/customersDeleteAddress.ts
47618
+ function customersDeleteAddress(client, request, options) {
48288
47619
  return new APIPromise($do39(client, request, options));
48289
47620
  }
48290
47621
  async function $do39(client, request, options) {
48291
- const parsed = safeParse(request, (value) => ListAddressesRequest$outboundSchema.parse(value), "Input validation failed");
48292
- if (!parsed.ok) {
48293
- return [parsed, { status: "invalid" }];
48294
- }
48295
- const payload = parsed.value;
48296
- const body = null;
48297
- const pathParams = {
48298
- user_id: encodeSimple("user_id", payload.user_id, {
48299
- explode: false,
48300
- charEncoding: "percent"
48301
- })
48302
- };
48303
- const path = pathToFunc("/customers/{user_id}/addresses")(pathParams);
48304
- const query = encodeFormQuery({
48305
- limit: payload.limit,
48306
- page: payload.page
48307
- });
48308
- const headers = new Headers(compactMap({
48309
- Accept: "application/json"
48310
- }));
48311
- const secConfig = await extractSecurity(client._options.authorization);
48312
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48313
- const requestSecurity = resolveGlobalSecurity(securityInput);
48314
- const context = {
48315
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48316
- operationID: "list-addresses",
48317
- oAuth2Scopes: [],
48318
- resolvedSecurity: requestSecurity,
48319
- securitySource: client._options.authorization,
48320
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48321
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48322
- };
48323
- const requestRes = client._createRequest(context, {
48324
- security: requestSecurity,
48325
- method: "GET",
48326
- baseURL: options?.serverURL,
48327
- path,
48328
- headers,
48329
- query,
48330
- body,
48331
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48332
- }, options);
48333
- if (!requestRes.ok) {
48334
- return [requestRes, { status: "invalid" }];
48335
- }
48336
- const req = requestRes.value;
48337
- const doResult = await client._do(req, {
48338
- context,
48339
- errorCodes: ["4XX", "5XX"],
48340
- retryConfig: context.retryConfig,
48341
- retryCodes: context.retryCodes
48342
- });
48343
- if (!doResult.ok) {
48344
- return [doResult, { status: "request-error", request: req }];
48345
- }
48346
- const response = doResult.value;
48347
- const [result] = await match(json(200, ListAddressesResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
48348
- if (!result.ok) {
48349
- return [result, { status: "complete", request: req, response }];
48350
- }
48351
- return [result, { status: "complete", request: req, response }];
48352
- }
48353
- var init_customersListAddresses = __esm(() => {
48354
- init_encodings();
48355
- init_matchers();
48356
- init_primitives();
48357
- init_schemas();
48358
- init_security();
48359
- init_url();
48360
- init_operations();
48361
- init_async();
48362
- });
48363
-
48364
- // src/mcp-server/tools/customersListAddresses.ts
48365
- var args38, tool$customersListAddresses;
48366
- var init_customersListAddresses2 = __esm(() => {
48367
- init_customersListAddresses();
48368
- init_operations();
48369
- init_tools();
48370
- args38 = {
48371
- request: ListAddressesRequest$inboundSchema
48372
- };
48373
- tool$customersListAddresses = {
48374
- name: "customers-list-addresses",
48375
- description: `Retrieve all addresses
48376
-
48377
- Retrieve billing and shipping address of particular customer`,
48378
- args: args38,
48379
- tool: async (client, args39, ctx) => {
48380
- const [result, apiCall] = await customersListAddresses(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48381
- if (!result.ok) {
48382
- return {
48383
- content: [{ type: "text", text: result.error.message }],
48384
- isError: true
48385
- };
48386
- }
48387
- const value = result.value;
48388
- return formatResult(value, apiCall);
48389
- }
48390
- };
48391
- });
48392
-
48393
- // src/funcs/customersListUserReviews.ts
48394
- function customersListUserReviews(client, request, options) {
48395
- return new APIPromise($do40(client, request, options));
48396
- }
48397
- async function $do40(client, request, options) {
48398
- const parsed = safeParse(request, (value) => ListUserReviewsRequest$outboundSchema.parse(value), "Input validation failed");
47622
+ const parsed = safeParse(request, (value) => DeleteAddressRequest$outboundSchema.parse(value), "Input validation failed");
48399
47623
  if (!parsed.ok) {
48400
47624
  return [parsed, { status: "invalid" }];
48401
47625
  }
48402
47626
  const payload = parsed.value;
48403
47627
  const body = null;
48404
- const pathParams = {
48405
- user_id: encodeSimple("user_id", payload.user_id, {
48406
- explode: false,
48407
- charEncoding: "percent"
48408
- })
48409
- };
48410
- const path = pathToFunc("/customers/{user_id}/reviews")(pathParams);
48411
- const headers = new Headers(compactMap({
48412
- Accept: "application/json"
48413
- }));
48414
- const secConfig = await extractSecurity(client._options.authorization);
48415
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48416
- const requestSecurity = resolveGlobalSecurity(securityInput);
48417
- const context = {
48418
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48419
- operationID: "list-user-reviews",
48420
- oAuth2Scopes: [],
48421
- resolvedSecurity: requestSecurity,
48422
- securitySource: client._options.authorization,
48423
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48424
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48425
- };
48426
- const requestRes = client._createRequest(context, {
48427
- security: requestSecurity,
48428
- method: "GET",
48429
- baseURL: options?.serverURL,
48430
- path,
48431
- headers,
48432
- body,
48433
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48434
- }, options);
48435
- if (!requestRes.ok) {
48436
- return [requestRes, { status: "invalid" }];
48437
- }
48438
- const req = requestRes.value;
48439
- const doResult = await client._do(req, {
48440
- context,
48441
- errorCodes: ["4XX", "5XX"],
48442
- retryConfig: context.retryConfig,
48443
- retryCodes: context.retryCodes
48444
- });
48445
- if (!doResult.ok) {
48446
- return [doResult, { status: "request-error", request: req }];
48447
- }
48448
- const response = doResult.value;
48449
- const [result] = await match(json(200, ListUserReviewsResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
48450
- if (!result.ok) {
48451
- return [result, { status: "complete", request: req, response }];
48452
- }
48453
- return [result, { status: "complete", request: req, response }];
48454
- }
48455
- var init_customersListUserReviews = __esm(() => {
48456
- init_encodings();
48457
- init_matchers();
48458
- init_primitives();
48459
- init_schemas();
48460
- init_security();
48461
- init_url();
48462
- init_operations();
48463
- init_async();
48464
- });
48465
-
48466
- // src/mcp-server/tools/customersListUserReviews.ts
48467
- var args39, tool$customersListUserReviews;
48468
- var init_customersListUserReviews2 = __esm(() => {
48469
- init_customersListUserReviews();
48470
- init_operations();
48471
- init_tools();
48472
- args39 = {
48473
- request: ListUserReviewsRequest$inboundSchema
48474
- };
48475
- tool$customersListUserReviews = {
48476
- name: "customers-list-user-reviews",
48477
- description: `Retrieve all reviews
48478
-
48479
- Retrieve all reviews`,
48480
- args: args39,
48481
- tool: async (client, args40, ctx) => {
48482
- const [result, apiCall] = await customersListUserReviews(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48483
- if (!result.ok) {
48484
- return {
48485
- content: [{ type: "text", text: result.error.message }],
48486
- isError: true
48487
- };
48488
- }
48489
- const value = result.value;
48490
- return formatResult(value, apiCall);
48491
- }
48492
- };
48493
- });
48494
-
48495
- // src/funcs/customersUpdateAddressDetail.ts
48496
- function customersUpdateAddressDetail(client, request, options) {
48497
- return new APIPromise($do41(client, request, options));
48498
- }
48499
- async function $do41(client, request, options) {
48500
- const parsed = safeParse(request, (value) => UpdateAddressDetailRequest$outboundSchema.parse(value), "Input validation failed");
48501
- if (!parsed.ok) {
48502
- return [parsed, { status: "invalid" }];
48503
- }
48504
- const payload = parsed.value;
48505
- const body = encodeJSON("body", payload.RequestBody, { explode: true });
48506
47628
  const pathParams = {
48507
47629
  address_id: encodeSimple("address_id", payload.address_id, {
48508
47630
  explode: false,
@@ -48514,166 +47636,6 @@ async function $do41(client, request, options) {
48514
47636
  })
48515
47637
  };
48516
47638
  const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
48517
- const headers = new Headers(compactMap({
48518
- "Content-Type": "application/json",
48519
- Accept: "application/json"
48520
- }));
48521
- const secConfig = await extractSecurity(client._options.authorization);
48522
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48523
- const requestSecurity = resolveGlobalSecurity(securityInput);
48524
- const context = {
48525
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48526
- operationID: "update-address-detail",
48527
- oAuth2Scopes: [],
48528
- resolvedSecurity: requestSecurity,
48529
- securitySource: client._options.authorization,
48530
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48531
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48532
- };
48533
- const requestRes = client._createRequest(context, {
48534
- security: requestSecurity,
48535
- method: "PUT",
48536
- baseURL: options?.serverURL,
48537
- path,
48538
- headers,
48539
- body,
48540
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48541
- }, options);
48542
- if (!requestRes.ok) {
48543
- return [requestRes, { status: "invalid" }];
48544
- }
48545
- const req = requestRes.value;
48546
- const doResult = await client._do(req, {
48547
- context,
48548
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
48549
- retryConfig: context.retryConfig,
48550
- retryCodes: context.retryCodes
48551
- });
48552
- if (!doResult.ok) {
48553
- return [doResult, { status: "request-error", request: req }];
48554
- }
48555
- const response = doResult.value;
48556
- const responseFields = {
48557
- HttpMeta: { Response: response, Request: req }
48558
- };
48559
- const [result] = await match(json(200, UpdateAddressDetailResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48560
- if (!result.ok) {
48561
- return [result, { status: "complete", request: req, response }];
48562
- }
48563
- return [result, { status: "complete", request: req, response }];
48564
- }
48565
- var init_customersUpdateAddressDetail = __esm(() => {
48566
- init_encodings();
48567
- init_matchers();
48568
- init_primitives();
48569
- init_schemas();
48570
- init_security();
48571
- init_url();
48572
- init_errors();
48573
- init_operations();
48574
- init_async();
48575
- });
48576
-
48577
- // src/mcp-server/tools/customersUpdateAddressDetail.ts
48578
- var args40, tool$customersUpdateAddressDetail;
48579
- var init_customersUpdateAddressDetail2 = __esm(() => {
48580
- init_customersUpdateAddressDetail();
48581
- init_operations();
48582
- init_tools();
48583
- args40 = {
48584
- request: UpdateAddressDetailRequest$inboundSchema
48585
- };
48586
- tool$customersUpdateAddressDetail = {
48587
- name: "customers-update-address-detail",
48588
- description: `Update particular address
48589
-
48590
- Update address`,
48591
- args: args40,
48592
- tool: async (client, args41, ctx) => {
48593
- const [result, apiCall] = await customersUpdateAddressDetail(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48594
- if (!result.ok) {
48595
- return {
48596
- content: [{ type: "text", text: result.error.message }],
48597
- isError: true
48598
- };
48599
- }
48600
- const value = result.value;
48601
- return formatResult(value, apiCall);
48602
- }
48603
- };
48604
- });
48605
-
48606
- // src/lib/files.ts
48607
- async function readableStreamToArrayBuffer(readable) {
48608
- const reader = readable.getReader();
48609
- const chunks = [];
48610
- let totalLength = 0;
48611
- let done = false;
48612
- while (!done) {
48613
- const { value, done: doneReading } = await reader.read();
48614
- if (doneReading) {
48615
- done = true;
48616
- } else {
48617
- chunks.push(value);
48618
- totalLength += value.length;
48619
- }
48620
- }
48621
- const concatenatedChunks = new Uint8Array(totalLength);
48622
- let offset = 0;
48623
- for (const chunk of chunks) {
48624
- concatenatedChunks.set(chunk, offset);
48625
- offset += chunk.length;
48626
- }
48627
- return concatenatedChunks.buffer;
48628
- }
48629
-
48630
- // src/types/streams.ts
48631
- function isReadableStream(val) {
48632
- if (typeof val !== "object" || val === null) {
48633
- return false;
48634
- }
48635
- const stream = val;
48636
- return typeof stream.getReader === "function" && typeof stream.cancel === "function" && typeof stream.tee === "function";
48637
- }
48638
-
48639
- // src/funcs/kycCreateDocument.ts
48640
- function kycCreateDocument(client, request, options) {
48641
- return new APIPromise($do42(client, request, options));
48642
- }
48643
- async function $do42(client, request, options) {
48644
- const parsed = safeParse(request, (value) => CreateDocumentRequest$outboundSchema.parse(value), "Input validation failed");
48645
- if (!parsed.ok) {
48646
- return [parsed, { status: "invalid" }];
48647
- }
48648
- const payload = parsed.value;
48649
- const body = new FormData;
48650
- if (payload.Document != null) {
48651
- appendForm(body, "document_number", payload.Document.document_number);
48652
- appendForm(body, "kyc_document_id", payload.Document.kyc_document_id);
48653
- if (payload.Document.file !== undefined) {
48654
- if (isBlobLike(payload.Document.file)) {
48655
- appendForm(body, "file", payload.Document.file);
48656
- } else if (isReadableStream(payload.Document.file.content)) {
48657
- const buffer = await readableStreamToArrayBuffer(payload.Document.file.content);
48658
- const blob = new Blob([buffer], { type: "application/octet-stream" });
48659
- appendForm(body, "file", blob);
48660
- } else {
48661
- appendForm(body, "file", new Blob([payload.Document.file.content], {
48662
- type: "application/octet-stream"
48663
- }), payload.Document.file.fileName);
48664
- }
48665
- }
48666
- if (payload.Document.note !== undefined) {
48667
- appendForm(body, "note", payload.Document.note);
48668
- }
48669
- }
48670
- const pathParams = {
48671
- id: encodeSimple("id", payload.id, {
48672
- explode: false,
48673
- charEncoding: "percent"
48674
- })
48675
- };
48676
- const path = pathToFunc("/customers/{id}/documents")(pathParams);
48677
47639
  const headers = new Headers(compactMap({
48678
47640
  Accept: "application/json"
48679
47641
  }));
@@ -48682,118 +47644,7 @@ async function $do42(client, request, options) {
48682
47644
  const requestSecurity = resolveGlobalSecurity(securityInput);
48683
47645
  const context = {
48684
47646
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48685
- operationID: "create-document",
48686
- oAuth2Scopes: [],
48687
- resolvedSecurity: requestSecurity,
48688
- securitySource: client._options.authorization,
48689
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
48690
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
48691
- };
48692
- const requestRes = client._createRequest(context, {
48693
- security: requestSecurity,
48694
- method: "POST",
48695
- baseURL: options?.serverURL,
48696
- path,
48697
- headers,
48698
- body,
48699
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
48700
- }, options);
48701
- if (!requestRes.ok) {
48702
- return [requestRes, { status: "invalid" }];
48703
- }
48704
- const req = requestRes.value;
48705
- const doResult = await client._do(req, {
48706
- context,
48707
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
48708
- retryConfig: context.retryConfig,
48709
- retryCodes: context.retryCodes
48710
- });
48711
- if (!doResult.ok) {
48712
- return [doResult, { status: "request-error", request: req }];
48713
- }
48714
- const response = doResult.value;
48715
- const responseFields = {
48716
- HttpMeta: { Response: response, Request: req }
48717
- };
48718
- const [result] = await match(json(200, CreateDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48719
- if (!result.ok) {
48720
- return [result, { status: "complete", request: req, response }];
48721
- }
48722
- return [result, { status: "complete", request: req, response }];
48723
- }
48724
- var init_kycCreateDocument = __esm(() => {
48725
- init_encodings();
48726
- init_matchers();
48727
- init_primitives();
48728
- init_schemas();
48729
- init_security();
48730
- init_url();
48731
- init_errors();
48732
- init_operations();
48733
- init_async();
48734
- init_blobs();
48735
- });
48736
-
48737
- // src/mcp-server/tools/kycCreateDocument.ts
48738
- var args41, tool$kycCreateDocument;
48739
- var init_kycCreateDocument2 = __esm(() => {
48740
- init_kycCreateDocument();
48741
- init_operations();
48742
- init_tools();
48743
- args41 = {
48744
- request: CreateDocumentRequest$inboundSchema
48745
- };
48746
- tool$kycCreateDocument = {
48747
- name: "kyc-create-document",
48748
- description: `Create document
48749
-
48750
- Create document`,
48751
- args: args41,
48752
- tool: async (client, args42, ctx) => {
48753
- const [result, apiCall] = await kycCreateDocument(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48754
- if (!result.ok) {
48755
- return {
48756
- content: [{ type: "text", text: result.error.message }],
48757
- isError: true
48758
- };
48759
- }
48760
- const value = result.value;
48761
- return formatResult(value, apiCall);
48762
- }
48763
- };
48764
- });
48765
-
48766
- // src/funcs/kycDeleteDocument.ts
48767
- function kycDeleteDocument(client, request, options) {
48768
- return new APIPromise($do43(client, request, options));
48769
- }
48770
- async function $do43(client, request, options) {
48771
- const parsed = safeParse(request, (value) => DeleteDocumentRequest$outboundSchema.parse(value), "Input validation failed");
48772
- if (!parsed.ok) {
48773
- return [parsed, { status: "invalid" }];
48774
- }
48775
- const payload = parsed.value;
48776
- const body = null;
48777
- const pathParams = {
48778
- document_id: encodeSimple("document_id", payload.document_id, {
48779
- explode: false,
48780
- charEncoding: "percent"
48781
- }),
48782
- id: encodeSimple("id", payload.id, {
48783
- explode: false,
48784
- charEncoding: "percent"
48785
- })
48786
- };
48787
- const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
48788
- const headers = new Headers(compactMap({
48789
- Accept: "application/json"
48790
- }));
48791
- const secConfig = await extractSecurity(client._options.authorization);
48792
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
48793
- const requestSecurity = resolveGlobalSecurity(securityInput);
48794
- const context = {
48795
- baseURL: options?.serverURL ?? client._baseURL ?? "",
48796
- operationID: "delete-document",
47647
+ operationID: "delete-address",
48797
47648
  oAuth2Scopes: [],
48798
47649
  resolvedSecurity: requestSecurity,
48799
47650
  securitySource: client._options.authorization,
@@ -48815,7 +47666,7 @@ async function $do43(client, request, options) {
48815
47666
  const req = requestRes.value;
48816
47667
  const doResult = await client._do(req, {
48817
47668
  context,
48818
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
47669
+ errorCodes: ["401", "404", "4XX", "5XX"],
48819
47670
  retryConfig: context.retryConfig,
48820
47671
  retryCodes: context.retryCodes
48821
47672
  });
@@ -48826,13 +47677,13 @@ async function $do43(client, request, options) {
48826
47677
  const responseFields = {
48827
47678
  HttpMeta: { Response: response, Request: req }
48828
47679
  };
48829
- const [result] = await match(json(200, DeleteDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47680
+ const [result] = await match(json(200, DeleteAddressResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48830
47681
  if (!result.ok) {
48831
47682
  return [result, { status: "complete", request: req, response }];
48832
47683
  }
48833
47684
  return [result, { status: "complete", request: req, response }];
48834
47685
  }
48835
- var init_kycDeleteDocument = __esm(() => {
47686
+ var init_customersDeleteAddress = __esm(() => {
48836
47687
  init_encodings();
48837
47688
  init_matchers();
48838
47689
  init_primitives();
@@ -48844,23 +47695,23 @@ var init_kycDeleteDocument = __esm(() => {
48844
47695
  init_async();
48845
47696
  });
48846
47697
 
48847
- // src/mcp-server/tools/kycDeleteDocument.ts
48848
- var args42, tool$kycDeleteDocument;
48849
- var init_kycDeleteDocument2 = __esm(() => {
48850
- init_kycDeleteDocument();
47698
+ // src/mcp-server/tools/customersDeleteAddress.ts
47699
+ var args38, tool$customersDeleteAddress;
47700
+ var init_customersDeleteAddress2 = __esm(() => {
47701
+ init_customersDeleteAddress();
48851
47702
  init_operations();
48852
47703
  init_tools();
48853
- args42 = {
48854
- request: DeleteDocumentRequest$inboundSchema
47704
+ args38 = {
47705
+ request: DeleteAddressRequest$inboundSchema
48855
47706
  };
48856
- tool$kycDeleteDocument = {
48857
- name: "kyc-delete-document",
48858
- description: `Delete document
47707
+ tool$customersDeleteAddress = {
47708
+ name: "customers-delete-address",
47709
+ description: `Remove particular address
48859
47710
 
48860
- Delete document`,
48861
- args: args42,
48862
- tool: async (client, args43, ctx) => {
48863
- const [result, apiCall] = await kycDeleteDocument(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47711
+ Delete address`,
47712
+ args: args38,
47713
+ tool: async (client, args39, ctx) => {
47714
+ const [result, apiCall] = await customersDeleteAddress(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48864
47715
  if (!result.ok) {
48865
47716
  return {
48866
47717
  content: [{ type: "text", text: result.error.message }],
@@ -48873,28 +47724,28 @@ Delete document`,
48873
47724
  };
48874
47725
  });
48875
47726
 
48876
- // src/funcs/kycGetDocument.ts
48877
- function kycGetDocument(client, request, options) {
48878
- return new APIPromise($do44(client, request, options));
47727
+ // src/funcs/customersGetAddressDetail.ts
47728
+ function customersGetAddressDetail(client, request, options) {
47729
+ return new APIPromise($do40(client, request, options));
48879
47730
  }
48880
- async function $do44(client, request, options) {
48881
- const parsed = safeParse(request, (value) => GetDocumentRequest$outboundSchema.parse(value), "Input validation failed");
47731
+ async function $do40(client, request, options) {
47732
+ const parsed = safeParse(request, (value) => GetAddressDetailRequest$outboundSchema.parse(value), "Input validation failed");
48882
47733
  if (!parsed.ok) {
48883
47734
  return [parsed, { status: "invalid" }];
48884
47735
  }
48885
47736
  const payload = parsed.value;
48886
47737
  const body = null;
48887
47738
  const pathParams = {
48888
- document_id: encodeSimple("document_id", payload.document_id, {
47739
+ address_id: encodeSimple("address_id", payload.address_id, {
48889
47740
  explode: false,
48890
47741
  charEncoding: "percent"
48891
47742
  }),
48892
- id: encodeSimple("id", payload.id, {
47743
+ user_id: encodeSimple("user_id", payload.user_id, {
48893
47744
  explode: false,
48894
47745
  charEncoding: "percent"
48895
47746
  })
48896
47747
  };
48897
- const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
47748
+ const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
48898
47749
  const headers = new Headers(compactMap({
48899
47750
  Accept: "application/json"
48900
47751
  }));
@@ -48903,7 +47754,7 @@ async function $do44(client, request, options) {
48903
47754
  const requestSecurity = resolveGlobalSecurity(securityInput);
48904
47755
  const context = {
48905
47756
  baseURL: options?.serverURL ?? client._baseURL ?? "",
48906
- operationID: "get-document",
47757
+ operationID: "get-address-detail",
48907
47758
  oAuth2Scopes: [],
48908
47759
  resolvedSecurity: requestSecurity,
48909
47760
  securitySource: client._options.authorization,
@@ -48925,7 +47776,7 @@ async function $do44(client, request, options) {
48925
47776
  const req = requestRes.value;
48926
47777
  const doResult = await client._do(req, {
48927
47778
  context,
48928
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
47779
+ errorCodes: ["401", "404", "4XX", "5XX"],
48929
47780
  retryConfig: context.retryConfig,
48930
47781
  retryCodes: context.retryCodes
48931
47782
  });
@@ -48936,13 +47787,13 @@ async function $do44(client, request, options) {
48936
47787
  const responseFields = {
48937
47788
  HttpMeta: { Response: response, Request: req }
48938
47789
  };
48939
- const [result] = await match(json(200, GetDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47790
+ const [result] = await match(json(200, GetAddressDetailResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
48940
47791
  if (!result.ok) {
48941
47792
  return [result, { status: "complete", request: req, response }];
48942
47793
  }
48943
47794
  return [result, { status: "complete", request: req, response }];
48944
47795
  }
48945
- var init_kycGetDocument = __esm(() => {
47796
+ var init_customersGetAddressDetail = __esm(() => {
48946
47797
  init_encodings();
48947
47798
  init_matchers();
48948
47799
  init_primitives();
@@ -48954,23 +47805,23 @@ var init_kycGetDocument = __esm(() => {
48954
47805
  init_async();
48955
47806
  });
48956
47807
 
48957
- // src/mcp-server/tools/kycGetDocument.ts
48958
- var args43, tool$kycGetDocument;
48959
- var init_kycGetDocument2 = __esm(() => {
48960
- init_kycGetDocument();
47808
+ // src/mcp-server/tools/customersGetAddressDetail.ts
47809
+ var args39, tool$customersGetAddressDetail;
47810
+ var init_customersGetAddressDetail2 = __esm(() => {
47811
+ init_customersGetAddressDetail();
48961
47812
  init_operations();
48962
47813
  init_tools();
48963
- args43 = {
48964
- request: GetDocumentRequest$inboundSchema
47814
+ args39 = {
47815
+ request: GetAddressDetailRequest$inboundSchema
48965
47816
  };
48966
- tool$kycGetDocument = {
48967
- name: "kyc-get-document",
48968
- description: `Retrieve document detail
47817
+ tool$customersGetAddressDetail = {
47818
+ name: "customers-get-address-detail",
47819
+ description: `Retrieve particular address
48969
47820
 
48970
- Retrieve document detail`,
48971
- args: args43,
48972
- tool: async (client, args44, ctx) => {
48973
- const [result, apiCall] = await kycGetDocument(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
47821
+ Retrieve address`,
47822
+ args: args39,
47823
+ tool: async (client, args40, ctx) => {
47824
+ const [result, apiCall] = await customersGetAddressDetail(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48974
47825
  if (!result.ok) {
48975
47826
  return {
48976
47827
  content: [{ type: "text", text: result.error.message }],
@@ -48983,24 +47834,24 @@ Retrieve document detail`,
48983
47834
  };
48984
47835
  });
48985
47836
 
48986
- // src/funcs/kycListDocuments.ts
48987
- function kycListDocuments(client, request, options) {
48988
- return new APIPromise($do45(client, request, options));
47837
+ // src/funcs/customersGetLoyaltyDetails.ts
47838
+ function customersGetLoyaltyDetails(client, request, options) {
47839
+ return new APIPromise($do41(client, request, options));
48989
47840
  }
48990
- async function $do45(client, request, options) {
48991
- const parsed = safeParse(request, (value) => ListDocumentsRequest$outboundSchema.parse(value), "Input validation failed");
47841
+ async function $do41(client, request, options) {
47842
+ const parsed = safeParse(request, (value) => GetLoyaltyDetailsRequest$outboundSchema.parse(value), "Input validation failed");
48992
47843
  if (!parsed.ok) {
48993
47844
  return [parsed, { status: "invalid" }];
48994
47845
  }
48995
47846
  const payload = parsed.value;
48996
47847
  const body = null;
48997
47848
  const pathParams = {
48998
- id: encodeSimple("id", payload.id, {
47849
+ user_id: encodeSimple("user_id", payload.user_id, {
48999
47850
  explode: false,
49000
47851
  charEncoding: "percent"
49001
47852
  })
49002
47853
  };
49003
- const path = pathToFunc("/customers/{id}/documents")(pathParams);
47854
+ const path = pathToFunc("/customers/{user_id}/loyalty")(pathParams);
49004
47855
  const headers = new Headers(compactMap({
49005
47856
  Accept: "application/json"
49006
47857
  }));
@@ -49009,7 +47860,7 @@ async function $do45(client, request, options) {
49009
47860
  const requestSecurity = resolveGlobalSecurity(securityInput);
49010
47861
  const context = {
49011
47862
  baseURL: options?.serverURL ?? client._baseURL ?? "",
49012
- operationID: "list-documents",
47863
+ operationID: "get-loyalty-details",
49013
47864
  oAuth2Scopes: [],
49014
47865
  resolvedSecurity: requestSecurity,
49015
47866
  securitySource: client._options.authorization,
@@ -49031,7 +47882,7 @@ async function $do45(client, request, options) {
49031
47882
  const req = requestRes.value;
49032
47883
  const doResult = await client._do(req, {
49033
47884
  context,
49034
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
47885
+ errorCodes: ["401", "404", "4XX", "5XX"],
49035
47886
  retryConfig: context.retryConfig,
49036
47887
  retryCodes: context.retryCodes
49037
47888
  });
@@ -49042,13 +47893,13 @@ async function $do45(client, request, options) {
49042
47893
  const responseFields = {
49043
47894
  HttpMeta: { Response: response, Request: req }
49044
47895
  };
49045
- const [result] = await match(json(200, ListDocumentsResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47896
+ const [result] = await match(json(200, GetLoyaltyDetailsResponseBody$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49046
47897
  if (!result.ok) {
49047
47898
  return [result, { status: "complete", request: req, response }];
49048
47899
  }
49049
47900
  return [result, { status: "complete", request: req, response }];
49050
47901
  }
49051
- var init_kycListDocuments = __esm(() => {
47902
+ var init_customersGetLoyaltyDetails = __esm(() => {
49052
47903
  init_encodings();
49053
47904
  init_matchers();
49054
47905
  init_primitives();
@@ -49060,109 +47911,23 @@ var init_kycListDocuments = __esm(() => {
49060
47911
  init_async();
49061
47912
  });
49062
47913
 
49063
- // src/mcp-server/tools/kycListDocuments.ts
49064
- var args44, tool$kycListDocuments;
49065
- var init_kycListDocuments2 = __esm(() => {
49066
- init_kycListDocuments();
47914
+ // src/mcp-server/tools/customersGetLoyaltyDetails.ts
47915
+ var args40, tool$customersGetLoyaltyDetails;
47916
+ var init_customersGetLoyaltyDetails2 = __esm(() => {
47917
+ init_customersGetLoyaltyDetails();
49067
47918
  init_operations();
49068
47919
  init_tools();
49069
- args44 = {
49070
- request: ListDocumentsRequest$inboundSchema
49071
- };
49072
- tool$kycListDocuments = {
49073
- name: "kyc-list-documents",
49074
- description: `List all documents
49075
-
49076
- List all documents added by a particular customer.`,
49077
- args: args44,
49078
- tool: async (client, args45, ctx) => {
49079
- const [result, apiCall] = await kycListDocuments(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49080
- if (!result.ok) {
49081
- return {
49082
- content: [{ type: "text", text: result.error.message }],
49083
- isError: true
49084
- };
49085
- }
49086
- const value = result.value;
49087
- return formatResult(value, apiCall);
49088
- }
49089
- };
49090
- });
49091
-
49092
- // src/funcs/kycListKycDocument.ts
49093
- function kycListKycDocument(client, options) {
49094
- return new APIPromise($do46(client, options));
49095
- }
49096
- async function $do46(client, options) {
49097
- const path = pathToFunc("/store/kyc-document")();
49098
- const headers = new Headers(compactMap({
49099
- Accept: "application/json"
49100
- }));
49101
- const secConfig = await extractSecurity(client._options.authorization);
49102
- const securityInput = secConfig == null ? {} : { authorization: secConfig };
49103
- const requestSecurity = resolveGlobalSecurity(securityInput);
49104
- const context = {
49105
- baseURL: options?.serverURL ?? client._baseURL ?? "",
49106
- operationID: "list-kyc-document",
49107
- oAuth2Scopes: [],
49108
- resolvedSecurity: requestSecurity,
49109
- securitySource: client._options.authorization,
49110
- retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
49111
- retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
49112
- };
49113
- const requestRes = client._createRequest(context, {
49114
- security: requestSecurity,
49115
- method: "GET",
49116
- baseURL: options?.serverURL,
49117
- path,
49118
- headers,
49119
- timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
49120
- }, options);
49121
- if (!requestRes.ok) {
49122
- return [requestRes, { status: "invalid" }];
49123
- }
49124
- const req = requestRes.value;
49125
- const doResult = await client._do(req, {
49126
- context,
49127
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
49128
- retryConfig: context.retryConfig,
49129
- retryCodes: context.retryCodes
49130
- });
49131
- if (!doResult.ok) {
49132
- return [doResult, { status: "request-error", request: req }];
49133
- }
49134
- const response = doResult.value;
49135
- const responseFields = {
49136
- HttpMeta: { Response: response, Request: req }
47920
+ args40 = {
47921
+ request: GetLoyaltyDetailsRequest$inboundSchema
49137
47922
  };
49138
- const [result] = await match(json(200, ListKycDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49139
- if (!result.ok) {
49140
- return [result, { status: "complete", request: req, response }];
49141
- }
49142
- return [result, { status: "complete", request: req, response }];
49143
- }
49144
- var init_kycListKycDocument = __esm(() => {
49145
- init_matchers();
49146
- init_primitives();
49147
- init_security();
49148
- init_url();
49149
- init_errors();
49150
- init_operations();
49151
- init_async();
49152
- });
49153
-
49154
- // src/mcp-server/tools/kycListKycDocument.ts
49155
- var tool$kycListKycDocument;
49156
- var init_kycListKycDocument2 = __esm(() => {
49157
- init_kycListKycDocument();
49158
- init_tools();
49159
- tool$kycListKycDocument = {
49160
- name: "kyc-list-kyc-document",
49161
- description: `List all kyc documents
47923
+ tool$customersGetLoyaltyDetails = {
47924
+ name: "customers-get-loyalty-details",
47925
+ description: `Retrieve loyalty details
49162
47926
 
49163
- List all kyc documents added for a particular store.`,
49164
- tool: async (client, ctx) => {
49165
- const [result, apiCall] = await kycListKycDocument(client, { fetchOptions: { signal: ctx.signal } }).$inspect();
47927
+ Retrieve loyalty details`,
47928
+ args: args40,
47929
+ tool: async (client, args41, ctx) => {
47930
+ const [result, apiCall] = await customersGetLoyaltyDetails(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49166
47931
  if (!result.ok) {
49167
47932
  return {
49168
47933
  content: [{ type: "text", text: result.error.message }],
@@ -49175,49 +47940,24 @@ List all kyc documents added for a particular store.`,
49175
47940
  };
49176
47941
  });
49177
47942
 
49178
- // src/funcs/kycUpdateDocument.ts
49179
- function kycUpdateDocument(client, request, options) {
49180
- return new APIPromise($do47(client, request, options));
47943
+ // src/funcs/customersListUserReviews.ts
47944
+ function customersListUserReviews(client, request, options) {
47945
+ return new APIPromise($do42(client, request, options));
49181
47946
  }
49182
- async function $do47(client, request, options) {
49183
- const parsed = safeParse(request, (value) => UpdateDocumentRequest$outboundSchema.parse(value), "Input validation failed");
47947
+ async function $do42(client, request, options) {
47948
+ const parsed = safeParse(request, (value) => ListUserReviewsRequest$outboundSchema.parse(value), "Input validation failed");
49184
47949
  if (!parsed.ok) {
49185
47950
  return [parsed, { status: "invalid" }];
49186
47951
  }
49187
47952
  const payload = parsed.value;
49188
- const body = new FormData;
49189
- if (payload.UpdateDocument != null) {
49190
- appendForm(body, "document_number", payload.UpdateDocument.document_number);
49191
- appendForm(body, "kyc_document_id", payload.UpdateDocument.kyc_document_id);
49192
- appendForm(body, "modified_reason", payload.UpdateDocument.modified_reason);
49193
- if (payload.UpdateDocument.file !== undefined) {
49194
- if (isBlobLike(payload.UpdateDocument.file)) {
49195
- appendForm(body, "file", payload.UpdateDocument.file);
49196
- } else if (isReadableStream(payload.UpdateDocument.file.content)) {
49197
- const buffer = await readableStreamToArrayBuffer(payload.UpdateDocument.file.content);
49198
- const blob = new Blob([buffer], { type: "application/octet-stream" });
49199
- appendForm(body, "file", blob);
49200
- } else {
49201
- appendForm(body, "file", new Blob([payload.UpdateDocument.file.content], {
49202
- type: "application/octet-stream"
49203
- }), payload.UpdateDocument.file.fileName);
49204
- }
49205
- }
49206
- if (payload.UpdateDocument.note !== undefined) {
49207
- appendForm(body, "note", payload.UpdateDocument.note);
49208
- }
49209
- }
47953
+ const body = null;
49210
47954
  const pathParams = {
49211
- document_id: encodeSimple("document_id", payload.document_id, {
49212
- explode: false,
49213
- charEncoding: "percent"
49214
- }),
49215
- id: encodeSimple("id", payload.id, {
47955
+ user_id: encodeSimple("user_id", payload.user_id, {
49216
47956
  explode: false,
49217
47957
  charEncoding: "percent"
49218
47958
  })
49219
47959
  };
49220
- const path = pathToFunc("/customers/{id}/documents/{document_id}")(pathParams);
47960
+ const path = pathToFunc("/customers/{user_id}/reviews")(pathParams);
49221
47961
  const headers = new Headers(compactMap({
49222
47962
  Accept: "application/json"
49223
47963
  }));
@@ -49226,7 +47966,7 @@ async function $do47(client, request, options) {
49226
47966
  const requestSecurity = resolveGlobalSecurity(securityInput);
49227
47967
  const context = {
49228
47968
  baseURL: options?.serverURL ?? client._baseURL ?? "",
49229
- operationID: "update-document",
47969
+ operationID: "list-user-reviews",
49230
47970
  oAuth2Scopes: [],
49231
47971
  resolvedSecurity: requestSecurity,
49232
47972
  securitySource: client._options.authorization,
@@ -49235,7 +47975,7 @@ async function $do47(client, request, options) {
49235
47975
  };
49236
47976
  const requestRes = client._createRequest(context, {
49237
47977
  security: requestSecurity,
49238
- method: "PUT",
47978
+ method: "GET",
49239
47979
  baseURL: options?.serverURL,
49240
47980
  path,
49241
47981
  headers,
@@ -49248,7 +47988,7 @@ async function $do47(client, request, options) {
49248
47988
  const req = requestRes.value;
49249
47989
  const doResult = await client._do(req, {
49250
47990
  context,
49251
- errorCodes: ["400", "401", "404", "4XX", "5XX"],
47991
+ errorCodes: ["4XX", "5XX"],
49252
47992
  retryConfig: context.retryConfig,
49253
47993
  retryCodes: context.retryCodes
49254
47994
  });
@@ -49256,45 +47996,40 @@ async function $do47(client, request, options) {
49256
47996
  return [doResult, { status: "request-error", request: req }];
49257
47997
  }
49258
47998
  const response = doResult.value;
49259
- const responseFields = {
49260
- HttpMeta: { Response: response, Request: req }
49261
- };
49262
- const [result] = await match(json(200, UpdateDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
47999
+ const [result] = await match(json(200, ListUserReviewsResponseBody$inboundSchema), fail("4XX"), fail("5XX"))(response);
49263
48000
  if (!result.ok) {
49264
48001
  return [result, { status: "complete", request: req, response }];
49265
48002
  }
49266
48003
  return [result, { status: "complete", request: req, response }];
49267
48004
  }
49268
- var init_kycUpdateDocument = __esm(() => {
48005
+ var init_customersListUserReviews = __esm(() => {
49269
48006
  init_encodings();
49270
48007
  init_matchers();
49271
48008
  init_primitives();
49272
48009
  init_schemas();
49273
48010
  init_security();
49274
48011
  init_url();
49275
- init_errors();
49276
48012
  init_operations();
49277
48013
  init_async();
49278
- init_blobs();
49279
48014
  });
49280
48015
 
49281
- // src/mcp-server/tools/kycUpdateDocument.ts
49282
- var args45, tool$kycUpdateDocument;
49283
- var init_kycUpdateDocument2 = __esm(() => {
49284
- init_kycUpdateDocument();
48016
+ // src/mcp-server/tools/customersListUserReviews.ts
48017
+ var args41, tool$customersListUserReviews;
48018
+ var init_customersListUserReviews2 = __esm(() => {
48019
+ init_customersListUserReviews();
49285
48020
  init_operations();
49286
48021
  init_tools();
49287
- args45 = {
49288
- request: UpdateDocumentRequest$inboundSchema
48022
+ args41 = {
48023
+ request: ListUserReviewsRequest$inboundSchema
49289
48024
  };
49290
- tool$kycUpdateDocument = {
49291
- name: "kyc-update-document",
49292
- description: `Update document detail
48025
+ tool$customersListUserReviews = {
48026
+ name: "customers-list-user-reviews",
48027
+ description: `Retrieve all reviews
49293
48028
 
49294
- Update document detail`,
49295
- args: args45,
49296
- tool: async (client, args46, ctx) => {
49297
- const [result, apiCall] = await kycUpdateDocument(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48029
+ Retrieve all reviews`,
48030
+ args: args41,
48031
+ tool: async (client, args42, ctx) => {
48032
+ const [result, apiCall] = await customersListUserReviews(client, args42.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49298
48033
  if (!result.ok) {
49299
48034
  return {
49300
48035
  content: [{ type: "text", text: result.error.message }],
@@ -49307,24 +48042,28 @@ Update document detail`,
49307
48042
  };
49308
48043
  });
49309
48044
 
49310
- // src/funcs/kycVerifyDocument.ts
49311
- function kycVerifyDocument(client, request, options) {
49312
- return new APIPromise($do48(client, request, options));
48045
+ // src/funcs/customersUpdateAddressDetail.ts
48046
+ function customersUpdateAddressDetail(client, request, options) {
48047
+ return new APIPromise($do43(client, request, options));
49313
48048
  }
49314
- async function $do48(client, request, options) {
49315
- const parsed = safeParse(request, (value) => VerifyDocumentRequest$outboundSchema.parse(value), "Input validation failed");
48049
+ async function $do43(client, request, options) {
48050
+ const parsed = safeParse(request, (value) => UpdateAddressDetailRequest$outboundSchema.parse(value), "Input validation failed");
49316
48051
  if (!parsed.ok) {
49317
48052
  return [parsed, { status: "invalid" }];
49318
48053
  }
49319
48054
  const payload = parsed.value;
49320
48055
  const body = encodeJSON("body", payload.RequestBody, { explode: true });
49321
48056
  const pathParams = {
49322
- id: encodeSimple("id", payload.id, {
48057
+ address_id: encodeSimple("address_id", payload.address_id, {
48058
+ explode: false,
48059
+ charEncoding: "percent"
48060
+ }),
48061
+ user_id: encodeSimple("user_id", payload.user_id, {
49323
48062
  explode: false,
49324
48063
  charEncoding: "percent"
49325
48064
  })
49326
48065
  };
49327
- const path = pathToFunc("/customers/{id}/documents/verify")(pathParams);
48066
+ const path = pathToFunc("/customers/{user_id}/addresses/{address_id}")(pathParams);
49328
48067
  const headers = new Headers(compactMap({
49329
48068
  "Content-Type": "application/json",
49330
48069
  Accept: "application/json"
@@ -49334,7 +48073,7 @@ async function $do48(client, request, options) {
49334
48073
  const requestSecurity = resolveGlobalSecurity(securityInput);
49335
48074
  const context = {
49336
48075
  baseURL: options?.serverURL ?? client._baseURL ?? "",
49337
- operationID: "verify-document",
48076
+ operationID: "update-address-detail",
49338
48077
  oAuth2Scopes: [],
49339
48078
  resolvedSecurity: requestSecurity,
49340
48079
  securitySource: client._options.authorization,
@@ -49343,7 +48082,7 @@ async function $do48(client, request, options) {
49343
48082
  };
49344
48083
  const requestRes = client._createRequest(context, {
49345
48084
  security: requestSecurity,
49346
- method: "POST",
48085
+ method: "PUT",
49347
48086
  baseURL: options?.serverURL,
49348
48087
  path,
49349
48088
  headers,
@@ -49367,13 +48106,13 @@ async function $do48(client, request, options) {
49367
48106
  const responseFields = {
49368
48107
  HttpMeta: { Response: response, Request: req }
49369
48108
  };
49370
- const [result] = await match(json(200, VerifyDocumentResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), fail([401, 404, "4XX"]), fail("5XX"))(response, { extraFields: responseFields });
48109
+ const [result] = await match(json(200, UpdateAddressDetailResponseBody$inboundSchema), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(404, NotFound$inboundSchema), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
49371
48110
  if (!result.ok) {
49372
48111
  return [result, { status: "complete", request: req, response }];
49373
48112
  }
49374
48113
  return [result, { status: "complete", request: req, response }];
49375
48114
  }
49376
- var init_kycVerifyDocument = __esm(() => {
48115
+ var init_customersUpdateAddressDetail = __esm(() => {
49377
48116
  init_encodings();
49378
48117
  init_matchers();
49379
48118
  init_primitives();
@@ -49385,23 +48124,23 @@ var init_kycVerifyDocument = __esm(() => {
49385
48124
  init_async();
49386
48125
  });
49387
48126
 
49388
- // src/mcp-server/tools/kycVerifyDocument.ts
49389
- var args46, tool$kycVerifyDocument;
49390
- var init_kycVerifyDocument2 = __esm(() => {
49391
- init_kycVerifyDocument();
48127
+ // src/mcp-server/tools/customersUpdateAddressDetail.ts
48128
+ var args42, tool$customersUpdateAddressDetail;
48129
+ var init_customersUpdateAddressDetail2 = __esm(() => {
48130
+ init_customersUpdateAddressDetail();
49392
48131
  init_operations();
49393
48132
  init_tools();
49394
- args46 = {
49395
- request: VerifyDocumentRequest$inboundSchema
48133
+ args42 = {
48134
+ request: UpdateAddressDetailRequest$inboundSchema
49396
48135
  };
49397
- tool$kycVerifyDocument = {
49398
- name: "kyc-verify-document",
49399
- description: `Verify document
48136
+ tool$customersUpdateAddressDetail = {
48137
+ name: "customers-update-address-detail",
48138
+ description: `Update particular address
49400
48139
 
49401
- Verify document number before saving.`,
49402
- args: args46,
49403
- tool: async (client, args47, ctx) => {
49404
- const [result, apiCall] = await kycVerifyDocument(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48140
+ Update address`,
48141
+ args: args42,
48142
+ tool: async (client, args43, ctx) => {
48143
+ const [result, apiCall] = await customersUpdateAddressDetail(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49405
48144
  if (!result.ok) {
49406
48145
  return {
49407
48146
  content: [{ type: "text", text: result.error.message }],
@@ -49416,9 +48155,9 @@ Verify document number before saving.`,
49416
48155
 
49417
48156
  // src/funcs/ordersCancelOrder.ts
49418
48157
  function ordersCancelOrder(client, request, options) {
49419
- return new APIPromise($do49(client, request, options));
48158
+ return new APIPromise($do44(client, request, options));
49420
48159
  }
49421
- async function $do49(client, request, options) {
48160
+ async function $do44(client, request, options) {
49422
48161
  const parsed = safeParse(request, (value) => CancelOrderRequest$outboundSchema.parse(value), "Input validation failed");
49423
48162
  if (!parsed.ok) {
49424
48163
  return [parsed, { status: "invalid" }];
@@ -49493,12 +48232,12 @@ var init_ordersCancelOrder = __esm(() => {
49493
48232
  });
49494
48233
 
49495
48234
  // src/mcp-server/tools/ordersCancelOrder.ts
49496
- var args47, tool$ordersCancelOrder;
48235
+ var args43, tool$ordersCancelOrder;
49497
48236
  var init_ordersCancelOrder2 = __esm(() => {
49498
48237
  init_ordersCancelOrder();
49499
48238
  init_operations();
49500
48239
  init_tools();
49501
- args47 = {
48240
+ args43 = {
49502
48241
  request: CancelOrderRequest$inboundSchema
49503
48242
  };
49504
48243
  tool$ordersCancelOrder = {
@@ -49506,9 +48245,9 @@ var init_ordersCancelOrder2 = __esm(() => {
49506
48245
  description: `Cancel order
49507
48246
 
49508
48247
  Order cancellation`,
49509
- args: args47,
49510
- tool: async (client, args48, ctx) => {
49511
- const [result, apiCall] = await ordersCancelOrder(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48248
+ args: args43,
48249
+ tool: async (client, args44, ctx) => {
48250
+ const [result, apiCall] = await ordersCancelOrder(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49512
48251
  if (!result.ok) {
49513
48252
  return {
49514
48253
  content: [{ type: "text", text: result.error.message }],
@@ -49523,9 +48262,9 @@ Order cancellation`,
49523
48262
 
49524
48263
  // src/funcs/ordersCreateOrder.ts
49525
48264
  function ordersCreateOrder(client, request, options) {
49526
- return new APIPromise($do50(client, request, options));
48265
+ return new APIPromise($do45(client, request, options));
49527
48266
  }
49528
- async function $do50(client, request, options) {
48267
+ async function $do45(client, request, options) {
49529
48268
  const parsed = safeParse(request, (value) => CreateOrderRequestBody$outboundSchema.parse(value), "Input validation failed");
49530
48269
  if (!parsed.ok) {
49531
48270
  return [parsed, { status: "invalid" }];
@@ -49594,12 +48333,12 @@ var init_ordersCreateOrder = __esm(() => {
49594
48333
  });
49595
48334
 
49596
48335
  // src/mcp-server/tools/ordersCreateOrder.ts
49597
- var args48, tool$ordersCreateOrder;
48336
+ var args44, tool$ordersCreateOrder;
49598
48337
  var init_ordersCreateOrder2 = __esm(() => {
49599
48338
  init_ordersCreateOrder();
49600
48339
  init_operations();
49601
48340
  init_tools();
49602
- args48 = {
48341
+ args44 = {
49603
48342
  request: CreateOrderRequestBody$inboundSchema
49604
48343
  };
49605
48344
  tool$ordersCreateOrder = {
@@ -49607,9 +48346,9 @@ var init_ordersCreateOrder2 = __esm(() => {
49607
48346
  description: `Create order
49608
48347
 
49609
48348
  Create new order`,
49610
- args: args48,
49611
- tool: async (client, args49, ctx) => {
49612
- const [result, apiCall] = await ordersCreateOrder(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48349
+ args: args44,
48350
+ tool: async (client, args45, ctx) => {
48351
+ const [result, apiCall] = await ordersCreateOrder(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49613
48352
  if (!result.ok) {
49614
48353
  return {
49615
48354
  content: [{ type: "text", text: result.error.message }],
@@ -49624,9 +48363,9 @@ Create new order`,
49624
48363
 
49625
48364
  // src/funcs/ordersGetOrderDetail.ts
49626
48365
  function ordersGetOrderDetail(client, request, options) {
49627
- return new APIPromise($do51(client, request, options));
48366
+ return new APIPromise($do46(client, request, options));
49628
48367
  }
49629
- async function $do51(client, request, options) {
48368
+ async function $do46(client, request, options) {
49630
48369
  const parsed = safeParse(request, (value) => GetOrderDetailRequest$outboundSchema.parse(value), "Input validation failed");
49631
48370
  if (!parsed.ok) {
49632
48371
  return [parsed, { status: "invalid" }];
@@ -49700,12 +48439,12 @@ var init_ordersGetOrderDetail = __esm(() => {
49700
48439
  });
49701
48440
 
49702
48441
  // src/mcp-server/tools/ordersGetOrderDetail.ts
49703
- var args49, tool$ordersGetOrderDetail;
48442
+ var args45, tool$ordersGetOrderDetail;
49704
48443
  var init_ordersGetOrderDetail2 = __esm(() => {
49705
48444
  init_ordersGetOrderDetail();
49706
48445
  init_operations();
49707
48446
  init_tools();
49708
- args49 = {
48447
+ args45 = {
49709
48448
  request: GetOrderDetailRequest$inboundSchema
49710
48449
  };
49711
48450
  tool$ordersGetOrderDetail = {
@@ -49713,9 +48452,9 @@ var init_ordersGetOrderDetail2 = __esm(() => {
49713
48452
  description: `Retrieve order detail
49714
48453
 
49715
48454
  view particular order details`,
49716
- args: args49,
49717
- tool: async (client, args50, ctx) => {
49718
- const [result, apiCall] = await ordersGetOrderDetail(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48455
+ args: args45,
48456
+ tool: async (client, args46, ctx) => {
48457
+ const [result, apiCall] = await ordersGetOrderDetail(client, args46.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49719
48458
  if (!result.ok) {
49720
48459
  return {
49721
48460
  content: [{ type: "text", text: result.error.message }],
@@ -49730,9 +48469,9 @@ view particular order details`,
49730
48469
 
49731
48470
  // src/funcs/ordersGetPaymentStatus.ts
49732
48471
  function ordersGetPaymentStatus(client, request, options) {
49733
- return new APIPromise($do52(client, request, options));
48472
+ return new APIPromise($do47(client, request, options));
49734
48473
  }
49735
- async function $do52(client, request, options) {
48474
+ async function $do47(client, request, options) {
49736
48475
  const parsed = safeParse(request, (value) => GetPaymentStatusRequest$outboundSchema.parse(value), "Input validation failed");
49737
48476
  if (!parsed.ok) {
49738
48477
  return [parsed, { status: "invalid" }];
@@ -49802,12 +48541,12 @@ var init_ordersGetPaymentStatus = __esm(() => {
49802
48541
  });
49803
48542
 
49804
48543
  // src/mcp-server/tools/ordersGetPaymentStatus.ts
49805
- var args50, tool$ordersGetPaymentStatus;
48544
+ var args46, tool$ordersGetPaymentStatus;
49806
48545
  var init_ordersGetPaymentStatus2 = __esm(() => {
49807
48546
  init_ordersGetPaymentStatus();
49808
48547
  init_operations();
49809
48548
  init_tools();
49810
- args50 = {
48549
+ args46 = {
49811
48550
  request: GetPaymentStatusRequest$inboundSchema
49812
48551
  };
49813
48552
  tool$ordersGetPaymentStatus = {
@@ -49815,9 +48554,9 @@ var init_ordersGetPaymentStatus2 = __esm(() => {
49815
48554
  description: `Retrieve payment status
49816
48555
 
49817
48556
  Retrieve payment status of a paricular order.`,
49818
- args: args50,
49819
- tool: async (client, args51, ctx) => {
49820
- const [result, apiCall] = await ordersGetPaymentStatus(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48557
+ args: args46,
48558
+ tool: async (client, args47, ctx) => {
48559
+ const [result, apiCall] = await ordersGetPaymentStatus(client, args47.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49821
48560
  if (!result.ok) {
49822
48561
  return {
49823
48562
  content: [{ type: "text", text: result.error.message }],
@@ -49832,9 +48571,9 @@ Retrieve payment status of a paricular order.`,
49832
48571
 
49833
48572
  // src/funcs/ordersListOrders.ts
49834
48573
  function ordersListOrders(client, request, options) {
49835
- return new APIPromise($do53(client, request, options));
48574
+ return new APIPromise($do48(client, request, options));
49836
48575
  }
49837
- async function $do53(client, request, options) {
48576
+ async function $do48(client, request, options) {
49838
48577
  const parsed = safeParse(request, (value) => ListOrdersRequest$outboundSchema.parse(value), "Input validation failed");
49839
48578
  if (!parsed.ok) {
49840
48579
  return [parsed, { status: "invalid" }];
@@ -49906,12 +48645,12 @@ var init_ordersListOrders = __esm(() => {
49906
48645
  });
49907
48646
 
49908
48647
  // src/mcp-server/tools/ordersListOrders.ts
49909
- var args51, tool$ordersListOrders;
48648
+ var args47, tool$ordersListOrders;
49910
48649
  var init_ordersListOrders2 = __esm(() => {
49911
48650
  init_ordersListOrders();
49912
48651
  init_operations();
49913
48652
  init_tools();
49914
- args51 = {
48653
+ args47 = {
49915
48654
  request: ListOrdersRequest$inboundSchema
49916
48655
  };
49917
48656
  tool$ordersListOrders = {
@@ -49919,9 +48658,9 @@ var init_ordersListOrders2 = __esm(() => {
49919
48658
  description: `Retrieve all orders
49920
48659
 
49921
48660
  list customers all orders`,
49922
- args: args51,
49923
- tool: async (client, args52, ctx) => {
49924
- const [result, apiCall] = await ordersListOrders(client, args52.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48661
+ args: args47,
48662
+ tool: async (client, args48, ctx) => {
48663
+ const [result, apiCall] = await ordersListOrders(client, args48.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
49925
48664
  if (!result.ok) {
49926
48665
  return {
49927
48666
  content: [{ type: "text", text: result.error.message }],
@@ -49936,9 +48675,9 @@ list customers all orders`,
49936
48675
 
49937
48676
  // src/funcs/ordersListOrderShipments.ts
49938
48677
  function ordersListOrderShipments(client, request, options) {
49939
- return new APIPromise($do54(client, request, options));
48678
+ return new APIPromise($do49(client, request, options));
49940
48679
  }
49941
- async function $do54(client, request, options) {
48680
+ async function $do49(client, request, options) {
49942
48681
  const parsed = safeParse(request, (value) => ListOrderShipmentsRequest$outboundSchema.parse(value), "Input validation failed");
49943
48682
  if (!parsed.ok) {
49944
48683
  return [parsed, { status: "invalid" }];
@@ -50012,12 +48751,12 @@ var init_ordersListOrderShipments = __esm(() => {
50012
48751
  });
50013
48752
 
50014
48753
  // src/mcp-server/tools/ordersListOrderShipments.ts
50015
- var args52, tool$ordersListOrderShipments;
48754
+ var args48, tool$ordersListOrderShipments;
50016
48755
  var init_ordersListOrderShipments2 = __esm(() => {
50017
48756
  init_ordersListOrderShipments();
50018
48757
  init_operations();
50019
48758
  init_tools();
50020
- args52 = {
48759
+ args48 = {
50021
48760
  request: ListOrderShipmentsRequest$inboundSchema
50022
48761
  };
50023
48762
  tool$ordersListOrderShipments = {
@@ -50025,9 +48764,9 @@ var init_ordersListOrderShipments2 = __esm(() => {
50025
48764
  description: `Retrieve order shipments
50026
48765
 
50027
48766
  Retrieve order shipments`,
50028
- args: args52,
50029
- tool: async (client, args53, ctx) => {
50030
- const [result, apiCall] = await ordersListOrderShipments(client, args53.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48767
+ args: args48,
48768
+ tool: async (client, args49, ctx) => {
48769
+ const [result, apiCall] = await ordersListOrderShipments(client, args49.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50031
48770
  if (!result.ok) {
50032
48771
  return {
50033
48772
  content: [{ type: "text", text: result.error.message }],
@@ -50042,9 +48781,9 @@ Retrieve order shipments`,
50042
48781
 
50043
48782
  // src/funcs/ordersRetryOrderPayment.ts
50044
48783
  function ordersRetryOrderPayment(client, request, options) {
50045
- return new APIPromise($do55(client, request, options));
48784
+ return new APIPromise($do50(client, request, options));
50046
48785
  }
50047
- async function $do55(client, request, options) {
48786
+ async function $do50(client, request, options) {
50048
48787
  const parsed = safeParse(request, (value) => RetryOrderPaymentRequest$outboundSchema.parse(value), "Input validation failed");
50049
48788
  if (!parsed.ok) {
50050
48789
  return [parsed, { status: "invalid" }];
@@ -50119,12 +48858,12 @@ var init_ordersRetryOrderPayment = __esm(() => {
50119
48858
  });
50120
48859
 
50121
48860
  // src/mcp-server/tools/ordersRetryOrderPayment.ts
50122
- var args53, tool$ordersRetryOrderPayment;
48861
+ var args49, tool$ordersRetryOrderPayment;
50123
48862
  var init_ordersRetryOrderPayment2 = __esm(() => {
50124
48863
  init_ordersRetryOrderPayment();
50125
48864
  init_operations();
50126
48865
  init_tools();
50127
- args53 = {
48866
+ args49 = {
50128
48867
  request: RetryOrderPaymentRequest$inboundSchema
50129
48868
  };
50130
48869
  tool$ordersRetryOrderPayment = {
@@ -50132,9 +48871,9 @@ var init_ordersRetryOrderPayment2 = __esm(() => {
50132
48871
  description: `Retry payment
50133
48872
 
50134
48873
  To generate new payment request if first payment request is failed or expired. Retry payment request can be made after 15 mins of last request or immediately after last payment request is marked as failed.`,
50135
- args: args53,
50136
- tool: async (client, args54, ctx) => {
50137
- const [result, apiCall] = await ordersRetryOrderPayment(client, args54.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48874
+ args: args49,
48875
+ tool: async (client, args50, ctx) => {
48876
+ const [result, apiCall] = await ordersRetryOrderPayment(client, args50.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50138
48877
  if (!result.ok) {
50139
48878
  return {
50140
48879
  content: [{ type: "text", text: result.error.message }],
@@ -50149,9 +48888,9 @@ To generate new payment request if first payment request is failed or expired. R
50149
48888
 
50150
48889
  // src/funcs/shippingCheckDeliveryAvailability.ts
50151
48890
  function shippingCheckDeliveryAvailability(client, request, options) {
50152
- return new APIPromise($do56(client, request, options));
48891
+ return new APIPromise($do51(client, request, options));
50153
48892
  }
50154
- async function $do56(client, request, options) {
48893
+ async function $do51(client, request, options) {
50155
48894
  const parsed = safeParse(request, (value) => CheckDeliveryAvailabilityRequest$outboundSchema.parse(value), "Input validation failed");
50156
48895
  if (!parsed.ok) {
50157
48896
  return [parsed, { status: "invalid" }];
@@ -50225,12 +48964,12 @@ var init_shippingCheckDeliveryAvailability = __esm(() => {
50225
48964
  });
50226
48965
 
50227
48966
  // src/mcp-server/tools/shippingCheckDeliveryAvailability.ts
50228
- var args54, tool$shippingCheckDeliveryAvailability;
48967
+ var args50, tool$shippingCheckDeliveryAvailability;
50229
48968
  var init_shippingCheckDeliveryAvailability2 = __esm(() => {
50230
48969
  init_shippingCheckDeliveryAvailability();
50231
48970
  init_operations();
50232
48971
  init_tools();
50233
- args54 = {
48972
+ args50 = {
50234
48973
  request: CheckDeliveryAvailabilityRequest$inboundSchema
50235
48974
  };
50236
48975
  tool$shippingCheckDeliveryAvailability = {
@@ -50238,9 +48977,9 @@ var init_shippingCheckDeliveryAvailability2 = __esm(() => {
50238
48977
  description: `Check pincode deliverability
50239
48978
 
50240
48979
  Check shipment delivery availability in an area by pincode`,
50241
- args: args54,
50242
- tool: async (client, args55, ctx) => {
50243
- const [result, apiCall] = await shippingCheckDeliveryAvailability(client, args55.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
48980
+ args: args50,
48981
+ tool: async (client, args51, ctx) => {
48982
+ const [result, apiCall] = await shippingCheckDeliveryAvailability(client, args51.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
50244
48983
  if (!result.ok) {
50245
48984
  return {
50246
48985
  content: [{ type: "text", text: result.error.message }],
@@ -50257,7 +48996,7 @@ Check shipment delivery availability in an area by pincode`,
50257
48996
  function createMCPServer(deps) {
50258
48997
  const server = new McpServer({
50259
48998
  name: "CeStorefront",
50260
- version: "0.9.2"
48999
+ version: "0.10.0"
50261
49000
  });
50262
49001
  const client = new CeStorefrontCore({
50263
49002
  authorization: deps.authorization,
@@ -50292,19 +49031,14 @@ function createMCPServer(deps) {
50292
49031
  tool(tool$cartsCreateCartAddress);
50293
49032
  tool(tool$cartsApplyCoupon);
50294
49033
  tool(tool$cartsRemoveCoupon);
50295
- tool(tool$customersListAddresses);
49034
+ tool(tool$cartsRedeemLoyaltyPoints);
49035
+ tool(tool$cartsRemoveLoyaltyPoints);
50296
49036
  tool(tool$customersCreateAddress);
50297
49037
  tool(tool$customersGetAddressDetail);
50298
49038
  tool(tool$customersUpdateAddressDetail);
50299
49039
  tool(tool$customersDeleteAddress);
49040
+ tool(tool$customersGetLoyaltyDetails);
50300
49041
  tool(tool$customersListUserReviews);
50301
- tool(tool$kycListKycDocument);
50302
- tool(tool$kycListDocuments);
50303
- tool(tool$kycCreateDocument);
50304
- tool(tool$kycGetDocument);
50305
- tool(tool$kycUpdateDocument);
50306
- tool(tool$kycDeleteDocument);
50307
- tool(tool$kycVerifyDocument);
50308
49042
  tool(tool$ordersCreateOrder);
50309
49043
  tool(tool$ordersListOrders);
50310
49044
  tool(tool$ordersGetOrderDetail);
@@ -50355,7 +49089,9 @@ var init_server2 = __esm(() => {
50355
49089
  init_cartsDeleteCart2();
50356
49090
  init_cartsGetCart2();
50357
49091
  init_cartsGetUserCart2();
49092
+ init_cartsRedeemLoyaltyPoints2();
50358
49093
  init_cartsRemoveCoupon2();
49094
+ init_cartsRemoveLoyaltyPoints2();
50359
49095
  init_cartsRemoveUserCart2();
50360
49096
  init_cartsUpdateCart2();
50361
49097
  init_catalogGetProductDetail2();
@@ -50373,16 +49109,9 @@ var init_server2 = __esm(() => {
50373
49109
  init_customersCreateAddress2();
50374
49110
  init_customersDeleteAddress2();
50375
49111
  init_customersGetAddressDetail2();
50376
- init_customersListAddresses2();
49112
+ init_customersGetLoyaltyDetails2();
50377
49113
  init_customersListUserReviews2();
50378
49114
  init_customersUpdateAddressDetail2();
50379
- init_kycCreateDocument2();
50380
- init_kycDeleteDocument2();
50381
- init_kycGetDocument2();
50382
- init_kycListDocuments2();
50383
- init_kycListKycDocument2();
50384
- init_kycUpdateDocument2();
50385
- init_kycVerifyDocument2();
50386
49115
  init_ordersCancelOrder2();
50387
49116
  init_ordersCreateOrder2();
50388
49117
  init_ordersGetOrderDetail2();
@@ -51593,7 +50322,7 @@ var routes = rn({
51593
50322
  var app = Ve(routes, {
51594
50323
  name: "mcp",
51595
50324
  versionInfo: {
51596
- currentVersion: "0.9.2"
50325
+ currentVersion: "0.10.0"
51597
50326
  }
51598
50327
  });
51599
50328
  _t(app, process3.argv.slice(2), buildContext(process3));
@@ -51601,5 +50330,5 @@ export {
51601
50330
  app
51602
50331
  };
51603
50332
 
51604
- //# debugId=0AE8B6422AE1B13B64756E2164756E21
50333
+ //# debugId=77957AEACC4D49D764756E2164756E21
51605
50334
  //# sourceMappingURL=mcp-server.js.map