@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,34 @@
1
+ import { z } from "zod";
2
+ import { CallEnvSchema, SubmissionCallSchema } from "./base.js";
3
+ import { OperateSchema } from "./progress.js";
4
+ import { AccountOrMark_AddressSchema, DescriptionSchema, LongNameSchema, ManyAccountOrMark_AddressSchema, NameOrAddressSchema } from "../common/index.js";
5
+ import { QueryReceivedResultSchema } from "../common/index.js";
6
+ export const ArbConfirmSchema = z.object({
7
+ arb: NameOrAddressSchema.describe("Arb object ID or name."),
8
+ confirm: z.boolean().describe("Whether to confirm that the submitted arbitration materials are valid for arbitration."),
9
+ description: DescriptionSchema.optional().describe("Message description for compensation application."),
10
+ proposition: z.array(LongNameSchema).optional().describe("Compensation claims.")
11
+ }).strict();
12
+ export const ArbObjectionSchema = z.object({
13
+ arb: NameOrAddressSchema.describe("Arb object ID or name."),
14
+ objection: DescriptionSchema.describe("Oppose and appeal the arbitration result, request re-arbitration"),
15
+ }).strict();
16
+ export const ArbClaimCompensationSchema = z.object({
17
+ arb: NameOrAddressSchema.describe("Arb object ID or name."),
18
+ }).strict();
19
+ export const CallOrder_DataSchema = z.object({
20
+ object: NameOrAddressSchema.describe("Order object ID or name."),
21
+ agents: ManyAccountOrMark_AddressSchema.optional().describe("Order agents. Agents can operate the order, such as canceling the order, modifying the order status, etc.; but cannot receive the funds received by the order."),
22
+ required_info: z.union([NameOrAddressSchema, z.null()]).optional().describe("Contact object ID (recipient) or WTS Proof object (delivery proof) that information has been delivered via Wowok Messenger."),
23
+ progress: OperateSchema.optional().describe("Advance order process"),
24
+ arb_confirm: ArbConfirmSchema.optional().describe("Submit compensation request and apply for arbitration"),
25
+ arb_objection: ArbObjectionSchema.optional().describe("Oppose and appeal the arbitration result, request re-arbitration."),
26
+ arb_claim_compensation: ArbClaimCompensationSchema.optional().describe("Specify the adjudicated Arb object to obtain order compensation."),
27
+ receive: QueryReceivedResultSchema.optional().describe("Unwrap CoinWrapper objects or other objects received by the order and transfer them to the order owner"),
28
+ transfer_to: AccountOrMark_AddressSchema.optional().describe("Set new owner of the order. Requires order owner permission to set."),
29
+ }).strict().describe("On-chain, operate on an Order object.");
30
+ export const CallOrder_InputSchema = z.object({
31
+ data: CallOrder_DataSchema,
32
+ env: CallEnvSchema.optional(),
33
+ submission: SubmissionCallSchema.optional(),
34
+ }).strict();
@@ -0,0 +1,404 @@
1
+ import { z } from "zod";
2
+ export declare const RevenueSchema: z.ZodObject<{
3
+ recipient: z.ZodObject<{
4
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
5
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ name_or_address?: string | undefined;
8
+ local_mark_first?: boolean | undefined;
9
+ }, {
10
+ name_or_address?: string | undefined;
11
+ local_mark_first?: boolean | undefined;
12
+ }>;
13
+ amount: z.ZodUnion<[z.ZodObject<{
14
+ balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ balance: string | number;
17
+ }, {
18
+ balance: string | number;
19
+ }>, z.ZodObject<{
20
+ coin: z.ZodString;
21
+ }, "strip", z.ZodTypeAny, {
22
+ coin: string;
23
+ }, {
24
+ coin: string;
25
+ }>]>;
26
+ }, "strict", z.ZodTypeAny, {
27
+ amount: {
28
+ balance: string | number;
29
+ } | {
30
+ coin: string;
31
+ };
32
+ recipient: {
33
+ name_or_address?: string | undefined;
34
+ local_mark_first?: boolean | undefined;
35
+ };
36
+ }, {
37
+ amount: {
38
+ balance: string | number;
39
+ } | {
40
+ coin: string;
41
+ };
42
+ recipient: {
43
+ name_or_address?: string | undefined;
44
+ local_mark_first?: boolean | undefined;
45
+ };
46
+ }>;
47
+ export declare const CallPayment_DataSchema: z.ZodObject<{
48
+ object: z.ZodObject<{
49
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
50
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
+ onChain: z.ZodOptional<z.ZodBoolean>;
52
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
53
+ } & {
54
+ type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
55
+ }, "strict", z.ZodTypeAny, {
56
+ type_parameter: string;
57
+ name?: string | undefined;
58
+ replaceExistName?: boolean | undefined;
59
+ tags?: string[] | undefined;
60
+ onChain?: boolean | undefined;
61
+ }, {
62
+ name?: string | undefined;
63
+ replaceExistName?: boolean | undefined;
64
+ tags?: string[] | undefined;
65
+ onChain?: boolean | undefined;
66
+ type_parameter?: string | undefined;
67
+ }>;
68
+ revenue: z.ZodArray<z.ZodObject<{
69
+ recipient: z.ZodObject<{
70
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
71
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
72
+ }, "strict", z.ZodTypeAny, {
73
+ name_or_address?: string | undefined;
74
+ local_mark_first?: boolean | undefined;
75
+ }, {
76
+ name_or_address?: string | undefined;
77
+ local_mark_first?: boolean | undefined;
78
+ }>;
79
+ amount: z.ZodUnion<[z.ZodObject<{
80
+ balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
81
+ }, "strip", z.ZodTypeAny, {
82
+ balance: string | number;
83
+ }, {
84
+ balance: string | number;
85
+ }>, z.ZodObject<{
86
+ coin: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ coin: string;
89
+ }, {
90
+ coin: string;
91
+ }>]>;
92
+ }, "strict", z.ZodTypeAny, {
93
+ amount: {
94
+ balance: string | number;
95
+ } | {
96
+ coin: string;
97
+ };
98
+ recipient: {
99
+ name_or_address?: string | undefined;
100
+ local_mark_first?: boolean | undefined;
101
+ };
102
+ }, {
103
+ amount: {
104
+ balance: string | number;
105
+ } | {
106
+ coin: string;
107
+ };
108
+ recipient: {
109
+ name_or_address?: string | undefined;
110
+ local_mark_first?: boolean | undefined;
111
+ };
112
+ }>, "many">;
113
+ info: z.ZodObject<{
114
+ for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
115
+ for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
116
+ remark: z.ZodString;
117
+ index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ index: string | number;
120
+ remark: string;
121
+ for_object?: string | null | undefined;
122
+ for_guard?: string | null | undefined;
123
+ }, {
124
+ index: string | number;
125
+ remark: string;
126
+ for_object?: string | null | undefined;
127
+ for_guard?: string | null | undefined;
128
+ }>;
129
+ }, "strict", z.ZodTypeAny, {
130
+ object: {
131
+ type_parameter: string;
132
+ name?: string | undefined;
133
+ replaceExistName?: boolean | undefined;
134
+ tags?: string[] | undefined;
135
+ onChain?: boolean | undefined;
136
+ };
137
+ info: {
138
+ index: string | number;
139
+ remark: string;
140
+ for_object?: string | null | undefined;
141
+ for_guard?: string | null | undefined;
142
+ };
143
+ revenue: {
144
+ amount: {
145
+ balance: string | number;
146
+ } | {
147
+ coin: string;
148
+ };
149
+ recipient: {
150
+ name_or_address?: string | undefined;
151
+ local_mark_first?: boolean | undefined;
152
+ };
153
+ }[];
154
+ }, {
155
+ object: {
156
+ name?: string | undefined;
157
+ replaceExistName?: boolean | undefined;
158
+ tags?: string[] | undefined;
159
+ onChain?: boolean | undefined;
160
+ type_parameter?: string | undefined;
161
+ };
162
+ info: {
163
+ index: string | number;
164
+ remark: string;
165
+ for_object?: string | null | undefined;
166
+ for_guard?: string | null | undefined;
167
+ };
168
+ revenue: {
169
+ amount: {
170
+ balance: string | number;
171
+ } | {
172
+ coin: string;
173
+ };
174
+ recipient: {
175
+ name_or_address?: string | undefined;
176
+ local_mark_first?: boolean | undefined;
177
+ };
178
+ }[];
179
+ }>;
180
+ export declare const CallPayment_InputSchema: z.ZodObject<{
181
+ data: z.ZodObject<{
182
+ object: z.ZodObject<{
183
+ name: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
184
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185
+ onChain: z.ZodOptional<z.ZodBoolean>;
186
+ replaceExistName: z.ZodOptional<z.ZodBoolean>;
187
+ } & {
188
+ type_parameter: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
189
+ }, "strict", z.ZodTypeAny, {
190
+ type_parameter: string;
191
+ name?: string | undefined;
192
+ replaceExistName?: boolean | undefined;
193
+ tags?: string[] | undefined;
194
+ onChain?: boolean | undefined;
195
+ }, {
196
+ name?: string | undefined;
197
+ replaceExistName?: boolean | undefined;
198
+ tags?: string[] | undefined;
199
+ onChain?: boolean | undefined;
200
+ type_parameter?: string | undefined;
201
+ }>;
202
+ revenue: z.ZodArray<z.ZodObject<{
203
+ recipient: z.ZodObject<{
204
+ name_or_address: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
205
+ local_mark_first: z.ZodOptional<z.ZodBoolean>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ name_or_address?: string | undefined;
208
+ local_mark_first?: boolean | undefined;
209
+ }, {
210
+ name_or_address?: string | undefined;
211
+ local_mark_first?: boolean | undefined;
212
+ }>;
213
+ amount: z.ZodUnion<[z.ZodObject<{
214
+ balance: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ balance: string | number;
217
+ }, {
218
+ balance: string | number;
219
+ }>, z.ZodObject<{
220
+ coin: z.ZodString;
221
+ }, "strip", z.ZodTypeAny, {
222
+ coin: string;
223
+ }, {
224
+ coin: string;
225
+ }>]>;
226
+ }, "strict", z.ZodTypeAny, {
227
+ amount: {
228
+ balance: string | number;
229
+ } | {
230
+ coin: string;
231
+ };
232
+ recipient: {
233
+ name_or_address?: string | undefined;
234
+ local_mark_first?: boolean | undefined;
235
+ };
236
+ }, {
237
+ amount: {
238
+ balance: string | number;
239
+ } | {
240
+ coin: string;
241
+ };
242
+ recipient: {
243
+ name_or_address?: string | undefined;
244
+ local_mark_first?: boolean | undefined;
245
+ };
246
+ }>, "many">;
247
+ info: z.ZodObject<{
248
+ for_object: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
249
+ for_guard: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNull]>>;
250
+ remark: z.ZodString;
251
+ index: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
252
+ }, "strip", z.ZodTypeAny, {
253
+ index: string | number;
254
+ remark: string;
255
+ for_object?: string | null | undefined;
256
+ for_guard?: string | null | undefined;
257
+ }, {
258
+ index: string | number;
259
+ remark: string;
260
+ for_object?: string | null | undefined;
261
+ for_guard?: string | null | undefined;
262
+ }>;
263
+ }, "strict", z.ZodTypeAny, {
264
+ object: {
265
+ type_parameter: string;
266
+ name?: string | undefined;
267
+ replaceExistName?: boolean | undefined;
268
+ tags?: string[] | undefined;
269
+ onChain?: boolean | undefined;
270
+ };
271
+ info: {
272
+ index: string | number;
273
+ remark: string;
274
+ for_object?: string | null | undefined;
275
+ for_guard?: string | null | undefined;
276
+ };
277
+ revenue: {
278
+ amount: {
279
+ balance: string | number;
280
+ } | {
281
+ coin: string;
282
+ };
283
+ recipient: {
284
+ name_or_address?: string | undefined;
285
+ local_mark_first?: boolean | undefined;
286
+ };
287
+ }[];
288
+ }, {
289
+ object: {
290
+ name?: string | undefined;
291
+ replaceExistName?: boolean | undefined;
292
+ tags?: string[] | undefined;
293
+ onChain?: boolean | undefined;
294
+ type_parameter?: string | undefined;
295
+ };
296
+ info: {
297
+ index: string | number;
298
+ remark: string;
299
+ for_object?: string | null | undefined;
300
+ for_guard?: string | null | undefined;
301
+ };
302
+ revenue: {
303
+ amount: {
304
+ balance: string | number;
305
+ } | {
306
+ coin: string;
307
+ };
308
+ recipient: {
309
+ name_or_address?: string | undefined;
310
+ local_mark_first?: boolean | undefined;
311
+ };
312
+ }[];
313
+ }>;
314
+ env: z.ZodOptional<z.ZodObject<{
315
+ account: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
316
+ permission_guard: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
317
+ no_cache: z.ZodOptional<z.ZodBoolean>;
318
+ network: z.ZodOptional<z.ZodEnum<[import("wowok").ENTRYPOINT.Localnet, import("wowok").ENTRYPOINT.Testnet]>>;
319
+ referrer: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
320
+ }, "strict", z.ZodTypeAny, {
321
+ account: string;
322
+ no_cache?: boolean | undefined;
323
+ network?: import("wowok").ENTRYPOINT | undefined;
324
+ permission_guard?: string[] | undefined;
325
+ referrer?: string | undefined;
326
+ }, {
327
+ no_cache?: boolean | undefined;
328
+ network?: import("wowok").ENTRYPOINT | undefined;
329
+ account?: string | undefined;
330
+ permission_guard?: string[] | undefined;
331
+ referrer?: string | undefined;
332
+ }>>;
333
+ }, "strict", z.ZodTypeAny, {
334
+ data: {
335
+ object: {
336
+ type_parameter: string;
337
+ name?: string | undefined;
338
+ replaceExistName?: boolean | undefined;
339
+ tags?: string[] | undefined;
340
+ onChain?: boolean | undefined;
341
+ };
342
+ info: {
343
+ index: string | number;
344
+ remark: string;
345
+ for_object?: string | null | undefined;
346
+ for_guard?: string | null | undefined;
347
+ };
348
+ revenue: {
349
+ amount: {
350
+ balance: string | number;
351
+ } | {
352
+ coin: string;
353
+ };
354
+ recipient: {
355
+ name_or_address?: string | undefined;
356
+ local_mark_first?: boolean | undefined;
357
+ };
358
+ }[];
359
+ };
360
+ env?: {
361
+ account: string;
362
+ no_cache?: boolean | undefined;
363
+ network?: import("wowok").ENTRYPOINT | undefined;
364
+ permission_guard?: string[] | undefined;
365
+ referrer?: string | undefined;
366
+ } | undefined;
367
+ }, {
368
+ data: {
369
+ object: {
370
+ name?: string | undefined;
371
+ replaceExistName?: boolean | undefined;
372
+ tags?: string[] | undefined;
373
+ onChain?: boolean | undefined;
374
+ type_parameter?: string | undefined;
375
+ };
376
+ info: {
377
+ index: string | number;
378
+ remark: string;
379
+ for_object?: string | null | undefined;
380
+ for_guard?: string | null | undefined;
381
+ };
382
+ revenue: {
383
+ amount: {
384
+ balance: string | number;
385
+ } | {
386
+ coin: string;
387
+ };
388
+ recipient: {
389
+ name_or_address?: string | undefined;
390
+ local_mark_first?: boolean | undefined;
391
+ };
392
+ }[];
393
+ };
394
+ env?: {
395
+ no_cache?: boolean | undefined;
396
+ network?: import("wowok").ENTRYPOINT | undefined;
397
+ account?: string | undefined;
398
+ permission_guard?: string[] | undefined;
399
+ referrer?: string | undefined;
400
+ } | undefined;
401
+ }>;
402
+ export type Revenue = z.infer<typeof RevenueSchema>;
403
+ export type CallPayment_Data = z.infer<typeof CallPayment_DataSchema>;
404
+ export type CallPayment_Input = z.infer<typeof CallPayment_InputSchema>;
@@ -0,0 +1,17 @@
1
+ import { z } from "zod";
2
+ import { PaymentInfoSchema } from "../query/index.js";
3
+ import { CoinParamSchema, CallEnvSchema, TypeNamedObjectSchema } from "./base.js";
4
+ import { AccountOrMark_AddressSchema } from "../common/index.js";
5
+ export const RevenueSchema = z.object({
6
+ recipient: AccountOrMark_AddressSchema,
7
+ amount: CoinParamSchema
8
+ }).strict().describe("Payment recipient and amount");
9
+ export const CallPayment_DataSchema = z.object({
10
+ object: TypeNamedObjectSchema,
11
+ revenue: z.array(RevenueSchema).describe("Array of payment recipients and amounts"),
12
+ info: PaymentInfoSchema
13
+ }).strict().describe("On-chain Payment creation. USAGE: Set 'object' field with {name, type, ...} to create a named Payment. NOTE: 'name' goes INSIDE 'object', NOT at the data root level. Payment is an immutable object - it can only be created, not modified. The 'object' field is CRITICAL and REQUIRED.");
14
+ export const CallPayment_InputSchema = z.object({
15
+ data: CallPayment_DataSchema,
16
+ env: CallEnvSchema.optional(),
17
+ }).strict();