@wowok/agent-mcp 2.3.7 → 2.3.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 (38) hide show
  1. package/dist/index.d.ts +1 -15838
  2. package/dist/index.js +40 -394
  3. package/dist/schema/call/bridge-handler.d.ts +5 -0
  4. package/dist/schema/call/bridge-handler.js +234 -0
  5. package/dist/schema/call/bridge.d.ts +2212 -0
  6. package/dist/schema/call/bridge.js +408 -0
  7. package/dist/schema/call/handler.js +29 -15
  8. package/dist/schema/call/index.d.ts +1 -0
  9. package/dist/schema/call/index.js +1 -0
  10. package/dist/schema/index.d.ts +1 -0
  11. package/dist/schema/index.js +1 -0
  12. package/dist/schema/messenger/index.d.ts +74 -74
  13. package/dist/schema/operations.d.ts +24302 -0
  14. package/dist/schema/operations.js +393 -0
  15. package/dist/schema-query/index.d.ts +3 -1
  16. package/dist/schema-query/index.js +63 -3
  17. package/dist/schemas/account_operation.output.json +1395 -0
  18. package/dist/schemas/bridge_operation.output.json +64 -0
  19. package/dist/schemas/bridge_operation.schema.json +547 -0
  20. package/dist/schemas/guard2file.output.json +84 -0
  21. package/dist/schemas/index.json +33 -14
  22. package/dist/schemas/local_info_operation.output.json +70 -0
  23. package/dist/schemas/local_mark_operation.output.json +114 -0
  24. package/dist/schemas/machineNode2file.output.json +89 -0
  25. package/dist/schemas/messenger_operation.output.json +1068 -0
  26. package/dist/schemas/onchain_events.output.json +513 -0
  27. package/dist/schemas/onchain_operations.output.json +1764 -0
  28. package/dist/schemas/onchain_operations.schema.json +8324 -49
  29. package/dist/schemas/onchain_table_data.output.json +1938 -0
  30. package/dist/schemas/onchain_table_data.schema.json +483 -22
  31. package/dist/schemas/query_toolkit.output.json +18 -0
  32. package/dist/schemas/query_toolkit.schema.json +454 -19
  33. package/dist/schemas/schema_query.output.json +42 -0
  34. package/dist/schemas/schema_query.schema.json +1 -0
  35. package/dist/schemas/wip_file.output.json +116 -0
  36. package/dist/schemas/wip_file.schema.json +163 -15
  37. package/dist/schemas/wowok_buildin_info.output.json +577 -0
  38. package/package.json +2 -2
