wowok_agent 2.1.19 → 2.1.21
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 +102 -102
- package/dist/index.js +58 -13
- package/dist/schema/call/allocation.d.ts +8 -8
- package/dist/schema/call/arbitration.d.ts +8 -8
- package/dist/schema/call/base.d.ts +24 -24
- package/dist/schema/call/contact.d.ts +8 -8
- package/dist/schema/call/demand.d.ts +8 -8
- package/dist/schema/call/guard.d.ts +18 -18
- package/dist/schema/call/machine.d.ts +8 -8
- package/dist/schema/call/order.d.ts +8 -8
- package/dist/schema/call/permission.d.ts +8 -8
- package/dist/schema/call/progress.d.ts +8 -8
- package/dist/schema/call/repository.d.ts +8 -8
- package/dist/schema/call/reward.d.ts +8 -8
- package/dist/schema/call/service.d.ts +8 -8
- package/dist/schema/call/treasury.d.ts +8 -8
- package/dist/schema/common/index.d.ts +39 -4
- package/dist/schema/common/index.js +20 -0
- package/dist/schema/messenger/index.d.ts +337 -131
- package/dist/schema/messenger/index.js +48 -13
- package/dist/schema/query/index.d.ts +22 -22
- package/package.json +2 -2
|
@@ -2009,7 +2009,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2009
2009
|
local_mark_first?: boolean | undefined;
|
|
2010
2010
|
}[];
|
|
2011
2011
|
check_all_founded?: boolean | undefined;
|
|
2012
|
-
} |
|
|
2012
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2013
2013
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2014
2014
|
}, {
|
|
2015
2015
|
identifier: number;
|
|
@@ -2024,7 +2024,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2024
2024
|
local_mark_first?: boolean | undefined;
|
|
2025
2025
|
}[];
|
|
2026
2026
|
check_all_founded?: boolean | undefined;
|
|
2027
|
-
} |
|
|
2027
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2028
2028
|
name?: string | undefined;
|
|
2029
2029
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2030
2030
|
}>, "many">;
|
|
@@ -2044,7 +2044,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2044
2044
|
local_mark_first?: boolean | undefined;
|
|
2045
2045
|
}[];
|
|
2046
2046
|
check_all_founded?: boolean | undefined;
|
|
2047
|
-
} |
|
|
2047
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2048
2048
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2049
2049
|
}[];
|
|
2050
2050
|
}, {
|
|
@@ -2062,7 +2062,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2062
2062
|
local_mark_first?: boolean | undefined;
|
|
2063
2063
|
}[];
|
|
2064
2064
|
check_all_founded?: boolean | undefined;
|
|
2065
|
-
} |
|
|
2065
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2066
2066
|
name?: string | undefined;
|
|
2067
2067
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2068
2068
|
}[];
|
|
@@ -2089,7 +2089,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2089
2089
|
local_mark_first?: boolean | undefined;
|
|
2090
2090
|
}[];
|
|
2091
2091
|
check_all_founded?: boolean | undefined;
|
|
2092
|
-
} |
|
|
2092
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2093
2093
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2094
2094
|
}[];
|
|
2095
2095
|
}[];
|
|
@@ -2114,7 +2114,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2114
2114
|
local_mark_first?: boolean | undefined;
|
|
2115
2115
|
}[];
|
|
2116
2116
|
check_all_founded?: boolean | undefined;
|
|
2117
|
-
} |
|
|
2117
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2118
2118
|
name?: string | undefined;
|
|
2119
2119
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2120
2120
|
}[];
|
|
@@ -2276,7 +2276,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2276
2276
|
local_mark_first?: boolean | undefined;
|
|
2277
2277
|
}[];
|
|
2278
2278
|
check_all_founded?: boolean | undefined;
|
|
2279
|
-
} |
|
|
2279
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2280
2280
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2281
2281
|
}[];
|
|
2282
2282
|
}[];
|
|
@@ -2443,7 +2443,7 @@ export declare const CallTreasury_InputSchema: z.ZodObject<{
|
|
|
2443
2443
|
local_mark_first?: boolean | undefined;
|
|
2444
2444
|
}[];
|
|
2445
2445
|
check_all_founded?: boolean | undefined;
|
|
2446
|
-
} |
|
|
2446
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
2447
2447
|
name?: string | undefined;
|
|
2448
2448
|
object_type?: import("wowok").ObjectType | undefined;
|
|
2449
2449
|
}[];
|
|
@@ -43,6 +43,41 @@ export declare const ManyAccountOrMark_AddressSchema: z.ZodObject<{
|
|
|
43
43
|
}[];
|
|
44
44
|
check_all_founded?: boolean | undefined;
|
|
45
45
|
}>;
|
|
46
|
+
export declare const AccountOrMark_AddressAISchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
47
|
+
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
48
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, "strict", z.ZodTypeAny, {
|
|
50
|
+
name_or_address?: string | undefined;
|
|
51
|
+
local_mark_first?: boolean | undefined;
|
|
52
|
+
}, {
|
|
53
|
+
name_or_address?: string | undefined;
|
|
54
|
+
local_mark_first?: boolean | undefined;
|
|
55
|
+
}>]>;
|
|
56
|
+
export declare const ManyAccountOrMark_AddressAISchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z.ZodObject<{
|
|
57
|
+
entities: z.ZodArray<z.ZodObject<{
|
|
58
|
+
name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
+
local_mark_first: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
}, "strict", z.ZodTypeAny, {
|
|
61
|
+
name_or_address?: string | undefined;
|
|
62
|
+
local_mark_first?: boolean | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
name_or_address?: string | undefined;
|
|
65
|
+
local_mark_first?: boolean | undefined;
|
|
66
|
+
}>, "many">;
|
|
67
|
+
check_all_founded: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
}, "strict", z.ZodTypeAny, {
|
|
69
|
+
entities: {
|
|
70
|
+
name_or_address?: string | undefined;
|
|
71
|
+
local_mark_first?: boolean | undefined;
|
|
72
|
+
}[];
|
|
73
|
+
check_all_founded?: boolean | undefined;
|
|
74
|
+
}, {
|
|
75
|
+
entities: {
|
|
76
|
+
name_or_address?: string | undefined;
|
|
77
|
+
local_mark_first?: boolean | undefined;
|
|
78
|
+
}[];
|
|
79
|
+
check_all_founded?: boolean | undefined;
|
|
80
|
+
}>]>;
|
|
46
81
|
export declare const ObjectOwnerSchema: z.ZodUnion<[z.ZodObject<{
|
|
47
82
|
AddressOwner: z.ZodString;
|
|
48
83
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -222,7 +257,7 @@ export declare const GuardTableItemBaseSchema: z.ZodObject<{
|
|
|
222
257
|
local_mark_first?: boolean | undefined;
|
|
223
258
|
}[];
|
|
224
259
|
check_all_founded?: boolean | undefined;
|
|
225
|
-
} |
|
|
260
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
226
261
|
}, {
|
|
227
262
|
identifier: number;
|
|
228
263
|
b_submission: boolean;
|
|
@@ -236,7 +271,7 @@ export declare const GuardTableItemBaseSchema: z.ZodObject<{
|
|
|
236
271
|
local_mark_first?: boolean | undefined;
|
|
237
272
|
}[];
|
|
238
273
|
check_all_founded?: boolean | undefined;
|
|
239
|
-
} |
|
|
274
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
240
275
|
name?: string | undefined;
|
|
241
276
|
}>;
|
|
242
277
|
export declare const GuardTableItemSchema: z.ZodObject<{
|
|
@@ -294,7 +329,7 @@ export declare const GuardTableItemSchema: z.ZodObject<{
|
|
|
294
329
|
local_mark_first?: boolean | undefined;
|
|
295
330
|
}[];
|
|
296
331
|
check_all_founded?: boolean | undefined;
|
|
297
|
-
} |
|
|
332
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
298
333
|
object_type?: WowObjectType | undefined;
|
|
299
334
|
}, {
|
|
300
335
|
identifier: number;
|
|
@@ -309,7 +344,7 @@ export declare const GuardTableItemSchema: z.ZodObject<{
|
|
|
309
344
|
local_mark_first?: boolean | undefined;
|
|
310
345
|
}[];
|
|
311
346
|
check_all_founded?: boolean | undefined;
|
|
312
|
-
} |
|
|
347
|
+
} | string[] | boolean[] | number[] | number[][] | undefined;
|
|
313
348
|
name?: string | undefined;
|
|
314
349
|
object_type?: WowObjectType | undefined;
|
|
315
350
|
}>;
|
|
@@ -97,6 +97,26 @@ export const ManyAccountOrMark_AddressSchema = z.object({
|
|
|
97
97
|
entities: z.array(AccountOrMark_AddressSchema),
|
|
98
98
|
check_all_founded: z.boolean().optional().describe("Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"),
|
|
99
99
|
}).strict().describe("Used to batch find account or object IDs by name");
|
|
100
|
+
// AI-friendly AccountOrMark_Address schema - supports string shorthand
|
|
101
|
+
export const AccountOrMark_AddressAISchema = z.union([
|
|
102
|
+
// Simplified form: direct string, defaults to local_mark_first = true
|
|
103
|
+
z.string().describe("Account name, address (0x...), or mark name. " +
|
|
104
|
+
"When using string format, local marks are searched first. " +
|
|
105
|
+
"EXAMPLE: 'alice' - searches local marks first, then global; " +
|
|
106
|
+
"EXAMPLE: '0x1234...' - uses address directly"),
|
|
107
|
+
// Full form: original object structure for explicit control
|
|
108
|
+
AccountOrMark_AddressSchema
|
|
109
|
+
]).describe("Account or address lookup. Can be a simple string (recommended for AI) " +
|
|
110
|
+
"or full object with explicit local_mark_first control");
|
|
111
|
+
// AI-friendly ManyAccountOrMark_Address schema
|
|
112
|
+
export const ManyAccountOrMark_AddressAISchema = z.union([
|
|
113
|
+
// Simplified form: array of strings
|
|
114
|
+
z.array(z.string()).describe("Array of account names, addresses, or mark names. " +
|
|
115
|
+
"Local marks are searched first for each entry"),
|
|
116
|
+
// Full form: original object structure
|
|
117
|
+
ManyAccountOrMark_AddressSchema
|
|
118
|
+
]).describe("Batch account or address lookup. Can be an array of strings (recommended for AI) " +
|
|
119
|
+
"or full object with explicit control");
|
|
100
120
|
// Define ObjectOwner schema
|
|
101
121
|
export const ObjectOwnerSchema = z.union([
|
|
102
122
|
z.object({
|