@wowok/agent-mcp 2.2.11 → 2.2.14

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 (37) hide show
  1. package/dist/index.d.ts +12 -0
  2. package/dist/index.js +98 -47
  3. package/dist/schema-query/index.d.ts +29 -0
  4. package/dist/schema-query/index.js +149 -0
  5. package/dist/schemas/account_operation.schema.json +255 -0
  6. package/dist/schemas/guard2file.schema.json +71 -0
  7. package/dist/schemas/index.json +139 -0
  8. package/dist/schemas/local_info_operation.schema.json +142 -0
  9. package/dist/schemas/local_mark_operation.schema.json +119 -0
  10. package/dist/schemas/machineNode2file.schema.json +71 -0
  11. package/dist/schemas/messenger_operation.schema.json +1393 -0
  12. package/dist/schemas/onchain_events.schema.json +113 -0
  13. package/dist/schemas/onchain_operations.schema.json +376 -0
  14. package/dist/schemas/onchain_operations_allocation.schema.json +914 -0
  15. package/dist/schemas/onchain_operations_arbitration.schema.json +1166 -0
  16. package/dist/schemas/onchain_operations_contact.schema.json +853 -0
  17. package/dist/schemas/onchain_operations_demand.schema.json +984 -0
  18. package/dist/schemas/onchain_operations_gen_passport.schema.json +1141 -0
  19. package/dist/schemas/onchain_operations_guard.schema.json +713 -0
  20. package/dist/schemas/onchain_operations_machine.schema.json +1347 -0
  21. package/dist/schemas/onchain_operations_order.schema.json +830 -0
  22. package/dist/schemas/onchain_operations_payment.schema.json +717 -0
  23. package/dist/schemas/onchain_operations_permission.schema.json +1088 -0
  24. package/dist/schemas/onchain_operations_personal.schema.json +1282 -0
  25. package/dist/schemas/onchain_operations_progress.schema.json +751 -0
  26. package/dist/schemas/onchain_operations_repository.schema.json +1572 -0
  27. package/dist/schemas/onchain_operations_reward.schema.json +955 -0
  28. package/dist/schemas/onchain_operations_service.schema.json +1411 -0
  29. package/dist/schemas/onchain_operations_treasury.schema.json +1155 -0
  30. package/dist/schemas/onchain_table_data.schema.json +35 -0
  31. package/dist/schemas/operations/guard.json +163 -0
  32. package/dist/schemas/operations/permission.json +22 -0
  33. package/dist/schemas/query_toolkit.schema.json +32 -0
  34. package/dist/schemas/schema_query.schema.json +33 -0
  35. package/dist/schemas/wip_file.schema.json +27 -0
  36. package/dist/schemas/wowok_buildin_info.schema.json +487 -0
  37. package/package.json +8 -5