@@ -0,0 +1,513 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/onchain_events.json",
4
+ "title": "On-chain Events",
5
+ "description": "Watch on-chain WoWok events by type",
6
+ "$ref": "#/definitions/onchain_events",
7
+ "definitions": {
8
+ "onchain_events": {
9
+ "type": "object",
10
+ "properties": {
11
+ "result": {
12
+ "anyOf": [
13
+ {
14
+ "type": "object",
15
+ "properties": {
16
+ "data": {
17
+ "type": "array",
18
+ "items": {
19
+ "anyOf": [
20
+ {
21
+ "type": "object",
22
+ "properties": {
23
+ "id": {
24
+ "type": "object",
25
+ "properties": {
26
+ "eventSeq": {
27
+ "type": [
28
+ "string",
29
+ "number"
30
+ ],
31
+ "description": "Event sequence number"
32
+ },
33
+ "txDigest": {
34
+ "type": "string",
35
+ "description": "Transaction digest"
36
+ }
37
+ },
38
+ "required": [
39
+ "eventSeq",
40
+ "txDigest"
41
+ ],
42
+ "additionalProperties": false,
43
+ "description": "Event cursor"
44
+ },
45
+ "sender": {
46
+ "type": "string",
47
+ "description": "Event sender ID"
48
+ },
49
+ "type": {
50
+ "anyOf": [
51
+ {
52
+ "type": "string",
53
+ "const": "ArbEvent"
54
+ },
55
+ {
56
+ "type": "string",
57
+ "const": "NewOrderEvent"
58
+ },
59
+ {
60
+ "type": "string",
61
+ "const": "ProgressEvent"
62
+ },
63
+ {
64
+ "type": "string",
65
+ "const": "DemandPresentEvent"
66
+ },
67
+ {
68
+ "type": "string",
69
+ "const": "DemandFeedbackEvent"
70
+ },
71
+ {
72
+ "type": "string",
73
+ "const": "NewEntityEvent"
74
+ },
75
+ {
76
+ "type": "string"
77
+ }
78
+ ],
79
+ "description": "Event type. Supports Wowok built-in types (ArbEvent, NewOrderEvent, ProgressEvent, DemandPresentEvent, DemandFeedbackEvent, NewEntityEvent) or any string for generic MoveEventType (e.g., '0x2::coin::CoinEvent')"
80
+ },
81
+ "type_raw": {
82
+ "type": "string",
83
+ "description": "Raw event type"
84
+ },
85
+ "time": {
86
+ "type": [
87
+ "string",
88
+ "number"
89
+ ],
90
+ "description": "Event occurrence time"
91
+ },
92
+ "parsedJson_raw": {
93
+ "description": "Raw parsed JSON data from the event"
94
+ }
95
+ },
96
+ "required": [
97
+ "id",
98
+ "sender",
99
+ "type",
100
+ "type_raw",
101
+ "time"
102
+ ],
103
+ "additionalProperties": false,
104
+ "description": "Event base information"
105
+ },
106
+ {
107
+ "type": "object",
108
+ "properties": {
109
+ "id": {
110
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
111
+ },
112
+ "sender": {
113
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
114
+ },
115
+ "type": {
116
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
117
+ },
118
+ "type_raw": {
119
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
120
+ },
121
+ "time": {
122
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
123
+ },
124
+ "parsedJson_raw": {
125
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
126
+ },
127
+ "arb": {
128
+ "type": "string",
129
+ "description": "Arbitration object ID"
130
+ },
131
+ "arbitration": {
132
+ "type": "string",
133
+ "description": "Arbitration object ID"
134
+ },
135
+ "order": {
136
+ "type": "string",
137
+ "description": "Order object ID"
138
+ },
139
+ "status": {
140
+ "type": "string",
141
+ "enum": [
142
+ "Principal_confirming",
143
+ "Arbitrator_confirming",
144
+ "Voting",
145
+ "Arbitrated",
146
+ "Objectionable",
147
+ "Finished",
148
+ "Withdrawn"
149
+ ],
150
+ "description": "Arb object status"
151
+ }
152
+ },
153
+ "required": [
154
+ "id",
155
+ "sender",
156
+ "type",
157
+ "type_raw",
158
+ "time",
159
+ "arb",
160
+ "arbitration",
161
+ "order",
162
+ "status"
163
+ ],
164
+ "additionalProperties": false,
165
+ "description": "Arbitration event"
166
+ },
167
+ {
168
+ "type": "object",
169
+ "properties": {
170
+ "id": {
171
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
172
+ },
173
+ "sender": {
174
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
175
+ },
176
+ "type": {
177
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
178
+ },
179
+ "type_raw": {
180
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
181
+ },
182
+ "time": {
183
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
184
+ },
185
+ "parsedJson_raw": {
186
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
187
+ },
188
+ "order": {
189
+ "type": "string",
190
+ "description": "Order object ID"
191
+ },
192
+ "service": {
193
+ "type": "string",
194
+ "description": "Service object ID"
195
+ },
196
+ "progress": {
197
+ "type": [
198
+ "string",
199
+ "null"
200
+ ],
201
+ "description": "Progress object ID"
202
+ },
203
+ "discount": {
204
+ "type": [
205
+ "string",
206
+ "null"
207
+ ],
208
+ "description": "Discount object ID"
209
+ },
210
+ "allocation": {
211
+ "type": [
212
+ "string",
213
+ "null"
214
+ ],
215
+ "description": "Allocation object ID"
216
+ },
217
+ "amount": {
218
+ "type": [
219
+ "number",
220
+ "string"
221
+ ],
222
+ "description": "Balance type"
223
+ }
224
+ },
225
+ "required": [
226
+ "id",
227
+ "sender",
228
+ "type",
229
+ "type_raw",
230
+ "time",
231
+ "order",
232
+ "service",
233
+ "amount"
234
+ ],
235
+ "additionalProperties": false,
236
+ "description": "New order event"
237
+ },
238
+ {
239
+ "type": "object",
240
+ "properties": {
241
+ "id": {
242
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
243
+ },
244
+ "sender": {
245
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
246
+ },
247
+ "type": {
248
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
249
+ },
250
+ "type_raw": {
251
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
252
+ },
253
+ "time": {
254
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
255
+ },
256
+ "parsedJson_raw": {
257
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
258
+ },
259
+ "progress": {
260
+ "type": "string",
261
+ "description": "Progress object ID"
262
+ },
263
+ "machine": {
264
+ "type": "string",
265
+ "description": "Machine object ID"
266
+ },
267
+ "task": {
268
+ "type": [
269
+ "string",
270
+ "null"
271
+ ],
272
+ "description": "Task object ID"
273
+ },
274
+ "node": {
275
+ "type": "string",
276
+ "description": "Current node name"
277
+ },
278
+ "forward": {
279
+ "type": [
280
+ "string",
281
+ "null"
282
+ ],
283
+ "description": "Forward operation name"
284
+ },
285
+ "hold": {
286
+ "type": [
287
+ "boolean",
288
+ "null"
289
+ ],
290
+ "description": "Whether it is a hold operation"
291
+ }
292
+ },
293
+ "required": [
294
+ "id",
295
+ "sender",
296
+ "type",
297
+ "type_raw",
298
+ "time",
299
+ "progress",
300
+ "machine",
301
+ "node"
302
+ ],
303
+ "additionalProperties": false,
304
+ "description": "Progress event"
305
+ },
306
+ {
307
+ "type": "object",
308
+ "properties": {
309
+ "id": {
310
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
311
+ },
312
+ "sender": {
313
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
314
+ },
315
+ "type": {
316
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
317
+ },
318
+ "type_raw": {
319
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
320
+ },
321
+ "time": {
322
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
323
+ },
324
+ "parsedJson_raw": {
325
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
326
+ },
327
+ "demand": {
328
+ "type": "string",
329
+ "description": "Demand object ID"
330
+ },
331
+ "service": {
332
+ "type": [
333
+ "string",
334
+ "null"
335
+ ],
336
+ "description": "Service object ID"
337
+ },
338
+ "recommend": {
339
+ "type": "string",
340
+ "description": "Recommendation letter"
341
+ }
342
+ },
343
+ "required": [
344
+ "id",
345
+ "sender",
346
+ "type",
347
+ "type_raw",
348
+ "time",
349
+ "demand",
350
+ "recommend"
351
+ ],
352
+ "additionalProperties": false,
353
+ "description": "Event of recommending service to Demand object"
354
+ },
355
+ {
356
+ "type": "object",
357
+ "properties": {
358
+ "id": {
359
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
360
+ },
361
+ "sender": {
362
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
363
+ },
364
+ "type": {
365
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
366
+ },
367
+ "type_raw": {
368
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
369
+ },
370
+ "time": {
371
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
372
+ },
373
+ "parsedJson_raw": {
374
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
375
+ },
376
+ "demand": {
377
+ "type": "string",
378
+ "description": "Demand object ID"
379
+ },
380
+ "service": {
381
+ "type": [
382
+ "string",
383
+ "null"
384
+ ],
385
+ "description": "Service object ID"
386
+ },
387
+ "feedback": {
388
+ "type": "string",
389
+ "description": "Feedback content"
390
+ },
391
+ "acceptance_score": {
392
+ "type": [
393
+ "number",
394
+ "null"
395
+ ],
396
+ "description": "Acceptance score"
397
+ }
398
+ },
399
+ "required": [
400
+ "id",
401
+ "sender",
402
+ "type",
403
+ "type_raw",
404
+ "time",
405
+ "demand",
406
+ "feedback"
407
+ ],
408
+ "additionalProperties": false,
409
+ "description": "Event of Demand object feedback to referrer"
410
+ },
411
+ {
412
+ "type": "object",
413
+ "properties": {
414
+ "id": {
415
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
416
+ },
417
+ "sender": {
418
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/sender"
419
+ },
420
+ "type": {
421
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type"
422
+ },
423
+ "type_raw": {
424
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/type_raw"
425
+ },
426
+ "time": {
427
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/time"
428
+ },
429
+ "parsedJson_raw": {
430
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/parsedJson_raw"
431
+ },
432
+ "address": {
433
+ "type": "string",
434
+ "description": "User ID"
435
+ },
436
+ "resource": {
437
+ "type": "string",
438
+ "description": "ID mark object ID owned by user"
439
+ },
440
+ "referrer": {
441
+ "type": [
442
+ "string",
443
+ "null"
444
+ ],
445
+ "description": "Referrer ID"
446
+ }
447
+ },
448
+ "required": [
449
+ "id",
450
+ "sender",
451
+ "type",
452
+ "type_raw",
453
+ "time",
454
+ "address",
455
+ "resource"
456
+ ],
457
+ "additionalProperties": false,
458
+ "description": "New user event"
459
+ }
460
+ ]
461
+ },
462
+ "description": "Event object data"
463
+ },
464
+ "hasNextPage": {
465
+ "type": "boolean",
466
+ "description": "Whether there is a next page"
467
+ },
468
+ "nextCursor": {
469
+ "anyOf": [
470
+ {
471
+ "$ref": "#/definitions/onchain_events/properties/result/anyOf/0/properties/data/items/anyOf/0/properties/id"
472
+ },
473
+ {
474
+ "type": "null"
475
+ }
476
+ ],
477
+ "description": "Next page cursor"
478
+ },
479
+ "cache_expire": {
480
+ "anyOf": [
481
+ {
482
+ "type": "number"
483
+ },
484
+ {
485
+ "type": "string",
486
+ "const": "INFINITE"
487
+ }
488
+ ],
489
+ "description": "Cache expiration time"
490
+ }
491
+ },
492
+ "required": [
493
+ "data",
494
+ "hasNextPage"
495
+ ],
496
+ "additionalProperties": false,
497
+ "description": "Event query result"
498
+ },
499
+ {
500
+ "type": "null"
501
+ }
502
+ ],
503
+ "description": "Event query result containing list of events and pagination info, or null if no data found"
504
+ }
505
+ },
506
+ "required": [
507
+ "result"
508
+ ],
509
+ "additionalProperties": false,
510
+ "description": "Result of on-chain events query"
511
+ }
512
+ }
513
+ }