@wowok/agent-mcp 2.2.8

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.
Files changed (62) hide show
  1. package/README.md +56 -0
  2. package/dist/index.d.ts +15800 -0
  3. package/dist/index.js +1479 -0
  4. package/dist/schema/call/allocation.d.ts +1430 -0
  5. package/dist/schema/call/allocation.js +24 -0
  6. package/dist/schema/call/arbitration.d.ts +1974 -0
  7. package/dist/schema/call/arbitration.js +92 -0
  8. package/dist/schema/call/base.d.ts +7325 -0
  9. package/dist/schema/call/base.js +138 -0
  10. package/dist/schema/call/contact.d.ts +970 -0
  11. package/dist/schema/call/contact.js +37 -0
  12. package/dist/schema/call/demand.d.ts +1265 -0
  13. package/dist/schema/call/demand.js +47 -0
  14. package/dist/schema/call/guard.d.ts +951 -0
  15. package/dist/schema/call/guard.js +58 -0
  16. package/dist/schema/call/handler.d.ts +38 -0
  17. package/dist/schema/call/handler.js +171 -0
  18. package/dist/schema/call/index.d.ts +18 -0
  19. package/dist/schema/call/index.js +18 -0
  20. package/dist/schema/call/machine.d.ts +3974 -0
  21. package/dist/schema/call/machine.js +152 -0
  22. package/dist/schema/call/order.d.ts +974 -0
  23. package/dist/schema/call/order.js +34 -0
  24. package/dist/schema/call/payment.d.ts +404 -0
  25. package/dist/schema/call/payment.js +17 -0
  26. package/dist/schema/call/permission.d.ts +3017 -0
  27. package/dist/schema/call/permission.js +105 -0
  28. package/dist/schema/call/personal.d.ts +1472 -0
  29. package/dist/schema/call/personal.js +68 -0
  30. package/dist/schema/call/progress.d.ts +725 -0
  31. package/dist/schema/call/progress.js +26 -0
  32. package/dist/schema/call/proof.d.ts +320 -0
  33. package/dist/schema/call/proof.js +27 -0
  34. package/dist/schema/call/repository.d.ts +2358 -0
  35. package/dist/schema/call/repository.js +76 -0
  36. package/dist/schema/call/reward.d.ts +1232 -0
  37. package/dist/schema/call/reward.js +30 -0
  38. package/dist/schema/call/service.d.ts +3494 -0
  39. package/dist/schema/call/service.js +82 -0
  40. package/dist/schema/call/treasury.d.ts +2345 -0
  41. package/dist/schema/call/treasury.js +71 -0
  42. package/dist/schema/common/index.d.ts +843 -0
  43. package/dist/schema/common/index.js +347 -0
  44. package/dist/schema/index.d.ts +7 -0
  45. package/dist/schema/index.js +7 -0
  46. package/dist/schema/local/index.d.ts +17522 -0
  47. package/dist/schema/local/index.js +855 -0
  48. package/dist/schema/local/wip.d.ts +784 -0
  49. package/dist/schema/local/wip.js +187 -0
  50. package/dist/schema/messenger/index.d.ts +4655 -0
  51. package/dist/schema/messenger/index.js +446 -0
  52. package/dist/schema/query/index.d.ts +73445 -0
  53. package/dist/schema/query/index.js +1324 -0
  54. package/dist/schema/utils/guard-parser.d.ts +20 -0
  55. package/dist/schema/utils/guard-parser.js +401 -0
  56. package/dist/schema/utils/guard-query-utils.d.ts +5 -0
  57. package/dist/schema/utils/guard-query-utils.js +22 -0
  58. package/dist/schema/utils/node-parser.d.ts +45 -0
  59. package/dist/schema/utils/node-parser.js +353 -0
  60. package/dist/schema/utils/permission-index-utils.d.ts +2 -0
  61. package/dist/schema/utils/permission-index-utils.js +7 -0
  62. package/package.json +48 -0
