@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,1938 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://wowok.net/schemas/onchain_table_data.json",
4
+ "title": "On-chain Table Data Query",
5
+ "description": "Query dynamic table data of on-chain objects",
6
+ "$ref": "#/definitions/onchain_table_data",
7
+ "definitions": {
8
+ "onchain_table_data": {
9
+ "type": "object",
10
+ "properties": {
11
+ "result": {
12
+ "anyOf": [
13
+ {
14
+ "type": "object",
15
+ "properties": {
16
+ "query_type": {
17
+ "type": "string",
18
+ "const": "onchain_table"
19
+ },
20
+ "result": {
21
+ "anyOf": [
22
+ {
23
+ "type": "object",
24
+ "properties": {
25
+ "items": {
26
+ "type": "array",
27
+ "items": {
28
+ "type": "object",
29
+ "properties": {
30
+ "key": {
31
+ "type": "object",
32
+ "properties": {
33
+ "type": {
34
+ "type": "string",
35
+ "description": "Key type"
36
+ },
37
+ "value": {
38
+ "type": [
39
+ "string",
40
+ "number"
41
+ ],
42
+ "description": "Key value"
43
+ }
44
+ },
45
+ "required": [
46
+ "type",
47
+ "value"
48
+ ],
49
+ "additionalProperties": false,
50
+ "description": "Query key and its type"
51
+ },
52
+ "type": {
53
+ "type": "string",
54
+ "description": "Table item object type"
55
+ },
56
+ "object": {
57
+ "type": "string",
58
+ "description": "Table item object ID"
59
+ },
60
+ "version": {
61
+ "type": [
62
+ "string",
63
+ "number"
64
+ ],
65
+ "description": "Table item object version"
66
+ }
67
+ },
68
+ "required": [
69
+ "key",
70
+ "type",
71
+ "object",
72
+ "version"
73
+ ],
74
+ "additionalProperties": false,
75
+ "description": "Result item of object's data table query"
76
+ }
77
+ },
78
+ "nextCursor": {
79
+ "type": [
80
+ "string",
81
+ "null"
82
+ ]
83
+ },
84
+ "hasNextPage": {
85
+ "type": "boolean"
86
+ },
87
+ "cache_expire": {
88
+ "type": [
89
+ "string",
90
+ "null"
91
+ ]
92
+ }
93
+ },
94
+ "required": [
95
+ "items",
96
+ "nextCursor",
97
+ "hasNextPage"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "not": {}
103
+ }
104
+ ]
105
+ }
106
+ },
107
+ "required": [
108
+ "query_type"
109
+ ],
110
+ "additionalProperties": false
111
+ },
112
+ {
113
+ "type": "object",
114
+ "properties": {
115
+ "query_type": {
116
+ "type": "string",
117
+ "const": "onchain_table_item_repository_data"
118
+ },
119
+ "result": {
120
+ "anyOf": [
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "object": {
125
+ "type": "string",
126
+ "description": "Object ID"
127
+ },
128
+ "type": {
129
+ "type": "string",
130
+ "enum": [
131
+ "Permission",
132
+ "Repository",
133
+ "Arb",
134
+ "Arbitration",
135
+ "Service",
136
+ "Machine",
137
+ "Order",
138
+ "Progress",
139
+ "Payment",
140
+ "Treasury",
141
+ "Guard",
142
+ "Demand",
143
+ "Passport",
144
+ "Allocation",
145
+ "Resource",
146
+ "Reward",
147
+ "Discount",
148
+ "EntityRegistrar",
149
+ "EntityLinker",
150
+ "Proof",
151
+ "WReceivedObject",
152
+ "Contact",
153
+ "TableItem_ProgressHistory",
154
+ "TableItem_PermissionPerm",
155
+ "TableItem_DemandPresenter",
156
+ "TableItem_MachineNode",
157
+ "TableItem_TreasuryHistory",
158
+ "TableItem_RepositoryData",
159
+ "TableItem_RewardRecord",
160
+ "TableItem_EntityLinker",
161
+ "TableItem_AddressMark",
162
+ "TableItem_EntityRegistrar"
163
+ ],
164
+ "description": "Object type"
165
+ },
166
+ "type_raw": {
167
+ "type": "string",
168
+ "description": "Raw object type"
169
+ },
170
+ "owner": {
171
+ "anyOf": [
172
+ {
173
+ "anyOf": [
174
+ {
175
+ "type": "object",
176
+ "properties": {
177
+ "AddressOwner": {
178
+ "type": "string",
179
+ "description": "Address owner"
180
+ }
181
+ },
182
+ "required": [
183
+ "AddressOwner"
184
+ ],
185
+ "additionalProperties": false
186
+ },
187
+ {
188
+ "type": "object",
189
+ "properties": {
190
+ "ObjectOwner": {
191
+ "type": "string",
192
+ "description": "Object owner"
193
+ }
194
+ },
195
+ "required": [
196
+ "ObjectOwner"
197
+ ],
198
+ "additionalProperties": false
199
+ },
200
+ {
201
+ "type": "object",
202
+ "properties": {
203
+ "Shared": {
204
+ "type": "object",
205
+ "properties": {
206
+ "initial_shared_version": {
207
+ "type": [
208
+ "string",
209
+ "number"
210
+ ],
211
+ "description": "Version when object became shared"
212
+ }
213
+ },
214
+ "required": [
215
+ "initial_shared_version"
216
+ ],
217
+ "additionalProperties": false,
218
+ "description": "Shared object"
219
+ }
220
+ },
221
+ "required": [
222
+ "Shared"
223
+ ],
224
+ "additionalProperties": false
225
+ },
226
+ {
227
+ "type": "string",
228
+ "const": "Immutable"
229
+ },
230
+ {
231
+ "type": "object",
232
+ "properties": {
233
+ "ConsensusAddressOwner": {
234
+ "type": "object",
235
+ "properties": {
236
+ "owner": {
237
+ "type": "string",
238
+ "description": "Consensus ID owner"
239
+ },
240
+ "start_version": {
241
+ "type": [
242
+ "string",
243
+ "number"
244
+ ],
245
+ "description": "Version when object recently became consensus object"
246
+ }
247
+ },
248
+ "required": [
249
+ "owner",
250
+ "start_version"
251
+ ],
252
+ "additionalProperties": false,
253
+ "description": "Consensus ID owner"
254
+ }
255
+ },
256
+ "required": [
257
+ "ConsensusAddressOwner"
258
+ ],
259
+ "additionalProperties": false
260
+ }
261
+ ],
262
+ "description": "Object owner"
263
+ },
264
+ {
265
+ "type": "null"
266
+ }
267
+ ],
268
+ "description": "Object owner"
269
+ },
270
+ "version": {
271
+ "type": [
272
+ "string",
273
+ "number"
274
+ ],
275
+ "description": "Object version"
276
+ },
277
+ "previousTransaction": {
278
+ "type": "string",
279
+ "description": "Previous transaction ID"
280
+ },
281
+ "cache_expire": {
282
+ "anyOf": [
283
+ {
284
+ "type": "number"
285
+ },
286
+ {
287
+ "type": "string",
288
+ "const": "INFINITE"
289
+ }
290
+ ],
291
+ "description": "Cache expiration time"
292
+ },
293
+ "query_name": {
294
+ "type": "string",
295
+ "description": "Original query name or address used to retrieve this object"
296
+ },
297
+ "content_raw": {
298
+ "description": "Raw content data for unknown object types"
299
+ },
300
+ "_guard_node_comments": {
301
+ "type": "array",
302
+ "items": {
303
+ "type": "object",
304
+ "properties": {
305
+ "type": {
306
+ "type": "string"
307
+ },
308
+ "description": {
309
+ "type": "string"
310
+ }
311
+ },
312
+ "required": [
313
+ "type",
314
+ "description"
315
+ ],
316
+ "additionalProperties": false
317
+ },
318
+ "description": "Additional comments for Guard node instructions"
319
+ },
320
+ "entity": {
321
+ "type": "string",
322
+ "description": "Object or user ID"
323
+ },
324
+ "name": {
325
+ "type": "string",
326
+ "description": "Data item name (Policy Name)"
327
+ },
328
+ "value": {
329
+ "type": "array",
330
+ "items": {
331
+ "type": "number"
332
+ },
333
+ "description": "Raw data value (first byte is value type, remaining bytes are Bcs formatted value)"
334
+ },
335
+ "data": {
336
+ "type": "object",
337
+ "properties": {
338
+ "value_type": {
339
+ "anyOf": [
340
+ {
341
+ "anyOf": [
342
+ {
343
+ "anyOf": [
344
+ {
345
+ "type": "number",
346
+ "const": 0,
347
+ "description": "Bool (0)"
348
+ },
349
+ {
350
+ "type": "number",
351
+ "const": 1,
352
+ "description": "Address (1)"
353
+ },
354
+ {
355
+ "type": "number",
356
+ "const": 2,
357
+ "description": "String (2)"
358
+ },
359
+ {
360
+ "type": "number",
361
+ "const": 3,
362
+ "description": "U8 (3)"
363
+ },
364
+ {
365
+ "type": "number",
366
+ "const": 4,
367
+ "description": "U16 (4)"
368
+ },
369
+ {
370
+ "type": "number",
371
+ "const": 5,
372
+ "description": "U32 (5)"
373
+ },
374
+ {
375
+ "type": "number",
376
+ "const": 6,
377
+ "description": "U64 (6)"
378
+ },
379
+ {
380
+ "type": "number",
381
+ "const": 7,
382
+ "description": "U128 (7)"
383
+ },
384
+ {
385
+ "type": "number",
386
+ "const": 8,
387
+ "description": "U256 (8)"
388
+ },
389
+ {
390
+ "type": "number",
391
+ "const": 9,
392
+ "description": "VecBool (9)"
393
+ },
394
+ {
395
+ "type": "number",
396
+ "const": 10,
397
+ "description": "VecAddress (10)"
398
+ },
399
+ {
400
+ "type": "number",
401
+ "const": 11,
402
+ "description": "VecString (11)"
403
+ },
404
+ {
405
+ "type": "number",
406
+ "const": 12,
407
+ "description": "VecU8 (12)"
408
+ },
409
+ {
410
+ "type": "number",
411
+ "const": 13,
412
+ "description": "VecU16 (13)"
413
+ },
414
+ {
415
+ "type": "number",
416
+ "const": 14,
417
+ "description": "VecU32 (14)"
418
+ },
419
+ {
420
+ "type": "number",
421
+ "const": 15,
422
+ "description": "VecU64 (15)"
423
+ },
424
+ {
425
+ "type": "number",
426
+ "const": 16,
427
+ "description": "VecU128 (16)"
428
+ },
429
+ {
430
+ "type": "number",
431
+ "const": 17,
432
+ "description": "VecU256 (17)"
433
+ },
434
+ {
435
+ "type": "number",
436
+ "const": 18,
437
+ "description": "VecVecU8 (18)"
438
+ },
439
+ {
440
+ "type": "string",
441
+ "const": "Bool",
442
+ "description": "Bool"
443
+ },
444
+ {
445
+ "type": "string",
446
+ "const": "Address",
447
+ "description": "Address"
448
+ },
449
+ {
450
+ "type": "string",
451
+ "const": "String",
452
+ "description": "String"
453
+ },
454
+ {
455
+ "type": "string",
456
+ "const": "U8",
457
+ "description": "U8"
458
+ },
459
+ {
460
+ "type": "string",
461
+ "const": "U16",
462
+ "description": "U16"
463
+ },
464
+ {
465
+ "type": "string",
466
+ "const": "U32",
467
+ "description": "U32"
468
+ },
469
+ {
470
+ "type": "string",
471
+ "const": "U64",
472
+ "description": "U64"
473
+ },
474
+ {
475
+ "type": "string",
476
+ "const": "U128",
477
+ "description": "U128"
478
+ },
479
+ {
480
+ "type": "string",
481
+ "const": "U256",
482
+ "description": "U256"
483
+ },
484
+ {
485
+ "type": "string",
486
+ "const": "VecBool",
487
+ "description": "VecBool"
488
+ },
489
+ {
490
+ "type": "string",
491
+ "const": "VecAddress",
492
+ "description": "VecAddress"
493
+ },
494
+ {
495
+ "type": "string",
496
+ "const": "VecString",
497
+ "description": "VecString"
498
+ },
499
+ {
500
+ "type": "string",
501
+ "const": "VecU8",
502
+ "description": "VecU8"
503
+ },
504
+ {
505
+ "type": "string",
506
+ "const": "VecU16",
507
+ "description": "VecU16"
508
+ },
509
+ {
510
+ "type": "string",
511
+ "const": "VecU32",
512
+ "description": "VecU32"
513
+ },
514
+ {
515
+ "type": "string",
516
+ "const": "VecU64",
517
+ "description": "VecU64"
518
+ },
519
+ {
520
+ "type": "string",
521
+ "const": "VecU128",
522
+ "description": "VecU128"
523
+ },
524
+ {
525
+ "type": "string",
526
+ "const": "VecU256",
527
+ "description": "VecU256"
528
+ },
529
+ {
530
+ "type": "string",
531
+ "const": "VecVecU8",
532
+ "description": "VecVecU8"
533
+ },
534
+ {
535
+ "type": "string",
536
+ "const": "bool",
537
+ "description": "bool"
538
+ },
539
+ {
540
+ "type": "string",
541
+ "const": "address",
542
+ "description": "address"
543
+ },
544
+ {
545
+ "type": "string",
546
+ "const": "string",
547
+ "description": "string"
548
+ },
549
+ {
550
+ "type": "string",
551
+ "const": "u8",
552
+ "description": "u8"
553
+ },
554
+ {
555
+ "type": "string",
556
+ "const": "u16",
557
+ "description": "u16"
558
+ },
559
+ {
560
+ "type": "string",
561
+ "const": "u32",
562
+ "description": "u32"
563
+ },
564
+ {
565
+ "type": "string",
566
+ "const": "u64",
567
+ "description": "u64"
568
+ },
569
+ {
570
+ "type": "string",
571
+ "const": "u128",
572
+ "description": "u128"
573
+ },
574
+ {
575
+ "type": "string",
576
+ "const": "u256",
577
+ "description": "u256"
578
+ },
579
+ {
580
+ "type": "string",
581
+ "const": "vecbool",
582
+ "description": "vecbool"
583
+ },
584
+ {
585
+ "type": "string",
586
+ "const": "vecaddress",
587
+ "description": "vecaddress"
588
+ },
589
+ {
590
+ "type": "string",
591
+ "const": "vecstring",
592
+ "description": "vecstring"
593
+ },
594
+ {
595
+ "type": "string",
596
+ "const": "vecu8",
597
+ "description": "vecu8"
598
+ },
599
+ {
600
+ "type": "string",
601
+ "const": "vecu16",
602
+ "description": "vecu16"
603
+ },
604
+ {
605
+ "type": "string",
606
+ "const": "vecu32",
607
+ "description": "vecu32"
608
+ },
609
+ {
610
+ "type": "string",
611
+ "const": "vecu64",
612
+ "description": "vecu64"
613
+ },
614
+ {
615
+ "type": "string",
616
+ "const": "vecu128",
617
+ "description": "vecu128"
618
+ },
619
+ {
620
+ "type": "string",
621
+ "const": "vecu256",
622
+ "description": "vecu256"
623
+ },
624
+ {
625
+ "type": "string",
626
+ "const": "vecvecu8",
627
+ "description": "vecvecu8"
628
+ }
629
+ ],
630
+ "description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
631
+ },
632
+ {
633
+ "type": "number",
634
+ "const": 19,
635
+ "description": "Value (19)"
636
+ }
637
+ ],
638
+ "description": "User available value type (number or string, e.g., 6 or 'U64' or 'u64')"
639
+ },
640
+ {
641
+ "type": "string",
642
+ "const": "Value",
643
+ "description": "Value"
644
+ }
645
+ ],
646
+ "description": "Type of data value."
647
+ },
648
+ "value": {
649
+ "anyOf": [
650
+ {
651
+ "anyOf": [
652
+ {
653
+ "type": "boolean"
654
+ },
655
+ {
656
+ "anyOf": [
657
+ {
658
+ "type": "object",
659
+ "properties": {
660
+ "name_or_address": {
661
+ "type": "string",
662
+ "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)."
663
+ },
664
+ "local_mark_first": {
665
+ "type": "boolean",
666
+ "description": "Whether to prioritize local marks, if true, prioritize local marks, otherwise prioritize global marks"
667
+ }
668
+ },
669
+ "additionalProperties": false,
670
+ "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."
671
+ },
672
+ {
673
+ "type": "string"
674
+ }
675
+ ]
676
+ },
677
+ {
678
+ "type": "string"
679
+ },
680
+ {
681
+ "type": "number"
682
+ },
683
+ {
684
+ "type": "array",
685
+ "items": {
686
+ "type": "boolean"
687
+ }
688
+ },
689
+ {
690
+ "anyOf": [
691
+ {
692
+ "type": "object",
693
+ "properties": {
694
+ "entities": {
695
+ "type": "array",
696
+ "items": {
697
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/0/anyOf/1/anyOf/0"
698
+ }
699
+ },
700
+ "check_all_founded": {
701
+ "type": "boolean",
702
+ "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"
703
+ }
704
+ },
705
+ "required": [
706
+ "entities"
707
+ ],
708
+ "additionalProperties": false,
709
+ "description": "Used to batch find account or object IDs by name"
710
+ },
711
+ {
712
+ "type": "array",
713
+ "items": {
714
+ "type": "string"
715
+ }
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ "type": "array",
721
+ "items": {
722
+ "type": "string"
723
+ }
724
+ },
725
+ {
726
+ "type": "array",
727
+ "items": {
728
+ "type": "number"
729
+ }
730
+ },
731
+ {
732
+ "type": "array",
733
+ "items": {
734
+ "type": "array",
735
+ "items": {
736
+ "type": "number"
737
+ }
738
+ }
739
+ }
740
+ ],
741
+ "description": "User available supported value type"
742
+ },
743
+ {
744
+ "type": "object",
745
+ "properties": {
746
+ "valueType": {
747
+ "anyOf": [
748
+ {
749
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/0"
750
+ },
751
+ {
752
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/1"
753
+ }
754
+ ],
755
+ "description": "Value type"
756
+ },
757
+ "value": {
758
+ "anyOf": [
759
+ {
760
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/0"
761
+ },
762
+ {
763
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/1"
764
+ }
765
+ ],
766
+ "description": "Value"
767
+ }
768
+ },
769
+ "required": [
770
+ "valueType",
771
+ "value"
772
+ ],
773
+ "additionalProperties": false,
774
+ "description": "Value container with type and value"
775
+ }
776
+ ],
777
+ "description": "Data value."
778
+ }
779
+ },
780
+ "required": [
781
+ "value_type",
782
+ "value"
783
+ ],
784
+ "additionalProperties": false
785
+ }
786
+ },
787
+ "required": [
788
+ "object",
789
+ "entity",
790
+ "name",
791
+ "value",
792
+ "data"
793
+ ],
794
+ "additionalProperties": true,
795
+ "description": "Storage data item owned by Repository object"
796
+ },
797
+ {
798
+ "not": {}
799
+ }
800
+ ]
801
+ }
802
+ },
803
+ "required": [
804
+ "query_type"
805
+ ],
806
+ "additionalProperties": false
807
+ },
808
+ {
809
+ "type": "object",
810
+ "properties": {
811
+ "query_type": {
812
+ "type": "string",
813
+ "const": "onchain_table_item_permission_perm"
814
+ },
815
+ "result": {
816
+ "anyOf": [
817
+ {
818
+ "type": "object",
819
+ "properties": {
820
+ "object": {
821
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
822
+ },
823
+ "type": {
824
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
825
+ },
826
+ "type_raw": {
827
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
828
+ },
829
+ "owner": {
830
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
831
+ },
832
+ "version": {
833
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
834
+ },
835
+ "previousTransaction": {
836
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
837
+ },
838
+ "cache_expire": {
839
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
840
+ },
841
+ "query_name": {
842
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
843
+ },
844
+ "content_raw": {
845
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
846
+ },
847
+ "_guard_node_comments": {
848
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
849
+ },
850
+ "address": {
851
+ "type": "string",
852
+ "description": "User ID or Guard ID"
853
+ },
854
+ "perm": {
855
+ "type": "array",
856
+ "items": {
857
+ "type": "integer",
858
+ "description": "Permission index type"
859
+ },
860
+ "description": "Permission list obtained after user or Guard object verification"
861
+ }
862
+ },
863
+ "required": [
864
+ "object",
865
+ "address",
866
+ "perm"
867
+ ],
868
+ "additionalProperties": true,
869
+ "description": "Permission object's permission record"
870
+ },
871
+ {
872
+ "not": {}
873
+ }
874
+ ]
875
+ }
876
+ },
877
+ "required": [
878
+ "query_type"
879
+ ],
880
+ "additionalProperties": false
881
+ },
882
+ {
883
+ "type": "object",
884
+ "properties": {
885
+ "query_type": {
886
+ "type": "string",
887
+ "const": "onchain_table_item_entity_registrar"
888
+ },
889
+ "result": {
890
+ "anyOf": [
891
+ {
892
+ "type": "object",
893
+ "properties": {
894
+ "object": {
895
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
896
+ },
897
+ "type": {
898
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
899
+ },
900
+ "type_raw": {
901
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
902
+ },
903
+ "owner": {
904
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
905
+ },
906
+ "version": {
907
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
908
+ },
909
+ "previousTransaction": {
910
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
911
+ },
912
+ "cache_expire": {
913
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
914
+ },
915
+ "query_name": {
916
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
917
+ },
918
+ "content_raw": {
919
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
920
+ },
921
+ "_guard_node_comments": {
922
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
923
+ },
924
+ "address": {
925
+ "type": "string",
926
+ "description": "Entity ID"
927
+ },
928
+ "description": {
929
+ "type": "string",
930
+ "description": "Entity description"
931
+ },
932
+ "time": {
933
+ "type": "number",
934
+ "description": "On-chain registration time"
935
+ },
936
+ "referrer": {
937
+ "type": [
938
+ "string",
939
+ "null"
940
+ ],
941
+ "description": "Referrer"
942
+ },
943
+ "mark_object": {
944
+ "type": [
945
+ "string",
946
+ "null"
947
+ ],
948
+ "description": "Your on-chain address mark object by entity ID"
949
+ },
950
+ "records": {
951
+ "type": "array",
952
+ "items": {
953
+ "type": "object",
954
+ "properties": {
955
+ "name": {
956
+ "type": "string",
957
+ "description": "Record name"
958
+ },
959
+ "value_type": {
960
+ "anyOf": [
961
+ {
962
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/0"
963
+ },
964
+ {
965
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/1"
966
+ }
967
+ ],
968
+ "description": "Value type"
969
+ },
970
+ "value": {
971
+ "anyOf": [
972
+ {
973
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/0"
974
+ },
975
+ {
976
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/1"
977
+ }
978
+ ],
979
+ "description": "Value"
980
+ }
981
+ },
982
+ "required": [
983
+ "name",
984
+ "value_type",
985
+ "value"
986
+ ],
987
+ "additionalProperties": false,
988
+ "description": "Information record"
989
+ },
990
+ "description": "Information records"
991
+ }
992
+ },
993
+ "required": [
994
+ "object",
995
+ "address",
996
+ "description",
997
+ "time",
998
+ "referrer",
999
+ "mark_object",
1000
+ "records"
1001
+ ],
1002
+ "additionalProperties": true,
1003
+ "description": "On-chain entity data"
1004
+ },
1005
+ {
1006
+ "not": {}
1007
+ }
1008
+ ]
1009
+ }
1010
+ },
1011
+ "required": [
1012
+ "query_type"
1013
+ ],
1014
+ "additionalProperties": false
1015
+ },
1016
+ {
1017
+ "type": "object",
1018
+ "properties": {
1019
+ "query_type": {
1020
+ "type": "string",
1021
+ "const": "onchain_table_item_entity_linker"
1022
+ },
1023
+ "result": {
1024
+ "anyOf": [
1025
+ {
1026
+ "type": "object",
1027
+ "properties": {
1028
+ "object": {
1029
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1030
+ },
1031
+ "type": {
1032
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1033
+ },
1034
+ "type_raw": {
1035
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1036
+ },
1037
+ "owner": {
1038
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1039
+ },
1040
+ "version": {
1041
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1042
+ },
1043
+ "previousTransaction": {
1044
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1045
+ },
1046
+ "cache_expire": {
1047
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1048
+ },
1049
+ "query_name": {
1050
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1051
+ },
1052
+ "content_raw": {
1053
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1054
+ },
1055
+ "_guard_node_comments": {
1056
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1057
+ },
1058
+ "address": {
1059
+ "type": "string",
1060
+ "description": "Followed ID"
1061
+ },
1062
+ "pos": {
1063
+ "type": "number",
1064
+ "description": "Current follow information position"
1065
+ },
1066
+ "count": {
1067
+ "type": "number",
1068
+ "description": "Follower count. Number of entities who have been followed others. Use 'query_table' or 'query_table_item' to get 'EntityLinker' table items."
1069
+ },
1070
+ "votes": {
1071
+ "type": "array",
1072
+ "items": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "address": {
1076
+ "type": "string",
1077
+ "description": "Account or object ID"
1078
+ },
1079
+ "like": {
1080
+ "type": "boolean",
1081
+ "description": "Whether liked"
1082
+ },
1083
+ "dislike": {
1084
+ "type": "boolean",
1085
+ "description": "Whether disliked"
1086
+ },
1087
+ "affiliation": {
1088
+ "type": "boolean",
1089
+ "description": "Whether affiliated"
1090
+ },
1091
+ "time": {
1092
+ "type": "number",
1093
+ "description": "Time"
1094
+ }
1095
+ },
1096
+ "required": [
1097
+ "address",
1098
+ "time"
1099
+ ],
1100
+ "additionalProperties": false,
1101
+ "description": "Follow record"
1102
+ },
1103
+ "description": "Follow records"
1104
+ }
1105
+ },
1106
+ "required": [
1107
+ "object",
1108
+ "address",
1109
+ "pos",
1110
+ "count",
1111
+ "votes"
1112
+ ],
1113
+ "additionalProperties": true,
1114
+ "description": "On-chain followed object data"
1115
+ },
1116
+ {
1117
+ "not": {}
1118
+ }
1119
+ ]
1120
+ }
1121
+ },
1122
+ "required": [
1123
+ "query_type"
1124
+ ],
1125
+ "additionalProperties": false
1126
+ },
1127
+ {
1128
+ "type": "object",
1129
+ "properties": {
1130
+ "query_type": {
1131
+ "type": "string",
1132
+ "const": "onchain_table_item_reward_record"
1133
+ },
1134
+ "result": {
1135
+ "anyOf": [
1136
+ {
1137
+ "type": "object",
1138
+ "properties": {
1139
+ "object": {
1140
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1141
+ },
1142
+ "type": {
1143
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1144
+ },
1145
+ "type_raw": {
1146
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1147
+ },
1148
+ "owner": {
1149
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1150
+ },
1151
+ "version": {
1152
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1153
+ },
1154
+ "previousTransaction": {
1155
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1156
+ },
1157
+ "cache_expire": {
1158
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1159
+ },
1160
+ "query_name": {
1161
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1162
+ },
1163
+ "content_raw": {
1164
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1165
+ },
1166
+ "_guard_node_comments": {
1167
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1168
+ },
1169
+ "recipient": {
1170
+ "type": "string",
1171
+ "description": "Reward recipient ID"
1172
+ },
1173
+ "guard": {
1174
+ "type": "string",
1175
+ "description": "Guard object ID"
1176
+ },
1177
+ "total": {
1178
+ "type": [
1179
+ "number",
1180
+ "string"
1181
+ ],
1182
+ "description": "Total reward amount"
1183
+ },
1184
+ "record": {
1185
+ "type": "array",
1186
+ "items": {
1187
+ "type": "object",
1188
+ "properties": {
1189
+ "amount": {
1190
+ "type": [
1191
+ "number",
1192
+ "string"
1193
+ ],
1194
+ "description": "Reward amount"
1195
+ },
1196
+ "time": {
1197
+ "type": "number",
1198
+ "description": "Reward time"
1199
+ },
1200
+ "store_from_id": {
1201
+ "type": [
1202
+ "string",
1203
+ "null"
1204
+ ],
1205
+ "description": "Stored value from Guard table. This stores the value (address or number converted to address, including submitted values) from the Guard table at the specified index for Guard verification purposes."
1206
+ }
1207
+ },
1208
+ "required": [
1209
+ "amount",
1210
+ "time",
1211
+ "store_from_id"
1212
+ ],
1213
+ "additionalProperties": false
1214
+ },
1215
+ "description": "Reward record list"
1216
+ }
1217
+ },
1218
+ "required": [
1219
+ "object",
1220
+ "recipient",
1221
+ "guard",
1222
+ "total",
1223
+ "record"
1224
+ ],
1225
+ "additionalProperties": true,
1226
+ "description": "Reward object's reward record"
1227
+ },
1228
+ {
1229
+ "not": {}
1230
+ }
1231
+ ]
1232
+ }
1233
+ },
1234
+ "required": [
1235
+ "query_type"
1236
+ ],
1237
+ "additionalProperties": false
1238
+ },
1239
+ {
1240
+ "type": "object",
1241
+ "properties": {
1242
+ "query_type": {
1243
+ "type": "string",
1244
+ "const": "onchain_table_item_demand_presenter"
1245
+ },
1246
+ "result": {
1247
+ "anyOf": [
1248
+ {
1249
+ "type": "object",
1250
+ "properties": {
1251
+ "object": {
1252
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1253
+ },
1254
+ "type": {
1255
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1256
+ },
1257
+ "type_raw": {
1258
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1259
+ },
1260
+ "owner": {
1261
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1262
+ },
1263
+ "version": {
1264
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1265
+ },
1266
+ "previousTransaction": {
1267
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1268
+ },
1269
+ "cache_expire": {
1270
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1271
+ },
1272
+ "query_name": {
1273
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1274
+ },
1275
+ "content_raw": {
1276
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1277
+ },
1278
+ "_guard_node_comments": {
1279
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1280
+ },
1281
+ "address": {
1282
+ "type": "string",
1283
+ "description": "Referrer ID"
1284
+ },
1285
+ "recommend": {
1286
+ "type": "string",
1287
+ "description": "Recommendation letter"
1288
+ },
1289
+ "service": {
1290
+ "type": [
1291
+ "string",
1292
+ "null"
1293
+ ],
1294
+ "description": "Recommended service object ID"
1295
+ },
1296
+ "update_time": {
1297
+ "type": "number",
1298
+ "description": "Last update time"
1299
+ },
1300
+ "acceptance_score": {
1301
+ "type": [
1302
+ "number",
1303
+ "null"
1304
+ ],
1305
+ "description": "Demand object feedback score"
1306
+ },
1307
+ "feedback": {
1308
+ "type": "string",
1309
+ "description": "Demand object feedback information"
1310
+ },
1311
+ "feedback_time": {
1312
+ "type": "number",
1313
+ "description": "Demand object feedback time"
1314
+ }
1315
+ },
1316
+ "required": [
1317
+ "object",
1318
+ "address",
1319
+ "recommend",
1320
+ "service",
1321
+ "update_time",
1322
+ "acceptance_score",
1323
+ "feedback",
1324
+ "feedback_time"
1325
+ ],
1326
+ "additionalProperties": true,
1327
+ "description": "Demand object's Service recommendation record"
1328
+ },
1329
+ {
1330
+ "not": {}
1331
+ }
1332
+ ]
1333
+ }
1334
+ },
1335
+ "required": [
1336
+ "query_type"
1337
+ ],
1338
+ "additionalProperties": false
1339
+ },
1340
+ {
1341
+ "type": "object",
1342
+ "properties": {
1343
+ "query_type": {
1344
+ "type": "string",
1345
+ "const": "onchain_table_item_treasury_history"
1346
+ },
1347
+ "result": {
1348
+ "anyOf": [
1349
+ {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "object": {
1353
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1354
+ },
1355
+ "type": {
1356
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1357
+ },
1358
+ "type_raw": {
1359
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1360
+ },
1361
+ "owner": {
1362
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1363
+ },
1364
+ "version": {
1365
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1366
+ },
1367
+ "previousTransaction": {
1368
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1369
+ },
1370
+ "cache_expire": {
1371
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1372
+ },
1373
+ "query_name": {
1374
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1375
+ },
1376
+ "content_raw": {
1377
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1378
+ },
1379
+ "_guard_node_comments": {
1380
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1381
+ },
1382
+ "payment": {
1383
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/0/anyOf/1/anyOf/0/properties/name_or_address",
1384
+ "description": "Payment object ID"
1385
+ },
1386
+ "op": {
1387
+ "type": "string",
1388
+ "enum": [
1389
+ "Withdraw",
1390
+ "Deposit",
1391
+ "Receive"
1392
+ ],
1393
+ "description": "Operation type"
1394
+ },
1395
+ "signer": {
1396
+ "type": "string",
1397
+ "description": "Operator ID"
1398
+ },
1399
+ "external_guard": {
1400
+ "type": [
1401
+ "string",
1402
+ "null"
1403
+ ],
1404
+ "description": "Guard object ID verified during operation (none if operated through Permission)"
1405
+ },
1406
+ "amount": {
1407
+ "type": [
1408
+ "number",
1409
+ "string"
1410
+ ],
1411
+ "description": "Payment amount"
1412
+ },
1413
+ "time": {
1414
+ "type": "number",
1415
+ "description": "Payment time (Unix timestamp)"
1416
+ },
1417
+ "store_from_id": {
1418
+ "type": [
1419
+ "string",
1420
+ "null"
1421
+ ],
1422
+ "description": "Stored value from Guard table. This stores the value (address or number converted to address, including submitted values) from the Guard table at the specified index for Guard verification purposes."
1423
+ }
1424
+ },
1425
+ "required": [
1426
+ "object",
1427
+ "payment",
1428
+ "op",
1429
+ "signer",
1430
+ "external_guard",
1431
+ "amount",
1432
+ "time",
1433
+ "store_from_id"
1434
+ ],
1435
+ "additionalProperties": true,
1436
+ "description": "Payment record in Treasury object"
1437
+ },
1438
+ {
1439
+ "not": {}
1440
+ }
1441
+ ]
1442
+ }
1443
+ },
1444
+ "required": [
1445
+ "query_type"
1446
+ ],
1447
+ "additionalProperties": false
1448
+ },
1449
+ {
1450
+ "type": "object",
1451
+ "properties": {
1452
+ "query_type": {
1453
+ "type": "string",
1454
+ "const": "onchain_table_item_machine_node"
1455
+ },
1456
+ "result": {
1457
+ "anyOf": [
1458
+ {
1459
+ "type": "object",
1460
+ "properties": {
1461
+ "object": {
1462
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1463
+ },
1464
+ "type": {
1465
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1466
+ },
1467
+ "type_raw": {
1468
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1469
+ },
1470
+ "owner": {
1471
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1472
+ },
1473
+ "version": {
1474
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1475
+ },
1476
+ "previousTransaction": {
1477
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1478
+ },
1479
+ "cache_expire": {
1480
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1481
+ },
1482
+ "query_name": {
1483
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1484
+ },
1485
+ "content_raw": {
1486
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1487
+ },
1488
+ "_guard_node_comments": {
1489
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1490
+ },
1491
+ "name": {
1492
+ "type": "string",
1493
+ "description": "Node name"
1494
+ },
1495
+ "value": {
1496
+ "type": "array",
1497
+ "items": {
1498
+ "type": "object",
1499
+ "properties": {
1500
+ "prev_node": {
1501
+ "type": "string",
1502
+ "description": "Previous node name"
1503
+ },
1504
+ "threshold": {
1505
+ "type": "integer",
1506
+ "minimum": 0,
1507
+ "maximum": 4294967295,
1508
+ "description": "Threshold to trigger node advancement. If total Forward weight is greater than or equal to threshold, node advancement is triggered."
1509
+ },
1510
+ "forwards": {
1511
+ "type": "array",
1512
+ "items": {
1513
+ "type": "object",
1514
+ "properties": {
1515
+ "name": {
1516
+ "type": "string",
1517
+ "description": "Forward name"
1518
+ },
1519
+ "namedOperator": {
1520
+ "type": "string",
1521
+ "description": "Forward operation permission 1: Namespace (one of the two must be specified); recommended if Progress object operators are different (e.g., different delivery personnel for different orders)."
1522
+ },
1523
+ "permissionIndex": {
1524
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/2/properties/result/anyOf/0/properties/perm/items",
1525
+ "description": "Forward operation permission 2: Permission index (one of the two must be specified); recommended if all Progress object operators are the same (e.g., same reward reviewers for all orders)."
1526
+ },
1527
+ "weight": {
1528
+ "type": "integer",
1529
+ "minimum": 0,
1530
+ "maximum": 65535,
1531
+ "description": "Forward weight"
1532
+ },
1533
+ "guard": {
1534
+ "type": "object",
1535
+ "properties": {
1536
+ "guard": {
1537
+ "type": "string",
1538
+ "description": "Guard object ID"
1539
+ },
1540
+ "retained_submission": {
1541
+ "type": "array",
1542
+ "items": {
1543
+ "type": "number"
1544
+ },
1545
+ "description": "Data submitted by user during Guard object verification"
1546
+ }
1547
+ },
1548
+ "required": [
1549
+ "guard"
1550
+ ],
1551
+ "additionalProperties": false,
1552
+ "description": "Guard object ID, if defined, Guard verification must also pass to complete Forward (e.g., completed promised supply chain sub-order)."
1553
+ }
1554
+ },
1555
+ "required": [
1556
+ "name",
1557
+ "weight"
1558
+ ],
1559
+ "additionalProperties": false,
1560
+ "description": "Forward in Machine object"
1561
+ },
1562
+ "description": "Forward list"
1563
+ }
1564
+ },
1565
+ "required": [
1566
+ "prev_node",
1567
+ "threshold",
1568
+ "forwards"
1569
+ ],
1570
+ "additionalProperties": false,
1571
+ "description": "Node pair in Machine object"
1572
+ },
1573
+ "description": "Node pair list"
1574
+ }
1575
+ },
1576
+ "required": [
1577
+ "object",
1578
+ "name",
1579
+ "value"
1580
+ ],
1581
+ "additionalProperties": true,
1582
+ "description": "Node record in Machine object"
1583
+ },
1584
+ {
1585
+ "not": {}
1586
+ }
1587
+ ]
1588
+ }
1589
+ },
1590
+ "required": [
1591
+ "query_type"
1592
+ ],
1593
+ "additionalProperties": false
1594
+ },
1595
+ {
1596
+ "type": "object",
1597
+ "properties": {
1598
+ "query_type": {
1599
+ "type": "string",
1600
+ "const": "onchain_table_item_progress_history"
1601
+ },
1602
+ "result": {
1603
+ "anyOf": [
1604
+ {
1605
+ "type": "object",
1606
+ "properties": {
1607
+ "object": {
1608
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1609
+ },
1610
+ "type": {
1611
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1612
+ },
1613
+ "type_raw": {
1614
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1615
+ },
1616
+ "owner": {
1617
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1618
+ },
1619
+ "version": {
1620
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1621
+ },
1622
+ "previousTransaction": {
1623
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1624
+ },
1625
+ "cache_expire": {
1626
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1627
+ },
1628
+ "query_name": {
1629
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1630
+ },
1631
+ "content_raw": {
1632
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1633
+ },
1634
+ "_guard_node_comments": {
1635
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1636
+ },
1637
+ "index": {
1638
+ "type": "integer",
1639
+ "description": "Progress record index (starting from 0)"
1640
+ },
1641
+ "node": {
1642
+ "type": "string",
1643
+ "description": "Previous node name"
1644
+ },
1645
+ "next_node": {
1646
+ "type": "string",
1647
+ "description": "Next node name"
1648
+ },
1649
+ "session": {
1650
+ "type": "array",
1651
+ "items": {
1652
+ "type": "object",
1653
+ "properties": {
1654
+ "next_node": {
1655
+ "type": "string",
1656
+ "description": "Next node ID"
1657
+ },
1658
+ "forwards": {
1659
+ "type": "array",
1660
+ "items": {
1661
+ "type": "object",
1662
+ "properties": {
1663
+ "forward": {
1664
+ "type": "string",
1665
+ "description": "An operation name"
1666
+ },
1667
+ "who": {
1668
+ "type": [
1669
+ "string",
1670
+ "null"
1671
+ ],
1672
+ "description": "Operator ID"
1673
+ },
1674
+ "retained_submission": {
1675
+ "type": "array",
1676
+ "items": {
1677
+ "type": "object",
1678
+ "properties": {
1679
+ "identifier": {
1680
+ "type": "integer",
1681
+ "minimum": 0,
1682
+ "maximum": 255,
1683
+ "description": "Identifier"
1684
+ },
1685
+ "value_type": {
1686
+ "anyOf": [
1687
+ {
1688
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/0"
1689
+ },
1690
+ {
1691
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value_type/anyOf/1"
1692
+ }
1693
+ ],
1694
+ "description": "Value type"
1695
+ },
1696
+ "value": {
1697
+ "anyOf": [
1698
+ {
1699
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/0"
1700
+ },
1701
+ {
1702
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/data/properties/value/anyOf/1"
1703
+ }
1704
+ ],
1705
+ "description": "Value"
1706
+ }
1707
+ },
1708
+ "required": [
1709
+ "identifier",
1710
+ "value_type",
1711
+ "value"
1712
+ ],
1713
+ "additionalProperties": false,
1714
+ "description": "Guard submission"
1715
+ },
1716
+ "description": "Used to define submitted data after Guard verification"
1717
+ },
1718
+ "msg": {
1719
+ "type": "string",
1720
+ "description": "Information submitted to complete operation"
1721
+ },
1722
+ "accomplished": {
1723
+ "type": "boolean",
1724
+ "description": "Whether completed"
1725
+ },
1726
+ "time": {
1727
+ "type": "number",
1728
+ "description": "Session creation time"
1729
+ }
1730
+ },
1731
+ "required": [
1732
+ "forward",
1733
+ "who",
1734
+ "retained_submission",
1735
+ "msg",
1736
+ "accomplished",
1737
+ "time"
1738
+ ],
1739
+ "additionalProperties": false,
1740
+ "description": "An operation in Progress session"
1741
+ },
1742
+ "description": "Operation list in Progress session"
1743
+ },
1744
+ "weights": {
1745
+ "type": "number",
1746
+ "description": "Total operation weight"
1747
+ },
1748
+ "threshold": {
1749
+ "type": "number",
1750
+ "description": "Operation threshold. When total operation weight exceeds threshold, session is considered completed and Progress moves from current node to next node."
1751
+ }
1752
+ },
1753
+ "required": [
1754
+ "next_node",
1755
+ "forwards",
1756
+ "weights",
1757
+ "threshold"
1758
+ ],
1759
+ "additionalProperties": false,
1760
+ "description": "Progress session"
1761
+ },
1762
+ "description": "Progress session list"
1763
+ },
1764
+ "time": {
1765
+ "type": "number",
1766
+ "description": "Progress record completion time (Unix timestamp)"
1767
+ }
1768
+ },
1769
+ "required": [
1770
+ "object",
1771
+ "index",
1772
+ "node",
1773
+ "next_node",
1774
+ "session",
1775
+ "time"
1776
+ ],
1777
+ "additionalProperties": true,
1778
+ "description": "Completed progress record in Progress object"
1779
+ },
1780
+ {
1781
+ "not": {}
1782
+ }
1783
+ ]
1784
+ }
1785
+ },
1786
+ "required": [
1787
+ "query_type"
1788
+ ],
1789
+ "additionalProperties": false
1790
+ },
1791
+ {
1792
+ "type": "object",
1793
+ "properties": {
1794
+ "query_type": {
1795
+ "type": "string",
1796
+ "const": "onchain_table_item_address_mark"
1797
+ },
1798
+ "result": {
1799
+ "anyOf": [
1800
+ {
1801
+ "type": "object",
1802
+ "properties": {
1803
+ "object": {
1804
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1805
+ },
1806
+ "type": {
1807
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1808
+ },
1809
+ "type_raw": {
1810
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1811
+ },
1812
+ "owner": {
1813
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1814
+ },
1815
+ "version": {
1816
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1817
+ },
1818
+ "previousTransaction": {
1819
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1820
+ },
1821
+ "cache_expire": {
1822
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1823
+ },
1824
+ "query_name": {
1825
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1826
+ },
1827
+ "content_raw": {
1828
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1829
+ },
1830
+ "_guard_node_comments": {
1831
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1832
+ },
1833
+ "entity": {
1834
+ "type": "string",
1835
+ "description": "Entity ID"
1836
+ },
1837
+ "name": {
1838
+ "type": "string",
1839
+ "description": "Tag name"
1840
+ },
1841
+ "tags": {
1842
+ "type": "array",
1843
+ "items": {
1844
+ "type": "string"
1845
+ },
1846
+ "description": "Tag list"
1847
+ }
1848
+ },
1849
+ "required": [
1850
+ "object",
1851
+ "entity",
1852
+ "name",
1853
+ "tags"
1854
+ ],
1855
+ "additionalProperties": true,
1856
+ "description": "On-chain ID mark data"
1857
+ },
1858
+ {
1859
+ "not": {}
1860
+ }
1861
+ ]
1862
+ }
1863
+ },
1864
+ "required": [
1865
+ "query_type"
1866
+ ],
1867
+ "additionalProperties": false
1868
+ },
1869
+ {
1870
+ "type": "object",
1871
+ "properties": {
1872
+ "query_type": {
1873
+ "type": "string",
1874
+ "const": "onchain_table_item_generic"
1875
+ },
1876
+ "result": {
1877
+ "anyOf": [
1878
+ {
1879
+ "type": "object",
1880
+ "properties": {
1881
+ "object": {
1882
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/object"
1883
+ },
1884
+ "type": {
1885
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type"
1886
+ },
1887
+ "type_raw": {
1888
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/type_raw"
1889
+ },
1890
+ "owner": {
1891
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/owner"
1892
+ },
1893
+ "version": {
1894
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/version"
1895
+ },
1896
+ "previousTransaction": {
1897
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/previousTransaction"
1898
+ },
1899
+ "cache_expire": {
1900
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/cache_expire"
1901
+ },
1902
+ "query_name": {
1903
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/query_name"
1904
+ },
1905
+ "content_raw": {
1906
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/content_raw"
1907
+ },
1908
+ "_guard_node_comments": {
1909
+ "$ref": "#/definitions/onchain_table_data/properties/result/anyOf/1/properties/result/anyOf/0/properties/_guard_node_comments"
1910
+ }
1911
+ },
1912
+ "required": [
1913
+ "object"
1914
+ ],
1915
+ "additionalProperties": true,
1916
+ "description": "Object base information"
1917
+ },
1918
+ {
1919
+ "not": {}
1920
+ }
1921
+ ]
1922
+ }
1923
+ },
1924
+ "required": [
1925
+ "query_type"
1926
+ ],
1927
+ "additionalProperties": false
1928
+ }
1929
+ ]
1930
+ }
1931
+ },
1932
+ "required": [
1933
+ "result"
1934
+ ],
1935
+ "additionalProperties": false
1936
+ }
1937
+ }
1938
+ }