wowok_agent 2.1.30 → 2.1.33

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -477,22 +477,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
477
477
  }, {
478
478
  op: "clear";
479
479
  }>]>>;
480
- machine: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
481
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
482
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
483
- onChain: z.ZodOptional<z.ZodBoolean>;
484
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
485
- }, "strict", z.ZodTypeAny, {
486
- name?: string | undefined;
487
- replaceExistName?: boolean | undefined;
488
- tags?: string[] | undefined;
489
- onChain?: boolean | undefined;
490
- }, {
491
- name?: string | undefined;
492
- replaceExistName?: boolean | undefined;
493
- tags?: string[] | undefined;
494
- onChain?: boolean | undefined;
495
- }>, z.ZodNull]>>;
480
+ machine: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
496
481
  discount: z.ZodOptional<z.ZodObject<{
497
482
  name: z.ZodString;
498
483
  discount_type: z.ZodUnion<[z.ZodLiteral<import("wowok").DiscountType.RATES>, z.ZodLiteral<import("wowok").DiscountType.FIXED>]>;
@@ -560,22 +545,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
560
545
  time_ms_start?: number | undefined;
561
546
  time_ms_end?: number | undefined;
562
547
  }>>;
563
- discount_destroy: z.ZodOptional<z.ZodArray<z.ZodObject<{
564
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
565
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
566
- onChain: z.ZodOptional<z.ZodBoolean>;
567
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
568
- }, "strict", z.ZodTypeAny, {
569
- name?: string | undefined;
570
- replaceExistName?: boolean | undefined;
571
- tags?: string[] | undefined;
572
- onChain?: boolean | undefined;
573
- }, {
574
- name?: string | undefined;
575
- replaceExistName?: boolean | undefined;
576
- tags?: string[] | undefined;
577
- onChain?: boolean | undefined;
578
- }>, "many">>;
548
+ discount_destroy: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
579
549
  customer_required: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
580
550
  order_allocators: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
581
551
  description: z.ZodEffects<z.ZodString, string, string>;
@@ -819,22 +789,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
819
789
  balance: string | number;
820
790
  token_type: string;
821
791
  }>, z.ZodLiteral<"recently">]>>;
822
- um: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
823
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
824
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
825
- onChain: z.ZodOptional<z.ZodBoolean>;
826
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
827
- }, "strict", z.ZodTypeAny, {
828
- name?: string | undefined;
829
- replaceExistName?: boolean | undefined;
830
- tags?: string[] | undefined;
831
- onChain?: boolean | undefined;
832
- }, {
833
- name?: string | undefined;
834
- replaceExistName?: boolean | undefined;
835
- tags?: string[] | undefined;
836
- onChain?: boolean | undefined;
837
- }>, z.ZodNull]>>;
792
+ um: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
838
793
  pause: z.ZodOptional<z.ZodBoolean>;
839
794
  publish: z.ZodOptional<z.ZodBoolean>;
840
795
  }, "strict", z.ZodTypeAny, {
@@ -875,12 +830,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
875
830
  } | {
876
831
  op: "clear";
877
832
  } | undefined;