@@ -0,0 +1,1282 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/onchain_operations_personal.json",
4
+ "title": "Personal Operation",
5
+ "description": "On-chain personal operation schema",
6
+ "type": "object",
7
+ "properties": {
8
+ "operation_type": {
9
+ "const": "personal"
10
+ },
11
+ "data": {
12
+ "$ref": "#/definitions/data",
13
+ "$schema": "http://json-schema.org/draft-07/schema#"
14
+ },
15
+ "env": {
16
+ "$ref": "#/definitions/env",
17
+ "$schema": "http://json-schema.org/draft-07/schema#"
18
+ },
19
+ "submission": {
20
+ "$ref": "#/definitions/submission",
21
+ "$schema": "http://json-schema.org/draft-07/schema#"
22
+ }
23
+ },
24
+ "required": [
25
+ "operation_type",
26
+ "data"
27
+ ],
28
+ "definitions": {
29
+ "data": {
30
+ "type": "object",
31
+ "properties": {
32
+ "description": {
33
+ "type": "string",
34
+ "description": "Description string (max 4000 bcs characters)"
35
+ },
36
+ "referrer": {
37
+ "anyOf": [
38
+ {
39
+ "type": "string"
40
+ },
41
+ {
42
+ "type": "object",
43
+ "properties": {
44
+ "name_or_address": {
45
+ "type": "string",
46
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
47
+ },
48
+ "local_mark_first": {
49
+ "type": "boolean",
50
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
51
+ }
52
+ },
53
+ "additionalProperties": false,
54
+ "description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
55
+ },
56
+ {
57
+ "type": "null"
58
+ }
59
+ ],
60
+ "description": "Referrer ID (name or address) for joining the on-chain network."
61
+ },
62
+ "information": {
63
+ "anyOf": [
64
+ {
65
+ "type": "object",
66
+ "properties": {
67
+ "op": {
68
+ "type": "string",
69
+ "const": "add"
70
+ },
71
+ "data": {
72
+ "type": "array",
73
+ "items": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string",
78
+ "description": "Record name"
79
+ },
80
+ "value_type": {
81
+ "anyOf": [
82
+ {
83
+ "anyOf": [
84
+ {
85
+ "anyOf": [
86
+ {
87
+ "type": "number",
88
+ "const": 0,
89
+ "description": "Bool (0)"
90
+ },
91
+ {
92
+ "type": "number",
93
+ "const": 1,
94
+ "description": "Address (1)"
95
+ },
96
+ {
97
+ "type": "number",
98
+ "const": 2,
99
+ "description": "String (2)"
100
+ },
101
+ {
102
+ "type": "number",
103
+ "const": 3,
104
+ "description": "U8 (3)"
105
+ },
106
+ {
107
+ "type": "number",
108
+ "const": 4,
109
+ "description": "U16 (4)"
110
+ },
111
+ {
112
+ "type": "number",
113
+ "const": 5,
114
+ "description": "U32 (5)"
115
+ },
116
+ {
117
+ "type": "number",
118
+ "const": 6,
119
+ "description": "U64 (6)"
120
+ },
121
+ {
122
+ "type": "number",
123
+ "const": 7,
124
+ "description": "U128 (7)"
125
+ },
126
+ {
127
+ "type": "number",
128
+ "const": 8,
129
+ "description": "U256 (8)"
130
+ },
131
+ {
132
+ "type": "number",
133
+ "const": 9,
134
+ "description": "VecBool (9)"
135
+ },
136
+ {
137
+ "type": "number",
138
+ "const": 10,
139
+ "description": "VecAddress (10)"
140
+ },
141
+ {
142
+ "type": "number",
143
+ "const": 11,
144
+ "description": "VecString (11)"
145
+ },
146
+ {
147
+ "type": "number",
148
+ "const": 12,
149
+ "description": "VecU8 (12)"
150
+ },
151
+ {
152
+ "type": "number",
153
+ "const": 13,
154
+ "description": "VecU16 (13)"
155
+ },
156
+ {
157
+ "type": "number",
158
+ "const": 14,
159
+ "description": "VecU32 (14)"
160
+ },
161
+ {
162
+ "type": "number",
163
+ "const": 15,
164
+ "description": "VecU64 (15)"
165
+ },
166
+ {
167
+ "type": "number",
168
+ "const": 16,
169
+ "description": "VecU128 (16)"
170
+ },
171
+ {
172
+ "type": "number",
173
+ "const": 17,
174
+ "description": "VecU256 (17)"
175
+ },
176
+ {
177
+ "type": "number",
178
+ "const": 18,
179
+ "description": "VecVecU8 (18)"
180
+ },
181
+ {
182
+ "type": "string",
183
+ "const": "Bool",
184
+ "description": "Bool"
185
+ },
186
+ {
187
+ "type": "string",
188
+ "const": "Address",
189
+ "description": "Address"
190
+ },
191
+ {
192
+ "type": "string",
193
+ "const": "String",
194
+ "description": "String"
195
+ },
196
+ {
197
+ "type": "string",
198
+ "const": "U8",
199
+ "description": "U8"
200
+ },
201
+ {
202
+ "type": "string",
203
+ "const": "U16",
204
+ "description": "U16"
205
+ },
206
+ {
207
+ "type": "string",
208
+ "const": "U32",
209
+ "description": "U32"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "const": "U64",
214
+ "description": "U64"
215
+ },
216
+ {
217
+ "type": "string",
218
+ "const": "U128",
219
+ "description": "U128"
220
+ },
221
+ {
222
+ "type": "string",
223
+ "const": "U256",
224
+ "description": "U256"
225
+ },
226
+ {
227
+ "type": "string",
228
+ "const": "VecBool",
229
+ "description": "VecBool"
230
+ },
231
+ {
232
+ "type": "string",
233
+ "const": "VecAddress",
234
+ "description": "VecAddress"
235
+ },
236
+ {
237
+ "type": "string",
238
+ "const": "VecString",
239
+ "description": "VecString"
240
+ },
241
+ {
242
+ "type": "string",
243
+ "const": "VecU8",
244
+ "description": "VecU8"
245
+ },
246
+ {
247
+ "type": "string",
248
+ "const": "VecU16",
249
+ "description": "VecU16"
250
+ },
251
+ {
252
+ "type": "string",
253
+ "const": "VecU32",
254
+ "description": "VecU32"
255
+ },
256
+ {
257
+ "type": "string",
258
+ "const": "VecU64",
259
+ "description": "VecU64"
260
+ },
261
+ {
262
+ "type": "string",
263
+ "const": "VecU128",
264
+ "description": "VecU128"
265
+ },
266
+ {
267
+ "type": "string",
268
+ "const": "VecU256",
269
+ "description": "VecU256"
270
+ },
271
+ {
272
+ "type": "string",
273
+ "const": "VecVecU8",
274
+ "description": "VecVecU8"
275
+ },
276
+ {
277
+ "type": "string",
278
+ "const": "bool",
279
+ "description": "bool"
280
+ },
281
+ {
282
+ "type": "string",
283
+ "const": "address",
284
+ "description": "address"
285
+ },
286
+ {
287
+ "type": "string",
288
+ "const": "string",
289
+ "description": "string"
290
+ },
291
+ {
292
+ "type": "string",
293
+ "const": "u8",
294
+ "description": "u8"
295
+ },
296
+ {
297
+ "type": "string",
298
+ "const": "u16",
299
+ "description": "u16"
300
+ },
301
+ {
302
+ "type": "string",
303
+ "const": "u32",
304
+ "description": "u32"
305
+ },
306
+ {
307
+ "type": "string",
308
+ "const": "u64",
309
+ "description": "u64"
310
+ },
311
+ {
312
+ "type": "string",
313
+ "const": "u128",
314
+ "description": "u128"
315
+ },
316
+ {
317
+ "type": "string",
318
+ "const": "u256",
319
+ "description": "u256"
320
+ },
321
+ {
322
+ "type": "string",
323
+ "const": "vecbool",
324
+ "description": "vecbool"
325
+ },
326
+ {
327
+ "type": "string",
328
+ "const": "vecaddress",
329
+ "description": "vecaddress"
330
+ },
331
+ {
332
+ "type": "string",
333
+ "const": "vecstring",
334
+ "description": "vecstring"
335
+ },
336
+ {
337
+ "type": "string",
338
+ "const": "vecu8",
339
+ "description": "vecu8"
340
+ },
341
+ {
342
+ "type": "string",
343
+ "const": "vecu16",
344
+ "description": "vecu16"
345
+ },
346
+ {
347
+ "type": "string",
348
+ "const": "vecu32",
349
+ "description": "vecu32"
350
+ },
351
+ {
352
+ "type": "string",
353
+ "const": "vecu64",
354
+ "description": "vecu64"
355
+ },
356
+ {
357
+ "type": "string",
358
+ "const": "vecu128",
359
+ "description": "vecu128"
360
+ },
361
+ {
362
+ "type": "string",
363
+ "const": "vecu256",
364
+ "description": "vecu256"
365
+ },
366
+ {
367
+ "type": "string",
368
+ "const": "vecvecu8",
369
+ "description": "vecvecu8"
370
+ }
371
+ ],
372
+ "description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
373
+ },
374
+ {
375
+ "type": "number",
376
+ "const": 19,
377
+ "description": "Value (19)"
378
+ }
379
+ ],
380
+ "description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
381
+ },
382
+ {
383
+ "type": "string",
384
+ "const": "Value",
385
+ "description": "Value"
386
+ }
387
+ ],
388
+ "description": "Value type"
389
+ },
390
+ "value": {
391
+ "anyOf": [
392
+ {
393
+ "anyOf": [
394
+ {
395
+ "type": "boolean"
396
+ },
397
+ {
398
+ "anyOf": [
399
+ {
400
+ "$ref": "#/definitions/data/properties/referrer/anyOf/1"
401
+ },
402
+ {
403
+ "type": "string"
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ "type": "string"
409
+ },
410
+ {
411
+ "type": "number"
412
+ },
413
+ {
414
+ "type": "array",
415
+ "items": {
416
+ "type": "boolean"
417
+ }
418
+ },
419
+ {
420
+ "anyOf": [
421
+ {
422
+ "type": "object",
423
+ "properties": {
424
+ "entities": {
425
+ "type": "array",
426
+ "items": {
427
+ "$ref": "#/definitions/data/properties/referrer/anyOf/1"
428
+ }
429
+ },
430
+ "check_all_founded": {
431
+ "type": "boolean",
432
+ "description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
433
+ }
434
+ },
435
+ "required": [
436
+ "entities"
437
+ ],
438
+ "additionalProperties": false,
439
+ "description": "Used to batch find account or object IDs by name"
440
+ },
441
+ {
442
+ "type": "array",
443
+ "items": {
444
+ "type": "string"
445
+ }
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "type": "array",
451
+ "items": {
452
+ "type": "string"
453
+ }
454
+ },
455
+ {
456
+ "type": "array",
457
+ "items": {
458
+ "type": "number"
459
+ }
460
+ },
461
+ {
462
+ "type": "array",
463
+ "items": {
464
+ "type": "array",
465
+ "items": {
466
+ "type": "number"
467
+ }
468
+ }
469
+ }
470
+ ],
471
+ "description": "User available supported value type"
472
+ },
473
+ {
474
+ "type": "object",
475
+ "properties": {
476
+ "valueType": {
477
+ "anyOf": [
478
+ {
479
+ "$ref": "#/definitions/data/properties/information/anyOf/0/properties/data/items/properties/value_type/anyOf/0"
480
+ },
481
+ {
482
+ "$ref": "#/definitions/data/properties/information/anyOf/0/properties/data/items/properties/value_type/anyOf/1"
483
+ }
484
+ ],
485
+ "description": "Value type"
486
+ },
487
+ "value": {
488
+ "anyOf": [
489
+ {
490
+ "$ref": "#/definitions/data/properties/information/anyOf/0/properties/data/items/properties/value/anyOf/0"
491
+ },
492
+ {
493
+ "$ref": "#/definitions/data/properties/information/anyOf/0/properties/data/items/properties/value/anyOf/1"
494
+ }
495
+ ],
496
+ "description": "Value"
497
+ }
498
+ },
499
+ "required": [
500
+ "valueType",
501
+ "value"
502
+ ],
503
+ "additionalProperties": false,
504
+ "description": "Value container with type and value"
505
+ }
506
+ ],
507
+ "description": "Value"
508
+ }
509
+ },
510
+ "required": [
511
+ "name",
512
+ "value_type",
513
+ "value"
514
+ ],
515
+ "additionalProperties": false,
516
+ "description": "Information record"
517
+ }
518
+ }
519
+ },
520
+ "required": [
521
+ "op",
522
+ "data"
523
+ ],
524
+ "additionalProperties": false,
525
+ "description": "PUBLIC: Add personal info on-chain. Safe: social handles, URLs, public email. NEVER: phone, address, private keys."
526
+ },
527
+ {
528
+ "type": "object",
529
+ "properties": {
530
+ "op": {
531
+ "type": "string",
532
+ "const": "remove"
533
+ },
534
+ "name": {
535
+ "type": "array",
536
+ "items": {
537
+ "type": "string"
538
+ }
539
+ }
540
+ },
541
+ "required": [
542
+ "op",
543
+ "name"
544
+ ],
545
+ "additionalProperties": false,
546
+ "description": "PUBLIC: Remove specified personal info records from your public profile."
547
+ },
548
+ {
549
+ "type": "object",
550
+ "properties": {
551
+ "op": {
552
+ "type": "string",
553
+ "const": "clear"
554
+ }
555
+ },
556
+ "required": [
557
+ "op"
558
+ ],
559
+ "additionalProperties": false,
560
+ "description": "PUBLIC: Clear ALL personal info from your public profile."
561
+ }
562
+ ],
563
+ "description": "PUBLIC: Personal info on-chain. Safe: social handles, URLs. NEVER: phone, address, private keys."
564
+ },
565
+ "mark": {
566
+ "anyOf": [
567
+ {
568
+ "type": "object",
569
+ "properties": {
570
+ "op": {
571
+ "type": "string",
572
+ "const": "add"
573
+ },
574
+ "data": {
575
+ "type": "array",
576
+ "items": {
577
+ "type": "object",
578
+ "properties": {
579
+ "address": {
580
+ "anyOf": [
581
+ {
582
+ "type": "string",
583
+ "description": "Account name, address (0x...), or mark name. When using string format, local marks are searched first. EXAMPLE: 'alice' - searches local marks first, then global; EXAMPLE: '0x1234...' - uses address directly"
584
+ },
585
+ {
586
+ "$ref": "#/definitions/data/properties/referrer/anyOf/1"
587
+ }
588
+ ],
589
+ "description": "Account or address lookup. Can be a simple string (recommended for AI) or full object with explicit local_mark_first control"
590
+ },
591
+ "name": {
592
+ "$ref": "#/definitions/data/properties/information/anyOf/1/properties/name/items"
593
+ },
594
+ "tags": {
595
+ "type": "array",
596
+ "items": {
597
+ "$ref": "#/definitions/data/properties/information/anyOf/1/properties/name/items"
598
+ }
599
+ }
600
+ },
601
+ "required": [
602
+ "address"
603
+ ],
604
+ "additionalProperties": false
605
+ }
606
+ }
607
+ },
608
+ "required": [
609
+ "op",
610
+ "data"
611
+ ],
612
+ "additionalProperties": false,
613
+ "description": "PUBLIC: Add ID name and tags on-chain for public identity. For private marks, use 'local' tool."
614
+ },
615
+ {
616
+ "type": "object",
617
+ "properties": {
618
+ "op": {
619
+ "type": "string",
620
+ "const": "remove"
621
+ },
622
+ "data": {
623
+ "type": "array",
624
+ "items": {
625
+ "type": "object",
626
+ "properties": {
627
+ "address": {
628
+ "$ref": "#/definitions/data/properties/mark/anyOf/0/properties/data/items/properties/address"
629
+ },
630
+ "tags": {
631
+ "type": "array",
632
+ "items": {
633
+ "$ref": "#/definitions/data/properties/information/anyOf/1/properties/name/items"
634
+ }
635
+ }
636
+ },
637
+ "required": [
638
+ "address"
639
+ ],
640
+ "additionalProperties": false
641
+ }
642
+ }
643
+ },
644
+ "required": [
645
+ "op",
646
+ "data"
647
+ ],
648
+ "additionalProperties": false,
649
+ "description": "PUBLIC: Remove specified tags from your on-chain identity mark."
650
+ },
651
+ {
652
+ "type": "object",
653
+ "properties": {
654
+ "op": {
655
+ "type": "string",
656
+ "const": "clear"
657
+ },
658
+ "address": {
659
+ "anyOf": [
660
+ {
661
+ "type": "array",
662
+ "items": {
663
+ "type": "string"
664
+ },
665
+ "description": "Array of account names, addresses, or mark names. Local marks are searched first for each entry"
666
+ },
667
+ {
668
+ "$ref": "#/definitions/data/properties/information/anyOf/0/properties/data/items/properties/value/anyOf/0/anyOf/5/anyOf/0"
669
+ }
670
+ ],
671
+ "description": "Batch account or address lookup. Can be an array of strings (recommended for AI) or full object with explicit control"
672
+ }
673
+ },
674
+ "required": [
675
+ "op",
676
+ "address"
677
+ ],
678
+ "additionalProperties": false,
679
+ "description": "PUBLIC: Clear ALL tags from specified on-chain identity marks."
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "op": {
685
+ "type": "string",
686
+ "const": "transfer"
687
+ },
688
+ "to": {
689
+ "$ref": "#/definitions/data/properties/mark/anyOf/0/properties/data/items/properties/address"
690
+ }
691
+ },
692
+ "required": [
693
+ "op",
694
+ "to"
695
+ ],
696
+ "additionalProperties": false,
697
+ "description": "PUBLIC: Transfer your on-chain identity mark to another address."
698
+ },
699
+ {
700
+ "type": "object",
701
+ "properties": {
702
+ "op": {
703
+ "type": "string",
704
+ "const": "replace"
705
+ },
706
+ "new_mark_object": {
707
+ "type": "string",
708
+ "description": "New personal ID tag object ID."
709
+ }
710
+ },
711
+ "required": [
712
+ "op",
713
+ "new_mark_object"
714
+ ],
715
+ "additionalProperties": false,
716
+ "description": "PUBLIC: Replace your on-chain identity mark with a new object."
717
+ },
718
+ {
719
+ "type": "object",
720
+ "properties": {
721
+ "op": {
722
+ "type": "string",
723
+ "const": "destroy"
724
+ }
725
+ },
726
+ "required": [
727
+ "op"
728
+ ],
729
+ "additionalProperties": false,
730
+ "description": "PUBLIC: Destroy your on-chain identity mark permanently."
731
+ }
732
+ ],
733
+ "description": "PUBLIC: On-chain identity mark. For PRIVATE marks, use 'local' tool."
734
+ }
735
+ },
736
+ "additionalProperties": false
737
+ },
738
+ "env": {
739
+ "type": "object",
740
+ "properties": {
741
+ "account": {
742
+ "type": "string",
743
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters).",
744
+ "default": ""
745
+ },
746
+ "permission_guard": {
747
+ "type": "array",
748
+ "items": {
749
+ "type": "string"
750
+ },
751
+ "description": "List of permission guard IDs. Used to extend additional operation permissions (requires verification and configuration in the Permission object)."
752
+ },
753
+ "no_cache": {
754
+ "type": "boolean",
755
+ "description": "Whether to disable caching."
756
+ },
757
+ "network": {
758
+ "type": "string",
759
+ "enum": [
760
+ "localnet",
761
+ "testnet"
762
+ ],
763
+ "description": "Network entrypoint: Specifies which network the operation occurs on"
764
+ },
765
+ "referrer": {
766
+ "$ref": "#/definitions/env/properties/account",
767
+ "description": "Referrer ID. If the user is using the network for the first time, the referrer ID will be recorded."
768
+ }
769
+ },
770
+ "additionalProperties": false,
771
+ "description": "IMPORTANT: Execution environment includes: account for signing operations, network selection ([object Object]), additional Guard permissions, and more. Used to specify context information during the call. If account is not specified, the default account (\"\") will be used."
772
+ },
773
+ "submission": {
774
+ "type": "object",
775
+ "properties": {
776
+ "type": {
777
+ "type": "string",
778
+ "const": "submission",
779
+ "description": "Type of call response: submission"
780
+ },
781
+ "guard": {
782
+ "type": "array",
783
+ "items": {
784
+ "type": "object",
785
+ "properties": {
786
+ "object": {
787
+ "type": "string",
788
+ "description": "Guard object name or ID."
789
+ },
790
+ "impack": {
791
+ "type": "boolean",
792
+ "description": "Whether the verification result of this Guard participates in the final verification logic. If true, the verification result of this Guard will be included in the final verification result; if false, the verification result of this Guard will not be included."
793
+ }
794
+ },
795
+ "required": [
796
+ "object",
797
+ "impack"
798
+ ],
799
+ "additionalProperties": false
800
+ }
801
+ },
802
+ "submission": {
803
+ "type": "array",
804
+ "items": {
805
+ "type": "object",
806
+ "properties": {
807
+ "guard": {
808
+ "$ref": "#/definitions/submission/properties/guard/items/properties/object",
809
+ "description": "Guard object name or ID."
810
+ },
811
+ "submission": {
812
+ "type": "array",
813
+ "items": {
814
+ "type": "object",
815
+ "properties": {
816
+ "identifier": {
817
+ "type": "integer",
818
+ "minimum": 0,
819
+ "maximum": 255,
820
+ "description": "Identifier (0-255) for data lookup in Guard table."
821
+ },
822
+ "b_submission": {
823
+ "type": "boolean",
824
+ "description": "Whether user submission is required for this data"
825
+ },
826
+ "value_type": {
827
+ "anyOf": [
828
+ {
829
+ "type": "number",
830
+ "const": 0,
831
+ "description": "Bool (0)"
832
+ },
833
+ {
834
+ "type": "number",
835
+ "const": 1,
836
+ "description": "Address (1)"
837
+ },
838
+ {
839
+ "type": "number",
840
+ "const": 2,
841
+ "description": "String (2)"
842
+ },
843
+ {
844
+ "type": "number",
845
+ "const": 3,
846
+ "description": "U8 (3)"
847
+ },
848
+ {
849
+ "type": "number",
850
+ "const": 4,
851
+ "description": "U16 (4)"
852
+ },
853
+ {
854
+ "type": "number",
855
+ "const": 5,
856
+ "description": "U32 (5)"
857
+ },
858
+ {
859
+ "type": "number",
860
+ "const": 6,
861
+ "description": "U64 (6)"
862
+ },
863
+ {
864
+ "type": "number",
865
+ "const": 7,
866
+ "description": "U128 (7)"
867
+ },
868
+ {
869
+ "type": "number",
870
+ "const": 8,
871
+ "description": "U256 (8)"
872
+ },
873
+ {
874
+ "type": "number",
875
+ "const": 9,
876
+ "description": "VecBool (9)"
877
+ },
878
+ {
879
+ "type": "number",
880
+ "const": 10,
881
+ "description": "VecAddress (10)"
882
+ },
883
+ {
884
+ "type": "number",
885
+ "const": 11,
886
+ "description": "VecString (11)"
887
+ },
888
+ {
889
+ "type": "number",
890
+ "const": 12,
891
+ "description": "VecU8 (12)"
892
+ },
893
+ {
894
+ "type": "number",
895
+ "const": 13,
896
+ "description": "VecU16 (13)"
897
+ },
898
+ {
899
+ "type": "number",
900
+ "const": 14,
901
+ "description": "VecU32 (14)"
902
+ },
903
+ {
904
+ "type": "number",
905
+ "const": 15,
906
+ "description": "VecU64 (15)"
907
+ },
908
+ {
909
+ "type": "number",
910
+ "const": 16,
911
+ "description": "VecU128 (16)"
912
+ },
913
+ {
914
+ "type": "number",
915
+ "const": 17,
916
+ "description": "VecU256 (17)"
917
+ },
918
+ {
919
+ "type": "number",
920
+ "const": 18,
921
+ "description": "VecVecU8 (18)"
922
+ },
923
+ {
924
+ "type": "string",
925
+ "const": "Bool",
926
+ "description": "Bool"
927
+ },
928
+ {
929
+ "type": "string",
930
+ "const": "Address",
931
+ "description": "Address"
932
+ },
933
+ {
934
+ "type": "string",
935
+ "const": "String",
936
+ "description": "String"
937
+ },
938
+ {
939
+ "type": "string",
940
+ "const": "U8",
941
+ "description": "U8"
942
+ },
943
+ {
944
+ "type": "string",
945
+ "const": "U16",
946
+ "description": "U16"
947
+ },
948
+ {
949
+ "type": "string",
950
+ "const": "U32",
951
+ "description": "U32"
952
+ },
953
+ {
954
+ "type": "string",
955
+ "const": "U64",
956
+ "description": "U64"
957
+ },
958
+ {
959
+ "type": "string",
960
+ "const": "U128",
961
+ "description": "U128"
962
+ },
963
+ {
964
+ "type": "string",
965
+ "const": "U256",
966
+ "description": "U256"
967
+ },
968
+ {
969
+ "type": "string",
970
+ "const": "VecBool",
971
+ "description": "VecBool"
972
+ },
973
+ {
974
+ "type": "string",
975
+ "const": "VecAddress",
976
+ "description": "VecAddress"
977
+ },
978
+ {
979
+ "type": "string",
980
+ "const": "VecString",
981
+ "description": "VecString"
982
+ },
983
+ {
984
+ "type": "string",
985
+ "const": "VecU8",
986
+ "description": "VecU8"
987
+ },
988
+ {
989
+ "type": "string",
990
+ "const": "VecU16",
991
+ "description": "VecU16"
992
+ },
993
+ {
994
+ "type": "string",
995
+ "const": "VecU32",
996
+ "description": "VecU32"
997
+ },
998
+ {
999
+ "type": "string",
1000
+ "const": "VecU64",
1001
+ "description": "VecU64"
1002
+ },
1003
+ {
1004
+ "type": "string",
1005
+ "const": "VecU128",
1006
+ "description": "VecU128"
1007
+ },
1008
+ {
1009
+ "type": "string",
1010
+ "const": "VecU256",
1011
+ "description": "VecU256"
1012
+ },
1013
+ {
1014
+ "type": "string",
1015
+ "const": "VecVecU8",
1016
+ "description": "VecVecU8"
1017
+ },
1018
+ {
1019
+ "type": "string",
1020
+ "const": "bool",
1021
+ "description": "bool"
1022
+ },
1023
+ {
1024
+ "type": "string",
1025
+ "const": "address",
1026
+ "description": "address"
1027
+ },
1028
+ {
1029
+ "type": "string",
1030
+ "const": "string",
1031
+ "description": "string"
1032
+ },
1033
+ {
1034
+ "type": "string",
1035
+ "const": "u8",
1036
+ "description": "u8"
1037
+ },
1038
+ {
1039
+ "type": "string",
1040
+ "const": "u16",
1041
+ "description": "u16"
1042
+ },
1043
+ {
1044
+ "type": "string",
1045
+ "const": "u32",
1046
+ "description": "u32"
1047
+ },
1048
+ {
1049
+ "type": "string",
1050
+ "const": "u64",
1051
+ "description": "u64"
1052
+ },
1053
+ {
1054
+ "type": "string",
1055
+ "const": "u128",
1056
+ "description": "u128"
1057
+ },
1058
+ {
1059
+ "type": "string",
1060
+ "const": "u256",
1061
+ "description": "u256"
1062
+ },
1063
+ {
1064
+ "type": "string",
1065
+ "const": "vecbool",
1066
+ "description": "vecbool"
1067
+ },
1068
+ {
1069
+ "type": "string",
1070
+ "const": "vecaddress",
1071
+ "description": "vecaddress"
1072
+ },
1073
+ {
1074
+ "type": "string",
1075
+ "const": "vecstring",
1076
+ "description": "vecstring"
1077
+ },
1078
+ {
1079
+ "type": "string",
1080
+ "const": "vecu8",
1081
+ "description": "vecu8"
1082
+ },
1083
+ {
1084
+ "type": "string",
1085
+ "const": "vecu16",
1086
+ "description": "vecu16"
1087
+ },
1088
+ {
1089
+ "type": "string",
1090
+ "const": "vecu32",
1091
+ "description": "vecu32"
1092
+ },
1093
+ {
1094
+ "type": "string",
1095
+ "const": "vecu64",
1096
+ "description": "vecu64"
1097
+ },
1098
+ {
1099
+ "type": "string",
1100
+ "const": "vecu128",
1101
+ "description": "vecu128"
1102
+ },
1103
+ {
1104
+ "type": "string",
1105
+ "const": "vecu256",
1106
+ "description": "vecu256"
1107
+ },
1108
+ {
1109
+ "type": "string",
1110
+ "const": "vecvecu8",
1111
+ "description": "vecvecu8"
1112
+ }
1113
+ ],
1114
+ "description": "Type of the value"
1115
+ },
1116
+ "value": {
1117
+ "anyOf": [
1118
+ {
1119
+ "type": "boolean"
1120
+ },
1121
+ {
1122
+ "anyOf": [
1123
+ {
1124
+ "type": "object",
1125
+ "properties": {
1126
+ "name_or_address": {
1127
+ "$ref": "#/definitions/submission/properties/guard/items/properties/object",
1128
+ "description": "Account/Object name or ID. If specifying an account, use empty string '' for the default account. If it starts with '0x', it will be treated as an ID. Otherwise, it will be treated as a name (max 64 bcs characters)."
1129
+ },
1130
+ "local_mark_first": {
1131
+ "type": "boolean",
1132
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
1133
+ }
1134
+ },
1135
+ "additionalProperties": false,
1136
+ "description": "Account or address lookup object. Use this to specify which account to use for an operation. EXAMPLE: { name_or_address: 'testor2' } - looks up account by name; EXAMPLE: { name_or_address: '0x1234...' } - uses address directly; If name_or_address is empty string '', uses the default local account."
1137
+ },
1138
+ {
1139
+ "type": "string"
1140
+ }
1141
+ ]
1142
+ },
1143
+ {
1144
+ "type": "string"
1145
+ },
1146
+ {
1147
+ "type": "number"
1148
+ },
1149
+ {
1150
+ "type": "array",
1151
+ "items": {
1152
+ "type": "boolean"
1153
+ }
1154
+ },
1155
+ {
1156
+ "anyOf": [
1157
+ {
1158
+ "type": "object",
1159
+ "properties": {
1160
+ "entities": {
1161
+ "type": "array",
1162
+ "items": {
1163
+ "$ref": "#/definitions/submission/properties/submission/items/properties/submission/items/properties/value/anyOf/1/anyOf/0"
1164
+ }
1165
+ },
1166
+ "check_all_founded": {
1167
+ "type": "boolean",
1168
+ "description": "Whether to check all entities are found, if true, all entities must be found (abort and throw exception if any ID not found); if false, only return found IDs"
1169
+ }
1170
+ },
1171
+ "required": [
1172
+ "entities"
1173
+ ],
1174
+ "additionalProperties": false,
1175
+ "description": "Used to batch find account or object IDs by name"
1176
+ },
1177
+ {
1178
+ "type": "array",
1179
+ "items": {
1180
+ "type": "string"
1181
+ }
1182
+ }
1183
+ ]
1184
+ },
1185
+ {
1186
+ "type": "array",
1187
+ "items": {
1188
+ "type": "string"
1189
+ }
1190
+ },
1191
+ {
1192
+ "type": "array",
1193
+ "items": {
1194
+ "type": "number"
1195
+ }
1196
+ },
1197
+ {
1198
+ "type": "array",
1199
+ "items": {
1200
+ "type": "array",
1201
+ "items": {
1202
+ "type": "number"
1203
+ }
1204
+ }
1205
+ }
1206
+ ],
1207
+ "description": "The actual value data"
1208
+ },
1209
+ "name": {
1210
+ "type": "string",
1211
+ "default": "",
1212
+ "description": "Name or description of this data"
1213
+ },
1214
+ "object_type": {
1215
+ "type": "string",
1216
+ "enum": [
1217
+ "Permission",
1218
+ "Repository",
1219
+ "Arb",
1220
+ "Arbitration",
1221
+ "Service",
1222
+ "Machine",
1223
+ "Order",
1224
+ "Progress",
1225
+ "Payment",
1226
+ "Treasury",
1227
+ "Guard",
1228
+ "Demand",
1229
+ "Passport",
1230
+ "Allocation",
1231
+ "Resource",
1232
+ "Reward",
1233
+ "Discount",
1234
+ "EntityRegistrar",
1235
+ "EntityLinker",
1236
+ "Proof",
1237
+ "WReceivedObject",
1238
+ "Contact",
1239
+ "TableItem_ProgressHistory",
1240
+ "TableItem_PermissionPerm",
1241
+ "TableItem_DemandPresenter",
1242
+ "TableItem_MachineNode",
1243
+ "TableItem_TreasuryHistory",
1244
+ "TableItem_RepositoryData",
1245
+ "TableItem_RewardRecord",
1246
+ "TableItem_EntityLinker",
1247
+ "TableItem_AddressMark",
1248
+ "TableItem_EntityRegistrar"
1249
+ ],
1250
+ "description": "Object type when value_type is Address and represents a specific object"
1251
+ }
1252
+ },
1253
+ "required": [
1254
+ "identifier",
1255
+ "b_submission",
1256
+ "value_type"
1257
+ ],
1258
+ "additionalProperties": false,
1259
+ "description": "Guard table item"
1260
+ },
1261
+ "description": "User-submitted data required for Guard verification."
1262
+ }
1263
+ },
1264
+ "required": [
1265
+ "guard",
1266
+ "submission"
1267
+ ],
1268
+ "additionalProperties": false,
1269
+ "description": "Permission guard submission data."
1270
+ }
1271
+ }
1272
+ },
1273
+ "required": [
1274
+ "type",
1275
+ "guard",
1276
+ "submission"
1277
+ ],
1278
+ "additionalProperties": false,
1279
+ "description": "Guard verification submission data required to complete an operation. Contains: (1) 'guard' - array of Guard objects to verify, each with an object ID and an 'impack' flag indicating if its result affects the final outcome; (2) 'submission' - array of user data submissions matching the Guard's requirements. The operation proceeds only after all Guards with impack=true are successfully verified."
1280
+ }
1281
+ }
1282
+ }