@epcc-sdk/sdks-cart-checkout-order 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  import * as z from "zod";
2
- import { loose, toToolResult } from "./mcp-support.gen.mjs";
2
+ import {
3
+ loose,
4
+ toToolResult,
5
+ withSharedSchemaIds
6
+ } from "./mcp-support.gen.mjs";
3
7
  import {
4
8
  addCustomDiscountToCartItem,
5
9
  addTaxItemToCart,
@@ -204,10 +208,13 @@ const getCartsTool = (options) => {
204
208
  handler
205
209
  };
206
210
  };
207
- const createACartInput = z.object({
208
- headers: zCreateACartHeaders.strict().optional(),
209
- body: loose(zCreateACartBody).optional()
210
- }).strict();
211
+ const createACartInput = withSharedSchemaIds(
212
+ "cart_checkout_order",
213
+ z.object({
214
+ headers: zCreateACartHeaders.strict().optional(),
215
+ body: loose(zCreateACartBody).optional()
216
+ }).strict()
217
+ );
211
218
  const createACartTool = (options) => {
212
219
  const handler = (args, extra) => toToolResult(
213
220
  createACart({
@@ -314,10 +321,13 @@ const getACartTool = (options) => {
314
321
  handler
315
322
  };
316
323
  };
317
- const updateACartInput = z.object({
318
- path: zUpdateACartPath.strict(),
319
- body: loose(zUpdateACartBody).optional()
320
- }).strict();
324
+ const updateACartInput = withSharedSchemaIds(
325
+ "cart_checkout_order",
326
+ z.object({
327
+ path: zUpdateACartPath.strict(),
328
+ body: loose(zUpdateACartBody).optional()
329
+ }).strict()
330
+ );
321
331
  const updateACartTool = (options) => {
322
332
  const handler = (args, extra) => toToolResult(
323
333
  updateACart({
@@ -424,10 +434,13 @@ const getCartItemsTool = (options) => {
424
434
  handler
425
435
  };
426
436
  };
427
- const manageCartsInput = z.object({
428
- path: zManageCartsPath.strict(),
429
- body: loose(zManageCartsBody).optional()
430
- }).strict();
437
+ const manageCartsInput = withSharedSchemaIds(
438
+ "cart_checkout_order",
439
+ z.object({
440
+ path: zManageCartsPath.strict(),
441
+ body: loose(zManageCartsBody).optional()
442
+ }).strict()
443
+ );
431
444
  const manageCartsTool = (options) => {
432
445
  const handler = (args, extra) => toToolResult(
433
446
  manageCarts({
@@ -461,10 +474,13 @@ const manageCartsTool = (options) => {
461
474
  handler
462
475
  };
463
476
  };
464
- const bulkUpdateItemsInCartInput = z.object({
465
- path: zBulkUpdateItemsInCartPath.strict(),
466
- body: loose(zBulkUpdateItemsInCartBody).optional()
467
- }).strict();
477
+ const bulkUpdateItemsInCartInput = withSharedSchemaIds(
478
+ "cart_checkout_order",
479
+ z.object({
480
+ path: zBulkUpdateItemsInCartPath.strict(),
481
+ body: loose(zBulkUpdateItemsInCartBody).optional()
482
+ }).strict()
483
+ );
468
484
  const bulkUpdateItemsInCartTool = (options) => {
469
485
  const handler = (args, extra) => toToolResult(
470
486
  bulkUpdateItemsInCart({
@@ -534,10 +550,13 @@ const deleteACartItemTool = (options) => {
534
550
  handler
535
551
  };
536
552
  };
537
- const updateACartItemInput = z.object({
538
- path: zUpdateACartItemPath.strict(),
539
- body: loose(zUpdateACartItemBody).optional()
540
- }).strict();
553
+ const updateACartItemInput = withSharedSchemaIds(
554
+ "cart_checkout_order",
555
+ z.object({
556
+ path: zUpdateACartItemPath.strict(),
557
+ body: loose(zUpdateACartItemBody).optional()
558
+ }).strict()
559
+ );
541
560
  const updateACartItemTool = (options) => {
542
561
  const handler = (args, extra) => toToolResult(
543
562
  updateACartItem({
@@ -571,11 +590,14 @@ const updateACartItemTool = (options) => {
571
590
  handler
572
591
  };
573
592
  };
574
- const deleteAccountCartAssociationInput = z.object({
575
- path: zDeleteAccountCartAssociationPath.strict(),
576
- headers: zDeleteAccountCartAssociationHeaders.strict().optional(),
577
- body: loose(zDeleteAccountCartAssociationBody).optional()
578
- }).strict();
593
+ const deleteAccountCartAssociationInput = withSharedSchemaIds(
594
+ "cart_checkout_order",
595
+ z.object({
596
+ path: zDeleteAccountCartAssociationPath.strict(),
597
+ headers: zDeleteAccountCartAssociationHeaders.strict().optional(),
598
+ body: loose(zDeleteAccountCartAssociationBody).optional()
599
+ }).strict()
600
+ );
579
601
  const deleteAccountCartAssociationTool = (options) => {
580
602
  const handler = (args, extra) => toToolResult(
581
603
  deleteAccountCartAssociation({
@@ -609,11 +631,14 @@ const deleteAccountCartAssociationTool = (options) => {
609
631
  handler
610
632
  };
611
633
  };
612
- const createAccountCartAssociationInput = z.object({
613
- path: zCreateAccountCartAssociationPath.strict(),
614
- headers: zCreateAccountCartAssociationHeaders.strict().optional(),
615
- body: loose(zCreateAccountCartAssociationBody).optional()
616
- }).strict();
634
+ const createAccountCartAssociationInput = withSharedSchemaIds(
635
+ "cart_checkout_order",
636
+ z.object({
637
+ path: zCreateAccountCartAssociationPath.strict(),
638
+ headers: zCreateAccountCartAssociationHeaders.strict().optional(),
639
+ body: loose(zCreateAccountCartAssociationBody).optional()
640
+ }).strict()
641
+ );
617
642
  const createAccountCartAssociationTool = (options) => {
618
643
  const handler = (args, extra) => toToolResult(
619
644
  createAccountCartAssociation({
@@ -647,11 +672,14 @@ const createAccountCartAssociationTool = (options) => {
647
672
  handler
648
673
  };
649
674
  };
650
- const deleteCustomerCartAssociationInput = z.object({
651
- path: zDeleteCustomerCartAssociationPath.strict(),
652
- headers: zDeleteCustomerCartAssociationHeaders.strict().optional(),
653
- body: loose(zDeleteCustomerCartAssociationBody).optional()
654
- }).strict();
675
+ const deleteCustomerCartAssociationInput = withSharedSchemaIds(
676
+ "cart_checkout_order",
677
+ z.object({
678
+ path: zDeleteCustomerCartAssociationPath.strict(),
679
+ headers: zDeleteCustomerCartAssociationHeaders.strict().optional(),
680
+ body: loose(zDeleteCustomerCartAssociationBody).optional()
681
+ }).strict()
682
+ );
655
683
  const deleteCustomerCartAssociationTool = (options) => {
656
684
  const handler = (args, extra) => toToolResult(
657
685
  deleteCustomerCartAssociation({
@@ -685,11 +713,14 @@ const deleteCustomerCartAssociationTool = (options) => {
685
713
  handler
686
714
  };
687
715
  };
688
- const createCustomerCartAssociationInput = z.object({
689
- path: zCreateCustomerCartAssociationPath.strict(),
690
- headers: zCreateCustomerCartAssociationHeaders.strict().optional(),
691
- body: loose(zCreateCustomerCartAssociationBody).optional()
692
- }).strict();
716
+ const createCustomerCartAssociationInput = withSharedSchemaIds(
717
+ "cart_checkout_order",
718
+ z.object({
719
+ path: zCreateCustomerCartAssociationPath.strict(),
720
+ headers: zCreateCustomerCartAssociationHeaders.strict().optional(),
721
+ body: loose(zCreateCustomerCartAssociationBody).optional()
722
+ }).strict()
723
+ );
693
724
  const createCustomerCartAssociationTool = (options) => {
694
725
  const handler = (args, extra) => toToolResult(
695
726
  createCustomerCartAssociation({
@@ -759,10 +790,13 @@ const deleteAPromotionViaPromotionCodeTool = (options) => {
759
790
  handler
760
791
  };
761
792
  };
762
- const addTaxItemToCartInput = z.object({
763
- path: zAddTaxItemToCartPath.strict(),
764
- body: loose(zAddTaxItemToCartBody)
765
- }).strict();
793
+ const addTaxItemToCartInput = withSharedSchemaIds(
794
+ "cart_checkout_order",
795
+ z.object({
796
+ path: zAddTaxItemToCartPath.strict(),
797
+ body: loose(zAddTaxItemToCartBody)
798
+ }).strict()
799
+ );
766
800
  const addTaxItemToCartTool = (options) => {
767
801
  const handler = (args, extra) => toToolResult(
768
802
  addTaxItemToCart({
@@ -796,10 +830,13 @@ const addTaxItemToCartTool = (options) => {
796
830
  handler
797
831
  };
798
832
  };
799
- const addTaxItemToCartItemComponentInput = z.object({
800
- path: zAddTaxItemToCartItemComponentPath.strict(),
801
- body: loose(zAddTaxItemToCartItemComponentBody)
802
- }).strict();
833
+ const addTaxItemToCartItemComponentInput = withSharedSchemaIds(
834
+ "cart_checkout_order",
835
+ z.object({
836
+ path: zAddTaxItemToCartItemComponentPath.strict(),
837
+ body: loose(zAddTaxItemToCartItemComponentBody)
838
+ }).strict()
839
+ );
803
840
  const addTaxItemToCartItemComponentTool = (options) => {
804
841
  const handler = (args, extra) => toToolResult(
805
842
  addTaxItemToCartItemComponent({
@@ -869,10 +906,13 @@ const deleteTaxItemFromCartItemComponentTool = (options) => {
869
906
  handler
870
907
  };
871
908
  };
872
- const updateTaxItemFromCartItemComponentInput = z.object({
873
- path: zUpdateTaxItemFromCartItemComponentPath.strict(),
874
- body: loose(zUpdateTaxItemFromCartItemComponentBody).optional()
875
- }).strict();
909
+ const updateTaxItemFromCartItemComponentInput = withSharedSchemaIds(
910
+ "cart_checkout_order",
911
+ z.object({
912
+ path: zUpdateTaxItemFromCartItemComponentPath.strict(),
913
+ body: loose(zUpdateTaxItemFromCartItemComponentBody).optional()
914
+ }).strict()
915
+ );
876
916
  const updateTaxItemFromCartItemComponentTool = (options) => {
877
917
  const handler = (args, extra) => toToolResult(
878
918
  updateTaxItemFromCartItemComponent({
@@ -942,10 +982,13 @@ const bulkDeleteTaxItemsFromCartTool = (options) => {
942
982
  handler
943
983
  };
944
984
  };
945
- const bulkAddTaxItemsToCartInput = z.object({
946
- path: zBulkAddTaxItemsToCartPath.strict(),
947
- body: loose(zBulkAddTaxItemsToCartBody).optional()
948
- }).strict();
985
+ const bulkAddTaxItemsToCartInput = withSharedSchemaIds(
986
+ "cart_checkout_order",
987
+ z.object({
988
+ path: zBulkAddTaxItemsToCartPath.strict(),
989
+ body: loose(zBulkAddTaxItemsToCartBody).optional()
990
+ }).strict()
991
+ );
949
992
  const bulkAddTaxItemsToCartTool = (options) => {
950
993
  const handler = (args, extra) => toToolResult(
951
994
  bulkAddTaxItemsToCart({
@@ -1015,10 +1058,13 @@ const deleteATaxItemTool = (options) => {
1015
1058
  handler
1016
1059
  };
1017
1060
  };
1018
- const updateATaxItemInput = z.object({
1019
- path: zUpdateATaxItemPath.strict(),
1020
- body: loose(zUpdateATaxItemBody).optional()
1021
- }).strict();
1061
+ const updateATaxItemInput = withSharedSchemaIds(
1062
+ "cart_checkout_order",
1063
+ z.object({
1064
+ path: zUpdateATaxItemPath.strict(),
1065
+ body: loose(zUpdateATaxItemBody).optional()
1066
+ }).strict()
1067
+ );
1022
1068
  const updateATaxItemTool = (options) => {
1023
1069
  const handler = (args, extra) => toToolResult(
1024
1070
  updateATaxItem({
@@ -1088,10 +1134,13 @@ const bulkDeleteCustomDiscountsFromCartTool = (options) => {
1088
1134
  handler
1089
1135
  };
1090
1136
  };
1091
- const bulkAddCustomDiscountsToCartInput = z.object({
1092
- path: zBulkAddCustomDiscountsToCartPath.strict(),
1093
- body: loose(zBulkAddCustomDiscountsToCartBody).optional()
1094
- }).strict();
1137
+ const bulkAddCustomDiscountsToCartInput = withSharedSchemaIds(
1138
+ "cart_checkout_order",
1139
+ z.object({
1140
+ path: zBulkAddCustomDiscountsToCartPath.strict(),
1141
+ body: loose(zBulkAddCustomDiscountsToCartBody).optional()
1142
+ }).strict()
1143
+ );
1095
1144
  const bulkAddCustomDiscountsToCartTool = (options) => {
1096
1145
  const handler = (args, extra) => toToolResult(
1097
1146
  bulkAddCustomDiscountsToCart({
@@ -1161,10 +1210,13 @@ const deleteCustomDiscountFromCartTool = (options) => {
1161
1210
  handler
1162
1211
  };
1163
1212
  };
1164
- const updateCustomDiscountForCartInput = z.object({
1165
- path: zUpdateCustomDiscountForCartPath.strict(),
1166
- body: loose(zUpdateCustomDiscountForCartBody).optional()
1167
- }).strict();
1213
+ const updateCustomDiscountForCartInput = withSharedSchemaIds(
1214
+ "cart_checkout_order",
1215
+ z.object({
1216
+ path: zUpdateCustomDiscountForCartPath.strict(),
1217
+ body: loose(zUpdateCustomDiscountForCartBody).optional()
1218
+ }).strict()
1219
+ );
1168
1220
  const updateCustomDiscountForCartTool = (options) => {
1169
1221
  const handler = (args, extra) => toToolResult(
1170
1222
  updateCustomDiscountForCart({
@@ -1198,10 +1250,13 @@ const updateCustomDiscountForCartTool = (options) => {
1198
1250
  handler
1199
1251
  };
1200
1252
  };
1201
- const addCustomDiscountToCartItemInput = z.object({
1202
- path: zAddCustomDiscountToCartItemPath.strict(),
1203
- body: loose(zAddCustomDiscountToCartItemBody).optional()
1204
- }).strict();
1253
+ const addCustomDiscountToCartItemInput = withSharedSchemaIds(
1254
+ "cart_checkout_order",
1255
+ z.object({
1256
+ path: zAddCustomDiscountToCartItemPath.strict(),
1257
+ body: loose(zAddCustomDiscountToCartItemBody).optional()
1258
+ }).strict()
1259
+ );
1205
1260
  const addCustomDiscountToCartItemTool = (options) => {
1206
1261
  const handler = (args, extra) => toToolResult(
1207
1262
  addCustomDiscountToCartItem({
@@ -1271,10 +1326,13 @@ const deleteCustomDiscountFromCartItemTool = (options) => {
1271
1326
  handler
1272
1327
  };
1273
1328
  };
1274
- const updateCustomDiscountForCartItemInput = z.object({
1275
- path: zUpdateCustomDiscountForCartItemPath.strict(),
1276
- body: loose(zUpdateCustomDiscountForCartItemBody).optional()
1277
- }).strict();
1329
+ const updateCustomDiscountForCartItemInput = withSharedSchemaIds(
1330
+ "cart_checkout_order",
1331
+ z.object({
1332
+ path: zUpdateCustomDiscountForCartItemPath.strict(),
1333
+ body: loose(zUpdateCustomDiscountForCartItemBody).optional()
1334
+ }).strict()
1335
+ );
1278
1336
  const updateCustomDiscountForCartItemTool = (options) => {
1279
1337
  const handler = (args, extra) => toToolResult(
1280
1338
  updateCustomDiscountForCartItem({
@@ -1344,10 +1402,13 @@ const getShippingGroupsTool = (options) => {
1344
1402
  handler
1345
1403
  };
1346
1404
  };
1347
- const createShippingGroupInput = z.object({
1348
- path: zCreateShippingGroupPath.strict(),
1349
- body: loose(zCreateShippingGroupBody)
1350
- }).strict();
1405
+ const createShippingGroupInput = withSharedSchemaIds(
1406
+ "cart_checkout_order",
1407
+ z.object({
1408
+ path: zCreateShippingGroupPath.strict(),
1409
+ body: loose(zCreateShippingGroupBody)
1410
+ }).strict()
1411
+ );
1351
1412
  const createShippingGroupTool = (options) => {
1352
1413
  const handler = (args, extra) => toToolResult(
1353
1414
  createShippingGroup({
@@ -1453,10 +1514,13 @@ const getShippingGroupByIdTool = (options) => {
1453
1514
  handler
1454
1515
  };
1455
1516
  };
1456
- const updateShippingGroupInput = z.object({
1457
- path: zUpdateShippingGroupPath.strict(),
1458
- body: loose(zUpdateShippingGroupBody)
1459
- }).strict();
1517
+ const updateShippingGroupInput = withSharedSchemaIds(
1518
+ "cart_checkout_order",
1519
+ z.object({
1520
+ path: zUpdateShippingGroupPath.strict(),
1521
+ body: loose(zUpdateShippingGroupBody)
1522
+ }).strict()
1523
+ );
1460
1524
  const updateShippingGroupTool = (options) => {
1461
1525
  const handler = (args, extra) => toToolResult(
1462
1526
  updateShippingGroup({
@@ -1490,10 +1554,13 @@ const updateShippingGroupTool = (options) => {
1490
1554
  handler
1491
1555
  };
1492
1556
  };
1493
- const createCartPaymentIntentInput = z.object({
1494
- path: zCreateCartPaymentIntentPath.strict(),
1495
- body: loose(zCreateCartPaymentIntentBody).optional()
1496
- }).strict();
1557
+ const createCartPaymentIntentInput = withSharedSchemaIds(
1558
+ "cart_checkout_order",
1559
+ z.object({
1560
+ path: zCreateCartPaymentIntentPath.strict(),
1561
+ body: loose(zCreateCartPaymentIntentBody).optional()
1562
+ }).strict()
1563
+ );
1497
1564
  const createCartPaymentIntentTool = (options) => {
1498
1565
  const handler = (args, extra) => toToolResult(
1499
1566
  createCartPaymentIntent({
@@ -1527,10 +1594,13 @@ const createCartPaymentIntentTool = (options) => {
1527
1594
  handler
1528
1595
  };
1529
1596
  };
1530
- const updateCartPaymentIntentInput = z.object({
1531
- path: zUpdateCartPaymentIntentPath.strict(),
1532
- body: loose(zUpdateCartPaymentIntentBody)
1533
- }).strict();
1597
+ const updateCartPaymentIntentInput = withSharedSchemaIds(
1598
+ "cart_checkout_order",
1599
+ z.object({
1600
+ path: zUpdateCartPaymentIntentPath.strict(),
1601
+ body: loose(zUpdateCartPaymentIntentBody)
1602
+ }).strict()
1603
+ );
1534
1604
  const updateCartPaymentIntentTool = (options) => {
1535
1605
  const handler = (args, extra) => toToolResult(
1536
1606
  updateCartPaymentIntent({
@@ -1564,11 +1634,14 @@ const updateCartPaymentIntentTool = (options) => {
1564
1634
  handler
1565
1635
  };
1566
1636
  };
1567
- const checkoutApiInput = z.object({
1568
- path: zCheckoutApiPath.strict(),
1569
- headers: zCheckoutApiHeaders.strict().optional(),
1570
- body: loose(zCheckoutApiBody).optional()
1571
- }).strict();
1637
+ const checkoutApiInput = withSharedSchemaIds(
1638
+ "cart_checkout_order",
1639
+ z.object({
1640
+ path: zCheckoutApiPath.strict(),
1641
+ headers: zCheckoutApiHeaders.strict().optional(),
1642
+ body: loose(zCheckoutApiBody).optional()
1643
+ }).strict()
1644
+ );
1572
1645
  const checkoutApiTool = (options) => {
1573
1646
  const handler = (args, extra) => toToolResult(
1574
1647
  checkoutApi({
@@ -1676,10 +1749,13 @@ const getAnOrderTool = (options) => {
1676
1749
  handler
1677
1750
  };
1678
1751
  };
1679
- const updateAnOrderInput = z.object({
1680
- path: zUpdateAnOrderPath.strict(),
1681
- body: loose(zUpdateAnOrderBody).optional()
1682
- }).strict();
1752
+ const updateAnOrderInput = withSharedSchemaIds(
1753
+ "cart_checkout_order",
1754
+ z.object({
1755
+ path: zUpdateAnOrderPath.strict(),
1756
+ body: loose(zUpdateAnOrderBody).optional()
1757
+ }).strict()
1758
+ );
1683
1759
  const updateAnOrderTool = (options) => {
1684
1760
  const handler = (args, extra) => toToolResult(
1685
1761
  updateAnOrder({
@@ -1750,9 +1826,12 @@ const getOrderItemsTool = (options) => {
1750
1826
  handler
1751
1827
  };
1752
1828
  };
1753
- const anonymizeOrdersInput = z.object({
1754
- body: loose(zAnonymizeOrdersBody).optional()
1755
- }).strict();
1829
+ const anonymizeOrdersInput = withSharedSchemaIds(
1830
+ "cart_checkout_order",
1831
+ z.object({
1832
+ body: loose(zAnonymizeOrdersBody).optional()
1833
+ }).strict()
1834
+ );
1756
1835
  const anonymizeOrdersTool = (options) => {
1757
1836
  const handler = (args, extra) => toToolResult(
1758
1837
  anonymizeOrders({
@@ -1822,10 +1901,13 @@ const confirmOrderTool = (options) => {
1822
1901
  handler
1823
1902
  };
1824
1903
  };
1825
- const paymentSetupInput = z.object({
1826
- path: zPaymentSetupPath.strict(),
1827
- body: loose(zPaymentSetupBody).optional()
1828
- }).strict();
1904
+ const paymentSetupInput = withSharedSchemaIds(
1905
+ "cart_checkout_order",
1906
+ z.object({
1907
+ path: zPaymentSetupPath.strict(),
1908
+ body: loose(zPaymentSetupBody).optional()
1909
+ }).strict()
1910
+ );
1829
1911
  const paymentSetupTool = (options) => {
1830
1912
  const handler = (args, extra) => toToolResult(
1831
1913
  paymentSetup({
@@ -1859,10 +1941,13 @@ const paymentSetupTool = (options) => {
1859
1941
  handler
1860
1942
  };
1861
1943
  };
1862
- const confirmPaymentInput = z.object({
1863
- path: zConfirmPaymentPath.strict(),
1864
- body: loose(zConfirmPaymentBody).optional()
1865
- }).strict();
1944
+ const confirmPaymentInput = withSharedSchemaIds(
1945
+ "cart_checkout_order",
1946
+ z.object({
1947
+ path: zConfirmPaymentPath.strict(),
1948
+ body: loose(zConfirmPaymentBody).optional()
1949
+ }).strict()
1950
+ );
1866
1951
  const confirmPaymentTool = (options) => {
1867
1952
  const handler = (args, extra) => toToolResult(
1868
1953
  confirmPayment({
@@ -1896,10 +1981,13 @@ const confirmPaymentTool = (options) => {
1896
1981
  handler
1897
1982
  };
1898
1983
  };
1899
- const captureATransactionInput = z.object({
1900
- path: zCaptureATransactionPath.strict(),
1901
- body: loose(zCaptureATransactionBody).optional()
1902
- }).strict();
1984
+ const captureATransactionInput = withSharedSchemaIds(
1985
+ "cart_checkout_order",
1986
+ z.object({
1987
+ path: zCaptureATransactionPath.strict(),
1988
+ body: loose(zCaptureATransactionBody).optional()
1989
+ }).strict()
1990
+ );
1903
1991
  const captureATransactionTool = (options) => {
1904
1992
  const handler = (args, extra) => toToolResult(
1905
1993
  captureATransaction({
@@ -1933,10 +2021,13 @@ const captureATransactionTool = (options) => {
1933
2021
  handler
1934
2022
  };
1935
2023
  };
1936
- const refundATransactionInput = z.object({
1937
- path: zRefundATransactionPath.strict(),
1938
- body: loose(zRefundATransactionBody).optional()
1939
- }).strict();
2024
+ const refundATransactionInput = withSharedSchemaIds(
2025
+ "cart_checkout_order",
2026
+ z.object({
2027
+ path: zRefundATransactionPath.strict(),
2028
+ body: loose(zRefundATransactionBody).optional()
2029
+ }).strict()
2030
+ );
1940
2031
  const refundATransactionTool = (options) => {
1941
2032
  const handler = (args, extra) => toToolResult(
1942
2033
  refundATransaction({
@@ -2042,10 +2133,13 @@ const getATransactionTool = (options) => {
2042
2133
  handler
2043
2134
  };
2044
2135
  };
2045
- const cancelATransactionInput = z.object({
2046
- path: zCancelATransactionPath.strict(),
2047
- body: loose(zCancelATransactionBody).optional()
2048
- }).strict();
2136
+ const cancelATransactionInput = withSharedSchemaIds(
2137
+ "cart_checkout_order",
2138
+ z.object({
2139
+ path: zCancelATransactionPath.strict(),
2140
+ body: loose(zCancelATransactionBody).optional()
2141
+ }).strict()
2142
+ );
2049
2143
  const cancelATransactionTool = (options) => {
2050
2144
  const handler = (args, extra) => toToolResult(
2051
2145
  cancelATransaction({
@@ -2115,10 +2209,13 @@ const getOrderShippingGroupsTool = (options) => {
2115
2209
  handler
2116
2210
  };
2117
2211
  };
2118
- const createOrderShippingGroupInput = z.object({
2119
- path: zCreateOrderShippingGroupPath.strict(),
2120
- body: loose(zCreateOrderShippingGroupBody).optional()
2121
- }).strict();
2212
+ const createOrderShippingGroupInput = withSharedSchemaIds(
2213
+ "cart_checkout_order",
2214
+ z.object({
2215
+ path: zCreateOrderShippingGroupPath.strict(),
2216
+ body: loose(zCreateOrderShippingGroupBody).optional()
2217
+ }).strict()
2218
+ );
2122
2219
  const createOrderShippingGroupTool = (options) => {
2123
2220
  const handler = (args, extra) => toToolResult(
2124
2221
  createOrderShippingGroup({
@@ -2189,10 +2286,13 @@ const getShippingGroupsByIdTool = (options) => {
2189
2286
  handler
2190
2287
  };
2191
2288
  };
2192
- const putShippingGroupByIdInput = z.object({
2193
- path: zPutShippingGroupByIdPath.strict(),
2194
- body: loose(zPutShippingGroupByIdBody)
2195
- }).strict();
2289
+ const putShippingGroupByIdInput = withSharedSchemaIds(
2290
+ "cart_checkout_order",
2291
+ z.object({
2292
+ path: zPutShippingGroupByIdPath.strict(),
2293
+ body: loose(zPutShippingGroupByIdBody)
2294
+ }).strict()
2295
+ );
2196
2296
  const putShippingGroupByIdTool = (options) => {
2197
2297
  const handler = (args, extra) => toToolResult(
2198
2298
  putShippingGroupById({
@@ -2260,9 +2360,12 @@ const getV2SettingsCartTool = (options) => {
2260
2360
  handler
2261
2361
  };
2262
2362
  };
2263
- const putV2SettingsCartInput = z.object({
2264
- body: loose(zPutV2SettingsCartBody).optional()
2265
- }).strict();
2363
+ const putV2SettingsCartInput = withSharedSchemaIds(
2364
+ "cart_checkout_order",
2365
+ z.object({
2366
+ body: loose(zPutV2SettingsCartBody).optional()
2367
+ }).strict()
2368
+ );
2266
2369
  const putV2SettingsCartTool = (options) => {
2267
2370
  const handler = (args, extra) => toToolResult(
2268
2371
  putV2SettingsCart({
@@ -2332,10 +2435,13 @@ const getV2SettingsCartStoreIdTool = (options) => {
2332
2435
  handler
2333
2436
  };
2334
2437
  };
2335
- const putV2SettingsCartStoreIdInput = z.object({
2336
- path: zPutV2SettingsCartStoreIdPath.strict(),
2337
- body: loose(zPutV2SettingsCartStoreIdBody).optional()
2338
- }).strict();
2438
+ const putV2SettingsCartStoreIdInput = withSharedSchemaIds(
2439
+ "cart_checkout_order",
2440
+ z.object({
2441
+ path: zPutV2SettingsCartStoreIdPath.strict(),
2442
+ body: loose(zPutV2SettingsCartStoreIdBody).optional()
2443
+ }).strict()
2444
+ );
2339
2445
  const putV2SettingsCartStoreIdTool = (options) => {
2340
2446
  const handler = (args, extra) => toToolResult(
2341
2447
  putV2SettingsCartStoreId({