878
- um?: {
879
- name?: string | undefined;
880
- replaceExistName?: boolean | undefined;
881
- tags?: string[] | undefined;
882
- onChain?: boolean | undefined;
883
- } | null | undefined;
833
+ um?: string | null | undefined;
884
834
  discount?: {
885
835
  name: string;
886
836
  recipient: {
@@ -898,12 +848,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
898
848
  time_ms_start?: number | undefined;
899
849
  time_ms_end?: number | undefined;
900
850
  } | undefined;
901
- machine?: {
902
- name?: string | undefined;
903
- replaceExistName?: boolean | undefined;
904
- tags?: string[] | undefined;
905
- onChain?: boolean | undefined;
906
- } | null | undefined;
851
+ machine?: string | null | undefined;
907
852
  sales?: {
908
853
  op: "add";
909
854
  sales: {
@@ -1021,12 +966,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1021
966
  onChain?: boolean | undefined;
1022
967
  } | undefined;
1023
968
  } | undefined;
1024
- discount_destroy?: {
1025
- name?: string | undefined;
1026
- replaceExistName?: boolean | undefined;
1027
- tags?: string[] | undefined;
1028
- onChain?: boolean | undefined;
1029
- }[] | undefined;
969
+ discount_destroy?: string[] | undefined;
1030
970
  compensation_fund_add?: {
1031
971
  balance: string | number;
1032
972
  } | {
@@ -1080,12 +1020,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1080
1020
  } | {
1081
1021
  op: "clear";
1082
1022
  } | undefined;
1083
- um?: {
1084
- name?: string | undefined;
1085
- replaceExistName?: boolean | undefined;
1086
- tags?: string[] | undefined;
1087
- onChain?: boolean | undefined;
1088
- } | null | undefined;
1023
+ um?: string | null | undefined;
1089
1024
  discount?: {
1090
1025
  name: string;
1091
1026
  recipient: {
@@ -1103,12 +1038,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1103
1038
  time_ms_start?: number | undefined;
1104
1039
  time_ms_end?: number | undefined;
1105
1040
  } | undefined;
1106
- machine?: {
1107
- name?: string | undefined;
1108
- replaceExistName?: boolean | undefined;
1109
- tags?: string[] | undefined;
1110
- onChain?: boolean | undefined;
1111
- } | null | undefined;
1041
+ machine?: string | null | undefined;
1112
1042
  sales?: {
1113
1043
  op: "add";
1114
1044
  sales: {
@@ -1226,12 +1156,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1226
1156
  onChain?: boolean | undefined;
1227
1157
  } | undefined;
1228
1158
  } | undefined;
1229
- discount_destroy?: {
1230
- name?: string | undefined;
1231
- replaceExistName?: boolean | undefined;
1232
- tags?: string[] | undefined;
1233
- onChain?: boolean | undefined;
1234
- }[] | undefined;
1159
+ discount_destroy?: string[] | undefined;
1235
1160
  compensation_fund_add?: {
1236
1161
  balance: string | number;
1237
1162
  } | {
@@ -1486,12 +1411,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1486
1411
  } | {
1487
1412
  op: "clear";
1488
1413
  } | undefined;
1489
- um?: {
1490
- name?: string | undefined;
1491
- replaceExistName?: boolean | undefined;
1492
- tags?: string[] | undefined;
1493
- onChain?: boolean | undefined;
1494
- } | null | undefined;
1414
+ um?: string | null | undefined;
1495
1415
  discount?: {
1496
1416
  name: string;
1497
1417
  recipient: {
@@ -1509,12 +1429,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1509
1429
  time_ms_start?: number | undefined;
1510
1430
  time_ms_end?: number | undefined;
1511
1431
  } | undefined;
1512
- machine?: {
1513
- name?: string | undefined;
1514
- replaceExistName?: boolean | undefined;
1515
- tags?: string[] | undefined;
1516
- onChain?: boolean | undefined;
1517
- } | null | undefined;
1432
+ machine?: string | null | undefined;
1518
1433
  sales?: {
1519
1434
  op: "add";
1520
1435
  sales: {
@@ -1632,12 +1547,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1632
1547
  onChain?: boolean | undefined;
1633
1548
  } | undefined;
1634
1549
  } | undefined;
1635
- discount_destroy?: {
1636
- name?: string | undefined;
1637
- replaceExistName?: boolean | undefined;
1638
- tags?: string[] | undefined;
1639
- onChain?: boolean | undefined;
1640
- }[] | undefined;
1550
+ discount_destroy?: string[] | undefined;
1641
1551
  compensation_fund_add?: {
1642
1552
  balance: string | number;
1643
1553
  } | {
@@ -1728,12 +1638,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1728
1638
  } | {
1729
1639
  op: "clear";
1730
1640
  } | undefined;
1731
- um?: {
1732
- name?: string | undefined;
1733
- replaceExistName?: boolean | undefined;
1734
- tags?: string[] | undefined;
1735
- onChain?: boolean | undefined;
1736
- } | null | undefined;
1641
+ um?: string | null | undefined;
1737
1642
  discount?: {
1738
1643
  name: string;
1739
1644
  recipient: {
@@ -1751,12 +1656,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1751
1656
  time_ms_start?: number | undefined;
1752
1657
  time_ms_end?: number | undefined;
1753
1658
  } | undefined;
1754
- machine?: {
1755
- name?: string | undefined;
1756
- replaceExistName?: boolean | undefined;
1757
- tags?: string[] | undefined;
1758
- onChain?: boolean | undefined;
1759
- } | null | undefined;
1659
+ machine?: string | null | undefined;
1760
1660
  sales?: {
1761
1661
  op: "add";
1762
1662
  sales: {
@@ -1874,12 +1774,7 @@ declare const OnchainOperationsSchema: z.ZodDiscriminatedUnion<"operation_type",
1874
1774
  onChain?: boolean | undefined;
1875
1775
  } | undefined;
1876
1776
  } | undefined;
1877
- discount_destroy?: {
1878
- name?: string | undefined;
1879
- replaceExistName?: boolean | undefined;
1880
- tags?: string[] | undefined;
1881
- onChain?: boolean | undefined;
1882
- }[] | undefined;
1777
+ discount_destroy?: string[] | undefined;
1883
1778
  compensation_fund_add?: {
1884
1779
  balance: string | number;
1885
1780
  } | {
@@ -953,22 +953,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
953
953
  }, {
954
954
  op: "clear";
955
955
  }>]>>;
956
- machine: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
957
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
958
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
959
- onChain: z.ZodOptional<z.ZodBoolean>;
960
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
961
- }, "strict", z.ZodTypeAny, {
962
- name?: string | undefined;
963
- replaceExistName?: boolean | undefined;
964
- tags?: string[] | undefined;
965
- onChain?: boolean | undefined;
966
- }, {
967
- name?: string | undefined;
968
- replaceExistName?: boolean | undefined;
969
- tags?: string[] | undefined;
970
- onChain?: boolean | undefined;
971
- }>, z.ZodNull]>>;
956
+ machine: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
972
957
  discount: z.ZodOptional<z.ZodObject<{
973
958
  name: z.ZodString;
974
959
  discount_type: z.ZodUnion<[z.ZodLiteral<import("wowok").DiscountType.RATES>, z.ZodLiteral<import("wowok").DiscountType.FIXED>]>;
@@ -1036,22 +1021,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1036
1021
  time_ms_start?: number | undefined;
1037
1022
  time_ms_end?: number | undefined;
1038
1023
  }>>;
1039
- discount_destroy: z.ZodOptional<z.ZodArray<z.ZodObject<{
1040
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1041
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1042
- onChain: z.ZodOptional<z.ZodBoolean>;
1043
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
1044
- }, "strict", z.ZodTypeAny, {
1045
- name?: string | undefined;
1046
- replaceExistName?: boolean | undefined;
1047
- tags?: string[] | undefined;
1048
- onChain?: boolean | undefined;
1049
- }, {
1050
- name?: string | undefined;
1051
- replaceExistName?: boolean | undefined;
1052
- tags?: string[] | undefined;
1053
- onChain?: boolean | undefined;
1054
- }>, "many">>;
1024
+ discount_destroy: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1055
1025
  customer_required: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
1056
1026
  order_allocators: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1057
1027
  description: z.ZodEffects<z.ZodString, string, string>;
@@ -1295,22 +1265,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1295
1265
  balance: string | number;
1296
1266
  token_type: string;
1297
1267
  }>, z.ZodLiteral<"recently">]>>;
