@wowok/agent-mcp 2.2.21 → 2.2.22
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/README.md +1 -3
- package/dist/index.js +4 -1
- package/dist/schema/call/base.d.ts +829 -829
- package/dist/schema/common/index.d.ts +43 -43
- package/dist/schema/common/index.js +3 -3
- package/dist/schema/local/index.d.ts +1895 -1895
- package/dist/schema/local/index.js +12 -12
- package/dist/schema/local/wip.d.ts +16 -16
- package/dist/schema/local/wip.js +2 -2
- package/dist/schema/query/index.d.ts +6860 -6860
- package/dist/schema/query/index.js +4 -4
- package/dist/schemas/index.json +1 -1
- package/dist/schemas/onchain_events.schema.json +4 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ export const CoinStructSchema = z.object({
|
|
|
38
38
|
coinType: z.string().describe("Coin type"),
|
|
39
39
|
digest: z.string().describe("Transaction digest"),
|
|
40
40
|
previousTransaction: z.string().describe("Previous transaction digest"),
|
|
41
|
-
version: z.string().describe("Coin object version"),
|
|
41
|
+
version: z.union([z.string(), z.number()]).describe("Coin object version"),
|
|
42
42
|
}).describe("Coin object");
|
|
43
43
|
export const PaginatedCoinsSchema = z.object({
|
|
44
44
|
data: z.array(CoinStructSchema).describe("Coin object list"),
|
|
@@ -51,7 +51,7 @@ export const FaucetCoinInfoSchema = z.object({
|
|
|
51
51
|
transferTxDigest: z.string().describe("Transfer transaction digest"),
|
|
52
52
|
}).describe("Testnet faucet coin info");
|
|
53
53
|
export const EventIdSchema = z.object({
|
|
54
|
-
eventSeq: z.string().describe("Event sequence number"),
|
|
54
|
+
eventSeq: z.union([z.string(), z.number()]).describe("Event sequence number"),
|
|
55
55
|
txDigest: z.string().describe("Transaction digest"),
|
|
56
56
|
}).describe("Event ID");
|
|
57
57
|
export const WowEventSchema = z.discriminatedUnion("bcsEncoding", [
|
|
@@ -92,7 +92,7 @@ export const GasCostSummarySchema = z.object({
|
|
|
92
92
|
export const WowObjectRefSchema = z.object({
|
|
93
93
|
digest: z.string().describe("Base64 string of object digest"),
|
|
94
94
|
objectId: z.string().describe("Hex code string representing object ID"),
|
|
95
|
-
version: z.string().describe("Object version"),
|
|
95
|
+
version: z.union([z.string(), z.number()]).describe("Object version"),
|
|
96
96
|
}).describe("Wow object reference");
|
|
97
97
|
export const OwnedObjectRefSchema = z.object({
|
|
98
98
|
owner: ObjectOwnerSchema.describe("Owner"),
|
|
@@ -100,7 +100,7 @@ export const OwnedObjectRefSchema = z.object({
|
|
|
100
100
|
}).describe("Owned object reference");
|
|
101
101
|
export const TransactionBlockEffectsModifiedAtVersionsSchema = z.object({
|
|
102
102
|
objectId: z.string().describe("Object ID"),
|
|
103
|
-
sequenceNumber: z.string().describe("Sequence number"),
|
|
103
|
+
sequenceNumber: z.union([z.string(), z.number()]).describe("Sequence number"),
|
|
104
104
|
}).describe("Transaction block effects modified versions");
|
|
105
105
|
export const WowMoveAbortSchema = z.object({
|
|
106
106
|
error_code: z.union([z.string(), z.null()]).optional().describe("Error code"),
|
|
@@ -137,7 +137,7 @@ export const WowObjectChangeSchema = z.discriminatedUnion("type", [
|
|
|
137
137
|
digest: z.string().describe("Digest"),
|
|
138
138
|
modules: z.array(z.string()).describe("Modules"),
|
|
139
139
|
packageId: z.string().describe("Package ID"),
|
|
140
|
-
version: z.string().describe("Version"),
|
|
140
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
141
141
|
}),
|
|
142
142
|
z.object({
|
|
143
143
|
type: z.literal("transferred"),
|
|
@@ -146,7 +146,7 @@ export const WowObjectChangeSchema = z.discriminatedUnion("type", [
|
|
|
146
146
|
objectType: z.string().describe("Object type"),
|
|
147
147
|
recipient: ObjectOwnerSchema.describe("Recipient"),
|
|
148
148
|
sender: z.string().describe("Sender ID"),
|
|
149
|
-
version: z.string().describe("Version"),
|
|
149
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
150
150
|
}),
|
|
151
151
|
z.object({
|
|
152
152
|
type: z.literal("mutated"),
|
|
@@ -154,23 +154,23 @@ export const WowObjectChangeSchema = z.discriminatedUnion("type", [
|
|
|
154
154
|
objectId: z.string().describe("Object ID"),
|
|
155
155
|
objectType: z.string().describe("Object type"),
|
|
156
156
|
owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
|
|
157
|
-
previousVersion: z.string().describe("Previous version"),
|
|
157
|
+
previousVersion: z.union([z.string(), z.number()]).describe("Previous version"),
|
|
158
158
|
sender: z.string().describe("Sender"),
|
|
159
|
-
version: z.string().describe("Version"),
|
|
159
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
160
160
|
}),
|
|
161
161
|
z.object({
|
|
162
162
|
type: z.literal("deleted"),
|
|
163
163
|
objectId: z.string().describe("Object ID"),
|
|
164
164
|
objectType: z.string().describe("Object type"),
|
|
165
165
|
sender: z.string().describe("Sender"),
|
|
166
|
-
version: z.string().describe("Version"),
|
|
166
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
167
167
|
}),
|
|
168
168
|
z.object({
|
|
169
169
|
type: z.literal("wrapped"),
|
|
170
170
|
objectId: z.string().describe("Object ID"),
|
|
171
171
|
objectType: z.string().describe("Object type"),
|
|
172
172
|
sender: z.string().describe("Sender"),
|
|
173
|
-
version: z.string().describe("Version"),
|
|
173
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
174
174
|
}),
|
|
175
175
|
z.object({
|
|
176
176
|
type: z.literal("created"),
|
|
@@ -179,7 +179,7 @@ export const WowObjectChangeSchema = z.discriminatedUnion("type", [
|
|
|
179
179
|
objectType: z.string().describe("Object type"),
|
|
180
180
|
owner: z.union([ObjectOwnerSchema, z.null()]).describe("Owner"),
|
|
181
181
|
sender: z.string().describe("Sender"),
|
|
182
|
-
version: z.string().describe("Version"),
|
|
182
|
+
version: z.union([z.string(), z.number()]).describe("Version"),
|
|
183
183
|
}),
|
|
184
184
|
]).describe("Object change information");
|
|
185
185
|
export const TransactionEffectsSchema = z.object({
|
|
@@ -188,7 +188,7 @@ export const TransactionEffectsSchema = z.object({
|
|
|
188
188
|
deleted: z.array(WowObjectRefSchema).optional().describe("Object references (old refs) of now deleted objects"),
|
|
189
189
|
dependencies: z.array(z.string()).optional().describe("Set of transaction digests this transaction depends on"),
|
|
190
190
|
eventsDigest: z.union([z.string(), z.null()]).optional().describe("Digest of events emitted during execution"),
|
|
191
|
-
executedEpoch: z.string().describe("Epoch in which this transaction was executed"),
|
|
191
|
+
executedEpoch: z.union([z.string(), z.number()]).describe("Epoch in which this transaction was executed"),
|
|
192
192
|
gasObject: OwnedObjectRefSchema.describe("Updated gas object reference"),
|
|
193
193
|
gasUsed: GasCostSummarySchema.describe("Gas used"),
|
|
194
194
|
messageVersion: z.literal("v1").describe("Message version"),
|
|
@@ -136,8 +136,8 @@ export declare const WipSignatureArraySchema: z.ZodUnion<[z.ZodObject<{
|
|
|
136
136
|
}>, "many">]>;
|
|
137
137
|
export declare const WipMetaSchema: z.ZodObject<{
|
|
138
138
|
type: z.ZodLiteral<"wip">;
|
|
139
|
-
version: z.ZodString
|
|
140
|
-
created: z.ZodString
|
|
139
|
+
version: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
140
|
+
created: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
141
141
|
hash: z.ZodString;
|
|
142
142
|
algorithm: z.ZodLiteral<"sha256">;
|
|
143
143
|
signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -173,9 +173,9 @@ export declare const WipMetaSchema: z.ZodObject<{
|
|
|
173
173
|
}>, "many">]>>;
|
|
174
174
|
}, "strip", z.ZodTypeAny, {
|
|
175
175
|
type: "wip";
|
|
176
|
-
version: string;
|
|
176
|
+
version: string | number;
|
|
177
177
|
algorithm: "sha256";
|
|
178
|
-
created: string;
|
|
178
|
+
created: string | number;
|
|
179
179
|
hash: string;
|
|
180
180
|
signature?: {
|
|
181
181
|
value: string;
|
|
@@ -190,9 +190,9 @@ export declare const WipMetaSchema: z.ZodObject<{
|
|
|
190
190
|
}[] | undefined;
|
|
191
191
|
}, {
|
|
192
192
|
type: "wip";
|
|
193
|
-
version: string;
|
|
193
|
+
version: string | number;
|
|
194
194
|
algorithm: "sha256";
|
|
195
|
-
created: string;
|
|
195
|
+
created: string | number;
|
|
196
196
|
hash: string;
|
|
197
197
|
signature?: {
|
|
198
198
|
value: string;
|
|
@@ -260,8 +260,8 @@ export declare const WipFileSchema: z.ZodObject<{
|
|
|
260
260
|
}>;
|
|
261
261
|
meta: z.ZodObject<{
|
|
262
262
|
type: z.ZodLiteral<"wip">;
|
|
263
|
-
version: z.ZodString
|
|
264
|
-
created: z.ZodString
|
|
263
|
+
version: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
264
|
+
created: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
265
265
|
hash: z.ZodString;
|
|
266
266
|
algorithm: z.ZodLiteral<"sha256">;
|
|
267
267
|
signature: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
@@ -297,9 +297,9 @@ export declare const WipFileSchema: z.ZodObject<{
|
|
|
297
297
|
}>, "many">]>>;
|
|
298
298
|
}, "strip", z.ZodTypeAny, {
|
|
299
299
|
type: "wip";
|
|
300
|
-
version: string;
|
|
300
|
+
version: string | number;
|
|
301
301
|
algorithm: "sha256";
|
|
302
|
-
created: string;
|
|
302
|
+
created: string | number;
|
|
303
303
|
hash: string;
|
|
304
304
|
signature?: {
|
|
305
305
|
value: string;
|
|
@@ -314,9 +314,9 @@ export declare const WipFileSchema: z.ZodObject<{
|
|
|
314
314
|
}[] | undefined;
|
|
315
315
|
}, {
|
|
316
316
|
type: "wip";
|
|
317
|
-
version: string;
|
|
317
|
+
version: string | number;
|
|
318
318
|
algorithm: "sha256";
|
|
319
|
-
created: string;
|
|
319
|
+
created: string | number;
|
|
320
320
|
hash: string;
|
|
321
321
|
signature?: {
|
|
322
322
|
value: string;
|
|
@@ -346,9 +346,9 @@ export declare const WipFileSchema: z.ZodObject<{
|
|
|
346
346
|
};
|
|
347
347
|
meta: {
|
|
348
348
|
type: "wip";
|
|
349
|
-
version: string;
|
|
349
|
+
version: string | number;
|
|
350
350
|
algorithm: "sha256";
|
|
351
|
-
created: string;
|
|
351
|
+
created: string | number;
|
|
352
352
|
hash: string;
|
|
353
353
|
signature?: {
|
|
354
354
|
value: string;
|
|
@@ -378,9 +378,9 @@ export declare const WipFileSchema: z.ZodObject<{
|
|
|
378
378
|
};
|
|
379
379
|
meta: {
|
|
380
380
|
type: "wip";
|
|
381
|
-
version: string;
|
|
381
|
+
version: string | number;
|
|
382
382
|
algorithm: "sha256";
|
|
383
|
-
created: string;
|
|
383
|
+
created: string | number;
|
|
384
384
|
hash: string;
|
|
385
385
|
signature?: {
|
|
386
386
|
value: string;
|
package/dist/schema/local/wip.js
CHANGED
|
@@ -62,8 +62,8 @@ export const WipSignatureArraySchema = z
|
|
|
62
62
|
export const WipMetaSchema = z
|
|
63
63
|
.object({
|
|
64
64
|
type: z.literal("wip").describe("File type identifier, fixed as wip"),
|
|
65
|
-
version: z.string().describe("Format version number"),
|
|
66
|
-
created: z.string().describe("Creation time (ISO 8601 format)"),
|
|
65
|
+
version: z.union([z.string(), z.number()]).describe("Format version number"),
|
|
66
|
+
created: z.union([z.string(), z.number()]).describe("Creation time (ISO 8601 format)"),
|
|
67
67
|
hash: z.string().describe("SHA-256 hash of payload, format: sha256:hexString"),
|
|
68
68
|
algorithm: HashAlgorithmSchema.describe("Hash algorithm identifier"),
|
|
69
69
|
signature: WipSignatureArraySchema.optional().describe("Optional digital signature"),
|