@@ -0,0 +1,26 @@
1
+ import { z } from "zod";
2
+ import { CallEnvSchema, SubmissionCallSchema, ObjectsSchema } from "./base.js";
3
+ import { ProgressNamedOperatorSchema } from "./machine.js";
4
+ import { NameOrAddressSchema, NameSchema } from "../common/index.js";
5
+ export const ProgressNextSchema = z.object({
6
+ next_node_name: NameSchema.describe("Next node name."),
7
+ forward: NameSchema.describe("Next forward name."),
8
+ }).strict().describe("Specify a specific operation between current node and next node.");
9
+ export const OperateSchema = z.object({
10
+ operation: ProgressNextSchema,
11
+ hold: z.boolean().optional().describe("Whether to lock operation permission. When true, locks the permission; when false or omitted, submits operation result directly."),
12
+ adminUnhold: z.boolean().optional().describe("Whether to allow admin to force unlock. Only applicable when hold is true."),
13
+ message: z.string().optional().describe("Operation result message."),
14
+ }).strict().describe("Advance Progress object: lock operation permission (hold=true) or submit operation result (hold=false or omitted).");
15
+ export const CallProgress_DataSchema = z.object({
16
+ object: NameOrAddressSchema.describe("Progress object ID or name."),
17
+ task: NameOrAddressSchema.optional().describe("Task ID. Cannot be changed after setting."),
18
+ repository: ObjectsSchema.optional().describe("Consensus data Repository object list."),
19
+ progress_namedOperator: ProgressNamedOperatorSchema.optional().describe("Manage operators for Progress permission namespace."),
20
+ operate: OperateSchema.optional().describe("Advance Progress object. Can be locking operation permission (to avoid competition for the same permission) or submitting operation result."),
21
+ }).strict().describe("On-chain, operate an existing Progress object.");
22
+ export const CallProgress_InputSchema = z.object({
23
+ data: CallProgress_DataSchema,
24
+ env: CallEnvSchema.optional(),
25
+ submission: SubmissionCallSchema.optional(),
26
+ }).strict();
@@ -0,0 +1,320 @@
1
+ import { z } from 'zod';
2
+ export declare const CallProof_DataSchema: z.ZodObject<{
3
+ namedNew: z.ZodOptional<z.ZodObject<{
4
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ onChain: z.ZodOptional<z.ZodBoolean>;
7
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strict", z.ZodTypeAny, {
9
+ name?: string | undefined;
10
+ replaceExistName?: boolean | undefined;
11
+ tags?: string[] | undefined;
12
+ onChain?: boolean | undefined;
13
+ }, {
14
+ name?: string | undefined;
15
+ replaceExistName?: boolean | undefined;
16
+ tags?: string[] | undefined;
17
+ onChain?: boolean | undefined;
18
+ }>>;
19
+ description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
20
+ proof: z.ZodString;
21
+ server_pubkey: z.ZodString;
22
+ server_signature: z.ZodString;
23
+ proof_type: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
24
+ item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
25
+ about_address: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
26
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
27
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
+ onChain: z.ZodOptional<z.ZodBoolean>;
29
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
30
+ }, "strict", z.ZodTypeAny, {
31
+ name?: string | undefined;
32
+ replaceExistName?: boolean | undefined;
33
+ tags?: string[] | undefined;
34
+ onChain?: boolean | undefined;
35
+ }, {
36
+ name?: string | undefined;
37
+ replaceExistName?: boolean | undefined;
38
+ tags?: string[] | undefined;
39
+ onChain?: boolean | undefined;
40
+ }>, z.ZodNull]>>;
41
+ }, "strict", z.ZodTypeAny, {
42
+ proof: string;
43
+ server_pubkey: string;
44
+ server_signature: string;
45
+ proof_type: string | number;
46
+ description?: string | undefined;
47
+ item_count?: string | number | null | undefined;
48
+ about_address?: {
49
+ name?: string | undefined;
50
+ replaceExistName?: boolean | undefined;
51
+ tags?: string[] | undefined;
52
+ onChain?: boolean | undefined;
53
+ } | null | undefined;
54
+ namedNew?: {
55
+ name?: string | undefined;
56
+ replaceExistName?: boolean | undefined;
57
+ tags?: string[] | undefined;
58
+ onChain?: boolean | undefined;
59
+ } | undefined;
60
+ }, {
61
+ proof: string;
62
+ server_pubkey: string;
63
+ server_signature: string;
64
+ proof_type: string | number;
65
+ description?: string | undefined;
66
+ item_count?: string | number | null | undefined;
67
+ about_address?: {
68
+ name?: string | undefined;
69
+ replaceExistName?: boolean | undefined;
70
+ tags?: string[] | undefined;
71
+ onChain?: boolean | undefined;
72
+ } | null | undefined;
73
+ namedNew?: {
74
+ name?: string | undefined;
75
+ replaceExistName?: boolean | undefined;
76
+ tags?: string[] | undefined;
77
+ onChain?: boolean | undefined;
78
+ } | undefined;
79
+ }>;
80
+ export declare const CallProof_InputSchema: z.ZodObject<{
81
+ data: z.ZodObject<{
82
+ namedNew: z.ZodOptional<z.ZodObject<{
83
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
84
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
85
+ onChain: z.ZodOptional<z.ZodBoolean>;
86
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
87
+ }, "strict", z.ZodTypeAny, {
88
+ name?: string | undefined;
89
+ replaceExistName?: boolean | undefined;
90
+ tags?: string[] | undefined;
91
+ onChain?: boolean | undefined;
92
+ }, {
93
+ name?: string | undefined;
94
+ replaceExistName?: boolean | undefined;
95
+ tags?: string[] | undefined;
96
+ onChain?: boolean | undefined;
97
+ }>>;
98
+ description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
99
+ proof: z.ZodString;
100
+ server_pubkey: z.ZodString;
101
+ server_signature: z.ZodString;
102
+ proof_type: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
103
+ item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
104
+ about_address: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
105
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
106
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
107
+ onChain: z.ZodOptional<z.ZodBoolean>;
108
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
109
+ }, "strict", z.ZodTypeAny, {
110
+ name?: string | undefined;
111
+ replaceExistName?: boolean | undefined;
112
+ tags?: string[] | undefined;
113
+ onChain?: boolean | undefined;
114
+ }, {
115
+ name?: string | undefined;
116
+ replaceExistName?: boolean | undefined;
117
+ tags?: string[] | undefined;
118
+ onChain?: boolean | undefined;
119
+ }>, z.ZodNull]>>;
120
+ }, "strict", z.ZodTypeAny, {
121
+ proof: string;
122
+ server_pubkey: string;
123
+ server_signature: string;
124
+ proof_type: string | number;
125
+ description?: string | undefined;
126
+ item_count?: string | number | null | undefined;
127
+ about_address?: {
128
+ name?: string | undefined;
129
+ replaceExistName?: boolean | undefined;
130
+ tags?: string[] | undefined;
131
+ onChain?: boolean | undefined;
132
+ } | null | undefined;
133
+ namedNew?: {
134
+ name?: string | undefined;
135
+ replaceExistName?: boolean | undefined;
136
+ tags?: string[] | undefined;
137
+ onChain?: boolean | undefined;
138
+ } | undefined;
139
+ }, {
140
+ proof: string;
141
+ server_pubkey: string;
142
+ server_signature: string;
143
+ proof_type: string | number;
144
+ description?: string | undefined;
145
+ item_count?: string | number | null | undefined;
146
+ about_address?: {
147
+ name?: string | undefined;
148
+ replaceExistName?: boolean | undefined;
149
+ tags?: string[] | undefined;
150
+ onChain?: boolean | undefined;
151
+ } | null | undefined;
152
+ namedNew?: {
153
+ name?: string | undefined;
154
+ replaceExistName?: boolean | undefined;
155
+ tags?: string[] | undefined;
156
+ onChain?: boolean | undefined;
157
+ } | undefined;
158
+ }>;
159
+ env: z.ZodOptional<z.ZodObject<{
160
+ account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
161
+ permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
162
+ no_cache: z.ZodOptional<z.ZodBoolean>;
163
+ network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
164
+ referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
165
+ }, "strict", z.ZodTypeAny, {
166
+ account: string;
167
+ no_cache?: boolean | undefined;
168
+ network?: import("wowok").ENTRYPOINT | undefined;
169
+ permission_guard?: string[] | undefined;
170
+ referrer?: string | undefined;
171
+ }, {
172
+ no_cache?: boolean | undefined;
173
+ network?: import("wowok").ENTRYPOINT | undefined;
174
+ account?: string | undefined;
175
+ permission_guard?: string[] | undefined;
176
+ referrer?: string | undefined;
177
+ }>>;
178
+ }, "strict", z.ZodTypeAny, {
179
+ data: {
180
+ proof: string;
181
+ server_pubkey: string;
182
+ server_signature: string;
183
+ proof_type: string | number;
184
+ description?: string | undefined;
185
+ item_count?: string | number | null | undefined;
186
+ about_address?: {
187
+ name?: string | undefined;
188
+ replaceExistName?: boolean | undefined;
189
+ tags?: string[] | undefined;
190
+ onChain?: boolean | undefined;
191
+ } | null | undefined;
192
+ namedNew?: {
193
+ name?: string | undefined;
194
+ replaceExistName?: boolean | undefined;
195
+ tags?: string[] | undefined;
196
+ onChain?: boolean | undefined;
197
+ } | undefined;
198
+ };
199
+ env?: {
200
+ account: string;
201
+ no_cache?: boolean | undefined;
202
+ network?: import("wowok").ENTRYPOINT | undefined;
203
+ permission_guard?: string[] | undefined;
204
+ referrer?: string | undefined;
205
+ } | undefined;
206
+ }, {
207
+ data: {
208
+ proof: string;
209
+ server_pubkey: string;
210
+ server_signature: string;
211
+ proof_type: string | number;
212
+ description?: string | undefined;
213
+ item_count?: string | number | null | undefined;
214
+ about_address?: {
215
+ name?: string | undefined;
216
+ replaceExistName?: boolean | undefined;
217
+ tags?: string[] | undefined;
218
+ onChain?: boolean | undefined;
219
+ } | null | undefined;
220
+ namedNew?: {
221
+ name?: string | undefined;
222
+ replaceExistName?: boolean | undefined;
223
+ tags?: string[] | undefined;
224
+ onChain?: boolean | undefined;
225
+ } | undefined;
226
+ };
227
+ env?: {
228
+ no_cache?: boolean | undefined;
229
+ network?: import("wowok").ENTRYPOINT | undefined;
230
+ account?: string | undefined;
231
+ permission_guard?: string[] | undefined;
232
+ referrer?: string | undefined;
233
+ } | undefined;
234
+ }>;
235
+ export declare const CallGenProof_InputSchema: z.ZodObject<{
236
+ proof: z.ZodString;
237
+ server_pubkey: z.ZodString;
238
+ server_signature: z.ZodString;
239
+ proof_type: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
240
+ description: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
241
+ item_count: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>;
242
+ about_address: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
243
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
244
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
245
+ onChain: z.ZodOptional<z.ZodBoolean>;
246
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
247
+ }, "strict", z.ZodTypeAny, {
248
+ name?: string | undefined;
249
+ replaceExistName?: boolean | undefined;
250
+ tags?: string[] | undefined;
251
+ onChain?: boolean | undefined;
252
+ }, {
253
+ name?: string | undefined;
254
+ replaceExistName?: boolean | undefined;
255
+ tags?: string[] | undefined;
256
+ onChain?: boolean | undefined;
257
+ }>, z.ZodNull]>>;
258
+ env: z.ZodOptional<z.ZodObject<{
259
+ account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
260
+ permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
261
+ no_cache: z.ZodOptional<z.ZodBoolean>;
262
+ network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
263
+ referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
264
+ }, "strict", z.ZodTypeAny, {
265
+ account: string;
266
+ no_cache?: boolean | undefined;
267
+ network?: import("wowok").ENTRYPOINT | undefined;
268
+ permission_guard?: string[] | undefined;
269
+ referrer?: string | undefined;
270
+ }, {
271
+ no_cache?: boolean | undefined;
272
+ network?: import("wowok").ENTRYPOINT | undefined;
273
+ account?: string | undefined;
274
+ permission_guard?: string[] | undefined;
275
+ referrer?: string | undefined;
276
+ }>>;
277
+ }, "strict", z.ZodTypeAny, {
278
+ proof: string;
279
+ server_pubkey: string;
280
+ server_signature: string;
281
+ proof_type: string | number;
282
+ description?: string | undefined;
283
+ env?: {
284
+ account: string;
285
+ no_cache?: boolean | undefined;
286
+ network?: import("wowok").ENTRYPOINT | undefined;
287
+ permission_guard?: string[] | undefined;
288
+ referrer?: string | undefined;
289
+ } | undefined;
290
+ item_count?: string | number | null | undefined;
291
+ about_address?: {
292
+ name?: string | undefined;
293
+ replaceExistName?: boolean | undefined;
294
+ tags?: string[] | undefined;
295
+ onChain?: boolean | undefined;
296
+ } | null | undefined;
297
+ }, {
298
+ proof: string;
299
+ server_pubkey: string;
300
+ server_signature: string;
301
+ proof_type: string | number;
302
+ description?: string | undefined;
303
+ env?: {
304
+ no_cache?: boolean | undefined;
305
+ network?: import("wowok").ENTRYPOINT | undefined;
306
+ account?: string | undefined;
307
+ permission_guard?: string[] | undefined;
308
+ referrer?: string | undefined;
309
+ } | undefined;
310
+ item_count?: string | number | null | undefined;
311
+ about_address?: {
312
+ name?: string | undefined;
313
+ replaceExistName?: boolean | undefined;
314
+ tags?: string[] | undefined;
315
+ onChain?: boolean | undefined;
316
+ } | null | undefined;
317
+ }>;
318
+ export type CallProof_Data = z.infer<typeof CallProof_DataSchema>;
319
+ export type CallProof_Input = z.infer<typeof CallProof_InputSchema>;
320
+ export type CallGenProof_Input = z.infer<typeof CallGenProof_InputSchema>;
@@ -0,0 +1,27 @@
1
+ import { z } from 'zod';
2
+ import { CallEnvSchema, NamedObjectSchema } from './base.js';
3
+ import { DescriptionSchema } from '../common/index.js';
4
+ export const CallProof_DataSchema = z.object({
5
+ namedNew: NamedObjectSchema.optional(),
6
+ description: DescriptionSchema.optional(),
7
+ proof: z.string().max(10240).describe("Proof content. e.g. merkle tree root"),
8
+ server_pubkey: z.string().max(1024).describe("Server public key"),
9
+ server_signature: z.string().max(40480).describe("Server signature"),
10
+ proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."),
11
+ item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"),
12
+ about_address: z.union([NamedObjectSchema, z.null()]).optional().describe("About address. e.g. address of the entity being proved"),
13
+ }).strict().describe("On-chain Proof creation. USAGE: Set 'namedNew' field with {name, tag?} to create a named Proof. Proof is an immutable object - it can only be created, not modified. The 'namedNew' field is CRITICAL and REQUIRED.");
14
+ export const CallProof_InputSchema = z.object({
15
+ data: CallProof_DataSchema,
16
+ env: CallEnvSchema.optional(),
17
+ }).strict().describe("On-chain, create a new Proof object");
18
+ export const CallGenProof_InputSchema = z.object({
19
+ proof: z.string().max(10240).describe("Proof content. e.g. merkle tree root"),
20
+ server_pubkey: z.string().max(1024).describe("Server public key"),
21
+ server_signature: z.string().max(40480).describe("Server signature"),
22
+ proof_type: z.union([z.number().int().min(0), z.string()]).describe("Proof type. 1: WTS proof; 1-100 reserved."),
23
+ description: DescriptionSchema.optional(),
24
+ item_count: z.union([z.number().int().min(0), z.string(), z.null()]).optional().describe("Item count. e.g. number of items in the merkle tree"),
25
+ about_address: z.union([NamedObjectSchema, z.null()]).optional().describe("About address. e.g. address of the entity being proved"),
26
+ env: CallEnvSchema.optional(),
27
+ }).strict().describe("Generate a new Proof object on-chain");