1298
- um: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1299
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1300
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1301
- onChain: z.ZodOptional<z.ZodBoolean>;
1302
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
1303
- }, "strict", z.ZodTypeAny, {
1304
- name?: string | undefined;
1305
- replaceExistName?: boolean | undefined;
1306
- tags?: string[] | undefined;
1307
- onChain?: boolean | undefined;
1308
- }, {
1309
- name?: string | undefined;
1310
- replaceExistName?: boolean | undefined;
1311
- tags?: string[] | undefined;
1312
- onChain?: boolean | undefined;
1313
- }>, z.ZodNull]>>;
1268
+ um: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
1314
1269
  pause: z.ZodOptional<z.ZodBoolean>;
1315
1270
  publish: z.ZodOptional<z.ZodBoolean>;
1316
1271
  }, "strict", z.ZodTypeAny, {
@@ -1351,12 +1306,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1351
1306
  } | {
1352
1307
  op: "clear";
1353
1308
  } | undefined;
1354
- um?: {
1355
- name?: string | undefined;
1356
- replaceExistName?: boolean | undefined;
1357
- tags?: string[] | undefined;
1358
- onChain?: boolean | undefined;
1359
- } | null | undefined;
1309
+ um?: string | null | undefined;
1360
1310
  discount?: {
1361
1311
  name: string;
1362
1312
  recipient: {
@@ -1374,12 +1324,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1374
1324
  time_ms_start?: number | undefined;
1375
1325
  time_ms_end?: number | undefined;
1376
1326
  } | undefined;
1377
- machine?: {
1378
- name?: string | undefined;
1379
- replaceExistName?: boolean | undefined;
1380
- tags?: string[] | undefined;
1381
- onChain?: boolean | undefined;
1382
- } | null | undefined;
1327
+ machine?: string | null | undefined;
1383
1328
  sales?: {
1384
1329
  op: "add";
1385
1330
  sales: {
@@ -1497,12 +1442,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1497
1442
  onChain?: boolean | undefined;
1498
1443
  } | undefined;
1499
1444
  } | undefined;
1500
- discount_destroy?: {
1501
- name?: string | undefined;
1502
- replaceExistName?: boolean | undefined;
1503
- tags?: string[] | undefined;
1504
- onChain?: boolean | undefined;
1505
- }[] | undefined;
1445
+ discount_destroy?: string[] | undefined;
1506
1446
  compensation_fund_add?: {
1507
1447
  balance: string | number;
1508
1448
  } | {
@@ -1556,12 +1496,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1556
1496
  } | {
1557
1497
  op: "clear";
1558
1498
  } | undefined;
1559
- um?: {
1560
- name?: string | undefined;
1561
- replaceExistName?: boolean | undefined;
1562
- tags?: string[] | undefined;
1563
- onChain?: boolean | undefined;
1564
- } | null | undefined;
1499
+ um?: string | null | undefined;
1565
1500
  discount?: {
1566
1501
  name: string;
1567
1502
  recipient: {
@@ -1579,12 +1514,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1579
1514
  time_ms_start?: number | undefined;
1580
1515
  time_ms_end?: number | undefined;
1581
1516
  } | undefined;
1582
- machine?: {
1583
- name?: string | undefined;
1584
- replaceExistName?: boolean | undefined;
1585
- tags?: string[] | undefined;
1586
- onChain?: boolean | undefined;
1587
- } | null | undefined;
1517
+ machine?: string | null | undefined;
1588
1518
  sales?: {
1589
1519
  op: "add";
1590
1520
  sales: {
@@ -1702,12 +1632,7 @@ export declare const CallService_DataSchema: z.ZodObject<{
1702
1632
  onChain?: boolean | undefined;
1703
1633
  } | undefined;
1704
1634
  } | undefined;
1705
- discount_destroy?: {
1706
- name?: string | undefined;
1707
- replaceExistName?: boolean | undefined;
1708
- tags?: string[] | undefined;
1709
- onChain?: boolean | undefined;
1710
- }[] | undefined;
1635
+ discount_destroy?: string[] | undefined;
1711
1636
  compensation_fund_add?: {
1712
1637
  balance: string | number;
1713
1638
  } | {
@@ -2199,22 +2124,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2199
2124
  }, {
2200
2125
  op: "clear";
2201
2126
  }>]>>;
2202
- machine: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2203
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2204
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2205
- onChain: z.ZodOptional<z.ZodBoolean>;
2206
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
2207
- }, "strict", z.ZodTypeAny, {
2208
- name?: string | undefined;
2209
- replaceExistName?: boolean | undefined;
2210
- tags?: string[] | undefined;
2211
- onChain?: boolean | undefined;
2212
- }, {
2213
- name?: string | undefined;
2214
- replaceExistName?: boolean | undefined;
2215
- tags?: string[] | undefined;
2216
- onChain?: boolean | undefined;
2217
- }>, z.ZodNull]>>;
2127
+ machine: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
2218
2128
  discount: z.ZodOptional<z.ZodObject<{
2219
2129
  name: z.ZodString;
2220
2130
  discount_type: z.ZodUnion<[z.ZodLiteral<import("wowok").DiscountType.RATES>, z.ZodLiteral<import("wowok").DiscountType.FIXED>]>;
@@ -2282,22 +2192,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2282
2192
  time_ms_start?: number | undefined;
2283
2193
  time_ms_end?: number | undefined;
2284
2194
  }>>;
