wowok_agent 2.1.26 → 2.1.28
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 +60 -150
- package/dist/index.js +201 -3
- package/dist/schema/call/personal.d.ts +112 -112
- package/dist/schema/call/personal.js +6 -6
- package/dist/schema/call/treasury.d.ts +38 -248
- package/dist/schema/call/treasury.js +4 -4
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema,
|
|
2
|
+
import { AccountOrMark_AddressAISchema, AccountOrMark_AddressSchema, DescriptionSchema, ManyAccountOrMark_AddressAISchema, NameSchema } from "../common/index.js";
|
|
3
3
|
import { RecordsInEntitySchema } from "../query/index.js";
|
|
4
4
|
import { CallEnvSchema } from "./base.js";
|
|
5
5
|
// 定义information的add操作 schema
|
|
@@ -26,7 +26,7 @@ export const InformationSchema = z.discriminatedUnion("op", [
|
|
|
26
26
|
export const MarkAddSchema = z.object({
|
|
27
27
|
op: z.literal("add"),
|
|
28
28
|
data: z.array(z.object({
|
|
29
|
-
address:
|
|
29
|
+
address: AccountOrMark_AddressAISchema,
|
|
30
30
|
name: NameSchema.optional(),
|
|
31
31
|
tags: z.array(NameSchema).optional()
|
|
32
32
|
}).strict()),
|
|
@@ -35,19 +35,19 @@ export const MarkAddSchema = z.object({
|
|
|
35
35
|
export const MarkRemoveSchema = z.object({
|
|
36
36
|
op: z.literal("remove"),
|
|
37
37
|
data: z.array(z.object({
|
|
38
|
-
address:
|
|
38
|
+
address: AccountOrMark_AddressAISchema,
|
|
39
39
|
tags: z.array(NameSchema).optional()
|
|
40
40
|
}).strict())
|
|
41
41
|
}).strict().describe("PUBLIC: Remove specified tags from your on-chain identity mark.");
|
|
42
42
|
// 定义mark的clear操作 schema
|
|
43
43
|
export const MarkClearSchema = z.object({
|
|
44
44
|
op: z.literal("clear"),
|
|
45
|
-
address:
|
|
45
|
+
address: ManyAccountOrMark_AddressAISchema
|
|
46
46
|
}).strict().describe("PUBLIC: Clear ALL tags from specified on-chain identity marks.");
|
|
47
47
|
// 定义mark的transfer操作 schema
|
|
48
48
|
export const MarkTransferSchema = z.object({
|
|
49
49
|
op: z.literal("transfer"),
|
|
50
|
-
to:
|
|
50
|
+
to: AccountOrMark_AddressAISchema
|
|
51
51
|
}).strict().describe("PUBLIC: Transfer your on-chain identity mark to another address.");
|
|
52
52
|
// 定义mark的replace操作 schema
|
|
53
53
|
export const MarkReplaceSchema = z.object({
|
|
@@ -70,7 +70,7 @@ export const MarkSchema = z.discriminatedUnion("op", [
|
|
|
70
70
|
// 定义CallPersonal_Data schema
|
|
71
71
|
export const CallPersonal_DataSchema = z.object({
|
|
72
72
|
description: DescriptionSchema.optional(),
|
|
73
|
-
referrer: z.union([AccountOrMark_AddressSchema, z.null()]).optional().describe("Referrer ID for joining the on-chain network."),
|
|
73
|
+
referrer: z.union([z.string(), AccountOrMark_AddressSchema, z.null()]).optional().describe("Referrer ID (name or address) for joining the on-chain network."),
|
|
74
74
|
information: InformationSchema.optional().describe("PUBLIC: Personal info on-chain. Safe: social handles, URLs. NEVER: phone, address, private keys."),
|
|
75
75
|
mark: MarkSchema.optional().describe("PUBLIC: On-chain identity mark. For PRIVATE marks, use 'local' tool.")
|
|
76
76
|
}).strict();
|
|
@@ -236,38 +236,13 @@ export declare const ExternalDepositGuardSchema: z.ZodDiscriminatedUnion<"op", [
|
|
|
236
236
|
}[];
|
|
237
237
|
}>, z.ZodObject<{
|
|
238
238
|
op: z.ZodLiteral<"remove">;
|
|
239
|
-
guards: z.ZodArray<z.
|
|
240
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
241
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
243
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
-
}, "strict", z.ZodTypeAny, {
|
|
245
|
-
name?: string | undefined;
|
|
246
|
-
replaceExistName?: boolean | undefined;
|
|
247
|
-
tags?: string[] | undefined;
|
|
248
|
-
onChain?: boolean | undefined;
|
|
249
|
-
}, {
|
|
250
|
-
name?: string | undefined;
|
|
251
|
-
replaceExistName?: boolean | undefined;
|
|
252
|
-
tags?: string[] | undefined;
|
|
253
|
-
onChain?: boolean | undefined;
|
|
254
|
-
}>, "many">;
|
|
239
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
255
240
|
}, "strict", z.ZodTypeAny, {
|
|
256
241
|
op: "remove";
|
|
257
|
-
guards:
|
|
258
|
-
name?: string | undefined;
|
|
259
|
-
replaceExistName?: boolean | undefined;
|
|
260
|
-
tags?: string[] | undefined;
|
|
261
|
-
onChain?: boolean | undefined;
|
|
262
|
-
}[];
|
|
242
|
+
guards: string[];
|
|
263
243
|
}, {
|
|
264
244
|
op: "remove";
|
|
265
|
-
guards:
|
|
266
|
-
name?: string | undefined;
|
|
267
|
-
replaceExistName?: boolean | undefined;
|
|
268
|
-
tags?: string[] | undefined;
|
|
269
|
-
onChain?: boolean | undefined;
|
|
270
|
-
}[];
|
|
245
|
+
guards: string[];
|
|
271
246
|
}>, z.ZodObject<{
|
|
272
247
|
op: z.ZodLiteral<"clear">;
|
|
273
248
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -325,38 +300,13 @@ export declare const ExternalWithdrawGuardSchema: z.ZodDiscriminatedUnion<"op",
|
|
|
325
300
|
}[];
|
|
326
301
|
}>, z.ZodObject<{
|
|
327
302
|
op: z.ZodLiteral<"remove">;
|
|
328
|
-
guards: z.ZodArray<z.
|
|
329
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
330
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
331
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
332
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
333
|
-
}, "strict", z.ZodTypeAny, {
|
|
334
|
-
name?: string | undefined;
|
|
335
|
-
replaceExistName?: boolean | undefined;
|
|
336
|
-
tags?: string[] | undefined;
|
|
337
|
-
onChain?: boolean | undefined;
|
|
338
|
-
}, {
|
|
339
|
-
name?: string | undefined;
|
|
340
|
-
replaceExistName?: boolean | undefined;
|
|
341
|
-
tags?: string[] | undefined;
|
|
342
|
-
onChain?: boolean | undefined;
|
|
343
|
-
}>, "many">;
|
|
303
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
344
304
|
}, "strict", z.ZodTypeAny, {
|
|
345
305
|
op: "remove";
|
|
346
|
-
guards:
|
|
347
|
-
name?: string | undefined;
|
|
348
|
-
replaceExistName?: boolean | undefined;
|
|
349
|
-
tags?: string[] | undefined;
|
|
350
|
-
onChain?: boolean | undefined;
|
|
351
|
-
}[];
|
|
306
|
+
guards: string[];
|
|
352
307
|
}, {
|
|
353
308
|
op: "remove";
|
|
354
|
-
guards:
|
|
355
|
-
name?: string | undefined;
|
|
356
|
-
replaceExistName?: boolean | undefined;
|
|
357
|
-
tags?: string[] | undefined;
|
|
358
|
-
onChain?: boolean | undefined;
|
|
359
|
-
}[];
|
|
309
|
+
guards: string[];
|
|
360
310
|
}>, z.ZodObject<{
|
|
361
311
|
op: z.ZodLiteral<"clear">;
|
|
362
312
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -420,7 +370,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
420
370
|
onChain?: boolean | undefined;
|
|
421
371
|
} | undefined;
|
|
422
372
|
}>]>;
|
|
423
|
-
description: z.ZodEffects<z.ZodString, string, string
|
|
373
|
+
description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
424
374
|
receive: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
425
375
|
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
426
376
|
token_type: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -691,38 +641,13 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
691
641
|
}[];
|
|
692
642
|
}>, z.ZodObject<{
|
|
693
643
|
op: z.ZodLiteral<"remove">;
|
|
694
|
-
guards: z.ZodArray<z.
|
|
695
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
696
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
697
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
-
}, "strict", z.ZodTypeAny, {
|
|
700
|
-
name?: string | undefined;
|
|
701
|
-
replaceExistName?: boolean | undefined;
|
|
702
|
-
tags?: string[] | undefined;
|
|
703
|
-
onChain?: boolean | undefined;
|
|
704
|
-
}, {
|
|
705
|
-
name?: string | undefined;
|
|
706
|
-
replaceExistName?: boolean | undefined;
|
|
707
|
-
tags?: string[] | undefined;
|
|
708
|
-
onChain?: boolean | undefined;
|
|
709
|
-
}>, "many">;
|
|
644
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
710
645
|
}, "strict", z.ZodTypeAny, {
|
|
711
646
|
op: "remove";
|
|
712
|
-
guards:
|
|
713
|
-
name?: string | undefined;
|
|
714
|
-
replaceExistName?: boolean | undefined;
|
|
715
|
-
tags?: string[] | undefined;
|
|
716
|
-
onChain?: boolean | undefined;
|
|
717
|
-
}[];
|
|
647
|
+
guards: string[];
|
|
718
648
|
}, {
|
|
719
649
|
op: "remove";
|
|
720
|
-
guards:
|
|
721
|
-
name?: string | undefined;
|
|
722
|
-
replaceExistName?: boolean | undefined;
|
|
723
|
-
tags?: string[] | undefined;
|
|
724
|
-
onChain?: boolean | undefined;
|
|
725
|
-
}[];
|
|
650
|
+
guards: string[];
|
|
726
651
|
}>, z.ZodObject<{
|
|
727
652
|
op: z.ZodLiteral<"clear">;
|
|
728
653
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -780,38 +705,13 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
780
705
|
}[];
|
|
781
706
|
}>, z.ZodObject<{
|
|
782
707
|
op: z.ZodLiteral<"remove">;
|
|
783
|
-
guards: z.ZodArray<z.
|
|
784
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
785
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
786
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
787
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
788
|
-
}, "strict", z.ZodTypeAny, {
|
|
789
|
-
name?: string | undefined;
|
|
790
|
-
replaceExistName?: boolean | undefined;
|
|
791
|
-
tags?: string[] | undefined;
|
|
792
|
-
onChain?: boolean | undefined;
|
|
793
|
-
}, {
|
|
794
|
-
name?: string | undefined;
|
|
795
|
-
replaceExistName?: boolean | undefined;
|
|
796
|
-
tags?: string[] | undefined;
|
|
797
|
-
onChain?: boolean | undefined;
|
|
798
|
-
}>, "many">;
|
|
708
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
799
709
|
}, "strict", z.ZodTypeAny, {
|
|
800
710
|
op: "remove";
|
|
801
|
-
guards:
|
|
802
|
-
name?: string | undefined;
|
|
803
|
-
replaceExistName?: boolean | undefined;
|
|
804
|
-
tags?: string[] | undefined;
|
|
805
|
-
onChain?: boolean | undefined;
|
|
806
|
-
}[];
|
|
711
|
+
guards: string[];
|
|
807
712
|
}, {
|
|
808
713
|
op: "remove";
|
|
809
|
-
guards:
|
|
810
|
-
name?: string | undefined;
|
|
811
|
-
replaceExistName?: boolean | undefined;
|
|
812
|
-
tags?: string[] | undefined;
|
|
813
|
-
onChain?: boolean | undefined;
|
|
814
|
-
}[];
|
|
714
|
+
guards: string[];
|
|
815
715
|
}>, z.ZodObject<{
|
|
816
716
|
op: z.ZodLiteral<"clear">;
|
|
817
717
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -892,7 +792,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
892
792
|
onChain?: boolean | undefined;
|
|
893
793
|
} | undefined;
|
|
894
794
|
};
|
|
895
|
-
description
|
|
795
|
+
description?: string | undefined;
|
|
896
796
|
owner_receive?: {
|
|
897
797
|
received: {
|
|
898
798
|
id: string;
|
|
@@ -925,12 +825,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
925
825
|
}[];
|
|
926
826
|
} | {
|
|
927
827
|
op: "remove";
|
|
928
|
-
guards:
|
|
929
|
-
name?: string | undefined;
|
|
930
|
-
replaceExistName?: boolean | undefined;
|
|
931
|
-
tags?: string[] | undefined;
|
|
932
|
-
onChain?: boolean | undefined;
|
|
933
|
-
}[];
|
|
828
|
+
guards: string[];
|
|
934
829
|
} | {
|
|
935
830
|
op: "clear";
|
|
936
831
|
} | undefined;
|
|
@@ -948,12 +843,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
948
843
|
}[];
|
|
949
844
|
} | {
|
|
950
845
|
op: "remove";
|
|
951
|
-
guards:
|
|
952
|
-
name?: string | undefined;
|
|
953
|
-
replaceExistName?: boolean | undefined;
|
|
954
|
-
tags?: string[] | undefined;
|
|
955
|
-
onChain?: boolean | undefined;
|
|
956
|
-
}[];
|
|
846
|
+
guards: string[];
|
|
957
847
|
} | {
|
|
958
848
|
op: "clear";
|
|
959
849
|
} | undefined;
|
|
@@ -1024,7 +914,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
1024
914
|
onChain?: boolean | undefined;
|
|
1025
915
|
} | undefined;
|
|
1026
916
|
};
|
|
1027
|
-
description
|
|
917
|
+
description?: string | undefined;
|
|
1028
918
|
owner_receive?: {
|
|
1029
919
|
received: {
|
|
1030
920
|
id: string;
|
|
@@ -1057,12 +947,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
1057
947
|
}[];
|
|
1058
948
|
} | {
|
|
1059
949
|
op: "remove";
|
|
1060
|
-
guards:
|
|
1061
|
-
name?: string | undefined;
|
|
1062
|
-
replaceExistName?: boolean | undefined;
|
|
1063
|
-
tags?: string[] | undefined;
|
|
1064
|
-
onChain?: boolean | undefined;
|
|
1065
|
-
}[];
|
|
950
|
+
guards: string[];
|
|
1066
951
|
} | {
|
|
1067
952
|
op: "clear";
|
|
1068
953
|
} | undefined;
|
|
@@ -1080,12 +965,7 @@ export declare const CallTreasury_DataSchema: z.ZodObject<{
|
|
|
1080
965
|
}[];
|
|
1081
966
|
} | {
|
|
1082
967
|
op: "remove";
|
|
1083
|
-
guards:
|
|
1084
|
-
name?: string | undefined;
|
|
1085
|
-
replaceExistName?: boolean | undefined;
|
|
1086
|
-
tags?: string[] | undefined;
|
|
1087
|
-
onChain?: boolean | undefined;
|
|
1088
|
-
}[];
|
|
968
|
+
guards: string[];
|
|
1089
969
|
} | {
|
|
1090
970
|
op: "clear";
|
|
1091
971
|
} | undefined;
|
|
@@ -1199,7 +1079,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1199
1079
|
onChain?: boolean | undefined;
|
|
1200
1080
|
} | undefined;
|
|
1201
1081
|
}>]>;
|
|
1202
|
-
description: z.ZodEffects<z.ZodString, string, string
|
|
1082
|
+
description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1203
1083
|
receive: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1204
1084
|
balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1205
1085
|
token_type: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1470,38 +1350,13 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1470
1350
|
}[];
|
|
1471
1351
|
}>, z.ZodObject<{
|
|
1472
1352
|
op: z.ZodLiteral<"remove">;
|
|
1473
|
-
guards: z.ZodArray<z.
|
|
1474
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1475
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1476
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
1477
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
1478
|
-
}, "strict", z.ZodTypeAny, {
|
|
1479
|
-
name?: string | undefined;
|
|
1480
|
-
replaceExistName?: boolean | undefined;
|
|
1481
|
-
tags?: string[] | undefined;
|
|
1482
|
-
onChain?: boolean | undefined;
|
|
1483
|
-
}, {
|
|
1484
|
-
name?: string | undefined;
|
|
1485
|
-
replaceExistName?: boolean | undefined;
|
|
1486
|
-
tags?: string[] | undefined;
|
|
1487
|
-
onChain?: boolean | undefined;
|
|
1488
|
-
}>, "many">;
|
|
1353
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1489
1354
|
}, "strict", z.ZodTypeAny, {
|
|
1490
1355
|
op: "remove";
|
|
1491
|
-
guards:
|
|
1492
|
-
name?: string | undefined;
|
|
1493
|
-
replaceExistName?: boolean | undefined;
|
|
1494
|
-
tags?: string[] | undefined;
|
|
1495
|
-
onChain?: boolean | undefined;
|
|
1496
|
-
}[];
|
|
1356
|
+
guards: string[];
|
|
1497
1357
|
}, {
|
|
1498
1358
|
op: "remove";
|
|
1499
|
-
guards:
|
|
1500
|
-
name?: string | undefined;
|
|
1501
|
-
replaceExistName?: boolean | undefined;
|
|
1502
|
-
tags?: string[] | undefined;
|
|
1503
|
-
onChain?: boolean | undefined;
|
|
1504
|
-
}[];
|
|
1359
|
+
guards: string[];
|
|
1505
1360
|
}>, z.ZodObject<{
|
|
1506
1361
|
op: z.ZodLiteral<"clear">;
|
|
1507
1362
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1559,38 +1414,13 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1559
1414
|
}[];
|
|
1560
1415
|
}>, z.ZodObject<{
|
|
1561
1416
|
op: z.ZodLiteral<"remove">;
|
|
1562
|
-
guards: z.ZodArray<z.
|
|
1563
|
-
name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
1564
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1565
|
-
onChain: z.ZodOptional<z.ZodBoolean>;
|
|
1566
|
-
replaceExistName: z.ZodOptional<z.ZodBoolean>;
|
|
1567
|
-
}, "strict", z.ZodTypeAny, {
|
|
1568
|
-
name?: string | undefined;
|
|
1569
|
-
replaceExistName?: boolean | undefined;
|
|
1570
|
-
tags?: string[] | undefined;
|
|
1571
|
-
onChain?: boolean | undefined;
|
|
1572
|
-
}, {
|
|
1573
|
-
name?: string | undefined;
|
|
1574
|
-
replaceExistName?: boolean | undefined;
|
|
1575
|
-
tags?: string[] | undefined;
|
|
1576
|
-
onChain?: boolean | undefined;
|
|
1577
|
-
}>, "many">;
|
|
1417
|
+
guards: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
1578
1418
|
}, "strict", z.ZodTypeAny, {
|
|
1579
1419
|
op: "remove";
|
|
1580
|
-
guards:
|
|
1581
|
-
name?: string | undefined;
|
|
1582
|
-
replaceExistName?: boolean | undefined;
|
|
1583
|
-
tags?: string[] | undefined;
|
|
1584
|
-
onChain?: boolean | undefined;
|
|
1585
|
-
}[];
|
|
1420
|
+
guards: string[];
|
|
1586
1421
|
}, {
|
|
1587
1422
|
op: "remove";
|
|
1588
|
-
guards:
|
|
1589
|
-
name?: string | undefined;
|
|
1590
|
-
replaceExistName?: boolean | undefined;
|
|
1591
|
-
tags?: string[] | undefined;
|
|
1592
|
-
onChain?: boolean | undefined;
|
|
1593
|
-
}[];
|
|
1423
|
+
guards: string[];
|
|
1594
1424
|
}>, z.ZodObject<{
|
|
1595
1425
|
op: z.ZodLiteral<"clear">;
|
|
1596
1426
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -1671,7 +1501,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1671
1501
|
onChain?: boolean | undefined;
|
|
1672
1502
|
} | undefined;
|
|
1673
1503
|
};
|
|
1674
|
-
description
|
|
1504
|
+
description?: string | undefined;
|
|
1675
1505
|
owner_receive?: {
|
|
1676
1506
|
received: {
|
|
1677
1507
|
id: string;
|
|
@@ -1704,12 +1534,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1704
1534
|
}[];
|
|
1705
1535
|
} | {
|
|
1706
1536
|
op: "remove";
|
|
1707
|
-
guards:
|
|
1708
|
-
name?: string | undefined;
|
|
1709
|
-
replaceExistName?: boolean | undefined;
|
|
1710
|
-
tags?: string[] | undefined;
|
|
1711
|
-
onChain?: boolean | undefined;
|
|
1712
|
-
}[];
|
|
1537
|
+
guards: string[];
|
|
1713
1538
|
} | {
|
|
1714
1539
|
op: "clear";
|
|
1715
1540
|
} | undefined;
|
|
@@ -1727,12 +1552,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1727
1552
|
}[];
|
|
1728
1553
|
} | {
|
|
1729
1554
|
op: "remove";
|
|
1730
|
-
guards:
|
|
1731
|
-
name?: string | undefined;
|
|
1732
|
-
replaceExistName?: boolean | undefined;
|
|
1733
|
-
tags?: string[] | undefined;
|
|
1734
|
-
onChain?: boolean | undefined;
|
|
1735
|
-
}[];
|
|
1555
|
+
guards: string[];
|
|
1736
1556
|
} | {
|
|
1737
1557
|
op: "clear";
|
|
1738
1558
|
} | undefined;
|
|
@@ -1803,7 +1623,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1803
1623
|
onChain?: boolean | undefined;
|
|
1804
1624
|
} | undefined;
|
|
1805
1625
|
};
|
|
1806
|
-
description
|
|
1626
|
+
description?: string | undefined;
|
|
1807
1627
|
owner_receive?: {
|
|
1808
1628
|
received: {
|
|
1809
1629
|
id: string;
|
|
@@ -1836,12 +1656,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1836
1656
|
}[];
|
|
1837
1657
|
} | {
|
|
1838
1658
|
op: "remove";
|
|
1839
|
-
guards:
|
|
1840
|
-
name?: string | undefined;
|
|
1841
|
-
replaceExistName?: boolean | undefined;
|
|
1842
|
-
tags?: string[] | undefined;
|
|
1843
|
-
onChain?: boolean | undefined;
|
|
1844
|
-
}[];
|
|
1659
|
+
guards: string[];
|
|
1845
1660
|
} | {
|
|
1846
1661
|
op: "clear";
|
|
1847
1662
|
} | undefined;
|
|
@@ -1859,12 +1674,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
1859
1674
|
}[];
|
|
1860
1675
|
} | {
|
|
1861
1676
|
op: "remove";
|
|
1862
|
-
guards:
|
|
1863
|
-
name?: string | undefined;
|
|
1864
|
-
replaceExistName?: boolean | undefined;
|
|
1865
|
-
tags?: string[] | undefined;
|
|
1866
|
-
onChain?: boolean | undefined;
|
|
1867
|
-
}[];
|
|
1677
|
+
guards: string[];
|
|
1868
1678
|
} | {
|
|
1869
1679
|
op: "clear";
|
|
1870
1680
|
} | undefined;
|
|
@@ -2136,7 +1946,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2136
1946
|
onChain?: boolean | undefined;
|
|
2137
1947
|
} | undefined;
|
|
2138
1948
|
};
|
|
2139
|
-
description
|
|
1949
|
+
description?: string | undefined;
|
|
2140
1950
|
owner_receive?: {
|
|
2141
1951
|
received: {
|
|
2142
1952
|
id: string;
|
|
@@ -2169,12 +1979,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2169
1979
|
}[];
|
|
2170
1980
|
} | {
|
|
2171
1981
|
op: "remove";
|
|
2172
|
-
guards:
|
|
2173
|
-
name?: string | undefined;
|
|
2174
|
-
replaceExistName?: boolean | undefined;
|
|
2175
|
-
tags?: string[] | undefined;
|
|
2176
|
-
onChain?: boolean | undefined;
|
|
2177
|
-
}[];
|
|
1982
|
+
guards: string[];
|
|
2178
1983
|
} | {
|
|
2179
1984
|
op: "clear";
|
|
2180
1985
|
} | undefined;
|
|
@@ -2192,12 +1997,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2192
1997
|
}[];
|
|
2193
1998
|
} | {
|
|
2194
1999
|
op: "remove";
|
|
2195
|
-
guards:
|
|
2196
|
-
name?: string | undefined;
|
|
2197
|
-
replaceExistName?: boolean | undefined;
|
|
2198
|
-
tags?: string[] | undefined;
|
|
2199
|
-
onChain?: boolean | undefined;
|
|
2200
|
-
}[];
|
|
2000
|
+
guards: string[];
|
|
2201
2001
|
} | {
|
|
2202
2002
|
op: "clear";
|
|
2203
2003
|
} | undefined;
|
|
@@ -2304,7 +2104,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2304
2104
|
onChain?: boolean | undefined;
|
|
2305
2105
|
} | undefined;
|
|
2306
2106
|
};
|
|
2307
|
-
description
|
|
2107
|
+
description?: string | undefined;
|
|
2308
2108
|
owner_receive?: {
|
|
2309
2109
|
received: {
|
|
2310
2110
|
id: string;
|
|
@@ -2337,12 +2137,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2337
2137
|
}[];
|
|
2338
2138
|
} | {
|
|
2339
2139
|
op: "remove";
|
|
2340
|
-
guards:
|
|
2341
|
-
name?: string | undefined;
|
|
2342
|
-
replaceExistName?: boolean | undefined;
|
|
2343
|
-
tags?: string[] | undefined;
|
|
2344
|
-
onChain?: boolean | undefined;
|
|
2345
|
-
}[];
|
|
2140
|
+
guards: string[];
|
|
2346
2141
|
} | {
|
|
2347
2142
|
op: "clear";
|
|
2348
2143
|
} | undefined;
|
|
@@ -2360,12 +2155,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2360
2155
|
}[];
|
|
2361
2156
|
} | {
|
|
2362
2157
|
op: "remove";
|
|
2363
|
-
guards:
|
|
2364
|
-
name?: string | undefined;
|
|
2365
|
-
replaceExistName?: boolean | undefined;
|
|
2366
|
-
tags?: string[] | undefined;
|
|
2367
|
-
onChain?: boolean | undefined;
|
|
2368
|
-
}[];
|
|
2158
|
+
guards: string[];
|
|
2369
2159
|
} | {
|
|
2370
2160
|
op: "clear";
|
|
2371
2161
|
} | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { TypedPermissionObjectSchema, CoinParamSchema, NamedObjectSchema, SubmissionCallSchema, CallEnvSchema } from "./base.js";
|
|
3
3
|
import { AmountFromDepositGuardSchema, AmountFromWithdrawGuardSchema, PaymentInfoSchema } from "../query/index.js";
|
|
4
|
-
import { AccountOrMark_AddressSchema, DescriptionSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema } from "../common/index.js";
|
|
4
|
+
import { AccountOrMark_AddressSchema, DescriptionSchema, ReceivedBalanceOrRecentlySchema, ReceivedObjectsOrRecentlySchema, NameOrAddressSchema } from "../common/index.js";
|
|
5
5
|
import { BalanceTypeSchema } from "../common/index.js";
|
|
6
6
|
// Deposit 接口
|
|
7
7
|
export const DepositSchema = z.object({
|
|
@@ -33,7 +33,7 @@ export const ExternalDepositGuardSchema = z.discriminatedUnion("op", [
|
|
|
33
33
|
}).strict(),
|
|
34
34
|
z.object({
|
|
35
35
|
op: z.literal("remove"),
|
|
36
|
-
guards: z.array(
|
|
36
|
+
guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
|
|
37
37
|
}).strict(),
|
|
38
38
|
z.object({
|
|
39
39
|
op: z.literal("clear"),
|
|
@@ -51,7 +51,7 @@ export const ExternalWithdrawGuardSchema = z.discriminatedUnion("op", [
|
|
|
51
51
|
}).strict(),
|
|
52
52
|
z.object({
|
|
53
53
|
op: z.literal("remove"),
|
|
54
|
-
guards: z.array(
|
|
54
|
+
guards: z.array(NameOrAddressSchema).describe("List of Guard object IDs or names to remove"),
|
|
55
55
|
}).strict(),
|
|
56
56
|
z.object({
|
|
57
57
|
op: z.literal("clear"),
|
|
@@ -60,7 +60,7 @@ export const ExternalWithdrawGuardSchema = z.discriminatedUnion("op", [
|
|
|
60
60
|
// CallTreasury_Data 接口
|
|
61
61
|
export const CallTreasury_DataSchema = z.object({
|
|
62
62
|
object: TypedPermissionObjectSchema,
|
|
63
|
-
description: DescriptionSchema,
|
|
63
|
+
description: DescriptionSchema.optional(),
|
|
64
64
|
receive: ReceivedBalanceOrRecentlySchema.optional().describe("Receive CoinWrapper objects received by the object and deposit them into its balance."),
|
|
65
65
|
deposit: DepositSchema.optional().describe("Deposit to Treasury object"),
|
|
66
66
|
withdraw: WithdrawSchema.optional().describe("Withdraw from Treasury object"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wowok_agent",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.28",
|
|
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.
|
|
33
|
+
"wowok": "2.1.28",
|
|
34
34
|
"zod": "^3.25.76"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|