@wowok/agent-mcp 2.2.20 → 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/LICENSE +36 -0
- package/README.md +1 -3
- package/dist/index.js +4 -1
- package/dist/schema/call/base.d.ts +127 -511
- package/dist/schema/common/index.d.ts +3 -3
- package/dist/schema/common/index.js +1 -1
- package/dist/schema/local/index.d.ts +395 -1435
- package/dist/schema/local/index.js +4 -4
- package/dist/schema/local/wip.d.ts +16 -16
- package/dist/schema/local/wip.js +2 -2
- package/dist/schema/query/index.d.ts +1020 -1020
- 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 +3 -2
|
@@ -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", [
|
|
@@ -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"),
|
|
@@ -183,7 +183,7 @@ export const WowObjectChangeSchema = z.discriminatedUnion("type", [
|
|
|
183
183
|
}),
|
|
184
184
|
]).describe("Object change information");
|
|
185
185
|
export const TransactionEffectsSchema = z.object({
|
|
186
|
-
abortError: z.union([
|
|
186
|
+
abortError: z.union([WowMoveAbortSchema, z.null()]).optional().describe("Abort error if transaction failed with abort code"),
|
|
187
187
|
created: z.array(OwnedObjectRefSchema).optional().describe("ObjectRef and owner of newly created objects"),
|
|
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"),
|
|
@@ -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"),
|