2285
- discount_destroy: z.ZodOptional<z.ZodArray<z.ZodObject<{
2286
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2287
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2288
- onChain: z.ZodOptional<z.ZodBoolean>;
2289
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
2290
- }, "strict", z.ZodTypeAny, {
2291
- name?: string | undefined;
2292
- replaceExistName?: boolean | undefined;
2293
- tags?: string[] | undefined;
2294
- onChain?: boolean | undefined;
2295
- }, {
2296
- name?: string | undefined;
2297
- replaceExistName?: boolean | undefined;
2298
- tags?: string[] | undefined;
2299
- onChain?: boolean | undefined;
2300
- }>, "many">>;
2195
+ discount_destroy: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2301
2196
  customer_required: z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">>;
2302
2197
  order_allocators: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2303
2198
  description: z.ZodEffects<z.ZodString, string, string>;
@@ -2541,22 +2436,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2541
2436
  balance: string | number;
2542
2437
  token_type: string;
2543
2438
  }>, z.ZodLiteral<"recently">]>>;
2544
- um: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2545
- name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2546
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2547
- onChain: z.ZodOptional<z.ZodBoolean>;
2548
- replaceExistName: z.ZodOptional<z.ZodBoolean>;
2549
- }, "strict", z.ZodTypeAny, {
2550
- name?: string | undefined;
2551
- replaceExistName?: boolean | undefined;
2552
- tags?: string[] | undefined;
2553
- onChain?: boolean | undefined;
2554
- }, {
2555
- name?: string | undefined;
2556
- replaceExistName?: boolean | undefined;
2557
- tags?: string[] | undefined;
2558
- onChain?: boolean | undefined;
2559
- }>, z.ZodNull]>>;
2439
+ um: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodString, string, string>, z.ZodNull]>>;
2560
2440
  pause: z.ZodOptional<z.ZodBoolean>;
2561
2441
  publish: z.ZodOptional<z.ZodBoolean>;
2562
2442
  }, "strict", z.ZodTypeAny, {
@@ -2597,12 +2477,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2597
2477
  } | {
2598
2478
  op: "clear";
2599
2479
  } | undefined;
2600
- um?: {
2601
- name?: string | undefined;
2602
- replaceExistName?: boolean | undefined;
2603
- tags?: string[] | undefined;
2604
- onChain?: boolean | undefined;
2605
- } | null | undefined;
2480
+ um?: string | null | undefined;
2606
2481
  discount?: {
2607
2482
  name: string;
2608
2483
  recipient: {
@@ -2620,12 +2495,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2620
2495
  time_ms_start?: number | undefined;
2621
2496
  time_ms_end?: number | undefined;
2622
2497
  } | undefined;
2623
- machine?: {
2624
- name?: string | undefined;
2625
- replaceExistName?: boolean | undefined;
2626
- tags?: string[] | undefined;
2627
- onChain?: boolean | undefined;
2628
- } | null | undefined;
2498
+ machine?: string | null | undefined;
2629
2499
  sales?: {
2630
2500
  op: "add";
2631
2501
  sales: {
@@ -2743,12 +2613,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2743
2613
  onChain?: boolean | undefined;
2744
2614
  } | undefined;
2745
2615
  } | undefined;
2746
- discount_destroy?: {
2747
- name?: string | undefined;
2748
- replaceExistName?: boolean | undefined;
2749
- tags?: string[] | undefined;
2750
- onChain?: boolean | undefined;
2751
- }[] | undefined;
2616
+ discount_destroy?: string[] | undefined;
2752
2617
  compensation_fund_add?: {
2753
2618
  balance: string | number;
2754
2619
  } | {
@@ -2802,12 +2667,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2802
2667
  } | {
2803
2668
  op: "clear";
2804
2669
  } | undefined;
2805
- um?: {
2806
- name?: string | undefined;
2807
- replaceExistName?: boolean | undefined;
2808
- tags?: string[] | undefined;
2809
- onChain?: boolean | undefined;
2810
- } | null | undefined;
2670
+ um?: string | null | undefined;
2811
2671
  discount?: {
2812
2672
  name: string;
2813
2673
  recipient: {
@@ -2825,12 +2685,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2825
2685
  time_ms_start?: number | undefined;
2826
2686
  time_ms_end?: number | undefined;
2827
2687
  } | undefined;
2828
- machine?: {
2829
- name?: string | undefined;
2830
- replaceExistName?: boolean | undefined;
2831
- tags?: string[] | undefined;
2832
- onChain?: boolean | undefined;
2833
- } | null | undefined;
2688
+ machine?: string | null | undefined;
2834
2689
  sales?: {
2835
2690
  op: "add";
2836
2691
  sales: {
@@ -2948,12 +2803,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
2948
2803
  onChain?: boolean | undefined;
2949
2804
  } | undefined;
2950
2805
  } | undefined;
2951
- discount_destroy?: {
2952
- name?: string | undefined;
2953
- replaceExistName?: boolean | undefined;
2954
- tags?: string[] | undefined;
2955
- onChain?: boolean | undefined;
2956
- }[] | undefined;
2806
+ discount_destroy?: string[] | undefined;
2957
2807
  compensation_fund_add?: {
2958
2808
  balance: string | number;
2959
2809
  } | {
@@ -3208,12 +3058,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3208
3058
  } | {
3209
3059
  op: "clear";
3210
3060
  } | undefined;
3211
- um?: {
3212
- name?: string | undefined;
3213
- replaceExistName?: boolean | undefined;
3214
- tags?: string[] | undefined;
3215
- onChain?: boolean | undefined;
3216
- } | null | undefined;
3061
+ um?: string | null | undefined;
3217
3062
  discount?: {
3218
3063
  name: string;
3219
3064
  recipient: {
@@ -3231,12 +3076,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3231
3076
  time_ms_start?: number | undefined;
3232
3077
  time_ms_end?: number | undefined;
3233
3078
  } | undefined;
3234
- machine?: {
3235
- name?: string | undefined;
3236
- replaceExistName?: boolean | undefined;
3237
- tags?: string[] | undefined;
3238
- onChain?: boolean | undefined;
3239
- } | null | undefined;
3079
+ machine?: string | null | undefined;
3240
3080
  sales?: {
3241
3081
  op: "add";
3242
3082
  sales: {
@@ -3354,12 +3194,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3354
3194
  onChain?: boolean | undefined;
3355
3195
  } | undefined;
3356
3196
  } | undefined;
3357
- discount_destroy?: {
3358
- name?: string | undefined;
3359
- replaceExistName?: boolean | undefined;
3360
- tags?: string[] | undefined;
3361
- onChain?: boolean | undefined;
3362
- }[] | undefined;
3197
+ discount_destroy?: string[] | undefined;
3363
3198
  compensation_fund_add?: {
3364
3199
  balance: string | number;
3365
3200
  } | {
@@ -3449,12 +3284,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3449
3284
  } | {
3450
3285
  op: "clear";
3451
3286
  } | undefined;
3452
- um?: {
3453
- name?: string | undefined;
3454
- replaceExistName?: boolean | undefined;
3455
- tags?: string[] | undefined;
3456
- onChain?: boolean | undefined;
3457
- } | null | undefined;
3287
+ um?: string | null | undefined;
3458
3288
  discount?: {
3459
3289
  name: string;
3460
3290
  recipient: {
@@ -3472,12 +3302,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3472
3302
  time_ms_start?: number | undefined;
3473
3303
  time_ms_end?: number | undefined;
3474
3304
  } | undefined;
3475
- machine?: {
3476
- name?: string | undefined;
3477
- replaceExistName?: boolean | undefined;
3478
- tags?: string[] | undefined;
3479
- onChain?: boolean | undefined;
3480
- } | null | undefined;
3305
+ machine?: string | null | undefined;
3481
3306
  sales?: {
3482
3307
  op: "add";
3483
3308
  sales: {
@@ -3595,12 +3420,7 @@ export declare const CallService_InputSchema: z.ZodObject<{
3595
3420
  onChain?: boolean | undefined;
3596
3421
  } | undefined;
3597
3422
  } | undefined;
3598
- discount_destroy?: {
3599
- name?: string | undefined;
3600
- replaceExistName?: boolean | undefined;
3601
- tags?: string[] | undefined;
3602
- onChain?: boolean | undefined;
3603
- }[] | undefined;
3423
+ discount_destroy?: string[] | undefined;
3604
3424
  compensation_fund_add?: {
3605
3425
  balance: string | number;
3606
3426
  } | {
@@ -1,7 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, ObjectsSchema, CallEnvSchema, SubmissionCallSchema } from "./base.js";
3
3
  import { AllocatorsSchema, DiscountTypeSchema, ServiceSaleSchema } from "../query/index.js";
4
- import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NotEmptyNameSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
4
+ import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema, NotEmptyNameSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
5
5
  import { BalanceTypeSchema } from "../common/index.js";
6
6
  // ServiceBuyItem 接口
7
7
  export const ServiceBuyItemSchema = z.object({
@@ -67,16 +67,16 @@ export const CallService_DataSchema = z.object({
67
67
  repositories: ObjectsSchema.optional().describe("Service Repository object list."),
68
68
  rewards: ObjectsSchema.optional().describe("Service Reward object list."),
69
69
  arbitrations: ObjectsSchema.optional().describe("Service Arbitration object list."),
70
- machine: z.union([NamedObjectSchema, z.null()]).optional().describe("Service Machine object ID or name. The Machine object must be in published state."),
70
+ machine: z.union([NameOrAddressSchema, z.null()]).optional().describe("Service Machine object ID or name. The Machine object must be in published state."),
71
71
  discount: DiscountSchema.optional().describe("Issue discount."),
72
- discount_destroy: z.array(NamedObjectSchema).optional().describe("Destroy existing discount object ID list."),
72
+ discount_destroy: z.array(NameOrAddressSchema).optional().describe("Destroy existing discount object ID list."),
73
73
  customer_required: z.array(NotEmptyNameSchema).optional().describe("Customer required information. Such as phone, email, etc."),
74
74
  order_allocators: z.union([AllocatorsSchema, z.null()]).optional().describe("Order fund allocator."),
75
75
  compensation_fund_add: CoinParamSchema.optional().describe("Compensation fund. Used to claim compensation based on the arbitration result of the Arb object when resolving order disputes."),
76
76
  compensation_locked_time_add: z.number().optional().describe("Lock time for compensation funds added to orders (milliseconds)."),
77
77
  compensation_fund_receive: ReceivedBalanceOrRecentlySchema.optional().describe("Receive order compensation funds."),
78
78
  owner_receive: ReceivedObjectsOrRecentlySchema.optional().describe("Unwrap CoinWrapper objects and other objects received by this object and send them to the owner of its Permission object."),
79
- um: z.union([NamedObjectSchema, z.null()]).optional().describe("Contact object."),
79
+ um: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID or name."),
80
80
  pause: z.boolean().optional().describe("Whether to pause accepting new orders."),
81
81
  publish: z.boolean().optional().describe("Whether to publish the Service. After publishing, customers can place orders; at the same time, service commitments such as machine, order_allocators, arbitrations, etc. will be immutable."),
82
82
  }).strict().describe("On-chain Service operations. USAGE: (1) CREATE NEW: Set 'object' field with {name, type, permission, ...} to create a Service. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. 'permission' can be a new Permission object or reference an existing one - check 'object' field description for details. (2) OPERATE EXISTING: Set 'object' field with object ID or name. The 'object' field is CRITICAL and REQUIRED in both cases.");
@@ -601,6 +601,7 @@ export declare const ReceivedBalanceObjectSchema: z.ZodObject<{
601
601
  balance: string | number;
602
602
  payment: string;
603
603
  }>;
604
+ export declare const CoinWrapperTokenTypeSchema: z.ZodEffects<z.ZodString, string, string>;
604
605
  export declare const ReceivedBalanceSchema: z.ZodObject<{
605
606
  balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
606
607
  token_type: z.ZodEffects<z.ZodString, string, string>;
@@ -324,10 +324,50 @@ export const ReceivedBalanceObjectSchema = z.object({
324
324
  balance: BalanceTypeSchema,
325
325
  payment: z.string().describe("Payment object ID"),
326
326
  }).strict().describe("Received CoinWrapper object record");
327
+ // Define CoinWrapperTokenType schema - supports CoinWrapper<...> format for owner_receive operations
328
+ export const CoinWrapperTokenTypeSchema = z
329
+ .string()
330
+ .refine((val) => {
331
+ // Support CoinWrapper<...> format
332
+ const match = val.match(/^CoinWrapper<(.+)>$/);
333
+ if (match) {
334
+ const inner = match[1];
335
+ if (inner === WOW_TOKEN_TYPE)
336
+ return true;
337
+ const parts = inner.split("::");
338
+ if (parts.length !== 3)
339
+ return false;
340
+ const [address, module, structName] = parts;
341
+ if (!isValidWowAddress(address))
342
+ return false;
343
+ if (!isValidMoveIdentifier(module))
344
+ return false;
345
+ if (!isValidMoveIdentifier(structName))
346
+ return false;
347
+ return true;
348
+ }
349
+ // Also support plain token type format for backward compatibility
350
+ if (val === WOW_TOKEN_TYPE)
351
+ return true;
352
+ const parts = val.split("::");
353
+ if (parts.length !== 3)
354
+ return false;
355
+ const [address, module, structName] = parts;
356
+ if (!isValidWowAddress(address))
357
+ return false;
358
+ if (!isValidMoveIdentifier(module))
359
+ return false;
360
+ if (!isValidMoveIdentifier(structName))
361
+ return false;
362
+ return true;
363
+ }, {
364
+ message: "Invalid token type format. Expected: CoinWrapper<{address}::{module}::{struct}> or {address}::{module}::{struct}. Example: CoinWrapper<0x2::wow::WOW> or 0x2::wow::WOW"
365
+ })
366
+ .describe("Token type in format: CoinWrapper<{address}::{module}::{struct}> or {address}::{module}::{struct}. Example: CoinWrapper<0x2::wow::WOW>");
327
367
  // Define ReceivedBalance schema
328
368
  export const ReceivedBalanceSchema = z.object({
329
369
  balance: BalanceTypeSchema,
330
- token_type: TokenTypeSchema.describe("Asset type of Coin objects"),
370
+ token_type: CoinWrapperTokenTypeSchema.describe("Asset type of Coin objects. Supports CoinWrapper<...> format for order receive operations."),
331
371
  received: z.array(ReceivedBalanceObjectSchema).describe("Received records of Coin objects"),
332
372
  }).strict().describe("Received record of Coin objects");
333
373
  // Define ReceivedBalanceOrRecently schema
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wowok_agent",
3
- "version": "2.1.30",
3
+ "version": "2.1.33",
4
4
  "description": "Making It Easy for Agents to Communicate, Collaborate, Trade, and Trust.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -30,7 +30,7 @@
30
30
  "dependencies": {
31
31
  "@modelcontextprotocol/sdk": "^1.29.0",
32
32
  "lodash": "^4.18.1",
33
- "wowok": "2.1.29",
33
+ "wowok": "2.1.32",
34
34
  "zod": "^3.25.76"
35
35
  },
36
36
  "devDependencies": {